mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-14 18:46:20 +00:00
831 lines
1.6 MiB
831 lines
1.6 MiB
var WY=Object.defineProperty;var GY=(e,t,n)=>t in e?WY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var df=(e,t,n)=>GY(e,typeof t!="symbol"?t+"":t,n);(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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Wg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bx={exports:{}},ep={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var GM;function YY(){if(GM)return ep;GM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}return ep.Fragment=t,ep.jsx=n,ep.jsxs=n,ep}var YM;function KY(){return YM||(YM=1,Bx.exports=YY()),Bx.exports}var y=KY(),Ux={exports:{}},tp={},zx={exports:{}},Fx={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var KM;function ZY(){return KM||(KM=1,function(e){function t(H,B){var z=H.length;H.push(B);e:for(;0<z;){var F=z-1>>>1,M=H[F];if(0<i(M,B))H[F]=B,H[z]=M,z=F;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var B=H[0],z=H.pop();if(z!==B){H[0]=z;e:for(var F=0,M=H.length,k=M>>>1;F<k;){var te=2*(F+1)-1,Z=H[te],oe=te+1,he=H[oe];if(0>i(Z,z))oe<M&&0>i(he,Z)?(H[F]=he,H[oe]=z,F=oe):(H[F]=Z,H[te]=z,F=te);else if(oe<M&&0>i(he,z))H[F]=he,H[oe]=z,F=oe;else break e}}return B}function i(H,B){var z=H.sortIndex-B.sortIndex;return z!==0?z:H.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var f=[],c=[],h=1,m=null,g=3,x=!1,_=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function j(H){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=H)r(c),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(c)}}function P(H){if(w=!1,j(H),!_)if(n(f)!==null)_=!0,R||(R=!0,ne());else{var B=n(c);B!==null&&J(P,B.startTime-H)}}var R=!1,I=-1,V=5,G=-1;function W(){return S?!0:!(e.unstable_now()-G<V)}function K(){if(S=!1,R){var H=e.unstable_now();G=H;var B=!0;try{e:{_=!1,w&&(w=!1,C(I),I=-1),x=!0;var z=g;try{t:{for(j(H),m=n(f);m!==null&&!(m.expirationTime>H&&W());){var F=m.callback;if(typeof F=="function"){m.callback=null,g=m.priorityLevel;var M=F(m.expirationTime<=H);if(H=e.unstable_now(),typeof M=="function"){m.callback=M,j(H),B=!0;break t}m===n(f)&&r(f),j(H)}else r(f);m=n(f)}if(m!==null)B=!0;else{var k=n(c);k!==null&&J(P,k.startTime-H),B=!1}}break e}finally{m=null,g=z,x=!1}B=void 0}}finally{B?ne():R=!1}}}var ne;if(typeof T=="function")ne=function(){T(K)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Q=le.port2;le.port1.onmessage=K,ne=function(){Q.postMessage(null)}}else ne=function(){O(K,0)};function J(H,B){I=O(function(){H(e.unstable_now())},B)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var B=3;break;default:B=g}var z=g;g=B;try{return H()}finally{g=z}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(H,B){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var z=g;g=H;try{return B()}finally{g=z}},e.unstable_scheduleCallback=function(H,B,z){var F=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?F+z:F):z=F,H){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=z+M,H={id:h++,callback:B,priorityLevel:H,startTime:z,expirationTime:M,sortIndex:-1},z>F?(H.sortIndex=z,t(c,H),n(f)===null&&H===n(c)&&(w?(C(I),I=-1):w=!0,J(P,z-F))):(H.sortIndex=M,t(f,H),_||x||(_=!0,R||(R=!0,ne()))),H},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(H){var B=g;return function(){var z=g;g=B;try{return H.apply(this,arguments)}finally{g=z}}}}(Fx)),Fx}var ZM;function XY(){return ZM||(ZM=1,zx.exports=ZY()),zx.exports}var qx={exports:{}},Et={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var XM;function QY(){if(XM)return Et;XM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function g(M){return M===null||typeof M!="object"?null:(M=m&&M[m]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function S(M,k,te){this.props=M,this.context=k,this.refs=w,this.updater=te||x}S.prototype.isReactComponent={},S.prototype.setState=function(M,k){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,k,"setState")},S.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function O(){}O.prototype=S.prototype;function C(M,k,te){this.props=M,this.context=k,this.refs=w,this.updater=te||x}var T=C.prototype=new O;T.constructor=C,_(T,S.prototype),T.isPureReactComponent=!0;var j=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function I(M,k,te,Z,oe,he){return te=he.ref,{$$typeof:e,type:M,key:k,ref:te!==void 0?te:null,props:he}}function V(M,k){return I(M.type,k,void 0,void 0,void 0,M.props)}function G(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function W(M){var k={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(te){return k[te]})}var K=/\/+/g;function ne(M,k){return typeof M=="object"&&M!==null&&M.key!=null?W(""+M.key):k.toString(36)}function le(){}function Q(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(le,le):(M.status="pending",M.then(function(k){M.status==="pending"&&(M.status="fulfilled",M.value=k)},function(k){M.status==="pending"&&(M.status="rejected",M.reason=k)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function J(M,k,te,Z,oe){var he=typeof M;(he==="undefined"||he==="boolean")&&(M=null);var de=!1;if(M===null)de=!0;else switch(he){case"bigint":case"string":case"number":de=!0;break;case"object":switch(M.$$typeof){case e:case t:de=!0;break;case h:return de=M._init,J(de(M._payload),k,te,Z,oe)}}if(de)return oe=oe(M),de=Z===""?"."+ne(M,0):Z,j(oe)?(te="",de!=null&&(te=de.replace(K,"$&/")+"/"),J(oe,k,te,"",function(q){return q})):oe!=null&&(G(oe)&&(oe=V(oe,te+(oe.key==null||M&&M.key===oe.key?"":(""+oe.key).replace(K,"$&/")+"/")+de)),k.push(oe)),1;de=0;var be=Z===""?".":Z+":";if(j(M))for(var $=0;$<M.length;$++)Z=M[$],he=be+ne(Z,$),de+=J(Z,k,te,he,oe);else if($=g(M),typeof $=="function")for(M=$.call(M),$=0;!(Z=M.next()).done;)Z=Z.value,he=be+ne(Z,$++),de+=J(Z,k,te,he,oe);else if(he==="object"){if(typeof M.then=="function")return J(Q(M),k,te,Z,oe);throw k=String(M),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return de}function H(M,k,te){if(M==null)return M;var Z=[],oe=0;return J(M,Z,"","",function(he){return k.call(te,he,oe++)}),Z}function B(M){if(M._status===-1){var k=M._result;k=k(),k.then(function(te){(M._status===0||M._status===-1)&&(M._status=1,M._result=te)},function(te){(M._status===0||M._status===-1)&&(M._status=2,M._result=te)}),M._status===-1&&(M._status=0,M._result=k)}if(M._status===1)return M._result.default;throw M._result}var z=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function F(){}return Et.Children={map:H,forEach:function(M,k,te){H(M,function(){k.apply(this,arguments)},te)},count:function(M){var k=0;return H(M,function(){k++}),k},toArray:function(M){return H(M,function(k){return k})||[]},only:function(M){if(!G(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Et.Component=S,Et.Fragment=n,Et.Profiler=i,Et.PureComponent=C,Et.StrictMode=r,Et.Suspense=f,Et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Et.__COMPILER_RUNTIME={__proto__:null,c:function(M){return P.H.useMemoCache(M)}},Et.cache=function(M){return function(){return M.apply(null,arguments)}},Et.cloneElement=function(M,k,te){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var Z=_({},M.props),oe=M.key,he=void 0;if(k!=null)for(de in k.ref!==void 0&&(he=void 0),k.key!==void 0&&(oe=""+k.key),k)!R.call(k,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&k.ref===void 0||(Z[de]=k[de]);var de=arguments.length-2;if(de===1)Z.children=te;else if(1<de){for(var be=Array(de),$=0;$<de;$++)be[$]=arguments[$+2];Z.children=be}return I(M.type,oe,void 0,void 0,he,Z)},Et.createContext=function(M){return M={$$typeof:o,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:a,_context:M},M},Et.createElement=function(M,k,te){var Z,oe={},he=null;if(k!=null)for(Z in k.key!==void 0&&(he=""+k.key),k)R.call(k,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(oe[Z]=k[Z]);var de=arguments.length-2;if(de===1)oe.children=te;else if(1<de){for(var be=Array(de),$=0;$<de;$++)be[$]=arguments[$+2];oe.children=be}if(M&&M.defaultProps)for(Z in de=M.defaultProps,de)oe[Z]===void 0&&(oe[Z]=de[Z]);return I(M,he,void 0,void 0,null,oe)},Et.createRef=function(){return{current:null}},Et.forwardRef=function(M){return{$$typeof:l,render:M}},Et.isValidElement=G,Et.lazy=function(M){return{$$typeof:h,_payload:{_status:-1,_result:M},_init:B}},Et.memo=function(M,k){return{$$typeof:c,type:M,compare:k===void 0?null:k}},Et.startTransition=function(M){var k=P.T,te={};P.T=te;try{var Z=M(),oe=P.S;oe!==null&&oe(te,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(F,z)}catch(he){z(he)}finally{P.T=k}},Et.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Et.use=function(M){return P.H.use(M)},Et.useActionState=function(M,k,te){return P.H.useActionState(M,k,te)},Et.useCallback=function(M,k){return P.H.useCallback(M,k)},Et.useContext=function(M){return P.H.useContext(M)},Et.useDebugValue=function(){},Et.useDeferredValue=function(M,k){return P.H.useDeferredValue(M,k)},Et.useEffect=function(M,k,te){var Z=P.H;if(typeof te=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect(M,k)},Et.useId=function(){return P.H.useId()},Et.useImperativeHandle=function(M,k,te){return P.H.useImperativeHandle(M,k,te)},Et.useInsertionEffect=function(M,k){return P.H.useInsertionEffect(M,k)},Et.useLayoutEffect=function(M,k){return P.H.useLayoutEffect(M,k)},Et.useMemo=function(M,k){return P.H.useMemo(M,k)},Et.useOptimistic=function(M,k){return P.H.useOptimistic(M,k)},Et.useReducer=function(M,k,te){return P.H.useReducer(M,k,te)},Et.useRef=function(M){return P.H.useRef(M)},Et.useState=function(M){return P.H.useState(M)},Et.useSyncExternalStore=function(M,k,te){return P.H.useSyncExternalStore(M,k,te)},Et.useTransition=function(){return P.H.useTransition()},Et.version="19.1.0",Et}var QM;function P0(){return QM||(QM=1,qx.exports=QY()),qx.exports}var Vx={exports:{}},Er={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var JM;function JY(){if(JM)return Er;JM=1;var e=P0();function t(f){var c="https://react.dev/errors/"+f;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(f,c,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:f,containerInfo:c,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(f,c){if(f==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Er.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Er.createPortal=function(f,c){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(f,c,null,h)},Er.flushSync=function(f){var c=o.T,h=r.p;try{if(o.T=null,r.p=2,f)return f()}finally{o.T=c,r.p=h,r.d.f()}},Er.preconnect=function(f,c){typeof f=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(f,c))},Er.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Er.preinit=function(f,c){if(typeof f=="string"&&c&&typeof c.as=="string"){var h=c.as,m=l(h,c.crossOrigin),g=typeof c.integrity=="string"?c.integrity:void 0,x=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;h==="style"?r.d.S(f,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:x}):h==="script"&&r.d.X(f,{crossOrigin:m,integrity:g,fetchPriority:x,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Er.preinitModule=function(f,c){if(typeof f=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var h=l(c.as,c.crossOrigin);r.d.M(f,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(f)},Er.preload=function(f,c){if(typeof f=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var h=c.as,m=l(h,c.crossOrigin);r.d.L(f,h,{crossOrigin:m,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Er.preloadModule=function(f,c){if(typeof f=="string")if(c){var h=l(c.as,c.crossOrigin);r.d.m(f,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(f)},Er.requestFormReset=function(f){r.d.r(f)},Er.unstable_batchedUpdates=function(f,c){return f(c)},Er.useFormState=function(f,c,h){return o.H.useFormState(f,c,h)},Er.useFormStatus=function(){return o.H.useHostTransitionStatus()},Er.version="19.1.0",Er}var eN;function _B(){if(eN)return Vx.exports;eN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vx.exports=JY(),Vx.exports}/**
|
||
* @license React
|
||
* react-dom-client.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var tN;function eK(){if(tN)return tp;tN=1;var e=XY(),t=P0(),n=_B();function r(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function a(s){var u=s,p=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(p=u.return),s=u.return;while(s)}return u.tag===3?p:null}function o(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function l(s){if(a(s)!==s)throw Error(r(188))}function f(s){var u=s.alternate;if(!u){if(u=a(s),u===null)throw Error(r(188));return u!==s?null:s}for(var p=s,b=u;;){var A=p.return;if(A===null)break;var N=A.alternate;if(N===null){if(b=A.return,b!==null){p=b;continue}break}if(A.child===N.child){for(N=A.child;N;){if(N===p)return l(A),s;if(N===b)return l(A),u;N=N.sibling}throw Error(r(188))}if(p.return!==b.return)p=A,b=N;else{for(var re=!1,ce=A.child;ce;){if(ce===p){re=!0,p=A,b=N;break}if(ce===b){re=!0,b=A,p=N;break}ce=ce.sibling}if(!re){for(ce=N.child;ce;){if(ce===p){re=!0,p=N,b=A;break}if(ce===b){re=!0,b=N,p=A;break}ce=ce.sibling}if(!re)throw Error(r(189))}}if(p.alternate!==b)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:u}function c(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s;for(s=s.child;s!==null;){if(u=c(s),u!==null)return u;s=s.sibling}return null}var h=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function ne(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var le=Symbol.for("react.client.reference");function Q(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===le?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case _:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList";case G:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case x:return"Portal";case T:return(s.displayName||"Context")+".Provider";case C:return(s._context.displayName||"Context")+".Consumer";case j:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case I:return u=s.displayName||null,u!==null?u:Q(s.type)||"Memo";case V:u=s._payload,s=s._init;try{return Q(s(u))}catch{}}return null}var J=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},F=[],M=-1;function k(s){return{current:s}}function te(s){0>M||(s.current=F[M],F[M]=null,M--)}function Z(s,u){M++,F[M]=s.current,s.current=u}var oe=k(null),he=k(null),de=k(null),be=k(null);function $(s,u){switch(Z(de,u),Z(he,s),Z(oe,null),u.nodeType){case 9:case 11:s=(s=u.documentElement)&&(s=s.namespaceURI)?xM(s):0;break;default:if(s=u.tagName,u=u.namespaceURI)u=xM(u),s=wM(u,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}te(oe),Z(oe,s)}function q(){te(oe),te(he),te(de)}function ee(s){s.memoizedState!==null&&Z(be,s);var u=oe.current,p=wM(u,s.type);u!==p&&(Z(he,s),Z(oe,p))}function fe(s){he.current===s&&(te(oe),te(he)),be.current===s&&(te(be),Kh._currentValue=z)}var X=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,ye=e.unstable_shouldYield,me=e.unstable_requestPaint,we=e.unstable_now,Te=e.unstable_getCurrentPriorityLevel,Le=e.unstable_ImmediatePriority,ze=e.unstable_UserBlockingPriority,$e=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,_e=e.unstable_IdlePriority,Se=e.log,De=e.unstable_setDisableYieldValue,Me=null,je=null;function qe(s){if(typeof Se=="function"&&De(s),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(Me,s)}catch{}}var Ge=Math.clz32?Math.clz32:ot,Qe=Math.log,ct=Math.LN2;function ot(s){return s>>>=0,s===0?32:31-(Qe(s)/ct|0)|0}var _t=256,It=4194304;function Bt(s){var u=s&42;if(u!==0)return u;switch(s&-s){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:return 64;case 128:return 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 s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ut(s,u,p){var b=s.pendingLanes;if(b===0)return 0;var A=0,N=s.suspendedLanes,re=s.pingedLanes;s=s.warmLanes;var ce=b&134217727;return ce!==0?(b=ce&~N,b!==0?A=Bt(b):(re&=ce,re!==0?A=Bt(re):p||(p=ce&~s,p!==0&&(A=Bt(p))))):(ce=b&~N,ce!==0?A=Bt(ce):re!==0?A=Bt(re):p||(p=b&~s,p!==0&&(A=Bt(p)))),A===0?0:u!==0&&u!==A&&(u&N)===0&&(N=A&-A,p=u&-u,N>=p||N===32&&(p&4194048)!==0)?u:A}function xr(s,u){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&u)===0}function Vn(s,u){switch(s){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32: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 u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xs(){var s=_t;return _t<<=1,(_t&4194048)===0&&(_t=256),s}function ni(){var s=It;return It<<=1,(It&62914560)===0&&(It=4194304),s}function ws(s){for(var u=[],p=0;31>p;p++)u.push(s);return u}function Da(s,u){s.pendingLanes|=u,u!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Sc(s,u,p,b,A,N){var re=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var ce=s.entanglements,ge=s.expirationTimes,Ae=s.hiddenUpdates;for(p=re&~p;0<p;){var Be=31-Ge(p),Ve=1<<Be;ce[Be]=0,ge[Be]=-1;var Pe=Ae[Be];if(Pe!==null)for(Ae[Be]=null,Be=0;Be<Pe.length;Be++){var Re=Pe[Be];Re!==null&&(Re.lane&=-536870913)}p&=~Ve}b!==0&&Ss(s,b,0),N!==0&&A===0&&s.tag!==0&&(s.suspendedLanes|=N&~(re&~u))}function Ss(s,u,p){s.pendingLanes|=u,s.suspendedLanes&=~u;var b=31-Ge(u);s.entangledLanes|=u,s.entanglements[b]=s.entanglements[b]|1073741824|p&4194090}function ka(s,u){var p=s.entangledLanes|=u;for(s=s.entanglements;p;){var b=31-Ge(p),A=1<<b;A&u|s[b]&u&&(s[b]|=u),p&=~A}}function yn(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function pn(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Qn(){var s=B.p;return s!==0?s:(s=window.event,s===void 0?32:zM(s.type))}function Hn(s,u){var p=B.p;try{return B.p=s,u()}finally{B.p=p}}var rn=Math.random().toString(36).slice(2),Nt="__reactFiber$"+rn,an="__reactProps$"+rn,Jn="__reactContainer$"+rn,Ln="__reactEvents$"+rn,st="__reactListeners$"+rn,Cv="__reactHandles$"+rn,rh="__reactResources$"+rn,Os="__reactMarker$"+rn;function Oc(s){delete s[Nt],delete s[an],delete s[Ln],delete s[st],delete s[Cv]}function Ia(s){var u=s[Nt];if(u)return u;for(var p=s.parentNode;p;){if(u=p[Jn]||p[Nt]){if(p=u.alternate,u.child!==null||p!==null&&p.child!==null)for(s=CM(s);s!==null;){if(p=s[Nt])return p;s=CM(s)}return u}s=p,p=s.parentNode}return null}function yo(s){if(s=s[Nt]||s[Jn]){var u=s.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return s}return null}function Mi(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s.stateNode;throw Error(r(33))}function bo(s){var u=s[rh];return u||(u=s[rh]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Bn(s){s[Os]=!0}var Tv=new Set,Av={};function _o(s,u){xo(s,u),xo(s+"Capture",u)}function xo(s,u){for(Av[s]=u,s=0;s<u.length;s++)Tv.add(u[s])}var K_=RegExp("^[: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]*$"),Jl={},jv={};function Z_(s){return X.call(jv,s)?!0:X.call(Jl,s)?!1:K_.test(s)?jv[s]=!0:(Jl[s]=!0,!1)}function Ec(s,u,p){if(Z_(u))if(p===null)s.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(u);return;case"boolean":var b=u.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){s.removeAttribute(u);return}}s.setAttribute(u,""+p)}}function Cc(s,u,p){if(p===null)s.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(u);return}s.setAttribute(u,""+p)}}function sa(s,u,p,b){if(b===null)s.removeAttribute(p);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(u,p,""+b)}}var eu,Es;function wo(s){if(eu===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);eu=u&&u[1]||"",Es=-1<p.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+eu+s+Es}var Tc=!1;function So(s,u){if(!s||Tc)return"";Tc=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(u){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Re){var Pe=Re}Reflect.construct(s,[],Ve)}else{try{Ve.call()}catch(Re){Pe=Re}s.call(Ve.prototype)}}else{try{throw Error()}catch(Re){Pe=Re}(Ve=s())&&typeof Ve.catch=="function"&&Ve.catch(function(){})}}catch(Re){if(Re&&Pe&&typeof Re.stack=="string")return[Re.stack,Pe.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var N=b.DetermineComponentFrameRoot(),re=N[0],ce=N[1];if(re&&ce){var ge=re.split(`
|
||
`),Ae=ce.split(`
|
||
`);for(A=b=0;b<ge.length&&!ge[b].includes("DetermineComponentFrameRoot");)b++;for(;A<Ae.length&&!Ae[A].includes("DetermineComponentFrameRoot");)A++;if(b===ge.length||A===Ae.length)for(b=ge.length-1,A=Ae.length-1;1<=b&&0<=A&&ge[b]!==Ae[A];)A--;for(;1<=b&&0<=A;b--,A--)if(ge[b]!==Ae[A]){if(b!==1||A!==1)do if(b--,A--,0>A||ge[b]!==Ae[A]){var Be=`
|
||
`+ge[b].replace(" at new "," at ");return s.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",s.displayName)),Be}while(1<=b&&0<=A);break}}}finally{Tc=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?wo(p):""}function Dt(s){switch(s.tag){case 26:case 27:case 5:return wo(s.type);case 16:return wo("Lazy");case 13:return wo("Suspense");case 19:return wo("SuspenseList");case 0:case 15:return So(s.type,!1);case 11:return So(s.type.render,!1);case 1:return So(s.type,!0);case 31:return wo("Activity");default:return""}}function on(s){try{var u="";do u+=Dt(s),s=s.return;while(s);return u}catch(p){return`
|
||
Error generating stack: `+p.message+`
|
||
`+p.stack}}function fr(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Oo(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Cs(s){var u=Oo(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),b=""+s[u];if(!s.hasOwnProperty(u)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var A=p.get,N=p.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return A.call(this)},set:function(re){b=""+re,N.call(this,re)}}),Object.defineProperty(s,u,{enumerable:p.enumerable}),{getValue:function(){return b},setValue:function(re){b=""+re},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Ts(s){s._valueTracker||(s._valueTracker=Cs(s))}function wt(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var p=u.getValue(),b="";return s&&(b=Oo(s)?s.checked?"true":"false":s.value),s=b,s!==p?(u.setValue(s),!0):!1}function sn(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var ih=/[\n"\\]/g;function dr(s){return s.replace(ih,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function wr(s,u,p,b,A,N,re,ce){s.name="",re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?s.type=re:s.removeAttribute("type"),u!=null?re==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+fr(u)):s.value!==""+fr(u)&&(s.value=""+fr(u)):re!=="submit"&&re!=="reset"||s.removeAttribute("value"),u!=null?As(s,re,fr(u)):p!=null?As(s,re,fr(p)):b!=null&&s.removeAttribute("value"),A==null&&N!=null&&(s.defaultChecked=!!N),A!=null&&(s.checked=A&&typeof A!="function"&&typeof A!="symbol"),ce!=null&&typeof ce!="function"&&typeof ce!="symbol"&&typeof ce!="boolean"?s.name=""+fr(ce):s.removeAttribute("name")}function Pv(s,u,p,b,A,N,re,ce){if(N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(s.type=N),u!=null||p!=null){if(!(N!=="submit"&&N!=="reset"||u!=null))return;p=p!=null?""+fr(p):"",u=u!=null?""+fr(u):p,ce||u===s.value||(s.value=u),s.defaultValue=u}b=b??A,b=typeof b!="function"&&typeof b!="symbol"&&!!b,s.checked=ce?s.checked:!!b,s.defaultChecked=!!b,re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"&&(s.name=re)}function As(s,u,p){u==="number"&&sn(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Wr(s,u,p,b){if(s=s.options,u){u={};for(var A=0;A<p.length;A++)u["$"+p[A]]=!0;for(p=0;p<s.length;p++)A=u.hasOwnProperty("$"+s[p].value),s[p].selected!==A&&(s[p].selected=A),A&&b&&(s[p].defaultSelected=!0)}else{for(p=""+fr(p),u=null,A=0;A<s.length;A++){if(s[A].value===p){s[A].selected=!0,b&&(s[A].defaultSelected=!0);return}u!==null||s[A].disabled||(u=s[A])}u!==null&&(u.selected=!0)}}function Sn(s,u,p){if(u!=null&&(u=""+fr(u),u!==s.value&&(s.value=u),p==null)){s.defaultValue!==u&&(s.defaultValue=u);return}s.defaultValue=p!=null?""+fr(p):""}function $a(s,u,p,b){if(u==null){if(b!=null){if(p!=null)throw Error(r(92));if(J(b)){if(1<b.length)throw Error(r(93));b=b[0]}p=b}p==null&&(p=""),u=p}p=fr(u),s.defaultValue=p,b=s.textContent,b===p&&b!==""&&b!==null&&(s.value=b)}function Ni(s,u){if(u){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=u;return}}s.textContent=u}var tu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ac(s,u,p){var b=u.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?b?s.setProperty(u,""):u==="float"?s.cssFloat="":s[u]="":b?s.setProperty(u,p):typeof p!="number"||p===0||tu.has(u)?u==="float"?s.cssFloat=p:s[u]=(""+p).trim():s[u]=p+"px"}function js(s,u,p){if(u!=null&&typeof u!="object")throw Error(r(62));if(s=s.style,p!=null){for(var b in p)!p.hasOwnProperty(b)||u!=null&&u.hasOwnProperty(b)||(b.indexOf("--")===0?s.setProperty(b,""):b==="float"?s.cssFloat="":s[b]="");for(var A in u)b=u[A],u.hasOwnProperty(A)&&p[A]!==b&&Ac(s,A,b)}else for(var N in u)u.hasOwnProperty(N)&&Ac(s,N,u[N])}function nu(s){if(s.indexOf("-")===-1)return!1;switch(s){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 ah=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jc=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ps(s){return jc.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var ru=null;function Rs(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Eo=null,Ba=null;function Rv(s){var u=yo(s);if(u&&(s=u.stateNode)){var p=s[an]||null;e:switch(s=u.stateNode,u.type){case"input":if(wr(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),u=p.name,p.type==="radio"&&u!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+dr(""+u)+'"][type="radio"]'),u=0;u<p.length;u++){var b=p[u];if(b!==s&&b.form===s.form){var A=b[an]||null;if(!A)throw Error(r(90));wr(b,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(u=0;u<p.length;u++)b=p[u],b.form===s.form&&wt(b)}break e;case"textarea":Sn(s,p.value,p.defaultValue);break e;case"select":u=p.value,u!=null&&Wr(s,!!p.multiple,u,!1)}}}var bt=!1;function ri(s,u,p){if(bt)return s(u,p);bt=!0;try{var b=s(u);return b}finally{if(bt=!1,(Eo!==null||Ba!==null)&&(Eg(),Eo&&(u=Eo,s=Ba,Ba=Eo=null,Rv(u),s)))for(u=0;u<s.length;u++)Rv(s[u])}}function zt(s,u){var p=s.stateNode;if(p===null)return null;var b=p[an]||null;if(b===null)return null;p=b[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(s=s.type,b=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!b;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(r(231,u,typeof p));return p}var Li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iu=!1;if(Li)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){iu=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{iu=!1}var Di=null,la=null,Ms=null;function Ns(){if(Ms)return Ms;var s,u=la,p=u.length,b,A="value"in Di?Di.value:Di.textContent,N=A.length;for(s=0;s<p&&u[s]===A[s];s++);var re=p-s;for(b=1;b<=re&&u[p-b]===A[N-b];b++);return Ms=A.slice(s,1<b?1-b:void 0)}function jn(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function ki(){return!0}function oh(){return!1}function hr(s){function u(p,b,A,N,re){this._reactName=p,this._targetInst=A,this.type=b,this.nativeEvent=N,this.target=re,this.currentTarget=null;for(var ce in s)s.hasOwnProperty(ce)&&(p=s[ce],this[ce]=p?p(N):N[ce]);return this.isDefaultPrevented=(N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1)?ki:oh,this.isPropagationStopped=oh,this}return h(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),u}var To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},au=hr(To),Ao=h({},To,{view:0,detail:0}),X_=hr(Ao),Pc,Tt,ou,Sr=h({},Ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==ou&&(ou&&s.type==="mousemove"?(Pc=s.screenX-ou.screenX,Tt=s.screenY-ou.screenY):Tt=Pc=0,ou=s),Pc)},movementY:function(s){return"movementY"in s?s.movementY:Tt}}),Ls=hr(Sr),Mv=h({},Sr,{dataTransfer:0}),Q_=hr(Mv),sh=h({},Ao,{relatedTarget:0}),lh=hr(sh),Nv=h({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),J_=hr(Nv),e1=h({},To,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),uh=hr(e1),t1=h({},To,{data:0}),ii=hr(t1),n1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lv={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"},Ua={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dv(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=Ua[s])?!!u[s]:!1}function Rc(){return Dv}var ch=h({},Ao,{key:function(s){if(s.key){var u=n1[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=jn(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Lv[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(s){return s.type==="keypress"?jn(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?jn(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),r1=hr(ch),kv=h({},Sr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fh=hr(kv),i1=h({},Ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),a1=hr(i1),dh=h({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),o1=hr(dh),Iv=h({},Sr,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),$v=hr(Iv),Mc=h({},To,{newState:0,oldState:0}),jo=hr(Mc),s1=[9,13,27,32],Po=Li&&"CompositionEvent"in window,er=null;Li&&"documentMode"in document&&(er=document.documentMode);var Bv=Li&&"TextEvent"in window&&!er,hh=Li&&(!Po||er&&8<er&&11>=er),Uv=" ",Nc=!1;function Lc(s,u){switch(s){case"keyup":return s1.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zv(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ds=!1;function Fv(s,u){switch(s){case"compositionend":return zv(u);case"keypress":return u.which!==32?null:(Nc=!0,Uv);case"textInput":return s=u.data,s===Uv&&Nc?null:s;default:return null}}function l1(s,u){if(Ds)return s==="compositionend"||!Po&&Lc(s,u)?(s=Ns(),Ms=la=Di=null,Ds=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return hh&&u.locale!=="ko"?null:u.data;default:return null}}var ai={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 Ro(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!ai[s.type]:u==="textarea"}function qv(s,u,p,b){Eo?Ba?Ba.push(b):Ba=[b]:Eo=b,u=Rg(u,"onChange"),0<u.length&&(p=new au("onChange","change",null,p,b),s.push({event:p,listeners:u}))}var Rr=null,su=null;function ks(s){vM(s,0)}function Dc(s){var u=Mi(s);if(wt(u))return s}function Is(s,u){if(s==="change")return u}var ph=!1;if(Li){var $s;if(Li){var mh="oninput"in document;if(!mh){var ua=document.createElement("div");ua.setAttribute("oninput","return;"),mh=typeof ua.oninput=="function"}$s=mh}else $s=!1;ph=$s&&(!document.documentMode||9<document.documentMode)}function lu(){Rr&&(Rr.detachEvent("onpropertychange",Vv),su=Rr=null)}function Vv(s){if(s.propertyName==="value"&&Dc(su)){var u=[];qv(u,su,s,Rs(s)),ri(ks,u)}}function vh(s,u,p){s==="focusin"?(lu(),Rr=u,su=p,Rr.attachEvent("onpropertychange",Vv)):s==="focusout"&&lu()}function u1(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Dc(su)}function ca(s,u){if(s==="click")return Dc(u)}function c1(s,u){if(s==="input"||s==="change")return Dc(u)}function Bs(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var Mr=typeof Object.is=="function"?Object.is:Bs;function Nr(s,u){if(Mr(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var p=Object.keys(s),b=Object.keys(u);if(p.length!==b.length)return!1;for(b=0;b<p.length;b++){var A=p[b];if(!X.call(u,A)||!Mr(s[A],u[A]))return!1}return!0}function uu(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function gh(s,u){var p=uu(s);s=0;for(var b;p;){if(p.nodeType===3){if(b=s+p.textContent.length,s<=u&&b>=u)return{node:p,offset:u-s};s=b}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=uu(p)}}function kc(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?kc(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function cu(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var u=sn(s.document);u instanceof s.HTMLIFrameElement;){try{var p=typeof u.contentWindow.location.href=="string"}catch{p=!1}if(p)s=u.contentWindow;else break;u=sn(s.document)}return u}function fu(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}var Ic=Li&&"documentMode"in document&&11>=document.documentMode,oi=null,Us=null,Mo=null,$c=!1;function Hv(s,u,p){var b=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;$c||oi==null||oi!==sn(b)||(b=oi,"selectionStart"in b&&fu(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Mo&&Nr(Mo,b)||(Mo=b,b=Rg(Us,"onSelect"),0<b.length&&(u=new au("onSelect","select",null,u,p),s.push({event:u,listeners:b}),u.target=oi)))}function Ii(s,u){var p={};return p[s.toLowerCase()]=u.toLowerCase(),p["Webkit"+s]="webkit"+u,p["Moz"+s]="moz"+u,p}var zs={animationend:Ii("Animation","AnimationEnd"),animationiteration:Ii("Animation","AnimationIteration"),animationstart:Ii("Animation","AnimationStart"),transitionrun:Ii("Transition","TransitionRun"),transitionstart:Ii("Transition","TransitionStart"),transitioncancel:Ii("Transition","TransitionCancel"),transitionend:Ii("Transition","TransitionEnd")},Bc={},Wv={};Li&&(Wv=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function za(s){if(Bc[s])return Bc[s];if(!zs[s])return s;var u=zs[s],p;for(p in u)if(u.hasOwnProperty(p)&&p in Wv)return Bc[s]=u[p];return s}var Gv=za("animationend"),si=za("animationiteration"),du=za("animationstart"),f1=za("transitionrun"),Uc=za("transitionstart"),d1=za("transitioncancel"),yh=za("transitionend"),Yv=new Map,No="abort auxClick beforeToggle 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(" ");No.push("scrollEnd");function li(s,u){Yv.set(s,u),_o(u,[s])}var Lo=new WeakMap;function Lr(s,u){if(typeof s=="object"&&s!==null){var p=Lo.get(s);return p!==void 0?p:(u={value:s,source:u,stack:on(u)},Lo.set(s,u),u)}return{value:s,source:u,stack:on(u)}}var Dr=[],Fs=0,ui=0;function hu(){for(var s=Fs,u=ui=Fs=0;u<s;){var p=Dr[u];Dr[u++]=null;var b=Dr[u];Dr[u++]=null;var A=Dr[u];Dr[u++]=null;var N=Dr[u];if(Dr[u++]=null,b!==null&&A!==null){var re=b.pending;re===null?A.next=A:(A.next=re.next,re.next=A),b.pending=A}N!==0&&mu(p,A,N)}}function pu(s,u,p,b){Dr[Fs++]=s,Dr[Fs++]=u,Dr[Fs++]=p,Dr[Fs++]=b,ui|=b,s.lanes|=b,s=s.alternate,s!==null&&(s.lanes|=b)}function Do(s,u,p,b){return pu(s,u,p,b),Fa(s)}function qs(s,u){return pu(s,null,null,u),Fa(s)}function mu(s,u,p){s.lanes|=p;var b=s.alternate;b!==null&&(b.lanes|=p);for(var A=!1,N=s.return;N!==null;)N.childLanes|=p,b=N.alternate,b!==null&&(b.childLanes|=p),N.tag===22&&(s=N.stateNode,s===null||s._visibility&1||(A=!0)),s=N,N=N.return;return s.tag===3?(N=s.stateNode,A&&u!==null&&(A=31-Ge(p),s=N.hiddenUpdates,b=s[A],b===null?s[A]=[u]:b.push(u),u.lane=p|536870912),N):null}function Fa(s){if(50<zh)throw zh=0,ux=null,Error(r(185));for(var u=s.return;u!==null;)s=u,u=s.return;return s.tag===3?s.stateNode:null}var ko={};function Kv(s,u,p,b){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(s,u,p,b){return new Kv(s,u,p,b)}function zc(s){return s=s.prototype,!(!s||!s.isReactComponent)}function $i(s,u){var p=s.alternate;return p===null?(p=kr(s.tag,u,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=u,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&65011712,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,u=s.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p.refCleanup=s.refCleanup,p}function bh(s,u){s.flags&=65011714;var p=s.alternate;return p===null?(s.childLanes=0,s.lanes=u,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=p.childLanes,s.lanes=p.lanes,s.child=p.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=p.memoizedProps,s.memoizedState=p.memoizedState,s.updateQueue=p.updateQueue,s.type=p.type,u=p.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),s}function vu(s,u,p,b,A,N){var re=0;if(b=s,typeof s=="function")zc(s)&&(re=1);else if(typeof s=="string")re=NY(s,p,oe.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case G:return s=kr(31,p,u,A),s.elementType=G,s.lanes=N,s;case _:return qa(p.children,A,N,u);case w:re=8,A|=24;break;case S:return s=kr(12,p,u,A|2),s.elementType=S,s.lanes=N,s;case P:return s=kr(13,p,u,A),s.elementType=P,s.lanes=N,s;case R:return s=kr(19,p,u,A),s.elementType=R,s.lanes=N,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case O:case T:re=10;break e;case C:re=9;break e;case j:re=11;break e;case I:re=14;break e;case V:re=16,b=null;break e}re=29,p=Error(r(130,s===null?"null":typeof s,"")),b=null}return u=kr(re,p,u,A),u.elementType=s,u.type=b,u.lanes=N,u}function qa(s,u,p,b){return s=kr(7,s,b,u),s.lanes=p,s}function _h(s,u,p){return s=kr(6,s,null,u),s.lanes=p,s}function Fc(s,u,p){return u=kr(4,s.children!==null?s.children:[],s.key,u),u.lanes=p,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}var Io=[],Vs=0,d=null,v=0,E=[],D=0,Y=null,se=1,ve="";function Ee(s,u){Io[Vs++]=v,Io[Vs++]=d,d=s,v=u}function Ne(s,u,p){E[D++]=se,E[D++]=ve,E[D++]=Y,Y=s;var b=se;s=ve;var A=32-Ge(b)-1;b&=~(1<<A),p+=1;var N=32-Ge(u)+A;if(30<N){var re=A-A%5;N=(b&(1<<re)-1).toString(32),b>>=re,A-=re,se=1<<32-Ge(u)+A|p<<A|b,ve=N+s}else se=1<<N|p<<A|b,ve=s}function He(s){s.return!==null&&(Ee(s,1),Ne(s,1,0))}function et(s){for(;s===d;)d=Io[--Vs],Io[Vs]=null,v=Io[--Vs],Io[Vs]=null;for(;s===Y;)Y=E[--D],E[D]=null,ve=E[--D],E[D]=null,se=E[--D],E[D]=null}var nt=null,it=null,yt=!1,ln=null,On=!1,tr=Error(r(519));function Gr(s){var u=Error(r(418,""));throw Ws(Lr(u,s)),tr}function Zv(s){var u=s.stateNode,p=s.type,b=s.memoizedProps;switch(u[Nt]=s,u[an]=b,p){case"dialog":Pt("cancel",u),Pt("close",u);break;case"iframe":case"object":case"embed":Pt("load",u);break;case"video":case"audio":for(p=0;p<qh.length;p++)Pt(qh[p],u);break;case"source":Pt("error",u);break;case"img":case"image":case"link":Pt("error",u),Pt("load",u);break;case"details":Pt("toggle",u);break;case"input":Pt("invalid",u),Pv(u,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),Ts(u);break;case"select":Pt("invalid",u);break;case"textarea":Pt("invalid",u),$a(u,b.value,b.defaultValue,b.children),Ts(u)}p=b.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||u.textContent===""+p||b.suppressHydrationWarning===!0||_M(u.textContent,p)?(b.popover!=null&&(Pt("beforetoggle",u),Pt("toggle",u)),b.onScroll!=null&&Pt("scroll",u),b.onScrollEnd!=null&&Pt("scrollend",u),b.onClick!=null&&(u.onclick=Mg),u=!0):u=!1,u||Gr(s)}function Xv(s){for(nt=s.return;nt;)switch(nt.tag){case 5:case 13:On=!1;return;case 27:case 3:On=!0;return;default:nt=nt.return}}function gu(s){if(s!==nt)return!1;if(!yt)return Xv(s),yt=!0,!1;var u=s.tag,p;if((p=u!==3&&u!==27)&&((p=u===5)&&(p=s.type,p=!(p!=="form"&&p!=="button")||Ex(s.type,s.memoizedProps)),p=!p),p&&it&&Gr(s),Xv(s),u===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8)if(p=s.data,p==="/$"){if(u===0){it=pa(s.nextSibling);break e}u--}else p!=="$"&&p!=="$!"&&p!=="$?"||u++;s=s.nextSibling}it=null}}else u===27?(u=it,sl(s.type)?(s=jx,jx=null,it=s):it=u):it=nt?pa(s.stateNode.nextSibling):null;return!0}function Hs(){it=nt=null,yt=!1}function Qv(){var s=ln;return s!==null&&(Zr===null?Zr=s:Zr.push.apply(Zr,s),ln=null),s}function Ws(s){ln===null?ln=[s]:ln.push(s)}var bn=k(null),Bi=null,fa=null;function Va(s,u,p){Z(bn,u._currentValue),u._currentValue=p}function da(s){s._currentValue=bn.current,te(bn)}function yu(s,u,p){for(;s!==null;){var b=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,b!==null&&(b.childLanes|=u)):b!==null&&(b.childLanes&u)!==u&&(b.childLanes|=u),s===p)break;s=s.return}}function qc(s,u,p,b){var A=s.child;for(A!==null&&(A.return=s);A!==null;){var N=A.dependencies;if(N!==null){var re=A.child;N=N.firstContext;e:for(;N!==null;){var ce=N;N=A;for(var ge=0;ge<u.length;ge++)if(ce.context===u[ge]){N.lanes|=p,ce=N.alternate,ce!==null&&(ce.lanes|=p),yu(N.return,p,s),b||(re=null);break e}N=ce.next}}else if(A.tag===18){if(re=A.return,re===null)throw Error(r(341));re.lanes|=p,N=re.alternate,N!==null&&(N.lanes|=p),yu(re,p,s),re=null}else re=A.child;if(re!==null)re.return=A;else for(re=A;re!==null;){if(re===s){re=null;break}if(A=re.sibling,A!==null){A.return=re.return,re=A;break}re=re.return}A=re}}function bu(s,u,p,b){s=null;for(var A=u,N=!1;A!==null;){if(!N){if((A.flags&524288)!==0)N=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var re=A.alternate;if(re===null)throw Error(r(387));if(re=re.memoizedProps,re!==null){var ce=A.type;Mr(A.pendingProps.value,re.value)||(s!==null?s.push(ce):s=[ce])}}else if(A===be.current){if(re=A.alternate,re===null)throw Error(r(387));re.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(s!==null?s.push(Kh):s=[Kh])}A=A.return}s!==null&&qc(u,s,p,b),u.flags|=262144}function Jv(s){for(s=s.firstContext;s!==null;){if(!Mr(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function _u(s){Bi=s,fa=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Or(s){return o4(Bi,s)}function eg(s,u){return Bi===null&&_u(s),o4(s,u)}function o4(s,u){var p=u._currentValue;if(u={context:u,memoizedValue:p,next:null},fa===null){if(s===null)throw Error(r(308));fa=u,s.dependencies={lanes:0,firstContext:u},s.flags|=524288}else fa=fa.next=u;return p}var MG=typeof AbortController<"u"?AbortController:function(){var s=[],u=this.signal={aborted:!1,addEventListener:function(p,b){s.push(b)}};this.abort=function(){u.aborted=!0,s.forEach(function(p){return p()})}},NG=e.unstable_scheduleCallback,LG=e.unstable_NormalPriority,Wn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function h1(){return{controller:new MG,data:new Map,refCount:0}}function xh(s){s.refCount--,s.refCount===0&&NG(LG,function(){s.controller.abort()})}var wh=null,p1=0,Vc=0,Hc=null;function DG(s,u){if(wh===null){var p=wh=[];p1=0,Vc=vx(),Hc={status:"pending",value:void 0,then:function(b){p.push(b)}}}return p1++,u.then(s4,s4),u}function s4(){if(--p1===0&&wh!==null){Hc!==null&&(Hc.status="fulfilled");var s=wh;wh=null,Vc=0,Hc=null;for(var u=0;u<s.length;u++)(0,s[u])()}}function kG(s,u){var p=[],b={status:"pending",value:null,reason:null,then:function(A){p.push(A)}};return s.then(function(){b.status="fulfilled",b.value=u;for(var A=0;A<p.length;A++)(0,p[A])(u)},function(A){for(b.status="rejected",b.reason=A,A=0;A<p.length;A++)(0,p[A])(void 0)}),b}var l4=H.S;H.S=function(s,u){typeof u=="object"&&u!==null&&typeof u.then=="function"&&DG(s,u),l4!==null&&l4(s,u)};var xu=k(null);function m1(){var s=xu.current;return s!==null?s:un.pooledCache}function tg(s,u){u===null?Z(xu,xu.current):Z(xu,u.pool)}function u4(){var s=m1();return s===null?null:{parent:Wn._currentValue,pool:s}}var Sh=Error(r(460)),c4=Error(r(474)),ng=Error(r(542)),v1={then:function(){}};function f4(s){return s=s.status,s==="fulfilled"||s==="rejected"}function rg(){}function d4(s,u,p){switch(p=s[p],p===void 0?s.push(u):p!==u&&(u.then(rg,rg),u=p),u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,p4(s),s;default:if(typeof u.status=="string")u.then(rg,rg);else{if(s=un,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=u,s.status="pending",s.then(function(b){if(u.status==="pending"){var A=u;A.status="fulfilled",A.value=b}},function(b){if(u.status==="pending"){var A=u;A.status="rejected",A.reason=b}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,p4(s),s}throw Oh=u,Sh}}var Oh=null;function h4(){if(Oh===null)throw Error(r(459));var s=Oh;return Oh=null,s}function p4(s){if(s===Sh||s===ng)throw Error(r(483))}var Gs=!1;function g1(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function y1(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ys(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Ks(s,u,p){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(Wt&2)!==0){var A=b.pending;return A===null?u.next=u:(u.next=A.next,A.next=u),b.pending=u,u=Fa(s),mu(s,null,p),u}return pu(s,b,u,p),Fa(s)}function Eh(s,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194048)!==0)){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,ka(s,p)}}function b1(s,u){var p=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,p===b)){var A=null,N=null;if(p=p.firstBaseUpdate,p!==null){do{var re={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};N===null?A=N=re:N=N.next=re,p=p.next}while(p!==null);N===null?A=N=u:N=N.next=u}else A=N=u;p={baseState:b.baseState,firstBaseUpdate:A,lastBaseUpdate:N,shared:b.shared,callbacks:b.callbacks},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=u}var _1=!1;function Ch(){if(_1){var s=Hc;if(s!==null)throw s}}function Th(s,u,p,b){_1=!1;var A=s.updateQueue;Gs=!1;var N=A.firstBaseUpdate,re=A.lastBaseUpdate,ce=A.shared.pending;if(ce!==null){A.shared.pending=null;var ge=ce,Ae=ge.next;ge.next=null,re===null?N=Ae:re.next=Ae,re=ge;var Be=s.alternate;Be!==null&&(Be=Be.updateQueue,ce=Be.lastBaseUpdate,ce!==re&&(ce===null?Be.firstBaseUpdate=Ae:ce.next=Ae,Be.lastBaseUpdate=ge))}if(N!==null){var Ve=A.baseState;re=0,Be=Ae=ge=null,ce=N;do{var Pe=ce.lane&-536870913,Re=Pe!==ce.lane;if(Re?(kt&Pe)===Pe:(b&Pe)===Pe){Pe!==0&&Pe===Vc&&(_1=!0),Be!==null&&(Be=Be.next={lane:0,tag:ce.tag,payload:ce.payload,callback:null,next:null});e:{var vt=s,ft=ce;Pe=u;var Xt=p;switch(ft.tag){case 1:if(vt=ft.payload,typeof vt=="function"){Ve=vt.call(Xt,Ve,Pe);break e}Ve=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=ft.payload,Pe=typeof vt=="function"?vt.call(Xt,Ve,Pe):vt,Pe==null)break e;Ve=h({},Ve,Pe);break e;case 2:Gs=!0}}Pe=ce.callback,Pe!==null&&(s.flags|=64,Re&&(s.flags|=8192),Re=A.callbacks,Re===null?A.callbacks=[Pe]:Re.push(Pe))}else Re={lane:Pe,tag:ce.tag,payload:ce.payload,callback:ce.callback,next:null},Be===null?(Ae=Be=Re,ge=Ve):Be=Be.next=Re,re|=Pe;if(ce=ce.next,ce===null){if(ce=A.shared.pending,ce===null)break;Re=ce,ce=Re.next,Re.next=null,A.lastBaseUpdate=Re,A.shared.pending=null}}while(!0);Be===null&&(ge=Ve),A.baseState=ge,A.firstBaseUpdate=Ae,A.lastBaseUpdate=Be,N===null&&(A.shared.lanes=0),rl|=re,s.lanes=re,s.memoizedState=Ve}}function m4(s,u){if(typeof s!="function")throw Error(r(191,s));s.call(u)}function v4(s,u){var p=s.callbacks;if(p!==null)for(s.callbacks=null,s=0;s<p.length;s++)m4(p[s],u)}var Wc=k(null),ig=k(0);function g4(s,u){s=Vo,Z(ig,s),Z(Wc,u),Vo=s|u.baseLanes}function x1(){Z(ig,Vo),Z(Wc,Wc.current)}function w1(){Vo=ig.current,te(Wc),te(ig)}var Zs=0,Ct=null,Kt=null,Un=null,ag=!1,Gc=!1,wu=!1,og=0,Ah=0,Yc=null,IG=0;function Dn(){throw Error(r(321))}function S1(s,u){if(u===null)return!1;for(var p=0;p<u.length&&p<s.length;p++)if(!Mr(s[p],u[p]))return!1;return!0}function O1(s,u,p,b,A,N){return Zs=N,Ct=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,H.H=s===null||s.memoizedState===null?eR:tR,wu=!1,N=p(b,A),wu=!1,Gc&&(N=b4(u,p,b,A)),y4(s),N}function y4(s){H.H=dg;var u=Kt!==null&&Kt.next!==null;if(Zs=0,Un=Kt=Ct=null,ag=!1,Ah=0,Yc=null,u)throw Error(r(300));s===null||nr||(s=s.dependencies,s!==null&&Jv(s)&&(nr=!0))}function b4(s,u,p,b){Ct=s;var A=0;do{if(Gc&&(Yc=null),Ah=0,Gc=!1,25<=A)throw Error(r(301));if(A+=1,Un=Kt=null,s.updateQueue!=null){var N=s.updateQueue;N.lastEffect=null,N.events=null,N.stores=null,N.memoCache!=null&&(N.memoCache.index=0)}H.H=VG,N=u(p,b)}while(Gc);return N}function $G(){var s=H.H,u=s.useState()[0];return u=typeof u.then=="function"?jh(u):u,s=s.useState()[0],(Kt!==null?Kt.memoizedState:null)!==s&&(Ct.flags|=1024),u}function E1(){var s=og!==0;return og=0,s}function C1(s,u,p){u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~p}function T1(s){if(ag){for(s=s.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}ag=!1}Zs=0,Un=Kt=Ct=null,Gc=!1,Ah=og=0,Yc=null}function Yr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Un===null?Ct.memoizedState=Un=s:Un=Un.next=s,Un}function zn(){if(Kt===null){var s=Ct.alternate;s=s!==null?s.memoizedState:null}else s=Kt.next;var u=Un===null?Ct.memoizedState:Un.next;if(u!==null)Un=u,Kt=s;else{if(s===null)throw Ct.alternate===null?Error(r(467)):Error(r(310));Kt=s,s={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},Un===null?Ct.memoizedState=Un=s:Un=Un.next=s}return Un}function A1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jh(s){var u=Ah;return Ah+=1,Yc===null&&(Yc=[]),s=d4(Yc,s,u),u=Ct,(Un===null?u.memoizedState:Un.next)===null&&(u=u.alternate,H.H=u===null||u.memoizedState===null?eR:tR),s}function sg(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return jh(s);if(s.$$typeof===T)return Or(s)}throw Error(r(438,String(s)))}function j1(s){var u=null,p=Ct.updateQueue;if(p!==null&&(u=p.memoCache),u==null){var b=Ct.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(u={data:b.data.map(function(A){return A.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),p===null&&(p=A1(),Ct.updateQueue=p),p.memoCache=u,p=u.data[u.index],p===void 0)for(p=u.data[u.index]=Array(s),b=0;b<s;b++)p[b]=W;return u.index++,p}function $o(s,u){return typeof u=="function"?u(s):u}function lg(s){var u=zn();return P1(u,Kt,s)}function P1(s,u,p){var b=s.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=p;var A=s.baseQueue,N=b.pending;if(N!==null){if(A!==null){var re=A.next;A.next=N.next,N.next=re}u.baseQueue=A=N,b.pending=null}if(N=s.baseState,A===null)s.memoizedState=N;else{u=A.next;var ce=re=null,ge=null,Ae=u,Be=!1;do{var Ve=Ae.lane&-536870913;if(Ve!==Ae.lane?(kt&Ve)===Ve:(Zs&Ve)===Ve){var Pe=Ae.revertLane;if(Pe===0)ge!==null&&(ge=ge.next={lane:0,revertLane:0,action:Ae.action,hasEagerState:Ae.hasEagerState,eagerState:Ae.eagerState,next:null}),Ve===Vc&&(Be=!0);else if((Zs&Pe)===Pe){Ae=Ae.next,Pe===Vc&&(Be=!0);continue}else Ve={lane:0,revertLane:Ae.revertLane,action:Ae.action,hasEagerState:Ae.hasEagerState,eagerState:Ae.eagerState,next:null},ge===null?(ce=ge=Ve,re=N):ge=ge.next=Ve,Ct.lanes|=Pe,rl|=Pe;Ve=Ae.action,wu&&p(N,Ve),N=Ae.hasEagerState?Ae.eagerState:p(N,Ve)}else Pe={lane:Ve,revertLane:Ae.revertLane,action:Ae.action,hasEagerState:Ae.hasEagerState,eagerState:Ae.eagerState,next:null},ge===null?(ce=ge=Pe,re=N):ge=ge.next=Pe,Ct.lanes|=Ve,rl|=Ve;Ae=Ae.next}while(Ae!==null&&Ae!==u);if(ge===null?re=N:ge.next=ce,!Mr(N,s.memoizedState)&&(nr=!0,Be&&(p=Hc,p!==null)))throw p;s.memoizedState=N,s.baseState=re,s.baseQueue=ge,b.lastRenderedState=N}return A===null&&(b.lanes=0),[s.memoizedState,b.dispatch]}function R1(s){var u=zn(),p=u.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var b=p.dispatch,A=p.pending,N=u.memoizedState;if(A!==null){p.pending=null;var re=A=A.next;do N=s(N,re.action),re=re.next;while(re!==A);Mr(N,u.memoizedState)||(nr=!0),u.memoizedState=N,u.baseQueue===null&&(u.baseState=N),p.lastRenderedState=N}return[N,b]}function _4(s,u,p){var b=Ct,A=zn(),N=yt;if(N){if(p===void 0)throw Error(r(407));p=p()}else p=u();var re=!Mr((Kt||A).memoizedState,p);re&&(A.memoizedState=p,nr=!0),A=A.queue;var ce=S4.bind(null,b,A,s);if(Ph(2048,8,ce,[s]),A.getSnapshot!==u||re||Un!==null&&Un.memoizedState.tag&1){if(b.flags|=2048,Kc(9,ug(),w4.bind(null,b,A,p,u),null),un===null)throw Error(r(349));N||(Zs&124)!==0||x4(b,u,p)}return p}function x4(s,u,p){s.flags|=16384,s={getSnapshot:u,value:p},u=Ct.updateQueue,u===null?(u=A1(),Ct.updateQueue=u,u.stores=[s]):(p=u.stores,p===null?u.stores=[s]:p.push(s))}function w4(s,u,p,b){u.value=p,u.getSnapshot=b,O4(u)&&E4(s)}function S4(s,u,p){return p(function(){O4(u)&&E4(s)})}function O4(s){var u=s.getSnapshot;s=s.value;try{var p=u();return!Mr(s,p)}catch{return!0}}function E4(s){var u=qs(s,2);u!==null&&pi(u,s,2)}function M1(s){var u=Yr();if(typeof s=="function"){var p=s;if(s=p(),wu){qe(!0);try{p()}finally{qe(!1)}}}return u.memoizedState=u.baseState=s,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:s},u}function C4(s,u,p,b){return s.baseState=p,P1(s,Kt,typeof b=="function"?b:$o)}function BG(s,u,p,b,A){if(fg(s))throw Error(r(485));if(s=u.action,s!==null){var N={payload:A,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(re){N.listeners.push(re)}};H.T!==null?p(!0):N.isTransition=!1,b(N),p=u.pending,p===null?(N.next=u.pending=N,T4(u,N)):(N.next=p.next,u.pending=p.next=N)}}function T4(s,u){var p=u.action,b=u.payload,A=s.state;if(u.isTransition){var N=H.T,re={};H.T=re;try{var ce=p(A,b),ge=H.S;ge!==null&&ge(re,ce),A4(s,u,ce)}catch(Ae){N1(s,u,Ae)}finally{H.T=N}}else try{N=p(A,b),A4(s,u,N)}catch(Ae){N1(s,u,Ae)}}function A4(s,u,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(b){j4(s,u,b)},function(b){return N1(s,u,b)}):j4(s,u,p)}function j4(s,u,p){u.status="fulfilled",u.value=p,P4(u),s.state=p,u=s.pending,u!==null&&(p=u.next,p===u?s.pending=null:(p=p.next,u.next=p,T4(s,p)))}function N1(s,u,p){var b=s.pending;if(s.pending=null,b!==null){b=b.next;do u.status="rejected",u.reason=p,P4(u),u=u.next;while(u!==b)}s.action=null}function P4(s){s=s.listeners;for(var u=0;u<s.length;u++)(0,s[u])()}function R4(s,u){return u}function M4(s,u){if(yt){var p=un.formState;if(p!==null){e:{var b=Ct;if(yt){if(it){t:{for(var A=it,N=On;A.nodeType!==8;){if(!N){A=null;break t}if(A=pa(A.nextSibling),A===null){A=null;break t}}N=A.data,A=N==="F!"||N==="F"?A:null}if(A){it=pa(A.nextSibling),b=A.data==="F!";break e}}Gr(b)}b=!1}b&&(u=p[0])}}return p=Yr(),p.memoizedState=p.baseState=u,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:R4,lastRenderedState:u},p.queue=b,p=X4.bind(null,Ct,b),b.dispatch=p,b=M1(!1),N=$1.bind(null,Ct,!1,b.queue),b=Yr(),A={state:u,dispatch:null,action:s,pending:null},b.queue=A,p=BG.bind(null,Ct,A,N,p),A.dispatch=p,b.memoizedState=s,[u,p,!1]}function N4(s){var u=zn();return L4(u,Kt,s)}function L4(s,u,p){if(u=P1(s,u,R4)[0],s=lg($o)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var b=jh(u)}catch(re){throw re===Sh?ng:re}else b=u;u=zn();var A=u.queue,N=A.dispatch;return p!==u.memoizedState&&(Ct.flags|=2048,Kc(9,ug(),UG.bind(null,A,p),null)),[b,N,s]}function UG(s,u){s.action=u}function D4(s){var u=zn(),p=Kt;if(p!==null)return L4(u,p,s);zn(),u=u.memoizedState,p=zn();var b=p.queue.dispatch;return p.memoizedState=s,[u,b,!1]}function Kc(s,u,p,b){return s={tag:s,create:p,deps:b,inst:u,next:null},u=Ct.updateQueue,u===null&&(u=A1(),Ct.updateQueue=u),p=u.lastEffect,p===null?u.lastEffect=s.next=s:(b=p.next,p.next=s,s.next=b,u.lastEffect=s),s}function ug(){return{destroy:void 0,resource:void 0}}function k4(){return zn().memoizedState}function cg(s,u,p,b){var A=Yr();b=b===void 0?null:b,Ct.flags|=s,A.memoizedState=Kc(1|u,ug(),p,b)}function Ph(s,u,p,b){var A=zn();b=b===void 0?null:b;var N=A.memoizedState.inst;Kt!==null&&b!==null&&S1(b,Kt.memoizedState.deps)?A.memoizedState=Kc(u,N,p,b):(Ct.flags|=s,A.memoizedState=Kc(1|u,N,p,b))}function I4(s,u){cg(8390656,8,s,u)}function $4(s,u){Ph(2048,8,s,u)}function B4(s,u){return Ph(4,2,s,u)}function U4(s,u){return Ph(4,4,s,u)}function z4(s,u){if(typeof u=="function"){s=s();var p=u(s);return function(){typeof p=="function"?p():u(null)}}if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function F4(s,u,p){p=p!=null?p.concat([s]):null,Ph(4,4,z4.bind(null,u,s),p)}function L1(){}function q4(s,u){var p=zn();u=u===void 0?null:u;var b=p.memoizedState;return u!==null&&S1(u,b[1])?b[0]:(p.memoizedState=[s,u],s)}function V4(s,u){var p=zn();u=u===void 0?null:u;var b=p.memoizedState;if(u!==null&&S1(u,b[1]))return b[0];if(b=s(),wu){qe(!0);try{s()}finally{qe(!1)}}return p.memoizedState=[b,u],b}function D1(s,u,p){return p===void 0||(Zs&1073741824)!==0?s.memoizedState=u:(s.memoizedState=p,s=GR(),Ct.lanes|=s,rl|=s,p)}function H4(s,u,p,b){return Mr(p,u)?p:Wc.current!==null?(s=D1(s,p,b),Mr(s,u)||(nr=!0),s):(Zs&42)===0?(nr=!0,s.memoizedState=p):(s=GR(),Ct.lanes|=s,rl|=s,u)}function W4(s,u,p,b,A){var N=B.p;B.p=N!==0&&8>N?N:8;var re=H.T,ce={};H.T=ce,$1(s,!1,u,p);try{var ge=A(),Ae=H.S;if(Ae!==null&&Ae(ce,ge),ge!==null&&typeof ge=="object"&&typeof ge.then=="function"){var Be=kG(ge,b);Rh(s,u,Be,hi(s))}else Rh(s,u,b,hi(s))}catch(Ve){Rh(s,u,{then:function(){},status:"rejected",reason:Ve},hi())}finally{B.p=N,H.T=re}}function zG(){}function k1(s,u,p,b){if(s.tag!==5)throw Error(r(476));var A=G4(s).queue;W4(s,A,u,z,p===null?zG:function(){return Y4(s),p(b)})}function G4(s){var u=s.memoizedState;if(u!==null)return u;u={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:z},next:null};var p={};return u.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:p},next:null},s.memoizedState=u,s=s.alternate,s!==null&&(s.memoizedState=u),u}function Y4(s){var u=G4(s).next.queue;Rh(s,u,{},hi())}function I1(){return Or(Kh)}function K4(){return zn().memoizedState}function Z4(){return zn().memoizedState}function FG(s){for(var u=s.return;u!==null;){switch(u.tag){case 24:case 3:var p=hi();s=Ys(p);var b=Ks(u,s,p);b!==null&&(pi(b,u,p),Eh(b,u,p)),u={cache:h1()},s.payload=u;return}u=u.return}}function qG(s,u,p){var b=hi();p={lane:b,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},fg(s)?Q4(u,p):(p=Do(s,u,p,b),p!==null&&(pi(p,s,b),J4(p,u,b)))}function X4(s,u,p){var b=hi();Rh(s,u,p,b)}function Rh(s,u,p,b){var A={lane:b,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(fg(s))Q4(u,A);else{var N=s.alternate;if(s.lanes===0&&(N===null||N.lanes===0)&&(N=u.lastRenderedReducer,N!==null))try{var re=u.lastRenderedState,ce=N(re,p);if(A.hasEagerState=!0,A.eagerState=ce,Mr(ce,re))return pu(s,u,A,0),un===null&&hu(),!1}catch{}finally{}if(p=Do(s,u,A,b),p!==null)return pi(p,s,b),J4(p,u,b),!0}return!1}function $1(s,u,p,b){if(b={lane:2,revertLane:vx(),action:b,hasEagerState:!1,eagerState:null,next:null},fg(s)){if(u)throw Error(r(479))}else u=Do(s,p,b,2),u!==null&&pi(u,s,2)}function fg(s){var u=s.alternate;return s===Ct||u!==null&&u===Ct}function Q4(s,u){Gc=ag=!0;var p=s.pending;p===null?u.next=u:(u.next=p.next,p.next=u),s.pending=u}function J4(s,u,p){if((p&4194048)!==0){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,ka(s,p)}}var dg={readContext:Or,use:sg,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useLayoutEffect:Dn,useInsertionEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useSyncExternalStore:Dn,useId:Dn,useHostTransitionStatus:Dn,useFormState:Dn,useActionState:Dn,useOptimistic:Dn,useMemoCache:Dn,useCacheRefresh:Dn},eR={readContext:Or,use:sg,useCallback:function(s,u){return Yr().memoizedState=[s,u===void 0?null:u],s},useContext:Or,useEffect:I4,useImperativeHandle:function(s,u,p){p=p!=null?p.concat([s]):null,cg(4194308,4,z4.bind(null,u,s),p)},useLayoutEffect:function(s,u){return cg(4194308,4,s,u)},useInsertionEffect:function(s,u){cg(4,2,s,u)},useMemo:function(s,u){var p=Yr();u=u===void 0?null:u;var b=s();if(wu){qe(!0);try{s()}finally{qe(!1)}}return p.memoizedState=[b,u],b},useReducer:function(s,u,p){var b=Yr();if(p!==void 0){var A=p(u);if(wu){qe(!0);try{p(u)}finally{qe(!1)}}}else A=u;return b.memoizedState=b.baseState=A,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:A},b.queue=s,s=s.dispatch=qG.bind(null,Ct,s),[b.memoizedState,s]},useRef:function(s){var u=Yr();return s={current:s},u.memoizedState=s},useState:function(s){s=M1(s);var u=s.queue,p=X4.bind(null,Ct,u);return u.dispatch=p,[s.memoizedState,p]},useDebugValue:L1,useDeferredValue:function(s,u){var p=Yr();return D1(p,s,u)},useTransition:function(){var s=M1(!1);return s=W4.bind(null,Ct,s.queue,!0,!1),Yr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,u,p){var b=Ct,A=Yr();if(yt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=u(),un===null)throw Error(r(349));(kt&124)!==0||x4(b,u,p)}A.memoizedState=p;var N={value:p,getSnapshot:u};return A.queue=N,I4(S4.bind(null,b,N,s),[s]),b.flags|=2048,Kc(9,ug(),w4.bind(null,b,N,p,u),null),p},useId:function(){var s=Yr(),u=un.identifierPrefix;if(yt){var p=ve,b=se;p=(b&~(1<<32-Ge(b)-1)).toString(32)+p,u="«"+u+"R"+p,p=og++,0<p&&(u+="H"+p.toString(32)),u+="»"}else p=IG++,u="«"+u+"r"+p.toString(32)+"»";return s.memoizedState=u},useHostTransitionStatus:I1,useFormState:M4,useActionState:M4,useOptimistic:function(s){var u=Yr();u.memoizedState=u.baseState=s;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=p,u=$1.bind(null,Ct,!0,p),p.dispatch=u,[s,u]},useMemoCache:j1,useCacheRefresh:function(){return Yr().memoizedState=FG.bind(null,Ct)}},tR={readContext:Or,use:sg,useCallback:q4,useContext:Or,useEffect:$4,useImperativeHandle:F4,useInsertionEffect:B4,useLayoutEffect:U4,useMemo:V4,useReducer:lg,useRef:k4,useState:function(){return lg($o)},useDebugValue:L1,useDeferredValue:function(s,u){var p=zn();return H4(p,Kt.memoizedState,s,u)},useTransition:function(){var s=lg($o)[0],u=zn().memoizedState;return[typeof s=="boolean"?s:jh(s),u]},useSyncExternalStore:_4,useId:K4,useHostTransitionStatus:I1,useFormState:N4,useActionState:N4,useOptimistic:function(s,u){var p=zn();return C4(p,Kt,s,u)},useMemoCache:j1,useCacheRefresh:Z4},VG={readContext:Or,use:sg,useCallback:q4,useContext:Or,useEffect:$4,useImperativeHandle:F4,useInsertionEffect:B4,useLayoutEffect:U4,useMemo:V4,useReducer:R1,useRef:k4,useState:function(){return R1($o)},useDebugValue:L1,useDeferredValue:function(s,u){var p=zn();return Kt===null?D1(p,s,u):H4(p,Kt.memoizedState,s,u)},useTransition:function(){var s=R1($o)[0],u=zn().memoizedState;return[typeof s=="boolean"?s:jh(s),u]},useSyncExternalStore:_4,useId:K4,useHostTransitionStatus:I1,useFormState:D4,useActionState:D4,useOptimistic:function(s,u){var p=zn();return Kt!==null?C4(p,Kt,s,u):(p.baseState=s,[s,p.queue.dispatch])},useMemoCache:j1,useCacheRefresh:Z4},Zc=null,Mh=0;function hg(s){var u=Mh;return Mh+=1,Zc===null&&(Zc=[]),d4(Zc,s,u)}function Nh(s,u){u=u.props.ref,s.ref=u!==void 0?u:null}function pg(s,u){throw u.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(u),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s)))}function nR(s){var u=s._init;return u(s._payload)}function rR(s){function u(Oe,xe){if(s){var Ce=Oe.deletions;Ce===null?(Oe.deletions=[xe],Oe.flags|=16):Ce.push(xe)}}function p(Oe,xe){if(!s)return null;for(;xe!==null;)u(Oe,xe),xe=xe.sibling;return null}function b(Oe){for(var xe=new Map;Oe!==null;)Oe.key!==null?xe.set(Oe.key,Oe):xe.set(Oe.index,Oe),Oe=Oe.sibling;return xe}function A(Oe,xe){return Oe=$i(Oe,xe),Oe.index=0,Oe.sibling=null,Oe}function N(Oe,xe,Ce){return Oe.index=Ce,s?(Ce=Oe.alternate,Ce!==null?(Ce=Ce.index,Ce<xe?(Oe.flags|=67108866,xe):Ce):(Oe.flags|=67108866,xe)):(Oe.flags|=1048576,xe)}function re(Oe){return s&&Oe.alternate===null&&(Oe.flags|=67108866),Oe}function ce(Oe,xe,Ce,Ue){return xe===null||xe.tag!==6?(xe=_h(Ce,Oe.mode,Ue),xe.return=Oe,xe):(xe=A(xe,Ce),xe.return=Oe,xe)}function ge(Oe,xe,Ce,Ue){var rt=Ce.type;return rt===_?Be(Oe,xe,Ce.props.children,Ue,Ce.key):xe!==null&&(xe.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===V&&nR(rt)===xe.type)?(xe=A(xe,Ce.props),Nh(xe,Ce),xe.return=Oe,xe):(xe=vu(Ce.type,Ce.key,Ce.props,null,Oe.mode,Ue),Nh(xe,Ce),xe.return=Oe,xe)}function Ae(Oe,xe,Ce,Ue){return xe===null||xe.tag!==4||xe.stateNode.containerInfo!==Ce.containerInfo||xe.stateNode.implementation!==Ce.implementation?(xe=Fc(Ce,Oe.mode,Ue),xe.return=Oe,xe):(xe=A(xe,Ce.children||[]),xe.return=Oe,xe)}function Be(Oe,xe,Ce,Ue,rt){return xe===null||xe.tag!==7?(xe=qa(Ce,Oe.mode,Ue,rt),xe.return=Oe,xe):(xe=A(xe,Ce),xe.return=Oe,xe)}function Ve(Oe,xe,Ce){if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return xe=_h(""+xe,Oe.mode,Ce),xe.return=Oe,xe;if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case g:return Ce=vu(xe.type,xe.key,xe.props,null,Oe.mode,Ce),Nh(Ce,xe),Ce.return=Oe,Ce;case x:return xe=Fc(xe,Oe.mode,Ce),xe.return=Oe,xe;case V:var Ue=xe._init;return xe=Ue(xe._payload),Ve(Oe,xe,Ce)}if(J(xe)||ne(xe))return xe=qa(xe,Oe.mode,Ce,null),xe.return=Oe,xe;if(typeof xe.then=="function")return Ve(Oe,hg(xe),Ce);if(xe.$$typeof===T)return Ve(Oe,eg(Oe,xe),Ce);pg(Oe,xe)}return null}function Pe(Oe,xe,Ce,Ue){var rt=xe!==null?xe.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return rt!==null?null:ce(Oe,xe,""+Ce,Ue);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case g:return Ce.key===rt?ge(Oe,xe,Ce,Ue):null;case x:return Ce.key===rt?Ae(Oe,xe,Ce,Ue):null;case V:return rt=Ce._init,Ce=rt(Ce._payload),Pe(Oe,xe,Ce,Ue)}if(J(Ce)||ne(Ce))return rt!==null?null:Be(Oe,xe,Ce,Ue,null);if(typeof Ce.then=="function")return Pe(Oe,xe,hg(Ce),Ue);if(Ce.$$typeof===T)return Pe(Oe,xe,eg(Oe,Ce),Ue);pg(Oe,Ce)}return null}function Re(Oe,xe,Ce,Ue,rt){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint")return Oe=Oe.get(Ce)||null,ce(xe,Oe,""+Ue,rt);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case g:return Oe=Oe.get(Ue.key===null?Ce:Ue.key)||null,ge(xe,Oe,Ue,rt);case x:return Oe=Oe.get(Ue.key===null?Ce:Ue.key)||null,Ae(xe,Oe,Ue,rt);case V:var At=Ue._init;return Ue=At(Ue._payload),Re(Oe,xe,Ce,Ue,rt)}if(J(Ue)||ne(Ue))return Oe=Oe.get(Ce)||null,Be(xe,Oe,Ue,rt,null);if(typeof Ue.then=="function")return Re(Oe,xe,Ce,hg(Ue),rt);if(Ue.$$typeof===T)return Re(Oe,xe,Ce,eg(xe,Ue),rt);pg(xe,Ue)}return null}function vt(Oe,xe,Ce,Ue){for(var rt=null,At=null,ut=xe,pt=xe=0,ir=null;ut!==null&&pt<Ce.length;pt++){ut.index>pt?(ir=ut,ut=null):ir=ut.sibling;var Ft=Pe(Oe,ut,Ce[pt],Ue);if(Ft===null){ut===null&&(ut=ir);break}s&&ut&&Ft.alternate===null&&u(Oe,ut),xe=N(Ft,xe,pt),At===null?rt=Ft:At.sibling=Ft,At=Ft,ut=ir}if(pt===Ce.length)return p(Oe,ut),yt&&Ee(Oe,pt),rt;if(ut===null){for(;pt<Ce.length;pt++)ut=Ve(Oe,Ce[pt],Ue),ut!==null&&(xe=N(ut,xe,pt),At===null?rt=ut:At.sibling=ut,At=ut);return yt&&Ee(Oe,pt),rt}for(ut=b(ut);pt<Ce.length;pt++)ir=Re(ut,Oe,pt,Ce[pt],Ue),ir!==null&&(s&&ir.alternate!==null&&ut.delete(ir.key===null?pt:ir.key),xe=N(ir,xe,pt),At===null?rt=ir:At.sibling=ir,At=ir);return s&&ut.forEach(function(dl){return u(Oe,dl)}),yt&&Ee(Oe,pt),rt}function ft(Oe,xe,Ce,Ue){if(Ce==null)throw Error(r(151));for(var rt=null,At=null,ut=xe,pt=xe=0,ir=null,Ft=Ce.next();ut!==null&&!Ft.done;pt++,Ft=Ce.next()){ut.index>pt?(ir=ut,ut=null):ir=ut.sibling;var dl=Pe(Oe,ut,Ft.value,Ue);if(dl===null){ut===null&&(ut=ir);break}s&&ut&&dl.alternate===null&&u(Oe,ut),xe=N(dl,xe,pt),At===null?rt=dl:At.sibling=dl,At=dl,ut=ir}if(Ft.done)return p(Oe,ut),yt&&Ee(Oe,pt),rt;if(ut===null){for(;!Ft.done;pt++,Ft=Ce.next())Ft=Ve(Oe,Ft.value,Ue),Ft!==null&&(xe=N(Ft,xe,pt),At===null?rt=Ft:At.sibling=Ft,At=Ft);return yt&&Ee(Oe,pt),rt}for(ut=b(ut);!Ft.done;pt++,Ft=Ce.next())Ft=Re(ut,Oe,pt,Ft.value,Ue),Ft!==null&&(s&&Ft.alternate!==null&&ut.delete(Ft.key===null?pt:Ft.key),xe=N(Ft,xe,pt),At===null?rt=Ft:At.sibling=Ft,At=Ft);return s&&ut.forEach(function(HY){return u(Oe,HY)}),yt&&Ee(Oe,pt),rt}function Xt(Oe,xe,Ce,Ue){if(typeof Ce=="object"&&Ce!==null&&Ce.type===_&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case g:e:{for(var rt=Ce.key;xe!==null;){if(xe.key===rt){if(rt=Ce.type,rt===_){if(xe.tag===7){p(Oe,xe.sibling),Ue=A(xe,Ce.props.children),Ue.return=Oe,Oe=Ue;break e}}else if(xe.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===V&&nR(rt)===xe.type){p(Oe,xe.sibling),Ue=A(xe,Ce.props),Nh(Ue,Ce),Ue.return=Oe,Oe=Ue;break e}p(Oe,xe);break}else u(Oe,xe);xe=xe.sibling}Ce.type===_?(Ue=qa(Ce.props.children,Oe.mode,Ue,Ce.key),Ue.return=Oe,Oe=Ue):(Ue=vu(Ce.type,Ce.key,Ce.props,null,Oe.mode,Ue),Nh(Ue,Ce),Ue.return=Oe,Oe=Ue)}return re(Oe);case x:e:{for(rt=Ce.key;xe!==null;){if(xe.key===rt)if(xe.tag===4&&xe.stateNode.containerInfo===Ce.containerInfo&&xe.stateNode.implementation===Ce.implementation){p(Oe,xe.sibling),Ue=A(xe,Ce.children||[]),Ue.return=Oe,Oe=Ue;break e}else{p(Oe,xe);break}else u(Oe,xe);xe=xe.sibling}Ue=Fc(Ce,Oe.mode,Ue),Ue.return=Oe,Oe=Ue}return re(Oe);case V:return rt=Ce._init,Ce=rt(Ce._payload),Xt(Oe,xe,Ce,Ue)}if(J(Ce))return vt(Oe,xe,Ce,Ue);if(ne(Ce)){if(rt=ne(Ce),typeof rt!="function")throw Error(r(150));return Ce=rt.call(Ce),ft(Oe,xe,Ce,Ue)}if(typeof Ce.then=="function")return Xt(Oe,xe,hg(Ce),Ue);if(Ce.$$typeof===T)return Xt(Oe,xe,eg(Oe,Ce),Ue);pg(Oe,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,xe!==null&&xe.tag===6?(p(Oe,xe.sibling),Ue=A(xe,Ce),Ue.return=Oe,Oe=Ue):(p(Oe,xe),Ue=_h(Ce,Oe.mode,Ue),Ue.return=Oe,Oe=Ue),re(Oe)):p(Oe,xe)}return function(Oe,xe,Ce,Ue){try{Mh=0;var rt=Xt(Oe,xe,Ce,Ue);return Zc=null,rt}catch(ut){if(ut===Sh||ut===ng)throw ut;var At=kr(29,ut,null,Oe.mode);return At.lanes=Ue,At.return=Oe,At}finally{}}}var Xc=rR(!0),iR=rR(!1),Ui=k(null),Ha=null;function Xs(s){var u=s.alternate;Z(Gn,Gn.current&1),Z(Ui,s),Ha===null&&(u===null||Wc.current!==null||u.memoizedState!==null)&&(Ha=s)}function aR(s){if(s.tag===22){if(Z(Gn,Gn.current),Z(Ui,s),Ha===null){var u=s.alternate;u!==null&&u.memoizedState!==null&&(Ha=s)}}else Qs()}function Qs(){Z(Gn,Gn.current),Z(Ui,Ui.current)}function Bo(s){te(Ui),Ha===s&&(Ha=null),te(Gn)}var Gn=k(0);function mg(s){for(var u=s;u!==null;){if(u.tag===13){var p=u.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||Ax(p)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function B1(s,u,p,b){u=s.memoizedState,p=p(b,u),p=p==null?u:h({},u,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var U1={enqueueSetState:function(s,u,p){s=s._reactInternals;var b=hi(),A=Ys(b);A.payload=u,p!=null&&(A.callback=p),u=Ks(s,A,b),u!==null&&(pi(u,s,b),Eh(u,s,b))},enqueueReplaceState:function(s,u,p){s=s._reactInternals;var b=hi(),A=Ys(b);A.tag=1,A.payload=u,p!=null&&(A.callback=p),u=Ks(s,A,b),u!==null&&(pi(u,s,b),Eh(u,s,b))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var p=hi(),b=Ys(p);b.tag=2,u!=null&&(b.callback=u),u=Ks(s,b,p),u!==null&&(pi(u,s,p),Eh(u,s,p))}};function oR(s,u,p,b,A,N,re){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,N,re):u.prototype&&u.prototype.isPureReactComponent?!Nr(p,b)||!Nr(A,N):!0}function sR(s,u,p,b){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(p,b),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(p,b),u.state!==s&&U1.enqueueReplaceState(u,u.state,null)}function Su(s,u){var p=u;if("ref"in u){p={};for(var b in u)b!=="ref"&&(p[b]=u[b])}if(s=s.defaultProps){p===u&&(p=h({},p));for(var A in s)p[A]===void 0&&(p[A]=s[A])}return p}var vg=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function lR(s){vg(s)}function uR(s){console.error(s)}function cR(s){vg(s)}function gg(s,u){try{var p=s.onUncaughtError;p(u.value,{componentStack:u.stack})}catch(b){setTimeout(function(){throw b})}}function fR(s,u,p){try{var b=s.onCaughtError;b(p.value,{componentStack:p.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function z1(s,u,p){return p=Ys(p),p.tag=3,p.payload={element:null},p.callback=function(){gg(s,u)},p}function dR(s){return s=Ys(s),s.tag=3,s}function hR(s,u,p,b){var A=p.type.getDerivedStateFromError;if(typeof A=="function"){var N=b.value;s.payload=function(){return A(N)},s.callback=function(){fR(u,p,b)}}var re=p.stateNode;re!==null&&typeof re.componentDidCatch=="function"&&(s.callback=function(){fR(u,p,b),typeof A!="function"&&(il===null?il=new Set([this]):il.add(this));var ce=b.stack;this.componentDidCatch(b.value,{componentStack:ce!==null?ce:""})})}function HG(s,u,p,b,A){if(p.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(u=p.alternate,u!==null&&bu(u,p,A,!0),p=Ui.current,p!==null){switch(p.tag){case 13:return Ha===null?fx():p.alternate===null&&Pn===0&&(Pn=3),p.flags&=-257,p.flags|=65536,p.lanes=A,b===v1?p.flags|=16384:(u=p.updateQueue,u===null?p.updateQueue=new Set([b]):u.add(b),hx(s,b,A)),!1;case 22:return p.flags|=65536,b===v1?p.flags|=16384:(u=p.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([b])},p.updateQueue=u):(p=u.retryQueue,p===null?u.retryQueue=new Set([b]):p.add(b)),hx(s,b,A)),!1}throw Error(r(435,p.tag))}return hx(s,b,A),fx(),!1}if(yt)return u=Ui.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=A,b!==tr&&(s=Error(r(422),{cause:b}),Ws(Lr(s,p)))):(b!==tr&&(u=Error(r(423),{cause:b}),Ws(Lr(u,p))),s=s.current.alternate,s.flags|=65536,A&=-A,s.lanes|=A,b=Lr(b,p),A=z1(s.stateNode,b,A),b1(s,A),Pn!==4&&(Pn=2)),!1;var N=Error(r(520),{cause:b});if(N=Lr(N,p),Uh===null?Uh=[N]:Uh.push(N),Pn!==4&&(Pn=2),u===null)return!0;b=Lr(b,p),p=u;do{switch(p.tag){case 3:return p.flags|=65536,s=A&-A,p.lanes|=s,s=z1(p.stateNode,b,s),b1(p,s),!1;case 1:if(u=p.type,N=p.stateNode,(p.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(il===null||!il.has(N))))return p.flags|=65536,A&=-A,p.lanes|=A,A=dR(A),hR(A,s,p,b),b1(p,A),!1}p=p.return}while(p!==null);return!1}var pR=Error(r(461)),nr=!1;function pr(s,u,p,b){u.child=s===null?iR(u,null,p,b):Xc(u,s.child,p,b)}function mR(s,u,p,b,A){p=p.render;var N=u.ref;if("ref"in b){var re={};for(var ce in b)ce!=="ref"&&(re[ce]=b[ce])}else re=b;return _u(u),b=O1(s,u,p,re,N,A),ce=E1(),s!==null&&!nr?(C1(s,u,A),Uo(s,u,A)):(yt&&ce&&He(u),u.flags|=1,pr(s,u,b,A),u.child)}function vR(s,u,p,b,A){if(s===null){var N=p.type;return typeof N=="function"&&!zc(N)&&N.defaultProps===void 0&&p.compare===null?(u.tag=15,u.type=N,gR(s,u,N,b,A)):(s=vu(p.type,null,b,u,u.mode,A),s.ref=u.ref,s.return=u,u.child=s)}if(N=s.child,!K1(s,A)){var re=N.memoizedProps;if(p=p.compare,p=p!==null?p:Nr,p(re,b)&&s.ref===u.ref)return Uo(s,u,A)}return u.flags|=1,s=$i(N,b),s.ref=u.ref,s.return=u,u.child=s}function gR(s,u,p,b,A){if(s!==null){var N=s.memoizedProps;if(Nr(N,b)&&s.ref===u.ref)if(nr=!1,u.pendingProps=b=N,K1(s,A))(s.flags&131072)!==0&&(nr=!0);else return u.lanes=s.lanes,Uo(s,u,A)}return F1(s,u,p,b,A)}function yR(s,u,p){var b=u.pendingProps,A=b.children,N=s!==null?s.memoizedState:null;if(b.mode==="hidden"){if((u.flags&128)!==0){if(b=N!==null?N.baseLanes|p:p,s!==null){for(A=u.child=s.child,N=0;A!==null;)N=N|A.lanes|A.childLanes,A=A.sibling;u.childLanes=N&~b}else u.childLanes=0,u.child=null;return bR(s,u,b,p)}if((p&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},s!==null&&tg(u,N!==null?N.cachePool:null),N!==null?g4(u,N):x1(),aR(u);else return u.lanes=u.childLanes=536870912,bR(s,u,N!==null?N.baseLanes|p:p,p)}else N!==null?(tg(u,N.cachePool),g4(u,N),Qs(),u.memoizedState=null):(s!==null&&tg(u,null),x1(),Qs());return pr(s,u,A,p),u.child}function bR(s,u,p,b){var A=m1();return A=A===null?null:{parent:Wn._currentValue,pool:A},u.memoizedState={baseLanes:p,cachePool:A},s!==null&&tg(u,null),x1(),aR(u),s!==null&&bu(s,u,b,!0),null}function yg(s,u){var p=u.ref;if(p===null)s!==null&&s.ref!==null&&(u.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(s===null||s.ref!==p)&&(u.flags|=4194816)}}function F1(s,u,p,b,A){return _u(u),p=O1(s,u,p,b,void 0,A),b=E1(),s!==null&&!nr?(C1(s,u,A),Uo(s,u,A)):(yt&&b&&He(u),u.flags|=1,pr(s,u,p,A),u.child)}function _R(s,u,p,b,A,N){return _u(u),u.updateQueue=null,p=b4(u,b,p,A),y4(s),b=E1(),s!==null&&!nr?(C1(s,u,N),Uo(s,u,N)):(yt&&b&&He(u),u.flags|=1,pr(s,u,p,N),u.child)}function xR(s,u,p,b,A){if(_u(u),u.stateNode===null){var N=ko,re=p.contextType;typeof re=="object"&&re!==null&&(N=Or(re)),N=new p(b,N),u.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,N.updater=U1,u.stateNode=N,N._reactInternals=u,N=u.stateNode,N.props=b,N.state=u.memoizedState,N.refs={},g1(u),re=p.contextType,N.context=typeof re=="object"&&re!==null?Or(re):ko,N.state=u.memoizedState,re=p.getDerivedStateFromProps,typeof re=="function"&&(B1(u,p,re,b),N.state=u.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof N.getSnapshotBeforeUpdate=="function"||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(re=N.state,typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount(),re!==N.state&&U1.enqueueReplaceState(N,N.state,null),Th(u,b,N,A),Ch(),N.state=u.memoizedState),typeof N.componentDidMount=="function"&&(u.flags|=4194308),b=!0}else if(s===null){N=u.stateNode;var ce=u.memoizedProps,ge=Su(p,ce);N.props=ge;var Ae=N.context,Be=p.contextType;re=ko,typeof Be=="object"&&Be!==null&&(re=Or(Be));var Ve=p.getDerivedStateFromProps;Be=typeof Ve=="function"||typeof N.getSnapshotBeforeUpdate=="function",ce=u.pendingProps!==ce,Be||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(ce||Ae!==re)&&sR(u,N,b,re),Gs=!1;var Pe=u.memoizedState;N.state=Pe,Th(u,b,N,A),Ch(),Ae=u.memoizedState,ce||Pe!==Ae||Gs?(typeof Ve=="function"&&(B1(u,p,Ve,b),Ae=u.memoizedState),(ge=Gs||oR(u,p,ge,b,Pe,Ae,re))?(Be||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(u.flags|=4194308)):(typeof N.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=b,u.memoizedState=Ae),N.props=b,N.state=Ae,N.context=re,b=ge):(typeof N.componentDidMount=="function"&&(u.flags|=4194308),b=!1)}else{N=u.stateNode,y1(s,u),re=u.memoizedProps,Be=Su(p,re),N.props=Be,Ve=u.pendingProps,Pe=N.context,Ae=p.contextType,ge=ko,typeof Ae=="object"&&Ae!==null&&(ge=Or(Ae)),ce=p.getDerivedStateFromProps,(Ae=typeof ce=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(re!==Ve||Pe!==ge)&&sR(u,N,b,ge),Gs=!1,Pe=u.memoizedState,N.state=Pe,Th(u,b,N,A),Ch();var Re=u.memoizedState;re!==Ve||Pe!==Re||Gs||s!==null&&s.dependencies!==null&&Jv(s.dependencies)?(typeof ce=="function"&&(B1(u,p,ce,b),Re=u.memoizedState),(Be=Gs||oR(u,p,Be,b,Pe,Re,ge)||s!==null&&s.dependencies!==null&&Jv(s.dependencies))?(Ae||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(b,Re,ge),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(b,Re,ge)),typeof N.componentDidUpdate=="function"&&(u.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof N.componentDidUpdate!="function"||re===s.memoizedProps&&Pe===s.memoizedState||(u.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||re===s.memoizedProps&&Pe===s.memoizedState||(u.flags|=1024),u.memoizedProps=b,u.memoizedState=Re),N.props=b,N.state=Re,N.context=ge,b=Be):(typeof N.componentDidUpdate!="function"||re===s.memoizedProps&&Pe===s.memoizedState||(u.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||re===s.memoizedProps&&Pe===s.memoizedState||(u.flags|=1024),b=!1)}return N=b,yg(s,u),b=(u.flags&128)!==0,N||b?(N=u.stateNode,p=b&&typeof p.getDerivedStateFromError!="function"?null:N.render(),u.flags|=1,s!==null&&b?(u.child=Xc(u,s.child,null,A),u.child=Xc(u,null,p,A)):pr(s,u,p,A),u.memoizedState=N.state,s=u.child):s=Uo(s,u,A),s}function wR(s,u,p,b){return Hs(),u.flags|=256,pr(s,u,p,b),u.child}var q1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function V1(s){return{baseLanes:s,cachePool:u4()}}function H1(s,u,p){return s=s!==null?s.childLanes&~p:0,u&&(s|=zi),s}function SR(s,u,p){var b=u.pendingProps,A=!1,N=(u.flags&128)!==0,re;if((re=N)||(re=s!==null&&s.memoizedState===null?!1:(Gn.current&2)!==0),re&&(A=!0,u.flags&=-129),re=(u.flags&32)!==0,u.flags&=-33,s===null){if(yt){if(A?Xs(u):Qs(),yt){var ce=it,ge;if(ge=ce){e:{for(ge=ce,ce=On;ge.nodeType!==8;){if(!ce){ce=null;break e}if(ge=pa(ge.nextSibling),ge===null){ce=null;break e}}ce=ge}ce!==null?(u.memoizedState={dehydrated:ce,treeContext:Y!==null?{id:se,overflow:ve}:null,retryLane:536870912,hydrationErrors:null},ge=kr(18,null,null,0),ge.stateNode=ce,ge.return=u,u.child=ge,nt=u,it=null,ge=!0):ge=!1}ge||Gr(u)}if(ce=u.memoizedState,ce!==null&&(ce=ce.dehydrated,ce!==null))return Ax(ce)?u.lanes=32:u.lanes=536870912,null;Bo(u)}return ce=b.children,b=b.fallback,A?(Qs(),A=u.mode,ce=bg({mode:"hidden",children:ce},A),b=qa(b,A,p,null),ce.return=u,b.return=u,ce.sibling=b,u.child=ce,A=u.child,A.memoizedState=V1(p),A.childLanes=H1(s,re,p),u.memoizedState=q1,b):(Xs(u),W1(u,ce))}if(ge=s.memoizedState,ge!==null&&(ce=ge.dehydrated,ce!==null)){if(N)u.flags&256?(Xs(u),u.flags&=-257,u=G1(s,u,p)):u.memoizedState!==null?(Qs(),u.child=s.child,u.flags|=128,u=null):(Qs(),A=b.fallback,ce=u.mode,b=bg({mode:"visible",children:b.children},ce),A=qa(A,ce,p,null),A.flags|=2,b.return=u,A.return=u,b.sibling=A,u.child=b,Xc(u,s.child,null,p),b=u.child,b.memoizedState=V1(p),b.childLanes=H1(s,re,p),u.memoizedState=q1,u=A);else if(Xs(u),Ax(ce)){if(re=ce.nextSibling&&ce.nextSibling.dataset,re)var Ae=re.dgst;re=Ae,b=Error(r(419)),b.stack="",b.digest=re,Ws({value:b,source:null,stack:null}),u=G1(s,u,p)}else if(nr||bu(s,u,p,!1),re=(p&s.childLanes)!==0,nr||re){if(re=un,re!==null&&(b=p&-p,b=(b&42)!==0?1:yn(b),b=(b&(re.suspendedLanes|p))!==0?0:b,b!==0&&b!==ge.retryLane))throw ge.retryLane=b,qs(s,b),pi(re,s,b),pR;ce.data==="$?"||fx(),u=G1(s,u,p)}else ce.data==="$?"?(u.flags|=192,u.child=s.child,u=null):(s=ge.treeContext,it=pa(ce.nextSibling),nt=u,yt=!0,ln=null,On=!1,s!==null&&(E[D++]=se,E[D++]=ve,E[D++]=Y,se=s.id,ve=s.overflow,Y=u),u=W1(u,b.children),u.flags|=4096);return u}return A?(Qs(),A=b.fallback,ce=u.mode,ge=s.child,Ae=ge.sibling,b=$i(ge,{mode:"hidden",children:b.children}),b.subtreeFlags=ge.subtreeFlags&65011712,Ae!==null?A=$i(Ae,A):(A=qa(A,ce,p,null),A.flags|=2),A.return=u,b.return=u,b.sibling=A,u.child=b,b=A,A=u.child,ce=s.child.memoizedState,ce===null?ce=V1(p):(ge=ce.cachePool,ge!==null?(Ae=Wn._currentValue,ge=ge.parent!==Ae?{parent:Ae,pool:Ae}:ge):ge=u4(),ce={baseLanes:ce.baseLanes|p,cachePool:ge}),A.memoizedState=ce,A.childLanes=H1(s,re,p),u.memoizedState=q1,b):(Xs(u),p=s.child,s=p.sibling,p=$i(p,{mode:"visible",children:b.children}),p.return=u,p.sibling=null,s!==null&&(re=u.deletions,re===null?(u.deletions=[s],u.flags|=16):re.push(s)),u.child=p,u.memoizedState=null,p)}function W1(s,u){return u=bg({mode:"visible",children:u},s.mode),u.return=s,s.child=u}function bg(s,u){return s=kr(22,s,null,u),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function G1(s,u,p){return Xc(u,s.child,null,p),s=W1(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function OR(s,u,p){s.lanes|=u;var b=s.alternate;b!==null&&(b.lanes|=u),yu(s.return,u,p)}function Y1(s,u,p,b,A){var N=s.memoizedState;N===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:b,tail:p,tailMode:A}:(N.isBackwards=u,N.rendering=null,N.renderingStartTime=0,N.last=b,N.tail=p,N.tailMode=A)}function ER(s,u,p){var b=u.pendingProps,A=b.revealOrder,N=b.tail;if(pr(s,u,b.children,p),b=Gn.current,(b&2)!==0)b=b&1|2,u.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&OR(s,p,u);else if(s.tag===19)OR(s,p,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=1}switch(Z(Gn,b),A){case"forwards":for(p=u.child,A=null;p!==null;)s=p.alternate,s!==null&&mg(s)===null&&(A=p),p=p.sibling;p=A,p===null?(A=u.child,u.child=null):(A=p.sibling,p.sibling=null),Y1(u,!1,A,p,N);break;case"backwards":for(p=null,A=u.child,u.child=null;A!==null;){if(s=A.alternate,s!==null&&mg(s)===null){u.child=A;break}s=A.sibling,A.sibling=p,p=A,A=s}Y1(u,!0,p,null,N);break;case"together":Y1(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Uo(s,u,p){if(s!==null&&(u.dependencies=s.dependencies),rl|=u.lanes,(p&u.childLanes)===0)if(s!==null){if(bu(s,u,p,!1),(p&u.childLanes)===0)return null}else return null;if(s!==null&&u.child!==s.child)throw Error(r(153));if(u.child!==null){for(s=u.child,p=$i(s,s.pendingProps),u.child=p,p.return=u;s.sibling!==null;)s=s.sibling,p=p.sibling=$i(s,s.pendingProps),p.return=u;p.sibling=null}return u.child}function K1(s,u){return(s.lanes&u)!==0?!0:(s=s.dependencies,!!(s!==null&&Jv(s)))}function WG(s,u,p){switch(u.tag){case 3:$(u,u.stateNode.containerInfo),Va(u,Wn,s.memoizedState.cache),Hs();break;case 27:case 5:ee(u);break;case 4:$(u,u.stateNode.containerInfo);break;case 10:Va(u,u.type,u.memoizedProps.value);break;case 13:var b=u.memoizedState;if(b!==null)return b.dehydrated!==null?(Xs(u),u.flags|=128,null):(p&u.child.childLanes)!==0?SR(s,u,p):(Xs(u),s=Uo(s,u,p),s!==null?s.sibling:null);Xs(u);break;case 19:var A=(s.flags&128)!==0;if(b=(p&u.childLanes)!==0,b||(bu(s,u,p,!1),b=(p&u.childLanes)!==0),A){if(b)return ER(s,u,p);u.flags|=128}if(A=u.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Z(Gn,Gn.current),b)break;return null;case 22:case 23:return u.lanes=0,yR(s,u,p);case 24:Va(u,Wn,s.memoizedState.cache)}return Uo(s,u,p)}function CR(s,u,p){if(s!==null)if(s.memoizedProps!==u.pendingProps)nr=!0;else{if(!K1(s,p)&&(u.flags&128)===0)return nr=!1,WG(s,u,p);nr=(s.flags&131072)!==0}else nr=!1,yt&&(u.flags&1048576)!==0&&Ne(u,v,u.index);switch(u.lanes=0,u.tag){case 16:e:{s=u.pendingProps;var b=u.elementType,A=b._init;if(b=A(b._payload),u.type=b,typeof b=="function")zc(b)?(s=Su(b,s),u.tag=1,u=xR(null,u,b,s,p)):(u.tag=0,u=F1(null,u,b,s,p));else{if(b!=null){if(A=b.$$typeof,A===j){u.tag=11,u=mR(null,u,b,s,p);break e}else if(A===I){u.tag=14,u=vR(null,u,b,s,p);break e}}throw u=Q(b)||b,Error(r(306,u,""))}}return u;case 0:return F1(s,u,u.type,u.pendingProps,p);case 1:return b=u.type,A=Su(b,u.pendingProps),xR(s,u,b,A,p);case 3:e:{if($(u,u.stateNode.containerInfo),s===null)throw Error(r(387));b=u.pendingProps;var N=u.memoizedState;A=N.element,y1(s,u),Th(u,b,null,p);var re=u.memoizedState;if(b=re.cache,Va(u,Wn,b),b!==N.cache&&qc(u,[Wn],p,!0),Ch(),b=re.element,N.isDehydrated)if(N={element:b,isDehydrated:!1,cache:re.cache},u.updateQueue.baseState=N,u.memoizedState=N,u.flags&256){u=wR(s,u,b,p);break e}else if(b!==A){A=Lr(Error(r(424)),u),Ws(A),u=wR(s,u,b,p);break e}else{switch(s=u.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(it=pa(s.firstChild),nt=u,yt=!0,ln=null,On=!0,p=iR(u,null,b,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Hs(),b===A){u=Uo(s,u,p);break e}pr(s,u,b,p)}u=u.child}return u;case 26:return yg(s,u),s===null?(p=PM(u.type,null,u.pendingProps,null))?u.memoizedState=p:yt||(p=u.type,s=u.pendingProps,b=Ng(de.current).createElement(p),b[Nt]=u,b[an]=s,vr(b,p,s),Bn(b),u.stateNode=b):u.memoizedState=PM(u.type,s.memoizedProps,u.pendingProps,s.memoizedState),null;case 27:return ee(u),s===null&&yt&&(b=u.stateNode=TM(u.type,u.pendingProps,de.current),nt=u,On=!0,A=it,sl(u.type)?(jx=A,it=pa(b.firstChild)):it=A),pr(s,u,u.pendingProps.children,p),yg(s,u),s===null&&(u.flags|=4194304),u.child;case 5:return s===null&&yt&&((A=b=it)&&(b=_Y(b,u.type,u.pendingProps,On),b!==null?(u.stateNode=b,nt=u,it=pa(b.firstChild),On=!1,A=!0):A=!1),A||Gr(u)),ee(u),A=u.type,N=u.pendingProps,re=s!==null?s.memoizedProps:null,b=N.children,Ex(A,N)?b=null:re!==null&&Ex(A,re)&&(u.flags|=32),u.memoizedState!==null&&(A=O1(s,u,$G,null,null,p),Kh._currentValue=A),yg(s,u),pr(s,u,b,p),u.child;case 6:return s===null&&yt&&((s=p=it)&&(p=xY(p,u.pendingProps,On),p!==null?(u.stateNode=p,nt=u,it=null,s=!0):s=!1),s||Gr(u)),null;case 13:return SR(s,u,p);case 4:return $(u,u.stateNode.containerInfo),b=u.pendingProps,s===null?u.child=Xc(u,null,b,p):pr(s,u,b,p),u.child;case 11:return mR(s,u,u.type,u.pendingProps,p);case 7:return pr(s,u,u.pendingProps,p),u.child;case 8:return pr(s,u,u.pendingProps.children,p),u.child;case 12:return pr(s,u,u.pendingProps.children,p),u.child;case 10:return b=u.pendingProps,Va(u,u.type,b.value),pr(s,u,b.children,p),u.child;case 9:return A=u.type._context,b=u.pendingProps.children,_u(u),A=Or(A),b=b(A),u.flags|=1,pr(s,u,b,p),u.child;case 14:return vR(s,u,u.type,u.pendingProps,p);case 15:return gR(s,u,u.type,u.pendingProps,p);case 19:return ER(s,u,p);case 31:return b=u.pendingProps,p=u.mode,b={mode:b.mode,children:b.children},s===null?(p=bg(b,p),p.ref=u.ref,u.child=p,p.return=u,u=p):(p=$i(s.child,b),p.ref=u.ref,u.child=p,p.return=u,u=p),u;case 22:return yR(s,u,p);case 24:return _u(u),b=Or(Wn),s===null?(A=m1(),A===null&&(A=un,N=h1(),A.pooledCache=N,N.refCount++,N!==null&&(A.pooledCacheLanes|=p),A=N),u.memoizedState={parent:b,cache:A},g1(u),Va(u,Wn,A)):((s.lanes&p)!==0&&(y1(s,u),Th(u,null,null,p),Ch()),A=s.memoizedState,N=u.memoizedState,A.parent!==b?(A={parent:b,cache:b},u.memoizedState=A,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=A),Va(u,Wn,b)):(b=N.cache,Va(u,Wn,b),b!==A.cache&&qc(u,[Wn],p,!0))),pr(s,u,u.pendingProps.children,p),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function zo(s){s.flags|=4}function TR(s,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!DM(u)){if(u=Ui.current,u!==null&&((kt&4194048)===kt?Ha!==null:(kt&62914560)!==kt&&(kt&536870912)===0||u!==Ha))throw Oh=v1,c4;s.flags|=8192}}function _g(s,u){u!==null&&(s.flags|=4),s.flags&16384&&(u=s.tag!==22?ni():536870912,s.lanes|=u,tf|=u)}function Lh(s,u){if(!yt)switch(s.tailMode){case"hidden":u=s.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function En(s){var u=s.alternate!==null&&s.alternate.child===s.child,p=0,b=0;if(u)for(var A=s.child;A!==null;)p|=A.lanes|A.childLanes,b|=A.subtreeFlags&65011712,b|=A.flags&65011712,A.return=s,A=A.sibling;else for(A=s.child;A!==null;)p|=A.lanes|A.childLanes,b|=A.subtreeFlags,b|=A.flags,A.return=s,A=A.sibling;return s.subtreeFlags|=b,s.childLanes=p,u}function GG(s,u,p){var b=u.pendingProps;switch(et(u),u.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(u),null;case 1:return En(u),null;case 3:return p=u.stateNode,b=null,s!==null&&(b=s.memoizedState.cache),u.memoizedState.cache!==b&&(u.flags|=2048),da(Wn),q(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(s===null||s.child===null)&&(gu(u)?zo(u):s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Qv())),En(u),null;case 26:return p=u.memoizedState,s===null?(zo(u),p!==null?(En(u),TR(u,p)):(En(u),u.flags&=-16777217)):p?p!==s.memoizedState?(zo(u),En(u),TR(u,p)):(En(u),u.flags&=-16777217):(s.memoizedProps!==b&&zo(u),En(u),u.flags&=-16777217),null;case 27:fe(u),p=de.current;var A=u.type;if(s!==null&&u.stateNode!=null)s.memoizedProps!==b&&zo(u);else{if(!b){if(u.stateNode===null)throw Error(r(166));return En(u),null}s=oe.current,gu(u)?Zv(u):(s=TM(A,b,p),u.stateNode=s,zo(u))}return En(u),null;case 5:if(fe(u),p=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==b&&zo(u);else{if(!b){if(u.stateNode===null)throw Error(r(166));return En(u),null}if(s=oe.current,gu(u))Zv(u);else{switch(A=Ng(de.current),s){case 1:s=A.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:s=A.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":s=A.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":s=A.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":s=A.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof b.is=="string"?A.createElement("select",{is:b.is}):A.createElement("select"),b.multiple?s.multiple=!0:b.size&&(s.size=b.size);break;default:s=typeof b.is=="string"?A.createElement(p,{is:b.is}):A.createElement(p)}}s[Nt]=u,s[an]=b;e:for(A=u.child;A!==null;){if(A.tag===5||A.tag===6)s.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===u)break e;for(;A.sibling===null;){if(A.return===null||A.return===u)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}u.stateNode=s;e:switch(vr(s,p,b),p){case"button":case"input":case"select":case"textarea":s=!!b.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&zo(u)}}return En(u),u.flags&=-16777217,null;case 6:if(s&&u.stateNode!=null)s.memoizedProps!==b&&zo(u);else{if(typeof b!="string"&&u.stateNode===null)throw Error(r(166));if(s=de.current,gu(u)){if(s=u.stateNode,p=u.memoizedProps,b=null,A=nt,A!==null)switch(A.tag){case 27:case 5:b=A.memoizedProps}s[Nt]=u,s=!!(s.nodeValue===p||b!==null&&b.suppressHydrationWarning===!0||_M(s.nodeValue,p)),s||Gr(u)}else s=Ng(s).createTextNode(b),s[Nt]=u,u.stateNode=s}return En(u),null;case 13:if(b=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(A=gu(u),b!==null&&b.dehydrated!==null){if(s===null){if(!A)throw Error(r(318));if(A=u.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(r(317));A[Nt]=u}else Hs(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;En(u),A=!1}else A=Qv(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=A),A=!0;if(!A)return u.flags&256?(Bo(u),u):(Bo(u),null)}if(Bo(u),(u.flags&128)!==0)return u.lanes=p,u;if(p=b!==null,s=s!==null&&s.memoizedState!==null,p){b=u.child,A=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(A=b.alternate.memoizedState.cachePool.pool);var N=null;b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(N=b.memoizedState.cachePool.pool),N!==A&&(b.flags|=2048)}return p!==s&&p&&(u.child.flags|=8192),_g(u,u.updateQueue),En(u),null;case 4:return q(),s===null&&_x(u.stateNode.containerInfo),En(u),null;case 10:return da(u.type),En(u),null;case 19:if(te(Gn),A=u.memoizedState,A===null)return En(u),null;if(b=(u.flags&128)!==0,N=A.rendering,N===null)if(b)Lh(A,!1);else{if(Pn!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(N=mg(s),N!==null){for(u.flags|=128,Lh(A,!1),s=N.updateQueue,u.updateQueue=s,_g(u,s),u.subtreeFlags=0,s=p,p=u.child;p!==null;)bh(p,s),p=p.sibling;return Z(Gn,Gn.current&1|2),u.child}s=s.sibling}A.tail!==null&&we()>Sg&&(u.flags|=128,b=!0,Lh(A,!1),u.lanes=4194304)}else{if(!b)if(s=mg(N),s!==null){if(u.flags|=128,b=!0,s=s.updateQueue,u.updateQueue=s,_g(u,s),Lh(A,!0),A.tail===null&&A.tailMode==="hidden"&&!N.alternate&&!yt)return En(u),null}else 2*we()-A.renderingStartTime>Sg&&p!==536870912&&(u.flags|=128,b=!0,Lh(A,!1),u.lanes=4194304);A.isBackwards?(N.sibling=u.child,u.child=N):(s=A.last,s!==null?s.sibling=N:u.child=N,A.last=N)}return A.tail!==null?(u=A.tail,A.rendering=u,A.tail=u.sibling,A.renderingStartTime=we(),u.sibling=null,s=Gn.current,Z(Gn,b?s&1|2:s&1),u):(En(u),null);case 22:case 23:return Bo(u),w1(),b=u.memoizedState!==null,s!==null?s.memoizedState!==null!==b&&(u.flags|=8192):b&&(u.flags|=8192),b?(p&536870912)!==0&&(u.flags&128)===0&&(En(u),u.subtreeFlags&6&&(u.flags|=8192)):En(u),p=u.updateQueue,p!==null&&_g(u,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),b=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(b=u.memoizedState.cachePool.pool),b!==p&&(u.flags|=2048),s!==null&&te(xu),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),u.memoizedState.cache!==p&&(u.flags|=2048),da(Wn),En(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function YG(s,u){switch(et(u),u.tag){case 1:return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return da(Wn),q(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 26:case 27:case 5:return fe(u),null;case 13:if(Bo(u),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Hs()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return te(Gn),null;case 4:return q(),null;case 10:return da(u.type),null;case 22:case 23:return Bo(u),w1(),s!==null&&te(xu),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 24:return da(Wn),null;case 25:return null;default:return null}}function AR(s,u){switch(et(u),u.tag){case 3:da(Wn),q();break;case 26:case 27:case 5:fe(u);break;case 4:q();break;case 13:Bo(u);break;case 19:te(Gn);break;case 10:da(u.type);break;case 22:case 23:Bo(u),w1(),s!==null&&te(xu);break;case 24:da(Wn)}}function Dh(s,u){try{var p=u.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var A=b.next;p=A;do{if((p.tag&s)===s){b=void 0;var N=p.create,re=p.inst;b=N(),re.destroy=b}p=p.next}while(p!==A)}}catch(ce){en(u,u.return,ce)}}function Js(s,u,p){try{var b=u.updateQueue,A=b!==null?b.lastEffect:null;if(A!==null){var N=A.next;b=N;do{if((b.tag&s)===s){var re=b.inst,ce=re.destroy;if(ce!==void 0){re.destroy=void 0,A=u;var ge=p,Ae=ce;try{Ae()}catch(Be){en(A,ge,Be)}}}b=b.next}while(b!==N)}}catch(Be){en(u,u.return,Be)}}function jR(s){var u=s.updateQueue;if(u!==null){var p=s.stateNode;try{v4(u,p)}catch(b){en(s,s.return,b)}}}function PR(s,u,p){p.props=Su(s.type,s.memoizedProps),p.state=s.memoizedState;try{p.componentWillUnmount()}catch(b){en(s,u,b)}}function kh(s,u){try{var p=s.ref;if(p!==null){switch(s.tag){case 26:case 27:case 5:var b=s.stateNode;break;case 30:b=s.stateNode;break;default:b=s.stateNode}typeof p=="function"?s.refCleanup=p(b):p.current=b}}catch(A){en(s,u,A)}}function Wa(s,u){var p=s.ref,b=s.refCleanup;if(p!==null)if(typeof b=="function")try{b()}catch(A){en(s,u,A)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(A){en(s,u,A)}else p.current=null}function RR(s){var u=s.type,p=s.memoizedProps,b=s.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":p.autoFocus&&b.focus();break e;case"img":p.src?b.src=p.src:p.srcSet&&(b.srcset=p.srcSet)}}catch(A){en(s,s.return,A)}}function Z1(s,u,p){try{var b=s.stateNode;mY(b,s.type,p,u),b[an]=u}catch(A){en(s,s.return,A)}}function MR(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&sl(s.type)||s.tag===4}function X1(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||MR(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&sl(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Q1(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(s,u):(u=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,u.appendChild(s),p=p._reactRootContainer,p!=null||u.onclick!==null||(u.onclick=Mg));else if(b!==4&&(b===27&&sl(s.type)&&(p=s.stateNode,u=null),s=s.child,s!==null))for(Q1(s,u,p),s=s.sibling;s!==null;)Q1(s,u,p),s=s.sibling}function xg(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?p.insertBefore(s,u):p.appendChild(s);else if(b!==4&&(b===27&&sl(s.type)&&(p=s.stateNode),s=s.child,s!==null))for(xg(s,u,p),s=s.sibling;s!==null;)xg(s,u,p),s=s.sibling}function NR(s){var u=s.stateNode,p=s.memoizedProps;try{for(var b=s.type,A=u.attributes;A.length;)u.removeAttributeNode(A[0]);vr(u,b,p),u[Nt]=s,u[an]=p}catch(N){en(s,s.return,N)}}var Fo=!1,kn=!1,J1=!1,LR=typeof WeakSet=="function"?WeakSet:Set,rr=null;function KG(s,u){if(s=s.containerInfo,Sx=Bg,s=cu(s),fu(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var b=p.getSelection&&p.getSelection();if(b&&b.rangeCount!==0){p=b.anchorNode;var A=b.anchorOffset,N=b.focusNode;b=b.focusOffset;try{p.nodeType,N.nodeType}catch{p=null;break e}var re=0,ce=-1,ge=-1,Ae=0,Be=0,Ve=s,Pe=null;t:for(;;){for(var Re;Ve!==p||A!==0&&Ve.nodeType!==3||(ce=re+A),Ve!==N||b!==0&&Ve.nodeType!==3||(ge=re+b),Ve.nodeType===3&&(re+=Ve.nodeValue.length),(Re=Ve.firstChild)!==null;)Pe=Ve,Ve=Re;for(;;){if(Ve===s)break t;if(Pe===p&&++Ae===A&&(ce=re),Pe===N&&++Be===b&&(ge=re),(Re=Ve.nextSibling)!==null)break;Ve=Pe,Pe=Ve.parentNode}Ve=Re}p=ce===-1||ge===-1?null:{start:ce,end:ge}}else p=null}p=p||{start:0,end:0}}else p=null;for(Ox={focusedElem:s,selectionRange:p},Bg=!1,rr=u;rr!==null;)if(u=rr,s=u.child,(u.subtreeFlags&1024)!==0&&s!==null)s.return=u,rr=s;else for(;rr!==null;){switch(u=rr,N=u.alternate,s=u.flags,u.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&N!==null){s=void 0,p=u,A=N.memoizedProps,N=N.memoizedState,b=p.stateNode;try{var vt=Su(p.type,A,p.elementType===p.type);s=b.getSnapshotBeforeUpdate(vt,N),b.__reactInternalSnapshotBeforeUpdate=s}catch(ft){en(p,p.return,ft)}}break;case 3:if((s&1024)!==0){if(s=u.stateNode.containerInfo,p=s.nodeType,p===9)Tx(s);else if(p===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":Tx(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=u.sibling,s!==null){s.return=u.return,rr=s;break}rr=u.return}}function DR(s,u,p){var b=p.flags;switch(p.tag){case 0:case 11:case 15:el(s,p),b&4&&Dh(5,p);break;case 1:if(el(s,p),b&4)if(s=p.stateNode,u===null)try{s.componentDidMount()}catch(re){en(p,p.return,re)}else{var A=Su(p.type,u.memoizedProps);u=u.memoizedState;try{s.componentDidUpdate(A,u,s.__reactInternalSnapshotBeforeUpdate)}catch(re){en(p,p.return,re)}}b&64&&jR(p),b&512&&kh(p,p.return);break;case 3:if(el(s,p),b&64&&(s=p.updateQueue,s!==null)){if(u=null,p.child!==null)switch(p.child.tag){case 27:case 5:u=p.child.stateNode;break;case 1:u=p.child.stateNode}try{v4(s,u)}catch(re){en(p,p.return,re)}}break;case 27:u===null&&b&4&&NR(p);case 26:case 5:el(s,p),u===null&&b&4&&RR(p),b&512&&kh(p,p.return);break;case 12:el(s,p);break;case 13:el(s,p),b&4&&$R(s,p),b&64&&(s=p.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(p=iY.bind(null,p),wY(s,p))));break;case 22:if(b=p.memoizedState!==null||Fo,!b){u=u!==null&&u.memoizedState!==null||kn,A=Fo;var N=kn;Fo=b,(kn=u)&&!N?tl(s,p,(p.subtreeFlags&8772)!==0):el(s,p),Fo=A,kn=N}break;case 30:break;default:el(s,p)}}function kR(s){var u=s.alternate;u!==null&&(s.alternate=null,kR(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&Oc(u)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var _n=null,Kr=!1;function qo(s,u,p){for(p=p.child;p!==null;)IR(s,u,p),p=p.sibling}function IR(s,u,p){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(Me,p)}catch{}switch(p.tag){case 26:kn||Wa(p,u),qo(s,u,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:kn||Wa(p,u);var b=_n,A=Kr;sl(p.type)&&(_n=p.stateNode,Kr=!1),qo(s,u,p),Hh(p.stateNode),_n=b,Kr=A;break;case 5:kn||Wa(p,u);case 6:if(b=_n,A=Kr,_n=null,qo(s,u,p),_n=b,Kr=A,_n!==null)if(Kr)try{(_n.nodeType===9?_n.body:_n.nodeName==="HTML"?_n.ownerDocument.body:_n).removeChild(p.stateNode)}catch(N){en(p,u,N)}else try{_n.removeChild(p.stateNode)}catch(N){en(p,u,N)}break;case 18:_n!==null&&(Kr?(s=_n,EM(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,p.stateNode),Jh(s)):EM(_n,p.stateNode));break;case 4:b=_n,A=Kr,_n=p.stateNode.containerInfo,Kr=!0,qo(s,u,p),_n=b,Kr=A;break;case 0:case 11:case 14:case 15:kn||Js(2,p,u),kn||Js(4,p,u),qo(s,u,p);break;case 1:kn||(Wa(p,u),b=p.stateNode,typeof b.componentWillUnmount=="function"&&PR(p,u,b)),qo(s,u,p);break;case 21:qo(s,u,p);break;case 22:kn=(b=kn)||p.memoizedState!==null,qo(s,u,p),kn=b;break;default:qo(s,u,p)}}function $R(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Jh(s)}catch(p){en(u,u.return,p)}}function ZG(s){switch(s.tag){case 13:case 19:var u=s.stateNode;return u===null&&(u=s.stateNode=new LR),u;case 22:return s=s.stateNode,u=s._retryCache,u===null&&(u=s._retryCache=new LR),u;default:throw Error(r(435,s.tag))}}function ex(s,u){var p=ZG(s);u.forEach(function(b){var A=aY.bind(null,s,b);p.has(b)||(p.add(b),b.then(A,A))})}function ci(s,u){var p=u.deletions;if(p!==null)for(var b=0;b<p.length;b++){var A=p[b],N=s,re=u,ce=re;e:for(;ce!==null;){switch(ce.tag){case 27:if(sl(ce.type)){_n=ce.stateNode,Kr=!1;break e}break;case 5:_n=ce.stateNode,Kr=!1;break e;case 3:case 4:_n=ce.stateNode.containerInfo,Kr=!0;break e}ce=ce.return}if(_n===null)throw Error(r(160));IR(N,re,A),_n=null,Kr=!1,N=A.alternate,N!==null&&(N.return=null),A.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)BR(u,s),u=u.sibling}var ha=null;function BR(s,u){var p=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:ci(u,s),fi(s),b&4&&(Js(3,s,s.return),Dh(3,s),Js(5,s,s.return));break;case 1:ci(u,s),fi(s),b&512&&(kn||p===null||Wa(p,p.return)),b&64&&Fo&&(s=s.updateQueue,s!==null&&(b=s.callbacks,b!==null&&(p=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=p===null?b:p.concat(b))));break;case 26:var A=ha;if(ci(u,s),fi(s),b&512&&(kn||p===null||Wa(p,p.return)),b&4){var N=p!==null?p.memoizedState:null;if(b=s.memoizedState,p===null)if(b===null)if(s.stateNode===null){e:{b=s.type,p=s.memoizedProps,A=A.ownerDocument||A;t:switch(b){case"title":N=A.getElementsByTagName("title")[0],(!N||N[Os]||N[Nt]||N.namespaceURI==="http://www.w3.org/2000/svg"||N.hasAttribute("itemprop"))&&(N=A.createElement(b),A.head.insertBefore(N,A.querySelector("head > title"))),vr(N,b,p),N[Nt]=s,Bn(N),b=N;break e;case"link":var re=NM("link","href",A).get(b+(p.href||""));if(re){for(var ce=0;ce<re.length;ce++)if(N=re[ce],N.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&N.getAttribute("rel")===(p.rel==null?null:p.rel)&&N.getAttribute("title")===(p.title==null?null:p.title)&&N.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){re.splice(ce,1);break t}}N=A.createElement(b),vr(N,b,p),A.head.appendChild(N);break;case"meta":if(re=NM("meta","content",A).get(b+(p.content||""))){for(ce=0;ce<re.length;ce++)if(N=re[ce],N.getAttribute("content")===(p.content==null?null:""+p.content)&&N.getAttribute("name")===(p.name==null?null:p.name)&&N.getAttribute("property")===(p.property==null?null:p.property)&&N.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&N.getAttribute("charset")===(p.charSet==null?null:p.charSet)){re.splice(ce,1);break t}}N=A.createElement(b),vr(N,b,p),A.head.appendChild(N);break;default:throw Error(r(468,b))}N[Nt]=s,Bn(N),b=N}s.stateNode=b}else LM(A,s.type,s.stateNode);else s.stateNode=MM(A,b,s.memoizedProps);else N!==b?(N===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):N.count--,b===null?LM(A,s.type,s.stateNode):MM(A,b,s.memoizedProps)):b===null&&s.stateNode!==null&&Z1(s,s.memoizedProps,p.memoizedProps)}break;case 27:ci(u,s),fi(s),b&512&&(kn||p===null||Wa(p,p.return)),p!==null&&b&4&&Z1(s,s.memoizedProps,p.memoizedProps);break;case 5:if(ci(u,s),fi(s),b&512&&(kn||p===null||Wa(p,p.return)),s.flags&32){A=s.stateNode;try{Ni(A,"")}catch(Re){en(s,s.return,Re)}}b&4&&s.stateNode!=null&&(A=s.memoizedProps,Z1(s,A,p!==null?p.memoizedProps:A)),b&1024&&(J1=!0);break;case 6:if(ci(u,s),fi(s),b&4){if(s.stateNode===null)throw Error(r(162));b=s.memoizedProps,p=s.stateNode;try{p.nodeValue=b}catch(Re){en(s,s.return,Re)}}break;case 3:if(kg=null,A=ha,ha=Lg(u.containerInfo),ci(u,s),ha=A,fi(s),b&4&&p!==null&&p.memoizedState.isDehydrated)try{Jh(u.containerInfo)}catch(Re){en(s,s.return,Re)}J1&&(J1=!1,UR(s));break;case 4:b=ha,ha=Lg(s.stateNode.containerInfo),ci(u,s),fi(s),ha=b;break;case 12:ci(u,s),fi(s);break;case 13:ci(u,s),fi(s),s.child.flags&8192&&s.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(ox=we()),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,ex(s,b)));break;case 22:A=s.memoizedState!==null;var ge=p!==null&&p.memoizedState!==null,Ae=Fo,Be=kn;if(Fo=Ae||A,kn=Be||ge,ci(u,s),kn=Be,Fo=Ae,fi(s),b&8192)e:for(u=s.stateNode,u._visibility=A?u._visibility&-2:u._visibility|1,A&&(p===null||ge||Fo||kn||Ou(s)),p=null,u=s;;){if(u.tag===5||u.tag===26){if(p===null){ge=p=u;try{if(N=ge.stateNode,A)re=N.style,typeof re.setProperty=="function"?re.setProperty("display","none","important"):re.display="none";else{ce=ge.stateNode;var Ve=ge.memoizedProps.style,Pe=Ve!=null&&Ve.hasOwnProperty("display")?Ve.display:null;ce.style.display=Pe==null||typeof Pe=="boolean"?"":(""+Pe).trim()}}catch(Re){en(ge,ge.return,Re)}}}else if(u.tag===6){if(p===null){ge=u;try{ge.stateNode.nodeValue=A?"":ge.memoizedProps}catch(Re){en(ge,ge.return,Re)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===s)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;p===u&&(p=null),u=u.return}p===u&&(p=null),u.sibling.return=u.return,u=u.sibling}b&4&&(b=s.updateQueue,b!==null&&(p=b.retryQueue,p!==null&&(b.retryQueue=null,ex(s,p))));break;case 19:ci(u,s),fi(s),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,ex(s,b)));break;case 30:break;case 21:break;default:ci(u,s),fi(s)}}function fi(s){var u=s.flags;if(u&2){try{for(var p,b=s.return;b!==null;){if(MR(b)){p=b;break}b=b.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var A=p.stateNode,N=X1(s);xg(s,N,A);break;case 5:var re=p.stateNode;p.flags&32&&(Ni(re,""),p.flags&=-33);var ce=X1(s);xg(s,ce,re);break;case 3:case 4:var ge=p.stateNode.containerInfo,Ae=X1(s);Q1(s,Ae,ge);break;default:throw Error(r(161))}}catch(Be){en(s,s.return,Be)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function UR(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var u=s;UR(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),s=s.sibling}}function el(s,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)DR(s,u.alternate,u),u=u.sibling}function Ou(s){for(s=s.child;s!==null;){var u=s;switch(u.tag){case 0:case 11:case 14:case 15:Js(4,u,u.return),Ou(u);break;case 1:Wa(u,u.return);var p=u.stateNode;typeof p.componentWillUnmount=="function"&&PR(u,u.return,p),Ou(u);break;case 27:Hh(u.stateNode);case 26:case 5:Wa(u,u.return),Ou(u);break;case 22:u.memoizedState===null&&Ou(u);break;case 30:Ou(u);break;default:Ou(u)}s=s.sibling}}function tl(s,u,p){for(p=p&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var b=u.alternate,A=s,N=u,re=N.flags;switch(N.tag){case 0:case 11:case 15:tl(A,N,p),Dh(4,N);break;case 1:if(tl(A,N,p),b=N,A=b.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(Ae){en(b,b.return,Ae)}if(b=N,A=b.updateQueue,A!==null){var ce=b.stateNode;try{var ge=A.shared.hiddenCallbacks;if(ge!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ge.length;A++)m4(ge[A],ce)}catch(Ae){en(b,b.return,Ae)}}p&&re&64&&jR(N),kh(N,N.return);break;case 27:NR(N);case 26:case 5:tl(A,N,p),p&&b===null&&re&4&&RR(N),kh(N,N.return);break;case 12:tl(A,N,p);break;case 13:tl(A,N,p),p&&re&4&&$R(A,N);break;case 22:N.memoizedState===null&&tl(A,N,p),kh(N,N.return);break;case 30:break;default:tl(A,N,p)}u=u.sibling}}function tx(s,u){var p=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==p&&(s!=null&&s.refCount++,p!=null&&xh(p))}function nx(s,u){s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&xh(s))}function Ga(s,u,p,b){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)zR(s,u,p,b),u=u.sibling}function zR(s,u,p,b){var A=u.flags;switch(u.tag){case 0:case 11:case 15:Ga(s,u,p,b),A&2048&&Dh(9,u);break;case 1:Ga(s,u,p,b);break;case 3:Ga(s,u,p,b),A&2048&&(s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&xh(s)));break;case 12:if(A&2048){Ga(s,u,p,b),s=u.stateNode;try{var N=u.memoizedProps,re=N.id,ce=N.onPostCommit;typeof ce=="function"&&ce(re,u.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(ge){en(u,u.return,ge)}}else Ga(s,u,p,b);break;case 13:Ga(s,u,p,b);break;case 23:break;case 22:N=u.stateNode,re=u.alternate,u.memoizedState!==null?N._visibility&2?Ga(s,u,p,b):Ih(s,u):N._visibility&2?Ga(s,u,p,b):(N._visibility|=2,Qc(s,u,p,b,(u.subtreeFlags&10256)!==0)),A&2048&&tx(re,u);break;case 24:Ga(s,u,p,b),A&2048&&nx(u.alternate,u);break;default:Ga(s,u,p,b)}}function Qc(s,u,p,b,A){for(A=A&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;){var N=s,re=u,ce=p,ge=b,Ae=re.flags;switch(re.tag){case 0:case 11:case 15:Qc(N,re,ce,ge,A),Dh(8,re);break;case 23:break;case 22:var Be=re.stateNode;re.memoizedState!==null?Be._visibility&2?Qc(N,re,ce,ge,A):Ih(N,re):(Be._visibility|=2,Qc(N,re,ce,ge,A)),A&&Ae&2048&&tx(re.alternate,re);break;case 24:Qc(N,re,ce,ge,A),A&&Ae&2048&&nx(re.alternate,re);break;default:Qc(N,re,ce,ge,A)}u=u.sibling}}function Ih(s,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var p=s,b=u,A=b.flags;switch(b.tag){case 22:Ih(p,b),A&2048&&tx(b.alternate,b);break;case 24:Ih(p,b),A&2048&&nx(b.alternate,b);break;default:Ih(p,b)}u=u.sibling}}var $h=8192;function Jc(s){if(s.subtreeFlags&$h)for(s=s.child;s!==null;)FR(s),s=s.sibling}function FR(s){switch(s.tag){case 26:Jc(s),s.flags&$h&&s.memoizedState!==null&&DY(ha,s.memoizedState,s.memoizedProps);break;case 5:Jc(s);break;case 3:case 4:var u=ha;ha=Lg(s.stateNode.containerInfo),Jc(s),ha=u;break;case 22:s.memoizedState===null&&(u=s.alternate,u!==null&&u.memoizedState!==null?(u=$h,$h=16777216,Jc(s),$h=u):Jc(s));break;default:Jc(s)}}function qR(s){var u=s.alternate;if(u!==null&&(s=u.child,s!==null)){u.child=null;do u=s.sibling,s.sibling=null,s=u;while(s!==null)}}function Bh(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var b=u[p];rr=b,HR(b,s)}qR(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)VR(s),s=s.sibling}function VR(s){switch(s.tag){case 0:case 11:case 15:Bh(s),s.flags&2048&&Js(9,s,s.return);break;case 3:Bh(s);break;case 12:Bh(s);break;case 22:var u=s.stateNode;s.memoizedState!==null&&u._visibility&2&&(s.return===null||s.return.tag!==13)?(u._visibility&=-3,wg(s)):Bh(s);break;default:Bh(s)}}function wg(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var b=u[p];rr=b,HR(b,s)}qR(s)}for(s=s.child;s!==null;){switch(u=s,u.tag){case 0:case 11:case 15:Js(8,u,u.return),wg(u);break;case 22:p=u.stateNode,p._visibility&2&&(p._visibility&=-3,wg(u));break;default:wg(u)}s=s.sibling}}function HR(s,u){for(;rr!==null;){var p=rr;switch(p.tag){case 0:case 11:case 15:Js(8,p,u);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var b=p.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:xh(p.memoizedState.cache)}if(b=p.child,b!==null)b.return=p,rr=b;else e:for(p=s;rr!==null;){b=rr;var A=b.sibling,N=b.return;if(kR(b),b===p){rr=null;break e}if(A!==null){A.return=N,rr=A;break e}rr=N}}}var XG={getCacheForType:function(s){var u=Or(Wn),p=u.data.get(s);return p===void 0&&(p=s(),u.data.set(s,p)),p}},QG=typeof WeakMap=="function"?WeakMap:Map,Wt=0,un=null,jt=null,kt=0,Gt=0,di=null,nl=!1,ef=!1,rx=!1,Vo=0,Pn=0,rl=0,Eu=0,ix=0,zi=0,tf=0,Uh=null,Zr=null,ax=!1,ox=0,Sg=1/0,Og=null,il=null,mr=0,al=null,nf=null,rf=0,sx=0,lx=null,WR=null,zh=0,ux=null;function hi(){if((Wt&2)!==0&&kt!==0)return kt&-kt;if(H.T!==null){var s=Vc;return s!==0?s:vx()}return Qn()}function GR(){zi===0&&(zi=(kt&536870912)===0||yt?xs():536870912);var s=Ui.current;return s!==null&&(s.flags|=32),zi}function pi(s,u,p){(s===un&&(Gt===2||Gt===9)||s.cancelPendingCommit!==null)&&(af(s,0),ol(s,kt,zi,!1)),Da(s,p),((Wt&2)===0||s!==un)&&(s===un&&((Wt&2)===0&&(Eu|=p),Pn===4&&ol(s,kt,zi,!1)),Ya(s))}function YR(s,u,p){if((Wt&6)!==0)throw Error(r(327));var b=!p&&(u&124)===0&&(u&s.expiredLanes)===0||xr(s,u),A=b?tY(s,u):dx(s,u,!0),N=b;do{if(A===0){ef&&!b&&ol(s,u,0,!1);break}else{if(p=s.current.alternate,N&&!JG(p)){A=dx(s,u,!1),N=!1;continue}if(A===2){if(N=u,s.errorRecoveryDisabledLanes&N)var re=0;else re=s.pendingLanes&-536870913,re=re!==0?re:re&536870912?536870912:0;if(re!==0){u=re;e:{var ce=s;A=Uh;var ge=ce.current.memoizedState.isDehydrated;if(ge&&(af(ce,re).flags|=256),re=dx(ce,re,!1),re!==2){if(rx&&!ge){ce.errorRecoveryDisabledLanes|=N,Eu|=N,A=4;break e}N=Zr,Zr=A,N!==null&&(Zr===null?Zr=N:Zr.push.apply(Zr,N))}A=re}if(N=!1,A!==2)continue}}if(A===1){af(s,0),ol(s,u,0,!0);break}e:{switch(b=s,N=A,N){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:ol(b,u,zi,!nl);break e;case 2:Zr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(A=ox+300-we(),10<A)){if(ol(b,u,zi,!nl),Ut(b,0,!0)!==0)break e;b.timeoutHandle=SM(KR.bind(null,b,p,Zr,Og,ax,u,zi,Eu,tf,nl,N,2,-0,0),A);break e}KR(b,p,Zr,Og,ax,u,zi,Eu,tf,nl,N,0,-0,0)}}break}while(!0);Ya(s)}function KR(s,u,p,b,A,N,re,ce,ge,Ae,Be,Ve,Pe,Re){if(s.timeoutHandle=-1,Ve=u.subtreeFlags,(Ve&8192||(Ve&16785408)===16785408)&&(Yh={stylesheets:null,count:0,unsuspend:LY},FR(u),Ve=kY(),Ve!==null)){s.cancelPendingCommit=Ve(nM.bind(null,s,u,N,p,b,A,re,ce,ge,Be,1,Pe,Re)),ol(s,N,re,!Ae);return}nM(s,u,N,p,b,A,re,ce,ge)}function JG(s){for(var u=s;;){var p=u.tag;if((p===0||p===11||p===15)&&u.flags&16384&&(p=u.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var b=0;b<p.length;b++){var A=p[b],N=A.getSnapshot;A=A.value;try{if(!Mr(N(),A))return!1}catch{return!1}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ol(s,u,p,b){u&=~ix,u&=~Eu,s.suspendedLanes|=u,s.pingedLanes&=~u,b&&(s.warmLanes|=u),b=s.expirationTimes;for(var A=u;0<A;){var N=31-Ge(A),re=1<<N;b[N]=-1,A&=~re}p!==0&&Ss(s,p,u)}function Eg(){return(Wt&6)===0?(Fh(0),!1):!0}function cx(){if(jt!==null){if(Gt===0)var s=jt.return;else s=jt,fa=Bi=null,T1(s),Zc=null,Mh=0,s=jt;for(;s!==null;)AR(s.alternate,s),s=s.return;jt=null}}function af(s,u){var p=s.timeoutHandle;p!==-1&&(s.timeoutHandle=-1,gY(p)),p=s.cancelPendingCommit,p!==null&&(s.cancelPendingCommit=null,p()),cx(),un=s,jt=p=$i(s.current,null),kt=u,Gt=0,di=null,nl=!1,ef=xr(s,u),rx=!1,tf=zi=ix=Eu=rl=Pn=0,Zr=Uh=null,ax=!1,(u&8)!==0&&(u|=u&32);var b=s.entangledLanes;if(b!==0)for(s=s.entanglements,b&=u;0<b;){var A=31-Ge(b),N=1<<A;u|=s[A],b&=~N}return Vo=u,hu(),p}function ZR(s,u){Ct=null,H.H=dg,u===Sh||u===ng?(u=h4(),Gt=3):u===c4?(u=h4(),Gt=4):Gt=u===pR?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,di=u,jt===null&&(Pn=1,gg(s,Lr(u,s.current)))}function XR(){var s=H.H;return H.H=dg,s===null?dg:s}function QR(){var s=H.A;return H.A=XG,s}function fx(){Pn=4,nl||(kt&4194048)!==kt&&Ui.current!==null||(ef=!0),(rl&134217727)===0&&(Eu&134217727)===0||un===null||ol(un,kt,zi,!1)}function dx(s,u,p){var b=Wt;Wt|=2;var A=XR(),N=QR();(un!==s||kt!==u)&&(Og=null,af(s,u)),u=!1;var re=Pn;e:do try{if(Gt!==0&&jt!==null){var ce=jt,ge=di;switch(Gt){case 8:cx(),re=6;break e;case 3:case 2:case 9:case 6:Ui.current===null&&(u=!0);var Ae=Gt;if(Gt=0,di=null,of(s,ce,ge,Ae),p&&ef){re=0;break e}break;default:Ae=Gt,Gt=0,di=null,of(s,ce,ge,Ae)}}eY(),re=Pn;break}catch(Be){ZR(s,Be)}while(!0);return u&&s.shellSuspendCounter++,fa=Bi=null,Wt=b,H.H=A,H.A=N,jt===null&&(un=null,kt=0,hu()),re}function eY(){for(;jt!==null;)JR(jt)}function tY(s,u){var p=Wt;Wt|=2;var b=XR(),A=QR();un!==s||kt!==u?(Og=null,Sg=we()+500,af(s,u)):ef=xr(s,u);e:do try{if(Gt!==0&&jt!==null){u=jt;var N=di;t:switch(Gt){case 1:Gt=0,di=null,of(s,u,N,1);break;case 2:case 9:if(f4(N)){Gt=0,di=null,eM(u);break}u=function(){Gt!==2&&Gt!==9||un!==s||(Gt=7),Ya(s)},N.then(u,u);break e;case 3:Gt=7;break e;case 4:Gt=5;break e;case 7:f4(N)?(Gt=0,di=null,eM(u)):(Gt=0,di=null,of(s,u,N,7));break;case 5:var re=null;switch(jt.tag){case 26:re=jt.memoizedState;case 5:case 27:var ce=jt;if(!re||DM(re)){Gt=0,di=null;var ge=ce.sibling;if(ge!==null)jt=ge;else{var Ae=ce.return;Ae!==null?(jt=Ae,Cg(Ae)):jt=null}break t}}Gt=0,di=null,of(s,u,N,5);break;case 6:Gt=0,di=null,of(s,u,N,6);break;case 8:cx(),Pn=6;break e;default:throw Error(r(462))}}nY();break}catch(Be){ZR(s,Be)}while(!0);return fa=Bi=null,H.H=b,H.A=A,Wt=p,jt!==null?0:(un=null,kt=0,hu(),Pn)}function nY(){for(;jt!==null&&!ye();)JR(jt)}function JR(s){var u=CR(s.alternate,s,Vo);s.memoizedProps=s.pendingProps,u===null?Cg(s):jt=u}function eM(s){var u=s,p=u.alternate;switch(u.tag){case 15:case 0:u=_R(p,u,u.pendingProps,u.type,void 0,kt);break;case 11:u=_R(p,u,u.pendingProps,u.type.render,u.ref,kt);break;case 5:T1(u);default:AR(p,u),u=jt=bh(u,Vo),u=CR(p,u,Vo)}s.memoizedProps=s.pendingProps,u===null?Cg(s):jt=u}function of(s,u,p,b){fa=Bi=null,T1(u),Zc=null,Mh=0;var A=u.return;try{if(HG(s,A,u,p,kt)){Pn=1,gg(s,Lr(p,s.current)),jt=null;return}}catch(N){if(A!==null)throw jt=A,N;Pn=1,gg(s,Lr(p,s.current)),jt=null;return}u.flags&32768?(yt||b===1?s=!0:ef||(kt&536870912)!==0?s=!1:(nl=s=!0,(b===2||b===9||b===3||b===6)&&(b=Ui.current,b!==null&&b.tag===13&&(b.flags|=16384))),tM(u,s)):Cg(u)}function Cg(s){var u=s;do{if((u.flags&32768)!==0){tM(u,nl);return}s=u.return;var p=GG(u.alternate,u,Vo);if(p!==null){jt=p;return}if(u=u.sibling,u!==null){jt=u;return}jt=u=s}while(u!==null);Pn===0&&(Pn=5)}function tM(s,u){do{var p=YG(s.alternate,s);if(p!==null){p.flags&=32767,jt=p;return}if(p=s.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!u&&(s=s.sibling,s!==null)){jt=s;return}jt=s=p}while(s!==null);Pn=6,jt=null}function nM(s,u,p,b,A,N,re,ce,ge){s.cancelPendingCommit=null;do Tg();while(mr!==0);if((Wt&6)!==0)throw Error(r(327));if(u!==null){if(u===s.current)throw Error(r(177));if(N=u.lanes|u.childLanes,N|=ui,Sc(s,p,N,re,ce,ge),s===un&&(jt=un=null,kt=0),nf=u,al=s,rf=p,sx=N,lx=A,WR=b,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,oY($e,function(){return sM(),null})):(s.callbackNode=null,s.callbackPriority=0),b=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||b){b=H.T,H.T=null,A=B.p,B.p=2,re=Wt,Wt|=4;try{KG(s,u,p)}finally{Wt=re,B.p=A,H.T=b}}mr=1,rM(),iM(),aM()}}function rM(){if(mr===1){mr=0;var s=al,u=nf,p=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||p){p=H.T,H.T=null;var b=B.p;B.p=2;var A=Wt;Wt|=4;try{BR(u,s);var N=Ox,re=cu(s.containerInfo),ce=N.focusedElem,ge=N.selectionRange;if(re!==ce&&ce&&ce.ownerDocument&&kc(ce.ownerDocument.documentElement,ce)){if(ge!==null&&fu(ce)){var Ae=ge.start,Be=ge.end;if(Be===void 0&&(Be=Ae),"selectionStart"in ce)ce.selectionStart=Ae,ce.selectionEnd=Math.min(Be,ce.value.length);else{var Ve=ce.ownerDocument||document,Pe=Ve&&Ve.defaultView||window;if(Pe.getSelection){var Re=Pe.getSelection(),vt=ce.textContent.length,ft=Math.min(ge.start,vt),Xt=ge.end===void 0?ft:Math.min(ge.end,vt);!Re.extend&&ft>Xt&&(re=Xt,Xt=ft,ft=re);var Oe=gh(ce,ft),xe=gh(ce,Xt);if(Oe&&xe&&(Re.rangeCount!==1||Re.anchorNode!==Oe.node||Re.anchorOffset!==Oe.offset||Re.focusNode!==xe.node||Re.focusOffset!==xe.offset)){var Ce=Ve.createRange();Ce.setStart(Oe.node,Oe.offset),Re.removeAllRanges(),ft>Xt?(Re.addRange(Ce),Re.extend(xe.node,xe.offset)):(Ce.setEnd(xe.node,xe.offset),Re.addRange(Ce))}}}}for(Ve=[],Re=ce;Re=Re.parentNode;)Re.nodeType===1&&Ve.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof ce.focus=="function"&&ce.focus(),ce=0;ce<Ve.length;ce++){var Ue=Ve[ce];Ue.element.scrollLeft=Ue.left,Ue.element.scrollTop=Ue.top}}Bg=!!Sx,Ox=Sx=null}finally{Wt=A,B.p=b,H.T=p}}s.current=u,mr=2}}function iM(){if(mr===2){mr=0;var s=al,u=nf,p=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||p){p=H.T,H.T=null;var b=B.p;B.p=2;var A=Wt;Wt|=4;try{DR(s,u.alternate,u)}finally{Wt=A,B.p=b,H.T=p}}mr=3}}function aM(){if(mr===4||mr===3){mr=0,me();var s=al,u=nf,p=rf,b=WR;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?mr=5:(mr=0,nf=al=null,oM(s,s.pendingLanes));var A=s.pendingLanes;if(A===0&&(il=null),pn(p),u=u.stateNode,je&&typeof je.onCommitFiberRoot=="function")try{je.onCommitFiberRoot(Me,u,void 0,(u.current.flags&128)===128)}catch{}if(b!==null){u=H.T,A=B.p,B.p=2,H.T=null;try{for(var N=s.onRecoverableError,re=0;re<b.length;re++){var ce=b[re];N(ce.value,{componentStack:ce.stack})}}finally{H.T=u,B.p=A}}(rf&3)!==0&&Tg(),Ya(s),A=s.pendingLanes,(p&4194090)!==0&&(A&42)!==0?s===ux?zh++:(zh=0,ux=s):zh=0,Fh(0)}}function oM(s,u){(s.pooledCacheLanes&=u)===0&&(u=s.pooledCache,u!=null&&(s.pooledCache=null,xh(u)))}function Tg(s){return rM(),iM(),aM(),sM()}function sM(){if(mr!==5)return!1;var s=al,u=sx;sx=0;var p=pn(rf),b=H.T,A=B.p;try{B.p=32>p?32:p,H.T=null,p=lx,lx=null;var N=al,re=rf;if(mr=0,nf=al=null,rf=0,(Wt&6)!==0)throw Error(r(331));var ce=Wt;if(Wt|=4,VR(N.current),zR(N,N.current,re,p),Wt=ce,Fh(0,!1),je&&typeof je.onPostCommitFiberRoot=="function")try{je.onPostCommitFiberRoot(Me,N)}catch{}return!0}finally{B.p=A,H.T=b,oM(s,u)}}function lM(s,u,p){u=Lr(p,u),u=z1(s.stateNode,u,2),s=Ks(s,u,2),s!==null&&(Da(s,2),Ya(s))}function en(s,u,p){if(s.tag===3)lM(s,s,p);else for(;u!==null;){if(u.tag===3){lM(u,s,p);break}else if(u.tag===1){var b=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(il===null||!il.has(b))){s=Lr(p,s),p=dR(2),b=Ks(u,p,2),b!==null&&(hR(p,b,u,s),Da(b,2),Ya(b));break}}u=u.return}}function hx(s,u,p){var b=s.pingCache;if(b===null){b=s.pingCache=new QG;var A=new Set;b.set(u,A)}else A=b.get(u),A===void 0&&(A=new Set,b.set(u,A));A.has(p)||(rx=!0,A.add(p),s=rY.bind(null,s,u,p),u.then(s,s))}function rY(s,u,p){var b=s.pingCache;b!==null&&b.delete(u),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,un===s&&(kt&p)===p&&(Pn===4||Pn===3&&(kt&62914560)===kt&&300>we()-ox?(Wt&2)===0&&af(s,0):ix|=p,tf===kt&&(tf=0)),Ya(s)}function uM(s,u){u===0&&(u=ni()),s=qs(s,u),s!==null&&(Da(s,u),Ya(s))}function iY(s){var u=s.memoizedState,p=0;u!==null&&(p=u.retryLane),uM(s,p)}function aY(s,u){var p=0;switch(s.tag){case 13:var b=s.stateNode,A=s.memoizedState;A!==null&&(p=A.retryLane);break;case 19:b=s.stateNode;break;case 22:b=s.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(u),uM(s,p)}function oY(s,u){return ue(s,u)}var Ag=null,sf=null,px=!1,jg=!1,mx=!1,Cu=0;function Ya(s){s!==sf&&s.next===null&&(sf===null?Ag=sf=s:sf=sf.next=s),jg=!0,px||(px=!0,lY())}function Fh(s,u){if(!mx&&jg){mx=!0;do for(var p=!1,b=Ag;b!==null;){if(s!==0){var A=b.pendingLanes;if(A===0)var N=0;else{var re=b.suspendedLanes,ce=b.pingedLanes;N=(1<<31-Ge(42|s)+1)-1,N&=A&~(re&~ce),N=N&201326741?N&201326741|1:N?N|2:0}N!==0&&(p=!0,hM(b,N))}else N=kt,N=Ut(b,b===un?N:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(N&3)===0||xr(b,N)||(p=!0,hM(b,N));b=b.next}while(p);mx=!1}}function sY(){cM()}function cM(){jg=px=!1;var s=0;Cu!==0&&(vY()&&(s=Cu),Cu=0);for(var u=we(),p=null,b=Ag;b!==null;){var A=b.next,N=fM(b,u);N===0?(b.next=null,p===null?Ag=A:p.next=A,A===null&&(sf=p)):(p=b,(s!==0||(N&3)!==0)&&(jg=!0)),b=A}Fh(s)}function fM(s,u){for(var p=s.suspendedLanes,b=s.pingedLanes,A=s.expirationTimes,N=s.pendingLanes&-62914561;0<N;){var re=31-Ge(N),ce=1<<re,ge=A[re];ge===-1?((ce&p)===0||(ce&b)!==0)&&(A[re]=Vn(ce,u)):ge<=u&&(s.expiredLanes|=ce),N&=~ce}if(u=un,p=kt,p=Ut(s,s===u?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b=s.callbackNode,p===0||s===u&&(Gt===2||Gt===9)||s.cancelPendingCommit!==null)return b!==null&&b!==null&&pe(b),s.callbackNode=null,s.callbackPriority=0;if((p&3)===0||xr(s,p)){if(u=p&-p,u===s.callbackPriority)return u;switch(b!==null&&pe(b),pn(p)){case 2:case 8:p=ze;break;case 32:p=$e;break;case 268435456:p=_e;break;default:p=$e}return b=dM.bind(null,s),p=ue(p,b),s.callbackPriority=u,s.callbackNode=p,u}return b!==null&&b!==null&&pe(b),s.callbackPriority=2,s.callbackNode=null,2}function dM(s,u){if(mr!==0&&mr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var p=s.callbackNode;if(Tg()&&s.callbackNode!==p)return null;var b=kt;return b=Ut(s,s===un?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b===0?null:(YR(s,b,u),fM(s,we()),s.callbackNode!=null&&s.callbackNode===p?dM.bind(null,s):null)}function hM(s,u){if(Tg())return null;YR(s,u,!0)}function lY(){yY(function(){(Wt&6)!==0?ue(Le,sY):cM()})}function vx(){return Cu===0&&(Cu=xs()),Cu}function pM(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Ps(""+s)}function mM(s,u){var p=u.ownerDocument.createElement("input");return p.name=u.name,p.value=u.value,s.id&&p.setAttribute("form",s.id),u.parentNode.insertBefore(p,u),s=new FormData(s),p.parentNode.removeChild(p),s}function uY(s,u,p,b,A){if(u==="submit"&&p&&p.stateNode===A){var N=pM((A[an]||null).action),re=b.submitter;re&&(u=(u=re[an]||null)?pM(u.formAction):re.getAttribute("formAction"),u!==null&&(N=u,re=null));var ce=new au("action","action",null,b,A);s.push({event:ce,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Cu!==0){var ge=re?mM(A,re):new FormData(A);k1(p,{pending:!0,data:ge,method:A.method,action:N},null,ge)}}else typeof N=="function"&&(ce.preventDefault(),ge=re?mM(A,re):new FormData(A),k1(p,{pending:!0,data:ge,method:A.method,action:N},N,ge))},currentTarget:A}]})}}for(var gx=0;gx<No.length;gx++){var yx=No[gx],cY=yx.toLowerCase(),fY=yx[0].toUpperCase()+yx.slice(1);li(cY,"on"+fY)}li(Gv,"onAnimationEnd"),li(si,"onAnimationIteration"),li(du,"onAnimationStart"),li("dblclick","onDoubleClick"),li("focusin","onFocus"),li("focusout","onBlur"),li(f1,"onTransitionRun"),li(Uc,"onTransitionStart"),li(d1,"onTransitionCancel"),li(yh,"onTransitionEnd"),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),_o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_o("onBeforeInput",["compositionend","keypress","textInput","paste"]),_o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qh="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(" "),dY=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qh));function vM(s,u){u=(u&4)!==0;for(var p=0;p<s.length;p++){var b=s[p],A=b.event;b=b.listeners;e:{var N=void 0;if(u)for(var re=b.length-1;0<=re;re--){var ce=b[re],ge=ce.instance,Ae=ce.currentTarget;if(ce=ce.listener,ge!==N&&A.isPropagationStopped())break e;N=ce,A.currentTarget=Ae;try{N(A)}catch(Be){vg(Be)}A.currentTarget=null,N=ge}else for(re=0;re<b.length;re++){if(ce=b[re],ge=ce.instance,Ae=ce.currentTarget,ce=ce.listener,ge!==N&&A.isPropagationStopped())break e;N=ce,A.currentTarget=Ae;try{N(A)}catch(Be){vg(Be)}A.currentTarget=null,N=ge}}}}function Pt(s,u){var p=u[Ln];p===void 0&&(p=u[Ln]=new Set);var b=s+"__bubble";p.has(b)||(gM(u,s,2,!1),p.add(b))}function bx(s,u,p){var b=0;u&&(b|=4),gM(p,s,b,u)}var Pg="_reactListening"+Math.random().toString(36).slice(2);function _x(s){if(!s[Pg]){s[Pg]=!0,Tv.forEach(function(p){p!=="selectionchange"&&(dY.has(p)||bx(p,!1,s),bx(p,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[Pg]||(u[Pg]=!0,bx("selectionchange",!1,u))}}function gM(s,u,p,b){switch(zM(u)){case 2:var A=BY;break;case 8:A=UY;break;default:A=Lx}p=A.bind(null,u,p,s),A=void 0,!iu||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(A=!0),b?A!==void 0?s.addEventListener(u,p,{capture:!0,passive:A}):s.addEventListener(u,p,!0):A!==void 0?s.addEventListener(u,p,{passive:A}):s.addEventListener(u,p,!1)}function xx(s,u,p,b,A){var N=b;if((u&1)===0&&(u&2)===0&&b!==null)e:for(;;){if(b===null)return;var re=b.tag;if(re===3||re===4){var ce=b.stateNode.containerInfo;if(ce===A)break;if(re===4)for(re=b.return;re!==null;){var ge=re.tag;if((ge===3||ge===4)&&re.stateNode.containerInfo===A)return;re=re.return}for(;ce!==null;){if(re=Ia(ce),re===null)return;if(ge=re.tag,ge===5||ge===6||ge===26||ge===27){b=N=re;continue e}ce=ce.parentNode}}b=b.return}ri(function(){var Ae=N,Be=Rs(p),Ve=[];e:{var Pe=Yv.get(s);if(Pe!==void 0){var Re=au,vt=s;switch(s){case"keypress":if(jn(p)===0)break e;case"keydown":case"keyup":Re=r1;break;case"focusin":vt="focus",Re=lh;break;case"focusout":vt="blur",Re=lh;break;case"beforeblur":case"afterblur":Re=lh;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=Ls;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=Q_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=a1;break;case Gv:case si:case du:Re=J_;break;case yh:Re=o1;break;case"scroll":case"scrollend":Re=X_;break;case"wheel":Re=$v;break;case"copy":case"cut":case"paste":Re=uh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=fh;break;case"toggle":case"beforetoggle":Re=jo}var ft=(u&4)!==0,Xt=!ft&&(s==="scroll"||s==="scrollend"),Oe=ft?Pe!==null?Pe+"Capture":null:Pe;ft=[];for(var xe=Ae,Ce;xe!==null;){var Ue=xe;if(Ce=Ue.stateNode,Ue=Ue.tag,Ue!==5&&Ue!==26&&Ue!==27||Ce===null||Oe===null||(Ue=zt(xe,Oe),Ue!=null&&ft.push(Vh(xe,Ue,Ce))),Xt)break;xe=xe.return}0<ft.length&&(Pe=new Re(Pe,vt,null,p,Be),Ve.push({event:Pe,listeners:ft}))}}if((u&7)===0){e:{if(Pe=s==="mouseover"||s==="pointerover",Re=s==="mouseout"||s==="pointerout",Pe&&p!==ru&&(vt=p.relatedTarget||p.fromElement)&&(Ia(vt)||vt[Jn]))break e;if((Re||Pe)&&(Pe=Be.window===Be?Be:(Pe=Be.ownerDocument)?Pe.defaultView||Pe.parentWindow:window,Re?(vt=p.relatedTarget||p.toElement,Re=Ae,vt=vt?Ia(vt):null,vt!==null&&(Xt=a(vt),ft=vt.tag,vt!==Xt||ft!==5&&ft!==27&&ft!==6)&&(vt=null)):(Re=null,vt=Ae),Re!==vt)){if(ft=Ls,Ue="onMouseLeave",Oe="onMouseEnter",xe="mouse",(s==="pointerout"||s==="pointerover")&&(ft=fh,Ue="onPointerLeave",Oe="onPointerEnter",xe="pointer"),Xt=Re==null?Pe:Mi(Re),Ce=vt==null?Pe:Mi(vt),Pe=new ft(Ue,xe+"leave",Re,p,Be),Pe.target=Xt,Pe.relatedTarget=Ce,Ue=null,Ia(Be)===Ae&&(ft=new ft(Oe,xe+"enter",vt,p,Be),ft.target=Ce,ft.relatedTarget=Xt,Ue=ft),Xt=Ue,Re&&vt)t:{for(ft=Re,Oe=vt,xe=0,Ce=ft;Ce;Ce=lf(Ce))xe++;for(Ce=0,Ue=Oe;Ue;Ue=lf(Ue))Ce++;for(;0<xe-Ce;)ft=lf(ft),xe--;for(;0<Ce-xe;)Oe=lf(Oe),Ce--;for(;xe--;){if(ft===Oe||Oe!==null&&ft===Oe.alternate)break t;ft=lf(ft),Oe=lf(Oe)}ft=null}else ft=null;Re!==null&&yM(Ve,Pe,Re,ft,!1),vt!==null&&Xt!==null&&yM(Ve,Xt,vt,ft,!0)}}e:{if(Pe=Ae?Mi(Ae):window,Re=Pe.nodeName&&Pe.nodeName.toLowerCase(),Re==="select"||Re==="input"&&Pe.type==="file")var rt=Is;else if(Ro(Pe))if(ph)rt=c1;else{rt=u1;var At=vh}else Re=Pe.nodeName,!Re||Re.toLowerCase()!=="input"||Pe.type!=="checkbox"&&Pe.type!=="radio"?Ae&&nu(Ae.elementType)&&(rt=Is):rt=ca;if(rt&&(rt=rt(s,Ae))){qv(Ve,rt,p,Be);break e}At&&At(s,Pe,Ae),s==="focusout"&&Ae&&Pe.type==="number"&&Ae.memoizedProps.value!=null&&As(Pe,"number",Pe.value)}switch(At=Ae?Mi(Ae):window,s){case"focusin":(Ro(At)||At.contentEditable==="true")&&(oi=At,Us=Ae,Mo=null);break;case"focusout":Mo=Us=oi=null;break;case"mousedown":$c=!0;break;case"contextmenu":case"mouseup":case"dragend":$c=!1,Hv(Ve,p,Be);break;case"selectionchange":if(Ic)break;case"keydown":case"keyup":Hv(Ve,p,Be)}var ut;if(Po)e:{switch(s){case"compositionstart":var pt="onCompositionStart";break e;case"compositionend":pt="onCompositionEnd";break e;case"compositionupdate":pt="onCompositionUpdate";break e}pt=void 0}else Ds?Lc(s,p)&&(pt="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(pt="onCompositionStart");pt&&(hh&&p.locale!=="ko"&&(Ds||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&Ds&&(ut=Ns()):(Di=Be,la="value"in Di?Di.value:Di.textContent,Ds=!0)),At=Rg(Ae,pt),0<At.length&&(pt=new ii(pt,s,null,p,Be),Ve.push({event:pt,listeners:At}),ut?pt.data=ut:(ut=zv(p),ut!==null&&(pt.data=ut)))),(ut=Bv?Fv(s,p):l1(s,p))&&(pt=Rg(Ae,"onBeforeInput"),0<pt.length&&(At=new ii("onBeforeInput","beforeinput",null,p,Be),Ve.push({event:At,listeners:pt}),At.data=ut)),uY(Ve,s,Ae,p,Be)}vM(Ve,u)})}function Vh(s,u,p){return{instance:s,listener:u,currentTarget:p}}function Rg(s,u){for(var p=u+"Capture",b=[];s!==null;){var A=s,N=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||N===null||(A=zt(s,p),A!=null&&b.unshift(Vh(s,A,N)),A=zt(s,u),A!=null&&b.push(Vh(s,A,N))),s.tag===3)return b;s=s.return}return[]}function lf(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function yM(s,u,p,b,A){for(var N=u._reactName,re=[];p!==null&&p!==b;){var ce=p,ge=ce.alternate,Ae=ce.stateNode;if(ce=ce.tag,ge!==null&&ge===b)break;ce!==5&&ce!==26&&ce!==27||Ae===null||(ge=Ae,A?(Ae=zt(p,N),Ae!=null&&re.unshift(Vh(p,Ae,ge))):A||(Ae=zt(p,N),Ae!=null&&re.push(Vh(p,Ae,ge)))),p=p.return}re.length!==0&&s.push({event:u,listeners:re})}var hY=/\r\n?/g,pY=/\u0000|\uFFFD/g;function bM(s){return(typeof s=="string"?s:""+s).replace(hY,`
|
||
`).replace(pY,"")}function _M(s,u){return u=bM(u),bM(s)===u}function Mg(){}function Zt(s,u,p,b,A,N){switch(p){case"children":typeof b=="string"?u==="body"||u==="textarea"&&b===""||Ni(s,b):(typeof b=="number"||typeof b=="bigint")&&u!=="body"&&Ni(s,""+b);break;case"className":Cc(s,"class",b);break;case"tabIndex":Cc(s,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Cc(s,p,b);break;case"style":js(s,b,N);break;case"data":if(u!=="object"){Cc(s,"data",b);break}case"src":case"href":if(b===""&&(u!=="a"||p!=="href")){s.removeAttribute(p);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(p);break}b=Ps(""+b),s.setAttribute(p,b);break;case"action":case"formAction":if(typeof b=="function"){s.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof N=="function"&&(p==="formAction"?(u!=="input"&&Zt(s,u,"name",A.name,A,null),Zt(s,u,"formEncType",A.formEncType,A,null),Zt(s,u,"formMethod",A.formMethod,A,null),Zt(s,u,"formTarget",A.formTarget,A,null)):(Zt(s,u,"encType",A.encType,A,null),Zt(s,u,"method",A.method,A,null),Zt(s,u,"target",A.target,A,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(p);break}b=Ps(""+b),s.setAttribute(p,b);break;case"onClick":b!=null&&(s.onclick=Mg);break;case"onScroll":b!=null&&Pt("scroll",s);break;case"onScrollEnd":b!=null&&Pt("scrollend",s);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(p=b.__html,p!=null){if(A.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"multiple":s.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":s.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){s.removeAttribute("xlink:href");break}p=Ps(""+b),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,""+b):s.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":b&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,""):s.removeAttribute(p);break;case"capture":case"download":b===!0?s.setAttribute(p,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,b):s.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?s.setAttribute(p,b):s.removeAttribute(p);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?s.removeAttribute(p):s.setAttribute(p,b);break;case"popover":Pt("beforetoggle",s),Pt("toggle",s),Ec(s,"popover",b);break;case"xlinkActuate":sa(s,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":sa(s,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":sa(s,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":sa(s,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":sa(s,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":sa(s,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":sa(s,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":sa(s,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":sa(s,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":Ec(s,"is",b);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=ah.get(p)||p,Ec(s,p,b))}}function wx(s,u,p,b,A,N){switch(p){case"style":js(s,b,N);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(p=b.__html,p!=null){if(A.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"children":typeof b=="string"?Ni(s,b):(typeof b=="number"||typeof b=="bigint")&&Ni(s,""+b);break;case"onScroll":b!=null&&Pt("scroll",s);break;case"onScrollEnd":b!=null&&Pt("scrollend",s);break;case"onClick":b!=null&&(s.onclick=Mg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Av.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(A=p.endsWith("Capture"),u=p.slice(2,A?p.length-7:void 0),N=s[an]||null,N=N!=null?N[p]:null,typeof N=="function"&&s.removeEventListener(u,N,A),typeof b=="function")){typeof N!="function"&&N!==null&&(p in s?s[p]=null:s.hasAttribute(p)&&s.removeAttribute(p)),s.addEventListener(u,b,A);break e}p in s?s[p]=b:b===!0?s.setAttribute(p,""):Ec(s,p,b)}}}function vr(s,u,p){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",s),Pt("load",s);var b=!1,A=!1,N;for(N in p)if(p.hasOwnProperty(N)){var re=p[N];if(re!=null)switch(N){case"src":b=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Zt(s,u,N,re,p,null)}}A&&Zt(s,u,"srcSet",p.srcSet,p,null),b&&Zt(s,u,"src",p.src,p,null);return;case"input":Pt("invalid",s);var ce=N=re=A=null,ge=null,Ae=null;for(b in p)if(p.hasOwnProperty(b)){var Be=p[b];if(Be!=null)switch(b){case"name":A=Be;break;case"type":re=Be;break;case"checked":ge=Be;break;case"defaultChecked":Ae=Be;break;case"value":N=Be;break;case"defaultValue":ce=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(r(137,u));break;default:Zt(s,u,b,Be,p,null)}}Pv(s,N,ce,ge,Ae,re,A,!1),Ts(s);return;case"select":Pt("invalid",s),b=re=N=null;for(A in p)if(p.hasOwnProperty(A)&&(ce=p[A],ce!=null))switch(A){case"value":N=ce;break;case"defaultValue":re=ce;break;case"multiple":b=ce;default:Zt(s,u,A,ce,p,null)}u=N,p=re,s.multiple=!!b,u!=null?Wr(s,!!b,u,!1):p!=null&&Wr(s,!!b,p,!0);return;case"textarea":Pt("invalid",s),N=A=b=null;for(re in p)if(p.hasOwnProperty(re)&&(ce=p[re],ce!=null))switch(re){case"value":b=ce;break;case"defaultValue":A=ce;break;case"children":N=ce;break;case"dangerouslySetInnerHTML":if(ce!=null)throw Error(r(91));break;default:Zt(s,u,re,ce,p,null)}$a(s,b,A,N),Ts(s);return;case"option":for(ge in p)if(p.hasOwnProperty(ge)&&(b=p[ge],b!=null))switch(ge){case"selected":s.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Zt(s,u,ge,b,p,null)}return;case"dialog":Pt("beforetoggle",s),Pt("toggle",s),Pt("cancel",s),Pt("close",s);break;case"iframe":case"object":Pt("load",s);break;case"video":case"audio":for(b=0;b<qh.length;b++)Pt(qh[b],s);break;case"image":Pt("error",s),Pt("load",s);break;case"details":Pt("toggle",s);break;case"embed":case"source":case"link":Pt("error",s),Pt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ae in p)if(p.hasOwnProperty(Ae)&&(b=p[Ae],b!=null))switch(Ae){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Zt(s,u,Ae,b,p,null)}return;default:if(nu(u)){for(Be in p)p.hasOwnProperty(Be)&&(b=p[Be],b!==void 0&&wx(s,u,Be,b,p,void 0));return}}for(ce in p)p.hasOwnProperty(ce)&&(b=p[ce],b!=null&&Zt(s,u,ce,b,p,null))}function mY(s,u,p,b){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,N=null,re=null,ce=null,ge=null,Ae=null,Be=null;for(Re in p){var Ve=p[Re];if(p.hasOwnProperty(Re)&&Ve!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":ge=Ve;default:b.hasOwnProperty(Re)||Zt(s,u,Re,null,b,Ve)}}for(var Pe in b){var Re=b[Pe];if(Ve=p[Pe],b.hasOwnProperty(Pe)&&(Re!=null||Ve!=null))switch(Pe){case"type":N=Re;break;case"name":A=Re;break;case"checked":Ae=Re;break;case"defaultChecked":Be=Re;break;case"value":re=Re;break;case"defaultValue":ce=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,u));break;default:Re!==Ve&&Zt(s,u,Pe,Re,b,Ve)}}wr(s,re,ce,ge,Ae,Be,N,A);return;case"select":Re=re=ce=Pe=null;for(N in p)if(ge=p[N],p.hasOwnProperty(N)&&ge!=null)switch(N){case"value":break;case"multiple":Re=ge;default:b.hasOwnProperty(N)||Zt(s,u,N,null,b,ge)}for(A in b)if(N=b[A],ge=p[A],b.hasOwnProperty(A)&&(N!=null||ge!=null))switch(A){case"value":Pe=N;break;case"defaultValue":ce=N;break;case"multiple":re=N;default:N!==ge&&Zt(s,u,A,N,b,ge)}u=ce,p=re,b=Re,Pe!=null?Wr(s,!!p,Pe,!1):!!b!=!!p&&(u!=null?Wr(s,!!p,u,!0):Wr(s,!!p,p?[]:"",!1));return;case"textarea":Re=Pe=null;for(ce in p)if(A=p[ce],p.hasOwnProperty(ce)&&A!=null&&!b.hasOwnProperty(ce))switch(ce){case"value":break;case"children":break;default:Zt(s,u,ce,null,b,A)}for(re in b)if(A=b[re],N=p[re],b.hasOwnProperty(re)&&(A!=null||N!=null))switch(re){case"value":Pe=A;break;case"defaultValue":Re=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:A!==N&&Zt(s,u,re,A,b,N)}Sn(s,Pe,Re);return;case"option":for(var vt in p)if(Pe=p[vt],p.hasOwnProperty(vt)&&Pe!=null&&!b.hasOwnProperty(vt))switch(vt){case"selected":s.selected=!1;break;default:Zt(s,u,vt,null,b,Pe)}for(ge in b)if(Pe=b[ge],Re=p[ge],b.hasOwnProperty(ge)&&Pe!==Re&&(Pe!=null||Re!=null))switch(ge){case"selected":s.selected=Pe&&typeof Pe!="function"&&typeof Pe!="symbol";break;default:Zt(s,u,ge,Pe,b,Re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ft in p)Pe=p[ft],p.hasOwnProperty(ft)&&Pe!=null&&!b.hasOwnProperty(ft)&&Zt(s,u,ft,null,b,Pe);for(Ae in b)if(Pe=b[Ae],Re=p[Ae],b.hasOwnProperty(Ae)&&Pe!==Re&&(Pe!=null||Re!=null))switch(Ae){case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,u));break;default:Zt(s,u,Ae,Pe,b,Re)}return;default:if(nu(u)){for(var Xt in p)Pe=p[Xt],p.hasOwnProperty(Xt)&&Pe!==void 0&&!b.hasOwnProperty(Xt)&&wx(s,u,Xt,void 0,b,Pe);for(Be in b)Pe=b[Be],Re=p[Be],!b.hasOwnProperty(Be)||Pe===Re||Pe===void 0&&Re===void 0||wx(s,u,Be,Pe,b,Re);return}}for(var Oe in p)Pe=p[Oe],p.hasOwnProperty(Oe)&&Pe!=null&&!b.hasOwnProperty(Oe)&&Zt(s,u,Oe,null,b,Pe);for(Ve in b)Pe=b[Ve],Re=p[Ve],!b.hasOwnProperty(Ve)||Pe===Re||Pe==null&&Re==null||Zt(s,u,Ve,Pe,b,Re)}var Sx=null,Ox=null;function Ng(s){return s.nodeType===9?s:s.ownerDocument}function xM(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wM(s,u){if(s===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&u==="foreignObject"?0:s}function Ex(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Cx=null;function vY(){var s=window.event;return s&&s.type==="popstate"?s===Cx?!1:(Cx=s,!0):(Cx=null,!1)}var SM=typeof setTimeout=="function"?setTimeout:void 0,gY=typeof clearTimeout=="function"?clearTimeout:void 0,OM=typeof Promise=="function"?Promise:void 0,yY=typeof queueMicrotask=="function"?queueMicrotask:typeof OM<"u"?function(s){return OM.resolve(null).then(s).catch(bY)}:SM;function bY(s){setTimeout(function(){throw s})}function sl(s){return s==="head"}function EM(s,u){var p=u,b=0,A=0;do{var N=p.nextSibling;if(s.removeChild(p),N&&N.nodeType===8)if(p=N.data,p==="/$"){if(0<b&&8>b){p=b;var re=s.ownerDocument;if(p&1&&Hh(re.documentElement),p&2&&Hh(re.body),p&4)for(p=re.head,Hh(p),re=p.firstChild;re;){var ce=re.nextSibling,ge=re.nodeName;re[Os]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&re.rel.toLowerCase()==="stylesheet"||p.removeChild(re),re=ce}}if(A===0){s.removeChild(N),Jh(u);return}A--}else p==="$"||p==="$?"||p==="$!"?A++:b=p.charCodeAt(0)-48;else b=0;p=N}while(p);Jh(u)}function Tx(s){var u=s.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var p=u;switch(u=u.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":Tx(p),Oc(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}s.removeChild(p)}}function _Y(s,u,p,b){for(;s.nodeType===1;){var A=p;if(s.nodeName.toLowerCase()!==u.toLowerCase()){if(!b&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(b){if(!s[Os])switch(u){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(N=s.getAttribute("rel"),N==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(N!==A.rel||s.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||s.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||s.getAttribute("title")!==(A.title==null?null:A.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(N=s.getAttribute("src"),(N!==(A.src==null?null:A.src)||s.getAttribute("type")!==(A.type==null?null:A.type)||s.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&N&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(u==="input"&&s.type==="hidden"){var N=A.name==null?null:""+A.name;if(A.type==="hidden"&&s.getAttribute("name")===N)return s}else return s;if(s=pa(s.nextSibling),s===null)break}return null}function xY(s,u,p){if(u==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!p||(s=pa(s.nextSibling),s===null))return null;return s}function Ax(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function wY(s,u){var p=s.ownerDocument;if(s.data!=="$?"||p.readyState==="complete")u();else{var b=function(){u(),p.removeEventListener("DOMContentLoaded",b)};p.addEventListener("DOMContentLoaded",b),s._reactRetry=b}}function pa(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?"||u==="F!"||u==="F")break;if(u==="/$")return null}}return s}var jx=null;function CM(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(u===0)return s;u--}else p==="/$"&&u++}s=s.previousSibling}return null}function TM(s,u,p){switch(u=Ng(p),s){case"html":if(s=u.documentElement,!s)throw Error(r(452));return s;case"head":if(s=u.head,!s)throw Error(r(453));return s;case"body":if(s=u.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Hh(s){for(var u=s.attributes;u.length;)s.removeAttributeNode(u[0]);Oc(s)}var Fi=new Map,AM=new Set;function Lg(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Ho=B.d;B.d={f:SY,r:OY,D:EY,C:CY,L:TY,m:AY,X:PY,S:jY,M:RY};function SY(){var s=Ho.f(),u=Eg();return s||u}function OY(s){var u=yo(s);u!==null&&u.tag===5&&u.type==="form"?Y4(u):Ho.r(s)}var uf=typeof document>"u"?null:document;function jM(s,u,p){var b=uf;if(b&&typeof u=="string"&&u){var A=dr(u);A='link[rel="'+s+'"][href="'+A+'"]',typeof p=="string"&&(A+='[crossorigin="'+p+'"]'),AM.has(A)||(AM.add(A),s={rel:s,crossOrigin:p,href:u},b.querySelector(A)===null&&(u=b.createElement("link"),vr(u,"link",s),Bn(u),b.head.appendChild(u)))}}function EY(s){Ho.D(s),jM("dns-prefetch",s,null)}function CY(s,u){Ho.C(s,u),jM("preconnect",s,u)}function TY(s,u,p){Ho.L(s,u,p);var b=uf;if(b&&s&&u){var A='link[rel="preload"][as="'+dr(u)+'"]';u==="image"&&p&&p.imageSrcSet?(A+='[imagesrcset="'+dr(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(A+='[imagesizes="'+dr(p.imageSizes)+'"]')):A+='[href="'+dr(s)+'"]';var N=A;switch(u){case"style":N=cf(s);break;case"script":N=ff(s)}Fi.has(N)||(s=h({rel:"preload",href:u==="image"&&p&&p.imageSrcSet?void 0:s,as:u},p),Fi.set(N,s),b.querySelector(A)!==null||u==="style"&&b.querySelector(Wh(N))||u==="script"&&b.querySelector(Gh(N))||(u=b.createElement("link"),vr(u,"link",s),Bn(u),b.head.appendChild(u)))}}function AY(s,u){Ho.m(s,u);var p=uf;if(p&&s){var b=u&&typeof u.as=="string"?u.as:"script",A='link[rel="modulepreload"][as="'+dr(b)+'"][href="'+dr(s)+'"]',N=A;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":N=ff(s)}if(!Fi.has(N)&&(s=h({rel:"modulepreload",href:s},u),Fi.set(N,s),p.querySelector(A)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(Gh(N)))return}b=p.createElement("link"),vr(b,"link",s),Bn(b),p.head.appendChild(b)}}}function jY(s,u,p){Ho.S(s,u,p);var b=uf;if(b&&s){var A=bo(b).hoistableStyles,N=cf(s);u=u||"default";var re=A.get(N);if(!re){var ce={loading:0,preload:null};if(re=b.querySelector(Wh(N)))ce.loading=5;else{s=h({rel:"stylesheet",href:s,"data-precedence":u},p),(p=Fi.get(N))&&Px(s,p);var ge=re=b.createElement("link");Bn(ge),vr(ge,"link",s),ge._p=new Promise(function(Ae,Be){ge.onload=Ae,ge.onerror=Be}),ge.addEventListener("load",function(){ce.loading|=1}),ge.addEventListener("error",function(){ce.loading|=2}),ce.loading|=4,Dg(re,u,b)}re={type:"stylesheet",instance:re,count:1,state:ce},A.set(N,re)}}}function PY(s,u){Ho.X(s,u);var p=uf;if(p&&s){var b=bo(p).hoistableScripts,A=ff(s),N=b.get(A);N||(N=p.querySelector(Gh(A)),N||(s=h({src:s,async:!0},u),(u=Fi.get(A))&&Rx(s,u),N=p.createElement("script"),Bn(N),vr(N,"link",s),p.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},b.set(A,N))}}function RY(s,u){Ho.M(s,u);var p=uf;if(p&&s){var b=bo(p).hoistableScripts,A=ff(s),N=b.get(A);N||(N=p.querySelector(Gh(A)),N||(s=h({src:s,async:!0,type:"module"},u),(u=Fi.get(A))&&Rx(s,u),N=p.createElement("script"),Bn(N),vr(N,"link",s),p.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},b.set(A,N))}}function PM(s,u,p,b){var A=(A=de.current)?Lg(A):null;if(!A)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(u=cf(p.href),p=bo(A).hoistableStyles,b=p.get(u),b||(b={type:"style",instance:null,count:0,state:null},p.set(u,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=cf(p.href);var N=bo(A).hoistableStyles,re=N.get(s);if(re||(A=A.ownerDocument||A,re={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},N.set(s,re),(N=A.querySelector(Wh(s)))&&!N._p&&(re.instance=N,re.state.loading=5),Fi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Fi.set(s,p),N||MY(A,s,p,re.state))),u&&b===null)throw Error(r(528,""));return re}if(u&&b!==null)throw Error(r(529,""));return null;case"script":return u=p.async,p=p.src,typeof p=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=ff(p),p=bo(A).hoistableScripts,b=p.get(u),b||(b={type:"script",instance:null,count:0,state:null},p.set(u,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function cf(s){return'href="'+dr(s)+'"'}function Wh(s){return'link[rel="stylesheet"]['+s+"]"}function RM(s){return h({},s,{"data-precedence":s.precedence,precedence:null})}function MY(s,u,p,b){s.querySelector('link[rel="preload"][as="style"]['+u+"]")?b.loading=1:(u=s.createElement("link"),b.preload=u,u.addEventListener("load",function(){return b.loading|=1}),u.addEventListener("error",function(){return b.loading|=2}),vr(u,"link",p),Bn(u),s.head.appendChild(u))}function ff(s){return'[src="'+dr(s)+'"]'}function Gh(s){return"script[async]"+s}function MM(s,u,p){if(u.count++,u.instance===null)switch(u.type){case"style":var b=s.querySelector('style[data-href~="'+dr(p.href)+'"]');if(b)return u.instance=b,Bn(b),b;var A=h({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return b=(s.ownerDocument||s).createElement("style"),Bn(b),vr(b,"style",A),Dg(b,p.precedence,s),u.instance=b;case"stylesheet":A=cf(p.href);var N=s.querySelector(Wh(A));if(N)return u.state.loading|=4,u.instance=N,Bn(N),N;b=RM(p),(A=Fi.get(A))&&Px(b,A),N=(s.ownerDocument||s).createElement("link"),Bn(N);var re=N;return re._p=new Promise(function(ce,ge){re.onload=ce,re.onerror=ge}),vr(N,"link",b),u.state.loading|=4,Dg(N,p.precedence,s),u.instance=N;case"script":return N=ff(p.src),(A=s.querySelector(Gh(N)))?(u.instance=A,Bn(A),A):(b=p,(A=Fi.get(N))&&(b=h({},p),Rx(b,A)),s=s.ownerDocument||s,A=s.createElement("script"),Bn(A),vr(A,"link",b),s.head.appendChild(A),u.instance=A);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(b=u.instance,u.state.loading|=4,Dg(b,p.precedence,s));return u.instance}function Dg(s,u,p){for(var b=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=b.length?b[b.length-1]:null,N=A,re=0;re<b.length;re++){var ce=b[re];if(ce.dataset.precedence===u)N=ce;else if(N!==A)break}N?N.parentNode.insertBefore(s,N.nextSibling):(u=p.nodeType===9?p.head:p,u.insertBefore(s,u.firstChild))}function Px(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.title==null&&(s.title=u.title)}function Rx(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.integrity==null&&(s.integrity=u.integrity)}var kg=null;function NM(s,u,p){if(kg===null){var b=new Map,A=kg=new Map;A.set(p,b)}else A=kg,b=A.get(p),b||(b=new Map,A.set(p,b));if(b.has(s))return b;for(b.set(s,null),p=p.getElementsByTagName(s),A=0;A<p.length;A++){var N=p[A];if(!(N[Os]||N[Nt]||s==="link"&&N.getAttribute("rel")==="stylesheet")&&N.namespaceURI!=="http://www.w3.org/2000/svg"){var re=N.getAttribute(u)||"";re=s+re;var ce=b.get(re);ce?ce.push(N):b.set(re,[N])}}return b}function LM(s,u,p){s=s.ownerDocument||s,s.head.insertBefore(p,u==="title"?s.querySelector("head > title"):null)}function NY(s,u,p){if(p===1||u.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return s=u.disabled,typeof u.precedence=="string"&&s==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function DM(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Yh=null;function LY(){}function DY(s,u,p){if(Yh===null)throw Error(r(475));var b=Yh;if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var A=cf(p.href),N=s.querySelector(Wh(A));if(N){s=N._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(b.count++,b=Ig.bind(b),s.then(b,b)),u.state.loading|=4,u.instance=N,Bn(N);return}N=s.ownerDocument||s,p=RM(p),(A=Fi.get(A))&&Px(p,A),N=N.createElement("link"),Bn(N);var re=N;re._p=new Promise(function(ce,ge){re.onload=ce,re.onerror=ge}),vr(N,"link",p),u.instance=N}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(b.count++,u=Ig.bind(b),s.addEventListener("load",u),s.addEventListener("error",u))}}function kY(){if(Yh===null)throw Error(r(475));var s=Yh;return s.stylesheets&&s.count===0&&Mx(s,s.stylesheets),0<s.count?function(u){var p=setTimeout(function(){if(s.stylesheets&&Mx(s,s.stylesheets),s.unsuspend){var b=s.unsuspend;s.unsuspend=null,b()}},6e4);return s.unsuspend=u,function(){s.unsuspend=null,clearTimeout(p)}}:null}function Ig(){if(this.count--,this.count===0){if(this.stylesheets)Mx(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var $g=null;function Mx(s,u){s.stylesheets=null,s.unsuspend!==null&&(s.count++,$g=new Map,u.forEach(IY,s),$g=null,Ig.call(s))}function IY(s,u){if(!(u.state.loading&4)){var p=$g.get(s);if(p)var b=p.get(null);else{p=new Map,$g.set(s,p);for(var A=s.querySelectorAll("link[data-precedence],style[data-precedence]"),N=0;N<A.length;N++){var re=A[N];(re.nodeName==="LINK"||re.getAttribute("media")!=="not all")&&(p.set(re.dataset.precedence,re),b=re)}b&&p.set(null,b)}A=u.instance,re=A.getAttribute("data-precedence"),N=p.get(re)||b,N===b&&p.set(null,A),p.set(re,A),this.count++,b=Ig.bind(this),A.addEventListener("load",b),A.addEventListener("error",b),N?N.parentNode.insertBefore(A,N.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(A,s.firstChild)),u.state.loading|=4}}var Kh={$$typeof:T,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function $Y(s,u,p,b,A,N,re,ce){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ws(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ws(0),this.hiddenUpdates=ws(null),this.identifierPrefix=b,this.onUncaughtError=A,this.onCaughtError=N,this.onRecoverableError=re,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ce,this.incompleteTransitions=new Map}function kM(s,u,p,b,A,N,re,ce,ge,Ae,Be,Ve){return s=new $Y(s,u,p,re,ce,ge,Ae,Ve),u=1,N===!0&&(u|=24),N=kr(3,null,null,u),s.current=N,N.stateNode=s,u=h1(),u.refCount++,s.pooledCache=u,u.refCount++,N.memoizedState={element:b,isDehydrated:p,cache:u},g1(N),s}function IM(s){return s?(s=ko,s):ko}function $M(s,u,p,b,A,N){A=IM(A),b.context===null?b.context=A:b.pendingContext=A,b=Ys(u),b.payload={element:p},N=N===void 0?null:N,N!==null&&(b.callback=N),p=Ks(s,b,u),p!==null&&(pi(p,s,u),Eh(p,s,u))}function BM(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<u?p:u}}function Nx(s,u){BM(s,u),(s=s.alternate)&&BM(s,u)}function UM(s){if(s.tag===13){var u=qs(s,67108864);u!==null&&pi(u,s,67108864),Nx(s,67108864)}}var Bg=!0;function BY(s,u,p,b){var A=H.T;H.T=null;var N=B.p;try{B.p=2,Lx(s,u,p,b)}finally{B.p=N,H.T=A}}function UY(s,u,p,b){var A=H.T;H.T=null;var N=B.p;try{B.p=8,Lx(s,u,p,b)}finally{B.p=N,H.T=A}}function Lx(s,u,p,b){if(Bg){var A=Dx(b);if(A===null)xx(s,u,b,Ug,p),FM(s,b);else if(FY(A,s,u,p,b))b.stopPropagation();else if(FM(s,b),u&4&&-1<zY.indexOf(s)){for(;A!==null;){var N=yo(A);if(N!==null)switch(N.tag){case 3:if(N=N.stateNode,N.current.memoizedState.isDehydrated){var re=Bt(N.pendingLanes);if(re!==0){var ce=N;for(ce.pendingLanes|=2,ce.entangledLanes|=2;re;){var ge=1<<31-Ge(re);ce.entanglements[1]|=ge,re&=~ge}Ya(N),(Wt&6)===0&&(Sg=we()+500,Fh(0))}}break;case 13:ce=qs(N,2),ce!==null&&pi(ce,N,2),Eg(),Nx(N,2)}if(N=Dx(b),N===null&&xx(s,u,b,Ug,p),N===A)break;A=N}A!==null&&b.stopPropagation()}else xx(s,u,b,null,p)}}function Dx(s){return s=Rs(s),kx(s)}var Ug=null;function kx(s){if(Ug=null,s=Ia(s),s!==null){var u=a(s);if(u===null)s=null;else{var p=u.tag;if(p===13){if(s=o(u),s!==null)return s;s=null}else if(p===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null)}}return Ug=s,null}function zM(s){switch(s){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Te()){case Le:return 2;case ze:return 8;case $e:case Fe:return 32;case _e:return 268435456;default:return 32}default:return 32}}var Ix=!1,ll=null,ul=null,cl=null,Zh=new Map,Xh=new Map,fl=[],zY="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".split(" ");function FM(s,u){switch(s){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":ul=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":Zh.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xh.delete(u.pointerId)}}function Qh(s,u,p,b,A,N){return s===null||s.nativeEvent!==N?(s={blockedOn:u,domEventName:p,eventSystemFlags:b,nativeEvent:N,targetContainers:[A]},u!==null&&(u=yo(u),u!==null&&UM(u)),s):(s.eventSystemFlags|=b,u=s.targetContainers,A!==null&&u.indexOf(A)===-1&&u.push(A),s)}function FY(s,u,p,b,A){switch(u){case"focusin":return ll=Qh(ll,s,u,p,b,A),!0;case"dragenter":return ul=Qh(ul,s,u,p,b,A),!0;case"mouseover":return cl=Qh(cl,s,u,p,b,A),!0;case"pointerover":var N=A.pointerId;return Zh.set(N,Qh(Zh.get(N)||null,s,u,p,b,A)),!0;case"gotpointercapture":return N=A.pointerId,Xh.set(N,Qh(Xh.get(N)||null,s,u,p,b,A)),!0}return!1}function qM(s){var u=Ia(s.target);if(u!==null){var p=a(u);if(p!==null){if(u=p.tag,u===13){if(u=o(p),u!==null){s.blockedOn=u,Hn(s.priority,function(){if(p.tag===13){var b=hi();b=yn(b);var A=qs(p,b);A!==null&&pi(A,p,b),Nx(p,b)}});return}}else if(u===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function zg(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var p=Dx(s.nativeEvent);if(p===null){p=s.nativeEvent;var b=new p.constructor(p.type,p);ru=b,p.target.dispatchEvent(b),ru=null}else return u=yo(p),u!==null&&UM(u),s.blockedOn=p,!1;u.shift()}return!0}function VM(s,u,p){zg(s)&&p.delete(u)}function qY(){Ix=!1,ll!==null&&zg(ll)&&(ll=null),ul!==null&&zg(ul)&&(ul=null),cl!==null&&zg(cl)&&(cl=null),Zh.forEach(VM),Xh.forEach(VM)}function Fg(s,u){s.blockedOn===u&&(s.blockedOn=null,Ix||(Ix=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qY)))}var qg=null;function HM(s){qg!==s&&(qg=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){qg===s&&(qg=null);for(var u=0;u<s.length;u+=3){var p=s[u],b=s[u+1],A=s[u+2];if(typeof b!="function"){if(kx(b||p)===null)continue;break}var N=yo(p);N!==null&&(s.splice(u,3),u-=3,k1(N,{pending:!0,data:A,method:p.method,action:b},b,A))}}))}function Jh(s){function u(ge){return Fg(ge,s)}ll!==null&&Fg(ll,s),ul!==null&&Fg(ul,s),cl!==null&&Fg(cl,s),Zh.forEach(u),Xh.forEach(u);for(var p=0;p<fl.length;p++){var b=fl[p];b.blockedOn===s&&(b.blockedOn=null)}for(;0<fl.length&&(p=fl[0],p.blockedOn===null);)qM(p),p.blockedOn===null&&fl.shift();if(p=(s.ownerDocument||s).$$reactFormReplay,p!=null)for(b=0;b<p.length;b+=3){var A=p[b],N=p[b+1],re=A[an]||null;if(typeof N=="function")re||HM(p);else if(re){var ce=null;if(N&&N.hasAttribute("formAction")){if(A=N,re=N[an]||null)ce=re.formAction;else if(kx(A)!==null)continue}else ce=re.action;typeof ce=="function"?p[b+1]=ce:(p.splice(b,3),b-=3),HM(p)}}}function $x(s){this._internalRoot=s}Vg.prototype.render=$x.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(r(409));var p=u.current,b=hi();$M(p,b,s,u,null,null)},Vg.prototype.unmount=$x.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;$M(s.current,2,null,s,null,null),Eg(),u[Jn]=null}};function Vg(s){this._internalRoot=s}Vg.prototype.unstable_scheduleHydration=function(s){if(s){var u=Qn();s={blockedOn:null,target:s,priority:u};for(var p=0;p<fl.length&&u!==0&&u<fl[p].priority;p++);fl.splice(p,0,s),p===0&&qM(s)}};var WM=t.version;if(WM!=="19.1.0")throw Error(r(527,WM,"19.1.0"));B.findDOMNode=function(s){var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=f(u),s=s!==null?c(s):null,s=s===null?null:s.stateNode,s};var VY={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hg.isDisabled&&Hg.supportsFiber)try{Me=Hg.inject(VY),je=Hg}catch{}}return tp.createRoot=function(s,u){if(!i(s))throw Error(r(299));var p=!1,b="",A=lR,N=uR,re=cR,ce=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(A=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(re=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(ce=u.unstable_transitionCallbacks)),u=kM(s,1,!1,null,null,p,b,A,N,re,ce,null),s[Jn]=u.current,_x(s),new $x(u)},tp.hydrateRoot=function(s,u,p){if(!i(s))throw Error(r(299));var b=!1,A="",N=lR,re=uR,ce=cR,ge=null,Ae=null;return p!=null&&(p.unstable_strictMode===!0&&(b=!0),p.identifierPrefix!==void 0&&(A=p.identifierPrefix),p.onUncaughtError!==void 0&&(N=p.onUncaughtError),p.onCaughtError!==void 0&&(re=p.onCaughtError),p.onRecoverableError!==void 0&&(ce=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(ge=p.unstable_transitionCallbacks),p.formState!==void 0&&(Ae=p.formState)),u=kM(s,1,!0,u,p??null,b,A,N,re,ce,ge,Ae),u.context=IM(null),p=u.current,b=hi(),b=yn(b),A=Ys(b),A.callback=null,Ks(p,A,b),p=b,u.current.lanes=p,Da(u,p),Ya(u),s[Jn]=u.current,_x(s),new Vg(u)},tp.version="19.1.0",tp}var nN;function tK(){if(nN)return Ux.exports;nN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ux.exports=eK(),Ux.exports}var nK=tK(),U=P0();const ae=Lt(U);var Hx={exports:{}},Wx={};/**
|
||
* @license React
|
||
* use-sync-external-store-with-selector.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var rN;function rK(){if(rN)return Wx;rN=1;var e=P0();function t(f,c){return f===c&&(f!==0||1/f===1/c)||f!==f&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;return Wx.useSyncExternalStoreWithSelector=function(f,c,h,m,g){var x=i(null);if(x.current===null){var _={hasValue:!1,value:null};x.current=_}else _=x.current;x=o(function(){function S(P){if(!O){if(O=!0,C=P,P=m(P),g!==void 0&&_.hasValue){var R=_.value;if(g(R,P))return T=R}return T=P}if(R=T,n(C,P))return R;var I=m(P);return g!==void 0&&g(R,I)?(C=P,R):(C=P,T=I)}var O=!1,C,T,j=h===void 0?null:h;return[function(){return S(c())},j===null?void 0:function(){return S(j())}]},[c,h,m,g]);var w=r(f,x[0],x[1]);return a(function(){_.hasValue=!0,_.value=w},[w]),l(w),w},Wx}var iN;function iK(){return iN||(iN=1,Hx.exports=rK()),Hx.exports}iK();var aK=U.version.startsWith("19"),oK=Symbol.for(aK?"react.transitional.element":"react.element"),sK=Symbol.for("react.portal"),lK=Symbol.for("react.fragment"),uK=Symbol.for("react.strict_mode"),cK=Symbol.for("react.profiler"),fK=Symbol.for("react.consumer"),dK=Symbol.for("react.context"),xB=Symbol.for("react.forward_ref"),hK=Symbol.for("react.suspense"),pK=Symbol.for("react.suspense_list"),cj=Symbol.for("react.memo"),mK=Symbol.for("react.lazy"),vK=xB,gK=cj;function yK(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case oK:switch(e=e.type,e){case lK:case cK:case uK:case hK:case pK:return e;default:switch(e=e&&e.$$typeof,e){case dK:case xB:case mK:case cj:return e;case fK:return e;default:return t}}case sK:return t}}}function bK(e){return yK(e)===cj}function _K(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let l=!1,f,c,h,m,g;function x(C,T){return f=C,c=T,h=e(f,c),m=t(r,c),g=n(h,m,c),l=!0,g}function _(){return h=e(f,c),t.dependsOnOwnProps&&(m=t(r,c)),g=n(h,m,c),g}function w(){return e.dependsOnOwnProps&&(h=e(f,c)),t.dependsOnOwnProps&&(m=t(r,c)),g=n(h,m,c),g}function S(){const C=e(f,c),T=!o(C,h);return h=C,T&&(g=n(h,m,c)),g}function O(C,T){const j=!a(T,c),P=!i(C,f,T,c);return f=C,c=T,j&&P?_():j?w():P?S():g}return function(T,j){return l?O(T,j):x(T,j)}}function xK(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const a=t(e,i),o=n(e,i),l=r(e,i);return _K(a,o,l,e,i)}function wK(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...a)=>t(i(...a)))}return n}function DE(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function aN(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function wB(e,t){return function(r,{displayName:i}){const a=function(l,f){return a.dependsOnOwnProps?a.mapToProps(l,f):a.mapToProps(l,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,f){a.mapToProps=e,a.dependsOnOwnProps=aN(e);let c=a(l,f);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=aN(c),c=a(l,f)),c},a}}function fj(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function SK(e){return e&&typeof e=="object"?DE(t=>wK(e,t)):e?typeof e=="function"?wB(e):fj(e,"mapDispatchToProps"):DE(t=>({dispatch:t}))}function OK(e){return e?typeof e=="function"?wB(e):fj(e,"mapStateToProps"):DE(()=>({}))}function EK(e,t,n){return{...n,...e,...t}}function CK(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let a=!1,o;return function(f,c,h){const m=e(f,c,h);return a?i(m,o)||(o=m):(a=!0,o=m),o}}}function TK(e){return e?typeof e=="function"?CK(e):fj(e,"mergeProps"):()=>EK}function AK(e){e()}function jK(){let e=null,t=null;return{clear(){e=null,t=null},notify(){AK(()=>{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 oN={notify(){},get:()=>[]};function SB(e,t){let n,r=oN,i=0,a=!1;function o(w){h();const S=r.subscribe(w);let O=!1;return()=>{O||(O=!0,S(),m())}}function l(){r.notify()}function f(){_.onStateChange&&_.onStateChange()}function c(){return a}function h(){i++,n||(n=t?t.addNestedSub(f):e.subscribe(f),r=jK())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=oN)}function g(){a||(a=!0,h())}function x(){a&&(a=!1,m())}const _={addNestedSub:o,notifyNestedSubs:l,handleChangeWrapper:f,isSubscribed:c,trySubscribe:g,tryUnsubscribe:x,getListeners:()=>r};return _}var PK=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RK=PK(),MK=()=>typeof navigator<"u"&&navigator.product==="ReactNative",NK=MK(),LK=()=>RK||NK?U.useLayoutEffect:U.useEffect,ky=LK();function sN(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Gx(e,t){if(sN(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])||!sN(e[n[i]],t[n[i]]))return!1;return!0}var DK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},kK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},IK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},OB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$K={[vK]:IK,[gK]:OB};function lN(e){return bK(e)?OB:$K[e.$$typeof]||DK}var BK=Object.defineProperty,UK=Object.getOwnPropertyNames,uN=Object.getOwnPropertySymbols,zK=Object.getOwnPropertyDescriptor,FK=Object.getPrototypeOf,cN=Object.prototype;function kE(e,t){if(typeof t!="string"){if(cN){const a=FK(t);a&&a!==cN&&kE(e,a)}let n=UK(t);uN&&(n=n.concat(uN(t)));const r=lN(e),i=lN(t);for(let a=0;a<n.length;++a){const o=n[a];if(!kK[o]&&!(i&&i[o])&&!(r&&r[o])){const l=zK(t,o);try{BK(e,o,l)}catch{}}}}return e}var Yx=Symbol.for("react-redux-context"),Kx=typeof globalThis<"u"?globalThis:{};function qK(){if(!U.createContext)return{};const e=Kx[Yx]??(Kx[Yx]=new Map);let t=e.get(U.createContext);return t||(t=U.createContext(null),e.set(U.createContext,t)),t}var EB=qK(),VK=[null,null];function HK(e,t,n){ky(()=>e(...t),n)}function WK(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function GK(e,t,n,r,i,a,o,l,f,c,h){if(!e)return()=>{};let m=!1,g=null;const x=()=>{if(m||!l.current)return;const w=t.getState();let S,O;try{S=r(w,i.current)}catch(C){O=C,g=C}O||(g=null),S===a.current?o.current||c():(a.current=S,f.current=S,o.current=!0,h())};return n.onStateChange=x,n.trySubscribe(),x(),()=>{if(m=!0,n.tryUnsubscribe(),n.onStateChange=null,g)throw g}}function YK(e,t){return e===t}function KK(e,t,n,{pure:r,areStatesEqual:i=YK,areOwnPropsEqual:a=Gx,areStatePropsEqual:o=Gx,areMergedPropsEqual:l=Gx,forwardRef:f=!1,context:c=EB}={}){const h=c,m=OK(e),g=SK(t),x=TK(n),_=!!e;return S=>{const O=S.displayName||S.name||"Component",C=`Connect(${O})`,T={shouldHandleStateChanges:_,displayName:C,wrappedComponentName:O,WrappedComponent:S,initMapStateToProps:m,initMapDispatchToProps:g,initMergeProps:x,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:l};function j(I){const[V,G,W]=U.useMemo(()=>{const{reactReduxForwardedRef:X,...ue}=I;return[I.context,X,ue]},[I]),K=U.useMemo(()=>{let X=h;return V!=null&&V.Consumer,X},[V,h]),ne=U.useContext(K),le=!!I.store&&!!I.store.getState&&!!I.store.dispatch,Q=!!ne&&!!ne.store,J=le?I.store:ne.store,H=Q?ne.getServerState:J.getState,B=U.useMemo(()=>xK(J.dispatch,T),[J]),[z,F]=U.useMemo(()=>{if(!_)return VK;const X=SB(J,le?void 0:ne.subscription),ue=X.notifyNestedSubs.bind(X);return[X,ue]},[J,le,ne]),M=U.useMemo(()=>le?ne:{...ne,subscription:z},[le,ne,z]),k=U.useRef(void 0),te=U.useRef(W),Z=U.useRef(void 0),oe=U.useRef(!1),he=U.useRef(!1),de=U.useRef(void 0);ky(()=>(he.current=!0,()=>{he.current=!1}),[]);const be=U.useMemo(()=>()=>Z.current&&W===te.current?Z.current:B(J.getState(),W),[J,W]),$=U.useMemo(()=>ue=>z?GK(_,J,z,B,te,k,oe,he,Z,F,ue):()=>{},[z]);HK(WK,[te,k,oe,W,Z,F]);let q;try{q=U.useSyncExternalStore($,be,H?()=>B(H(),W):be)}catch(X){throw de.current&&(X.message+=`
|
||
The error may be correlated with this previous error:
|
||
${de.current.stack}
|
||
|
||
`),X}ky(()=>{de.current=void 0,Z.current=void 0,k.current=q});const ee=U.useMemo(()=>U.createElement(S,{...q,ref:G}),[G,S,q]);return U.useMemo(()=>_?U.createElement(K.Provider,{value:M},ee):ee,[K,ee,M])}const R=U.memo(j);if(R.WrappedComponent=S,R.displayName=j.displayName=C,f){const V=U.forwardRef(function(W,K){return U.createElement(R,{...W,reactReduxForwardedRef:K})});return V.displayName=C,V.WrappedComponent=S,kE(V,S)}return kE(R,S)}}var CB=KK;function ZK(e){const{children:t,context:n,serverState:r,store:i}=e,a=U.useMemo(()=>{const f=SB(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),o=U.useMemo(()=>i.getState(),[i]);ky(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),o!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,o]);const l=n||EB;return U.createElement(l.Provider,{value:a},t)}var TB=ZK,np={},fN;function XK(){if(fN)return np;fN=1,Object.defineProperty(np,"__esModule",{value:!0}),np.parse=o,np.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function o(g,x){const _=new a,w=g.length;if(w<2)return _;const S=(x==null?void 0:x.decode)||h;let O=0;do{const C=g.indexOf("=",O);if(C===-1)break;const T=g.indexOf(";",O),j=T===-1?w:T;if(C>j){O=g.lastIndexOf(";",C-1)+1;continue}const P=l(g,O,C),R=f(g,C,P),I=g.slice(P,R);if(_[I]===void 0){let V=l(g,C+1,j),G=f(g,j,V);const W=S(g.slice(V,G));_[I]=W}O=j+1}while(O<w);return _}function l(g,x,_){do{const w=g.charCodeAt(x);if(w!==32&&w!==9)return x}while(++x<_);return _}function f(g,x,_){for(;x>_;){const w=g.charCodeAt(--x);if(w!==32&&w!==9)return x+1}return _}function c(g,x,_){const w=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const S=w(x);if(!t.test(S))throw new TypeError(`argument val is invalid: ${x}`);let O=g+"="+S;if(!_)return O;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);O+="; Max-Age="+_.maxAge}if(_.domain){if(!n.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);O+="; Domain="+_.domain}if(_.path){if(!r.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);O+="; Path="+_.path}if(_.expires){if(!m(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);O+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(O+="; HttpOnly"),_.secure&&(O+="; Secure"),_.partitioned&&(O+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return O}function h(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function m(g){return i.call(g)==="[object Date]"}return np}XK();/**
|
||
* react-router v7.5.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
|
||
*/var dN="popstate";function QK(e={}){function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return IE("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Zp(i)}return eZ(t,n,null,e)}function wn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JK(){return Math.random().toString(36).substring(2,10)}function hN(e,t){return{usr:e.state,key:e.key,idx:t}}function IE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Nd(t):t,state:n,key:t&&t.key||r||JK()}}function Zp({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Nd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function eZ(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",f=null,c=h();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let S=h(),O=S==null?null:S-c;c=S,f&&f({action:l,location:w.location,delta:O})}function g(S,O){l="PUSH";let C=IE(w.location,S,O);c=h()+1;let T=hN(C,c),j=w.createHref(C);try{o.pushState(T,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}a&&f&&f({action:l,location:w.location,delta:1})}function x(S,O){l="REPLACE";let C=IE(w.location,S,O);c=h();let T=hN(C,c),j=w.createHref(C);o.replaceState(T,"",j),a&&f&&f({action:l,location:w.location,delta:0})}function _(S){let O=i.location.origin!=="null"?i.location.origin:i.location.href,C=typeof S=="string"?S:Zp(S);return C=C.replace(/ $/,"%20"),wn(O,`No window.location.(origin|href) available to create URL for href: ${C}`),new URL(C,O)}let w={get action(){return l},get location(){return e(i,o)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(dN,m),f=S,()=>{i.removeEventListener(dN,m),f=null}},createHref(S){return t(i,S)},createURL:_,encodeLocation(S){let O=_(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:g,replace:x,go(S){return o.go(S)}};return w}function AB(e,t,n="/"){return tZ(e,t,n,!1)}function tZ(e,t,n,r){let i=typeof t=="string"?Nd(t):t,a=rs(i.pathname||"/",n);if(a==null)return null;let o=jB(e);nZ(o);let l=null;for(let f=0;l==null&&f<o.length;++f){let c=hZ(a);l=fZ(o[f],c,r)}return l}function jB(e,t=[],n=[],r=""){let i=(a,o,l)=>{let f={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(wn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let c=Qo([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(wn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),jB(a.children,t,h,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:uZ(c,a.index),routesMeta:h})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let f of PB(a.path))i(a,o,f)}),t}function PB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=PB(r.join("/")),l=[];return l.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&l.push(...o),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function nZ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cZ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var rZ=/^:[\w-]+$/,iZ=3,aZ=2,oZ=1,sZ=10,lZ=-2,pN=e=>e==="*";function uZ(e,t){let n=e.split("/"),r=n.length;return n.some(pN)&&(r+=lZ),t&&(r+=aZ),n.filter(i=>!pN(i)).reduce((i,a)=>i+(rZ.test(a)?iZ:a===""?oZ:sZ),r)}function cZ(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 fZ(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l<r.length;++l){let f=r[l],c=l===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",m=Iy({path:f.relativePath,caseSensitive:f.caseSensitive,end:c},h),g=f.route;if(!m&&c&&n&&!r[r.length-1].route.index&&(m=Iy({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!m)return null;Object.assign(i,m.params),o.push({params:i,pathname:Qo([a,m.pathname]),pathnameBase:gZ(Qo([a,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(a=Qo([a,m.pathnameBase]))}return o}function Iy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dZ(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((c,{paramName:h,isOptional:m},g)=>{if(h==="*"){let _=l[g]||"";o=a.slice(0,a.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[g];return m&&!x?c[h]=void 0:c[h]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function dZ(e,t=!1,n=!0){Oa(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,(o,l,f)=>(r.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function hZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Oa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function rs(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 pZ(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nd(e):e;return{pathname:n?n.startsWith("/")?n:mZ(n,t):t,search:yZ(r),hash:bZ(i)}}function mZ(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 Zx(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 vZ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dj(e){let t=vZ(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function hj(e,t,n,r=!1){let i;typeof e=="string"?i=Nd(e):(i={...e},wn(!i.pathname||!i.pathname.includes("?"),Zx("?","pathname","search",i)),wn(!i.pathname||!i.pathname.includes("#"),Zx("#","pathname","hash",i)),wn(!i.search||!i.search.includes("#"),Zx("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}l=m>=0?t[m]:"/"}let f=pZ(i,l),c=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(c||h)&&(f.pathname+="/"),f}var Qo=e=>e.join("/").replace(/\/\/+/g,"/"),gZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _Z(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var RB=["POST","PUT","PATCH","DELETE"];new Set(RB);var xZ=["GET",...RB];new Set(xZ);var Ld=U.createContext(null);Ld.displayName="DataRouter";var R0=U.createContext(null);R0.displayName="DataRouterState";var MB=U.createContext({isTransitioning:!1});MB.displayName="ViewTransition";var wZ=U.createContext(new Map);wZ.displayName="Fetchers";var SZ=U.createContext(null);SZ.displayName="Await";var Ta=U.createContext(null);Ta.displayName="Navigation";var Km=U.createContext(null);Km.displayName="Location";var Aa=U.createContext({outlet:null,matches:[],isDataRoute:!1});Aa.displayName="Route";var pj=U.createContext(null);pj.displayName="RouteError";function OZ(e,{relative:t}={}){wn(mc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=U.useContext(Ta),{hash:i,pathname:a,search:o}=Zm(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Qo([n,a])),r.createHref({pathname:l,search:o,hash:i})}function mc(){return U.useContext(Km)!=null}function Pr(){return wn(mc(),"useLocation() may be used only in the context of a <Router> component."),U.useContext(Km).location}var NB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function LB(e){U.useContext(Ta).static||U.useLayoutEffect(e)}function mo(){let{isDataRoute:e}=U.useContext(Aa);return e?IZ():EZ()}function EZ(){wn(mc(),"useNavigate() may be used only in the context of a <Router> component.");let e=U.useContext(Ld),{basename:t,navigator:n}=U.useContext(Ta),{matches:r}=U.useContext(Aa),{pathname:i}=Pr(),a=JSON.stringify(dj(r)),o=U.useRef(!1);return LB(()=>{o.current=!0}),U.useCallback((f,c={})=>{if(Oa(o.current,NB),!o.current)return;if(typeof f=="number"){n.go(f);return}let h=hj(f,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Qo([t,h.pathname])),(c.replace?n.replace:n.push)(h,c.state,c)},[t,n,a,i,e])}U.createContext(null);function Dd(){let{matches:e}=U.useContext(Aa),t=e[e.length-1];return t?t.params:{}}function Zm(e,{relative:t}={}){let{matches:n}=U.useContext(Aa),{pathname:r}=Pr(),i=JSON.stringify(dj(n));return U.useMemo(()=>hj(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function CZ(e,t){return DB(e,t)}function DB(e,t,n,r){var C;wn(mc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=U.useContext(Ta),{matches:o}=U.useContext(Aa),l=o[o.length-1],f=l?l.params:{},c=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let T=m&&m.path||"";kB(c,!m||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let g=Pr(),x;if(t){let T=typeof t=="string"?Nd(t):t;wn(h==="/"||((C=T.pathname)==null?void 0:C.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${T.pathname}" was given in the \`location\` prop.`),x=T}else x=g;let _=x.pathname||"/",w=_;if(h!=="/"){let T=h.replace(/^\//,"").split("/");w="/"+_.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=!a&&n&&n.matches&&n.matches.length>0?n.matches:AB(e,{pathname:w});Oa(m||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Oa(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=RZ(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:Qo([h,i.encodeLocation?i.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?h:Qo([h,i.encodeLocation?i.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),o,n,r);return t&&O?U.createElement(Km.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},O):O}function TZ(){let e=kZ(),t=_Z(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=U.createElement(U.Fragment,null,U.createElement("p",null,"💿 Hey developer 👋"),U.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",U.createElement("code",{style:a},"ErrorBoundary")," or"," ",U.createElement("code",{style:a},"errorElement")," prop on your route.")),U.createElement(U.Fragment,null,U.createElement("h2",null,"Unexpected Application Error!"),U.createElement("h3",{style:{fontStyle:"italic"}},t),n?U.createElement("pre",{style:i},n):null,o)}var AZ=U.createElement(TZ,null),jZ=class extends U.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?U.createElement(Aa.Provider,{value:this.props.routeContext},U.createElement(pj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function PZ({routeContext:e,match:t,children:n}){let r=U.useContext(Ld);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),U.createElement(Aa.Provider,{value:e},n)}function RZ(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let f=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);wn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let o=!1,l=-1;if(n)for(let f=0;f<i.length;f++){let c=i[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=f),c.route.id){let{loaderData:h,errors:m}=n,g=c.route.loader&&!h.hasOwnProperty(c.route.id)&&(!m||m[c.route.id]===void 0);if(c.route.lazy||g){o=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,c,h)=>{let m,g=!1,x=null,_=null;n&&(m=a&&c.route.id?a[c.route.id]:void 0,x=c.route.errorElement||AZ,o&&(l<0&&h===0?(kB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,_=null):l===h&&(g=!0,_=c.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),S=()=>{let O;return m?O=x:g?O=_:c.route.Component?O=U.createElement(c.route.Component,null):c.route.element?O=c.route.element:O=f,U.createElement(PZ,{match:c,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:O})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?U.createElement(jZ,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}function mj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function MZ(e){let t=U.useContext(Ld);return wn(t,mj(e)),t}function NZ(e){let t=U.useContext(R0);return wn(t,mj(e)),t}function LZ(e){let t=U.useContext(Aa);return wn(t,mj(e)),t}function vj(e){let t=LZ(e),n=t.matches[t.matches.length-1];return wn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function DZ(){return vj("useRouteId")}function kZ(){var r;let e=U.useContext(pj),t=NZ("useRouteError"),n=vj("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function IZ(){let{router:e}=MZ("useNavigate"),t=vj("useNavigate"),n=U.useRef(!1);return LB(()=>{n.current=!0}),U.useCallback(async(i,a={})=>{Oa(n.current,NB),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var mN={};function kB(e,t,n){!t&&!mN[e]&&(mN[e]=!0,Oa(!1,n))}U.memo($Z);function $Z({routes:e,future:t,state:n}){return DB(e,void 0,n,t)}function gj({to:e,replace:t,state:n,relative:r}){wn(mc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=U.useContext(Ta);Oa(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=U.useContext(Aa),{pathname:o}=Pr(),l=mo(),f=hj(e,dj(a),o,r==="path"),c=JSON.stringify(f);return U.useEffect(()=>{l(JSON.parse(c),{replace:t,state:n,relative:r})},[l,c,r,t,n]),null}function St(e){wn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function BZ({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){wn(!mc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=U.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=Nd(n));let{pathname:f="/",search:c="",hash:h="",state:m=null,key:g="default"}=n,x=U.useMemo(()=>{let _=rs(f,o);return _==null?null:{location:{pathname:_,search:c,hash:h,state:m,key:g},navigationType:r}},[o,f,c,h,m,g,r]);return Oa(x!=null,`<Router basename="${o}"> is not able to match the URL "${f}${c}${h}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:U.createElement(Ta.Provider,{value:l},U.createElement(Km.Provider,{children:t,value:x}))}function M0({children:e,location:t}){return CZ($E(e),t)}function $E(e,t=[]){let n=[];return U.Children.forEach(e,(r,i)=>{if(!U.isValidElement(r))return;let a=[...t,i];if(r.type===U.Fragment){n.push.apply(n,$E(r.props.children,a));return}wn(r.type===St,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),wn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.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,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=$E(r.props.children,a)),n.push(o)}),n}var wy="get",Sy="application/x-www-form-urlencoded";function N0(e){return e!=null&&typeof e.tagName=="string"}function UZ(e){return N0(e)&&e.tagName.toLowerCase()==="button"}function zZ(e){return N0(e)&&e.tagName.toLowerCase()==="form"}function FZ(e){return N0(e)&&e.tagName.toLowerCase()==="input"}function qZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function VZ(e,t){return e.button===0&&(!t||t==="_self")&&!qZ(e)}var Gg=null;function HZ(){if(Gg===null)try{new FormData(document.createElement("form"),0),Gg=!1}catch{Gg=!0}return Gg}var WZ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xx(e){return e!=null&&!WZ.has(e)?(Oa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Sy}"`),null):e}function GZ(e,t){let n,r,i,a,o;if(zZ(e)){let l=e.getAttribute("action");r=l?rs(l,t):null,n=e.getAttribute("method")||wy,i=Xx(e.getAttribute("enctype"))||Sy,a=new FormData(e)}else if(UZ(e)||FZ(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||l.getAttribute("action");if(r=f?rs(f,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||wy,i=Xx(e.getAttribute("formenctype"))||Xx(l.getAttribute("enctype"))||Sy,a=new FormData(l,e),!HZ()){let{name:c,type:h,value:m}=e;if(h==="image"){let g=c?`${c}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else c&&a.append(c,m)}}else{if(N0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=wy,r=null,i=Sy,o=e}return a&&i==="text/plain"&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function yj(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function YZ(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function KZ(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function ZZ(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let o=await YZ(a,n);return o.links?o.links():[]}return[]}));return eX(r.flat(1).filter(KZ).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function vN(e,t,n,r,i,a){let o=(f,c)=>n[c]?f.route.id!==n[c].route.id:!0,l=(f,c)=>{var h;return n[c].pathname!==f.pathname||((h=n[c].route.path)==null?void 0:h.endsWith("*"))&&n[c].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,c)=>o(f,c)||l(f,c)):a==="data"?t.filter((f,c)=>{var m;let h=r.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(o(f,c)||l(f,c))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function XZ(e,t,{includeHydrateFallback:n}={}){return QZ(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function QZ(e){return[...new Set(e)]}function JZ(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function eX(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(JZ(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function tX(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&rs(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function IB(){let e=U.useContext(Ld);return yj(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nX(){let e=U.useContext(R0);return yj(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var bj=U.createContext(void 0);bj.displayName="FrameworkContext";function $B(){let e=U.useContext(bj);return yj(e,"You must render this element inside a <HydratedRouter> element"),e}function rX(e,t){let n=U.useContext(bj),[r,i]=U.useState(!1),[a,o]=U.useState(!1),{onFocus:l,onBlur:f,onMouseEnter:c,onMouseLeave:h,onTouchStart:m}=t,g=U.useRef(null);U.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let w=O=>{O.forEach(C=>{o(C.isIntersecting)})},S=new IntersectionObserver(w,{threshold:.5});return g.current&&S.observe(g.current),()=>{S.disconnect()}}},[e]),U.useEffect(()=>{if(r){let w=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(w)}}},[r]);let x=()=>{i(!0)},_=()=>{i(!1),o(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:rp(l,x),onBlur:rp(f,_),onMouseEnter:rp(c,x),onMouseLeave:rp(h,_),onTouchStart:rp(m,x)}]:[!1,g,{}]}function rp(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iX({page:e,...t}){let{router:n}=IB(),r=U.useMemo(()=>AB(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?U.createElement(oX,{page:e,matches:r,...t}):null}function aX(e){let{manifest:t,routeModules:n}=$B(),[r,i]=U.useState([]);return U.useEffect(()=>{let a=!1;return ZZ(e,t,n).then(o=>{a||i(o)}),()=>{a=!0}},[e,t,n]),r}function oX({page:e,matches:t,...n}){let r=Pr(),{manifest:i,routeModules:a}=$B(),{basename:o}=IB(),{loaderData:l,matches:f}=nX(),c=U.useMemo(()=>vN(e,t,f,i,r,"data"),[e,t,f,i,r]),h=U.useMemo(()=>vN(e,t,f,i,r,"assets"),[e,t,f,i,r]),m=U.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let _=new Set,w=!1;if(t.forEach(O=>{var T;let C=i.routes[O.route.id];!C||!C.hasLoader||(!c.some(j=>j.route.id===O.route.id)&&O.route.id in l&&((T=a[O.route.id])!=null&&T.shouldRevalidate)||C.hasClientLoader?w=!0:_.add(O.route.id))}),_.size===0)return[];let S=tX(e,o);return w&&_.size>0&&S.searchParams.set("_routes",t.filter(O=>_.has(O.route.id)).map(O=>O.route.id).join(",")),[S.pathname+S.search]},[o,l,r,i,c,t,e,a]),g=U.useMemo(()=>XZ(h,i),[h,i]),x=aX(h);return U.createElement(U.Fragment,null,m.map(_=>U.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),g.map(_=>U.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),x.map(({key:_,link:w})=>U.createElement("link",{key:_,...w})))}function sX(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var BB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{BB&&(window.__reactRouterVersion="7.5.0")}catch{}function UB({basename:e,children:t,window:n}){let r=U.useRef();r.current==null&&(r.current=QK({window:n,v5Compat:!0}));let i=r.current,[a,o]=U.useState({action:i.action,location:i.location}),l=U.useCallback(f=>{U.startTransition(()=>o(f))},[o]);return U.useLayoutEffect(()=>i.listen(l),[i,l]),U.createElement(BZ,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var zB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hn=U.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:o,state:l,target:f,to:c,preventScrollReset:h,viewTransition:m,...g},x){let{basename:_}=U.useContext(Ta),w=typeof c=="string"&&zB.test(c),S,O=!1;if(typeof c=="string"&&w&&(S=c,BB))try{let G=new URL(window.location.href),W=c.startsWith("//")?new URL(G.protocol+c):new URL(c),K=rs(W.pathname,_);W.origin===G.origin&&K!=null?c=K+W.search+W.hash:O=!0}catch{Oa(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=OZ(c,{relative:i}),[T,j,P]=rX(r,g),R=cX(c,{replace:o,state:l,target:f,preventScrollReset:h,relative:i,viewTransition:m});function I(G){t&&t(G),G.defaultPrevented||R(G)}let V=U.createElement("a",{...g,...P,href:S||C,onClick:O||a?t:I,ref:sX(x,j),target:f,"data-discover":!w&&n==="render"?"true":void 0});return T&&!w?U.createElement(U.Fragment,null,V,U.createElement(iX,{page:C})):V});hn.displayName="Link";var L0=U.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:o,viewTransition:l,children:f,...c},h){let m=Zm(o,{relative:c.relative}),g=Pr(),x=U.useContext(R0),{navigator:_,basename:w}=U.useContext(Ta),S=x!=null&&mX(m)&&l===!0,O=_.encodeLocation?_.encodeLocation(m).pathname:m.pathname,C=g.pathname,T=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(C=C.toLowerCase(),T=T?T.toLowerCase():null,O=O.toLowerCase()),T&&w&&(T=rs(T,w)||T);const j=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let P=C===O||!i&&C.startsWith(O)&&C.charAt(j)==="/",R=T!=null&&(T===O||!i&&T.startsWith(O)&&T.charAt(O.length)==="/"),I={isActive:P,isPending:R,isTransitioning:S},V=P?t:void 0,G;typeof r=="function"?G=r(I):G=[r,P?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let W=typeof a=="function"?a(I):a;return U.createElement(hn,{...c,"aria-current":V,className:G,ref:h,style:W,to:o,viewTransition:l},typeof f=="function"?f(I):f)});L0.displayName="NavLink";var lX=U.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=wy,action:l,onSubmit:f,relative:c,preventScrollReset:h,viewTransition:m,...g},x)=>{let _=hX(),w=pX(l,{relative:c}),S=o.toLowerCase()==="get"?"get":"post",O=typeof l=="string"&&zB.test(l),C=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let j=T.nativeEvent.submitter,P=(j==null?void 0:j.getAttribute("formmethod"))||o;_(j||T.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:i,state:a,relative:c,preventScrollReset:h,viewTransition:m})};return U.createElement("form",{ref:x,method:S,action:w,onSubmit:r?f:C,...g,"data-discover":!O&&e==="render"?"true":void 0})});lX.displayName="Form";function uX(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function FB(e){let t=U.useContext(Ld);return wn(t,uX(e)),t}function cX(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let l=mo(),f=Pr(),c=Zm(e,{relative:a});return U.useCallback(h=>{if(VZ(h,t)){h.preventDefault();let m=n!==void 0?n:Zp(f)===Zp(c);l(e,{replace:m,state:r,preventScrollReset:i,relative:a,viewTransition:o})}},[f,l,c,n,r,t,e,i,a,o])}var fX=0,dX=()=>`__${String(++fX)}__`;function hX(){let{router:e}=FB("useSubmit"),{basename:t}=U.useContext(Ta),n=DZ();return U.useCallback(async(r,i={})=>{let{action:a,method:o,encType:l,formData:f,body:c}=GZ(r,t);if(i.navigate===!1){let h=i.fetcherKey||dX();await e.fetch(h,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function pX(e,{relative:t}={}){let{basename:n}=U.useContext(Ta),r=U.useContext(Aa);wn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...Zm(e||".",{relative:t})},o=Pr();if(e==null){a.search=o.search;let l=new URLSearchParams(a.search),f=l.getAll("index");if(f.some(h=>h==="")){l.delete("index"),f.filter(m=>m).forEach(m=>l.append("index",m));let h=l.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Qo([n,a.pathname])),Zp(a)}function mX(e,t={}){let n=U.useContext(MB);wn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=FB("useViewTransitionState"),i=Zm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=rs(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=rs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Iy(i.pathname,o)!=null||Iy(i.pathname,a)!=null}new TextEncoder;const vX="/shlink-web-client/dependabot/npm_and_yarn/react-549425c6c9",$y={homepage:vX};var Ea,lo=".",qB="function",VB="string",HB="__global__",_j="Provider",gX=0,xj=Array.prototype.slice,yX=function(t,n){var r=t[n];if(r===void 0&&Ea.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},D0=function(t){var n;return this.nested[t]||(n=Ea.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},WB=function(t){return t.split(lo).reduce(yX,this)},bX=function(t,n,r,i){var a={configurable:!0,enumerable:!0};return t.length?a.get=function(){var l=0,f=function(h){if(h)throw h;t[l]&&t[l++](r,f)};return f(),r}:(a.value=r,a.writable=!0),Object.defineProperty(i,n,a),i[n]},_X=function(t,n){var r,i;return typeof t===qB&&(n=t,t=HB),r=t.split(lo),i=r.shift(),r.length?D0.call(this,i).middleware(r.join(lo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},xX=function(t,n){return n(t)},gN=function(t,n){return(t[n]||[]).concat(t.__global__||[])},wX=function(t,n){var r,i,a,o,l;return this.id,a=this.container,o=this.decorators,l=this.middlewares,r=t+_j,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete a[r],a[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=a[r],h;return c&&(h=gN(o,t).reduce(xX,c.$get(a)),delete a[r],delete a[t]),h===void 0?h:bX(gN(l,t),t,h,a)}},Object.defineProperties(a,i),this},GB=function(t,n){var r,i;return r=t.split(lo),this.providerMap[t]&&r.length===1&&!this.container[t+_j]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(D0.call(this,i).provider(r.join(lo),n),this):wX.call(this,i,n))},wj=function(t,n){return GB.call(this,t,function(){this.$get=n})},YB=function(t,n,r){var i=arguments.length>3?xj.call(arguments,3):[],a=this;return wj.call(this,t,function(){var l=n,f=i.map(WB,a.container);return r?new(n.bind.apply(n,[null].concat(f))):l.apply(null,f)})},SX=function(t,n){return YB.apply(this,[t,n,!0].concat(xj.call(arguments,2)))},OX=function(t,n){return YB.apply(this,[t,n,!1].concat(xj.call(arguments,2)))},KB=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},ZB=function(t,n){var r=t[n];return r||(r={},KB.call(t,n,r)),r},EX=function(t,n){var r;return r=t.split(lo),t=r.pop(),KB.call(r.reduce(ZB,this.container),t,n),this},CX=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},TX=function(t,n){var r=t.split(lo);return t=r.pop(),CX.call(r.reduce(ZB,this.container),t,n),this},XB=function(t,n){var r,i;return typeof t===qB&&(n=t,t=HB),r=t.split(lo),i=r.shift(),r.length?D0.call(this,i).decorator(r.join(lo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},AX=function(t){return this.deferred.push(t),this},jX=function(t){return(t||[]).map(WB,this.container)},PX=function(t,n){return wj.call(this,t,function(i){return{instance:n.bind(n,i)}})},RX=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},Sj=function(t){return Object.keys(t||this.container||{}).filter(RX)},By={},MX=function(t){var n;return typeof t===VB?(n=By[t],n||(By[t]=n=new Ea,n.constant("BOTTLE_NAME",t)),n):new Ea},NX=function(t){typeof t===VB?delete By[t]:By={}},QB=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},yN=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+_j]},LX=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(a){if(!(r&&t.indexOf(a)===-1)){var o=a.split(lo);o.length>1&&o.forEach(yN,D0.call(this,o[0])),yN.call(this,a),this.provider(a,n[a])}},this)},DX=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ea=function e(t){if(!(this instanceof e))return e.pop(t);this.id=gX++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:XB.bind(this),$register:QB.bind(this),$list:Sj.bind(this)}};Ea.prototype={constant:TX,decorator:XB,defer:AX,digest:jX,factory:wj,instanceFactory:PX,list:Sj,middleware:_X,provider:GB,resetProviders:LX,register:QB,resolve:DX,service:SX,serviceFactory:OX,value:EX};Ea.pop=MX;Ea.clear=NX;Ea.list=Sj;Ea.config={strict:!1};const JB=Ea;var e9=e=>{throw TypeError(e)},t9=(e,t,n)=>t.has(e)||e9("Cannot "+n),hf=(e,t,n)=>(t9(e,t,"read from private field"),n?n.call(e):t.get(e)),Qx=(e,t,n)=>t.has(e)?e9("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Jx=(e,t,n,r)=>(t9(e,t,"write to private field"),t.set(e,n),n);const kX=(e,t)=>`${e}/rest/v${t}`,IX=e=>e.dir?`${e.field}-${e.dir}`:void 0,$X=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:IX(e)}),BX=(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("/"),a=i.length?`/${i.join("/")}`:"";return`${n}://${t}${a}`},UX=(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()};var Oy,bp,Ef;let zX=class{constructor(t,n){Qx(this,Oy),Qx(this,bp),Qx(this,Ef),Jx(this,bp,t),Jx(this,Ef,n),Jx(this,Oy,3)}async listShortUrls({signal:t,...n}={}){return this.performRequest({url:"/short-urls",query:$X(n),signal:t}).then(({shortUrls:r})=>r)}async createShortUrl({signal:t,...n}){const r=Object.entries(n).reduce((i,[a,o])=>(o&&(i[a]=o),i),{});return this.performRequest({url:"/short-urls",method:"POST",body:r,signal:t})}async getShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n},signal:r})}async deleteShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n},signal:r})}async updateShortUrl({shortCode:t,domain:n},{signal:r,...i}){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:i,signal:r})}async getShortUrlRedirectRules({shortCode:t,domain:n},{signal:r}={}){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n},signal:r})}async setShortUrlRedirectRules({shortCode:t,domain:n},{signal:r,...i}){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:i,signal:r})}async getVisitsOverview({signal:t}={}){return this.performRequest({url:"/visits",signal:t}).then(({visits:n})=>n)}async getShortUrlVisits({shortCode:t,domain:n},{signal:r,...i}={}){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:{...i,domain:n},signal:r})}async getTagVisits(t,{signal:n,...r}={}){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,{signal:n,...r}={}){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits({signal:t,...n}={}){return this.performVisitsRequest({url:"/visits/orphan",query:n,signal:t})}async getNonOrphanVisits({signal:t,...n}={}){return this.performVisitsRequest({url:"/visits/non-orphan",query:n,signal:t})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:n})=>n)}async deleteShortUrlVisits({shortCode:t,domain:n},{signal:r}={}){const i=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:r})}async deleteOrphanVisits({signal:t}={}){return this.performRequest({method:"DELETE",url:"/visits/orphan",signal:t})}async listTags({signal:t}={}){return this.performRequest({url:"/tags",signal:t}).then(({tags:n})=>n)}async tagsStats({signal:t}={}){return this.performRequest({url:"/tags/stats",signal:t}).then(({tags:n})=>n)}async deleteTags(t,{signal:n}={}){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t},signal:n}).then(()=>({tags:t}))}async editTag({oldName:t,newName:n},{signal:r}={}){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n},signal:r}).then(()=>({oldName:t,newName:n}))}async listDomains({signal:t}={}){return this.performRequest({url:"/domains",signal:t}).then(({domains:n})=>n)}async editDomainRedirects(t,{signal:n}={}){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t,signal:n})}async health({domain:t,signal:n}={}){return this.performRequest({url:"/health",domain:t,signal:n})}async mercureInfo({signal:t}={}){return this.performRequest({url:"/mercure-info",signal:t})}async performRequest(t){return hf(this,bp).jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return hf(this,bp).emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:a,signal:o}){const l=UX(r),f=l?`?${l}`:"",c=a?BX(hf(this,Ef).baseUrl,a):hf(this,Ef).baseUrl;return[`${kX(c,hf(this,Oy))}${t}${f}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":hf(this,Ef).apiKey},signal:o}]}};Oy=new WeakMap,bp=new WeakMap,Ef=new WeakMap;const n9=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Rp=e=>!!(e!=null&&e.id),Oj=e=>!!(e!=null&&e.version),FX=e=>!!(e!=null&&e.serverNotFound),qX=e=>Rp(e)?e.id:"",VX=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),bN={},HX=e=>typeof e=="function",WX=e=>{const{selectedServer:t}=e();if(!n9(t))throw new Error("There's no selected server or it is not found");return t},GX=e=>t=>{const{url:n,apiKey:r}=HX(t)?WX(t):t,i=`${r}_${n}`,a=bN[i]??new zX(e,{apiKey:r,baseUrl:n});return bN[i]=a,a},YX=e=>{e.serviceFactory("buildShlinkApiClient",GX,"HttpClient")};/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const KX={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"]},ZX={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"]},XX={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"]},QX=XX,JX={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"]},r9=JX,eQ={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"]},tQ={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"]},i9=tQ,k0={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"]},nQ={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"]},Ej={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"]},rQ={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"]},iQ=rQ,aQ={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"]},Cj=aQ,oQ={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","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.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},sQ={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"]},lQ={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"]},uQ={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"]},_N={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"]},cQ={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=cQ,dQ={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"]},BE=dQ,hQ={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"]},pQ={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"]},mQ={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"]},vQ=mQ,Tj={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"]},I0={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"]},a9={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"]},gQ={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},xN={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"]},yQ={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"]},bQ={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"]},_Q={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"]},xQ=_Q,wQ={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"]},SQ={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"]},Aj=SQ,OQ={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"]},EQ=OQ,CQ={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"]},TQ={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"]},AQ={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"]},jQ=AQ,PQ={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"]},RQ=PQ,MQ={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"]},NQ=MQ,LQ={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"]},o9=LQ,DQ={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"]},kQ={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"]},IQ={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"]},$Q={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"]},s9=$Q,BQ={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"]},UQ={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"]},Xm={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"]},jj={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},zQ=jj,UE=jj,FQ={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"]},qQ={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"]},VQ=qQ,wN={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"]},l9={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"]},HQ=l9,WQ={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"]},GQ={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"]},YQ={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"]},KQ={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"]},ZQ={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"]},ec={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"]},u9={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"]},XQ={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"]},QQ=XQ;/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/function JQ(e,t,n){return(t=tJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SN(Object(n),!0).forEach(function(r){JQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eJ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tJ(e){var t=eJ(e,"string");return typeof t=="symbol"?t:t+""}const ON=()=>{};let Pj={},c9={},f9=null,d9={mark:ON,measure:ON};try{typeof window<"u"&&(Pj=window),typeof document<"u"&&(c9=document),typeof MutationObserver<"u"&&(f9=MutationObserver),typeof performance<"u"&&(d9=performance)}catch{}const{userAgent:EN=""}=Pj.navigator||{},Ml=Pj,gn=c9,CN=f9,Yg=d9;Ml.document;const hs=!!gn.documentElement&&!!gn.head&&typeof gn.addEventListener=="function"&&typeof gn.createElement=="function",h9=~EN.indexOf("MSIE")||~EN.indexOf("Trident/");var nJ=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,rJ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,p9={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},iJ={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},m9=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],jr="classic",$0="duotone",aJ="sharp",oJ="sharp-duotone",v9=[jr,$0,aJ,oJ],sJ={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},lJ={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},uJ=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),cJ={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},fJ=["fak","fa-kit","fakd","fa-kit-duotone"],TN={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},dJ=["kit"],hJ={kit:{"fa-kit":"fak"}},pJ=["fak","fakd"],mJ={kit:{fak:"fa-kit"}},AN={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Kg={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},vJ=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],gJ=["fak","fa-kit","fakd","fa-kit-duotone"],yJ={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},bJ={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},_J={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},zE={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},xJ=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],FE=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...vJ,...xJ],wJ=["solid","regular","light","thin","duotone","brands"],g9=[1,2,3,4,5,6,7,8,9,10],SJ=g9.concat([11,12,13,14,15,16,17,18,19,20]),OJ=[...Object.keys(_J),...wJ,"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",Kg.GROUP,Kg.SWAP_OPACITY,Kg.PRIMARY,Kg.SECONDARY].concat(g9.map(e=>"".concat(e,"x"))).concat(SJ.map(e=>"w-".concat(e))),EJ={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const is="___FONT_AWESOME___",qE=16,y9="fa",b9="svg-inline--fa",tc="data-fa-i2svg",VE="data-fa-pseudo-element",CJ="data-fa-pseudo-element-pending",Rj="data-prefix",Mj="data-icon",jN="fontawesome-i2svg",TJ="async",AJ=["HTML","HEAD","STYLE","SCRIPT"],_9=(()=>{try{return!0}catch{return!1}})();function Qm(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[jr]}})}const x9=Ye({},p9);x9[jr]=Ye(Ye(Ye(Ye({},{"fa-duotone":"duotone"}),p9[jr]),TN.kit),TN["kit-duotone"]);const jJ=Qm(x9),HE=Ye({},cJ);HE[jr]=Ye(Ye(Ye(Ye({},{duotone:"fad"}),HE[jr]),AN.kit),AN["kit-duotone"]);const PN=Qm(HE),WE=Ye({},zE);WE[jr]=Ye(Ye({},WE[jr]),mJ.kit);const Nj=Qm(WE),GE=Ye({},bJ);GE[jr]=Ye(Ye({},GE[jr]),hJ.kit);Qm(GE);const PJ=nJ,w9="fa-layers-text",RJ=rJ,MJ=Ye({},sJ);Qm(MJ);const NJ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ew=iJ,LJ=[...dJ,...OJ],Mp=Ml.FontAwesomeConfig||{};function DJ(e){var t=gn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function kJ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}gn&&typeof gn.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=kJ(DJ(n));i!=null&&(Mp[r]=i)});const S9={styleDefault:"solid",familyDefault:jr,cssPrefix:y9,replacementClass:b9,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Mp.familyPrefix&&(Mp.cssPrefix=Mp.familyPrefix);const Hf=Ye(Ye({},S9),Mp);Hf.autoReplaceSvg||(Hf.observeMutations=!1);const lt={};Object.keys(S9).forEach(e=>{Object.defineProperty(lt,e,{enumerable:!0,set:function(t){Hf[e]=t,Np.forEach(n=>n(lt))},get:function(){return Hf[e]}})});Object.defineProperty(lt,"familyPrefix",{enumerable:!0,set:function(e){Hf.cssPrefix=e,Np.forEach(t=>t(lt))},get:function(){return Hf.cssPrefix}});Ml.FontAwesomeConfig=lt;const Np=[];function IJ(e){return Np.push(e),()=>{Np.splice(Np.indexOf(e),1)}}const hl=qE,Xa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function $J(e){if(!e||!hs)return;const t=gn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=gn.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return gn.head.insertBefore(t,r),e}const BJ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Xp(){let e=12,t="";for(;e-- >0;)t+=BJ[Math.random()*62|0];return t}function kd(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Lj(e){return e.classList?kd(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function O9(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function UJ(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(O9(e[n]),'" '),"").trim()}function B0(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Dj(e){return e.size!==Xa.size||e.x!==Xa.x||e.y!==Xa.y||e.rotate!==Xa.rotate||e.flipX||e.flipY}function zJ(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),f={transform:"".concat(a," ").concat(o," ").concat(l)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:f,path:c}}function FJ(e){let{transform:t,width:n=qE,height:r=qE,startCentered:i=!1}=e,a="";return i&&h9?a+="translate(".concat(t.x/hl-n/2,"em, ").concat(t.y/hl-r/2,"em) "):i?a+="translate(calc(-50% + ".concat(t.x/hl,"em), calc(-50% + ").concat(t.y/hl,"em)) "):a+="translate(".concat(t.x/hl,"em, ").concat(t.y/hl,"em) "),a+="scale(".concat(t.size/hl*(t.flipX?-1:1),", ").concat(t.size/hl*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var qJ=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
}
|
||
|
||
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
||
overflow: visible;
|
||
box-sizing: content-box;
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
}
|
||
.svg-inline--fa.fa-2xs {
|
||
vertical-align: 0.1em;
|
||
}
|
||
.svg-inline--fa.fa-xs {
|
||
vertical-align: 0em;
|
||
}
|
||
.svg-inline--fa.fa-sm {
|
||
vertical-align: -0.0714285705em;
|
||
}
|
||
.svg-inline--fa.fa-lg {
|
||
vertical-align: -0.2em;
|
||
}
|
||
.svg-inline--fa.fa-xl {
|
||
vertical-align: -0.25em;
|
||
}
|
||
.svg-inline--fa.fa-2xl {
|
||
vertical-align: -0.3125em;
|
||
}
|
||
.svg-inline--fa.fa-pull-left {
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-pull-right {
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
top: 0.25em;
|
||
}
|
||
.svg-inline--fa.fa-fw {
|
||
width: var(--fa-fw-width, 1.25em);
|
||
}
|
||
|
||
.fa-layers svg.svg-inline--fa {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.fa-layers-counter, .fa-layers-text {
|
||
display: inline-block;
|
||
position: absolute;
|
||
text-align: center;
|
||
}
|
||
|
||
.fa-layers {
|
||
display: inline-block;
|
||
height: 1em;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: -0.125em;
|
||
width: 1em;
|
||
}
|
||
.fa-layers svg.svg-inline--fa {
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translate(-50%, -50%);
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-counter {
|
||
background-color: var(--fa-counter-background-color, #ff253a);
|
||
border-radius: var(--fa-counter-border-radius, 1em);
|
||
box-sizing: border-box;
|
||
color: var(--fa-inverse, #fff);
|
||
line-height: var(--fa-counter-line-height, 1);
|
||
max-width: var(--fa-counter-max-width, 5em);
|
||
min-width: var(--fa-counter-min-width, 1.5em);
|
||
overflow: hidden;
|
||
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
||
right: var(--fa-right, 0);
|
||
text-overflow: ellipsis;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top left;
|
||
}
|
||
|
||
.fa-1x {
|
||
font-size: 1em;
|
||
}
|
||
|
||
.fa-2x {
|
||
font-size: 2em;
|
||
}
|
||
|
||
.fa-3x {
|
||
font-size: 3em;
|
||
}
|
||
|
||
.fa-4x {
|
||
font-size: 4em;
|
||
}
|
||
|
||
.fa-5x {
|
||
font-size: 5em;
|
||
}
|
||
|
||
.fa-6x {
|
||
font-size: 6em;
|
||
}
|
||
|
||
.fa-7x {
|
||
font-size: 7em;
|
||
}
|
||
|
||
.fa-8x {
|
||
font-size: 8em;
|
||
}
|
||
|
||
.fa-9x {
|
||
font-size: 9em;
|
||
}
|
||
|
||
.fa-10x {
|
||
font-size: 10em;
|
||
}
|
||
|
||
.fa-2xs {
|
||
font-size: 0.625em;
|
||
line-height: 0.1em;
|
||
vertical-align: 0.225em;
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: 0.75em;
|
||
line-height: 0.0833333337em;
|
||
vertical-align: 0.125em;
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: 0.875em;
|
||
line-height: 0.0714285718em;
|
||
vertical-align: 0.0535714295em;
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: 1.25em;
|
||
line-height: 0.05em;
|
||
vertical-align: -0.075em;
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: 1.5em;
|
||
line-height: 0.0416666682em;
|
||
vertical-align: -0.125em;
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: 2em;
|
||
line-height: 0.03125em;
|
||
vertical-align: -0.1875em;
|
||
}
|
||
|
||
.fa-fw {
|
||
text-align: center;
|
||
width: 1.25em;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-left: var(--fa-li-margin, 2.5em);
|
||
padding-left: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
left: calc(-1 * var(--fa-li-width, 2em));
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
.fa-border {
|
||
border-color: var(--fa-border-color, #eee);
|
||
border-radius: var(--fa-border-radius, 0.1em);
|
||
border-style: var(--fa-border-style, solid);
|
||
border-width: var(--fa-border-width, 0.08em);
|
||
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
||
}
|
||
|
||
.fa-pull-left {
|
||
float: left;
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right {
|
||
float: right;
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-beat {
|
||
animation-name: fa-beat;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
animation-name: fa-bounce;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
animation-name: fa-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
animation-name: fa-beat-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
animation-name: fa-flip;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
animation-name: fa-shake;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
animation-name: fa-spin;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
animation-name: fa-spin;
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.fa-beat,
|
||
.fa-bounce,
|
||
.fa-fade,
|
||
.fa-beat-fade,
|
||
.fa-flip,
|
||
.fa-pulse,
|
||
.fa-shake,
|
||
.fa-spin,
|
||
.fa-spin-pulse {
|
||
animation-delay: -1ms;
|
||
animation-duration: 1ms;
|
||
animation-iteration-count: 1;
|
||
transition-delay: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
transform: rotate(var(--fa-rotate-angle, 0));
|
||
}
|
||
|
||
.fa-stack {
|
||
display: inline-block;
|
||
vertical-align: middle;
|
||
height: 2em;
|
||
position: relative;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-stack-1x,
|
||
.fa-stack-2x {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
z-index: var(--fa-stack-z-index, auto);
|
||
}
|
||
|
||
.svg-inline--fa.fa-stack-1x {
|
||
height: 1em;
|
||
width: 1.25em;
|
||
}
|
||
.svg-inline--fa.fa-stack-2x {
|
||
height: 2em;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.sr-only,
|
||
.fa-sr-only {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.sr-only-focusable:not(:focus),
|
||
.fa-sr-only-focusable:not(:focus) {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.svg-inline--fa .fa-primary {
|
||
fill: var(--fa-primary-color, currentColor);
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa .fa-secondary {
|
||
fill: var(--fa-secondary-color, currentColor);
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa mask .fa-primary,
|
||
.svg-inline--fa mask .fa-secondary {
|
||
fill: black;
|
||
}`;function E9(){const e=y9,t=b9,n=lt.cssPrefix,r=lt.replacementClass;let i=qJ;if(n!==e||r!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(r))}return i}let RN=!1;function tw(){lt.autoAddCss&&!RN&&($J(E9()),RN=!0)}var VJ={mixout(){return{dom:{css:E9,insertCss:tw}}},hooks(){return{beforeDOMElementCreation(){tw()},beforeI2svg(){tw()}}}};const as=Ml||{};as[is]||(as[is]={});as[is].styles||(as[is].styles={});as[is].hooks||(as[is].hooks={});as[is].shims||(as[is].shims=[]);var Qa=as[is];const C9=[],T9=function(){gn.removeEventListener("DOMContentLoaded",T9),Uy=1,C9.map(e=>e())};let Uy=!1;hs&&(Uy=(gn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(gn.readyState),Uy||gn.addEventListener("DOMContentLoaded",T9));function HJ(e){hs&&(Uy?setTimeout(e,0):C9.push(e))}function Jm(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?O9(e):"<".concat(t," ").concat(UJ(n),">").concat(r.map(Jm).join(""),"</").concat(t,">")}function MN(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var nw=function(t,n,r,i){var a=Object.keys(t),o=a.length,l=n,f,c,h;for(r===void 0?(f=1,h=t[a[0]]):(f=0,h=r);f<o;f++)c=a[f],h=l(h,t[c],c,t);return h};function WJ(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 a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function YE(e){const t=WJ(e);return t.length===1?t[0].toString(16):null}function GJ(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 NN(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 KE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=NN(t);typeof Qa.hooks.addPack=="function"&&!r?Qa.hooks.addPack(e,NN(t)):Qa.styles[e]=Ye(Ye({},Qa.styles[e]||{}),i),e==="fas"&&KE("fa",t)}const{styles:Qp,shims:YJ}=Qa,A9=Object.keys(Nj),KJ=A9.reduce((e,t)=>(e[t]=Object.keys(Nj[t]),e),{});let kj=null,j9={},P9={},R9={},M9={},N9={};function ZJ(e){return~LJ.indexOf(e)}function XJ(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!ZJ(i)?i:null}const L9=()=>{const e=r=>nw(Qp,(i,a,o)=>(i[o]=nw(a,r,{}),i),{});j9=e((r,i,a)=>(i[3]&&(r[i[3]]=a),i[2]&&i[2].filter(l=>typeof l=="number").forEach(l=>{r[l.toString(16)]=a}),r)),P9=e((r,i,a)=>(r[a]=a,i[2]&&i[2].filter(l=>typeof l=="string").forEach(l=>{r[l]=a}),r)),N9=e((r,i,a)=>{const o=i[2];return r[a]=a,o.forEach(l=>{r[l]=a}),r});const t="far"in Qp||lt.autoFetchSvg,n=nw(YJ,(r,i)=>{const a=i[0];let o=i[1];const l=i[2];return o==="far"&&!t&&(o="fas"),typeof a=="string"&&(r.names[a]={prefix:o,iconName:l}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:o,iconName:l}),r},{names:{},unicodes:{}});R9=n.names,M9=n.unicodes,kj=U0(lt.styleDefault,{family:lt.familyDefault})};IJ(e=>{kj=U0(e.styleDefault,{family:lt.familyDefault})});L9();function Ij(e,t){return(j9[e]||{})[t]}function QJ(e,t){return(P9[e]||{})[t]}function Uu(e,t){return(N9[e]||{})[t]}function D9(e){return R9[e]||{prefix:null,iconName:null}}function JJ(e){const t=M9[e],n=Ij("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Nl(){return kj}const k9=()=>({prefix:null,iconName:null,rest:[]});function eee(e){let t=jr;const n=A9.reduce((r,i)=>(r[i]="".concat(lt.cssPrefix,"-").concat(i),r),{});return v9.forEach(r=>{(e.includes(n[r])||e.some(i=>KJ[r].includes(i)))&&(t=r)}),t}function U0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=jr}=t,r=jJ[n][e];if(n===$0&&!e)return"fad";const i=PN[n][e]||PN[n][r],a=e in Qa.styles?e:null;return i||a||null}function tee(e){let t=[],n=null;return e.forEach(r=>{const i=XJ(lt.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function LN(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function z0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=FE.concat(gJ),a=LN(e.filter(m=>i.includes(m))),o=LN(e.filter(m=>!FE.includes(m))),l=a.filter(m=>(r=m,!m9.includes(m))),[f=null]=l,c=eee(a),h=Ye(Ye({},tee(o)),{},{prefix:U0(f,{family:c})});return Ye(Ye(Ye({},h),aee({values:e,family:c,styles:Qp,config:lt,canonical:h,givenPrefix:r})),nee(n,r,h))}function nee(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const a=t==="fa"?D9(i):{},o=Uu(r,i);return i=a.iconName||o||i,r=a.prefix||r,r==="far"&&!Qp.far&&Qp.fas&&!lt.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const ree=v9.filter(e=>e!==jr||e!==$0),iee=Object.keys(zE).filter(e=>e!==jr).map(e=>Object.keys(zE[e])).flat();function aee(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:a={},config:o={}}=e,l=n===$0,f=t.includes("fa-duotone")||t.includes("fad"),c=o.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!l&&(f||c||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&ree.includes(n)&&(Object.keys(a).find(g=>iee.includes(g))||o.autoFetchSvg)){const g=uJ.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=Uu(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=Nl()||"fas"),r}class oee{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(a=>{this.definitions[a]=Ye(Ye({},this.definitions[a]||{}),i[a]),KE(a,i[a]);const o=Nj[jr][a];o&&KE(o,i[a]),L9()})}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:a,iconName:o,icon:l}=r[i],f=l[2];t[a]||(t[a]={}),f.length>0&&f.forEach(c=>{typeof c=="string"&&(t[a][c]=l)}),t[a][o]=l}),t}}let DN=[],jf={};const $f={},see=Object.keys($f);function lee(e,t){let{mixoutsTo:n}=t;return DN=e,jf={},Object.keys($f).forEach(r=>{see.indexOf(r)===-1&&delete $f[r]}),DN.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(a=>{typeof i[a]=="function"&&(n[a]=i[a]),typeof i[a]=="object"&&Object.keys(i[a]).forEach(o=>{n[a]||(n[a]={}),n[a][o]=i[a][o]})}),r.hooks){const a=r.hooks();Object.keys(a).forEach(o=>{jf[o]||(jf[o]=[]),jf[o].push(a[o])})}r.provides&&r.provides($f)}),n}function ZE(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(jf[e]||[]).forEach(o=>{t=o.apply(null,[t,...r])}),t}function nc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(jf[e]||[]).forEach(a=>{a.apply(null,n)})}function Ll(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return $f[e]?$f[e].apply(null,t):void 0}function XE(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Nl();if(t)return t=Uu(n,t)||t,MN(I9.definitions,n,t)||MN(Qa.styles,n,t)}const I9=new oee,uee=()=>{lt.autoReplaceSvg=!1,lt.observeMutations=!1,nc("noAuto")},cee={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return hs?(nc("beforeI2svg",e),Ll("pseudoElements2svg",e),Ll("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;lt.autoReplaceSvg===!1&&(lt.autoReplaceSvg=!0),lt.observeMutations=!0,HJ(()=>{dee({autoReplaceSvgRoot:t}),nc("watch",e)})}},fee={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Uu(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=U0(e[0]);return{prefix:n,iconName:Uu(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(lt.cssPrefix,"-"))>-1||e.match(PJ))){const t=z0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Nl(),iconName:Uu(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Nl();return{prefix:t,iconName:Uu(t,e)||e}}}},Pi={noAuto:uee,config:lt,dom:cee,parse:fee,library:I9,findIconDefinition:XE,toHtml:Jm},dee=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=gn}=e;(Object.keys(Qa.styles).length>0||lt.autoFetchSvg)&&hs&<.autoReplaceSvg&&Pi.dom.i2svg({node:t})};function F0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Jm(n))}}),Object.defineProperty(e,"node",{get:function(){if(!hs)return;const n=gn.createElement("div");return n.innerHTML=e.html,n.children}}),e}function hee(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:o}=e;if(Dj(o)&&n.found&&!r.found){const{width:l,height:f}=n,c={x:l/f/2,y:.5};i.style=B0(Ye(Ye({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function pee(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e;const o=a===!0?"".concat(t,"-").concat(lt.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ye(Ye({},i),{},{id:o}),children:r}]}]}function $j(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:o,title:l,maskId:f,titleId:c,extra:h,watchable:m=!1}=e,{width:g,height:x}=n.found?n:t,_=pJ.includes(r),w=[lt.replacementClass,i?"".concat(lt.cssPrefix,"-").concat(i):""].filter(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let S={children:[],attributes:Ye(Ye({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:w,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(x)})};const O=_&&!~h.classes.indexOf("fa-fw")?{width:"".concat(g/x*16*.0625,"em")}:{};m&&(S.attributes[tc]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(c||Xp())},children:[l]}),delete S.attributes.title);const C=Ye(Ye({},S),{},{prefix:r,iconName:i,main:t,mask:n,maskId:f,transform:a,symbol:o,styles:Ye(Ye({},O),h.styles)}),{children:T,attributes:j}=n.found&&t.found?Ll("generateAbstractMask",C)||{children:[],attributes:{}}:Ll("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=T,C.attributes=j,o?pee(C):hee(C)}function kN(e){const{content:t,width:n,height:r,transform:i,title:a,extra:o,watchable:l=!1}=e,f=Ye(Ye(Ye({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(f[tc]="");const c=Ye({},o.styles);Dj(i)&&(c.transform=FJ({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const h=B0(c);h.length>0&&(f.style=h);const m=[];return m.push({tag:"span",attributes:f,children:[t]}),a&&m.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),m}function mee(e){const{content:t,title:n,extra:r}=e,i=Ye(Ye(Ye({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=B0(r.styles);a.length>0&&(i.style=a);const o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}const{styles:rw}=Qa;function QE(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(lt.cssPrefix,"-").concat(ew.GROUP)},children:[{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(ew.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(ew.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const vee={found:!1,width:512,height:512};function gee(e,t){!_9&&!lt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function JE(e,t){let n=t;return t==="fa"&<.styleDefault!==null&&(t=Nl()),new Promise((r,i)=>{if(n==="fa"){const a=D9(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&rw[t]&&rw[t][e]){const a=rw[t][e];return r(QE(a))}gee(e,t),r(Ye(Ye({},vee),{},{icon:lt.showMissingIcons&&e?Ll("missingIconAbstract")||{}:{}}))})}const IN=()=>{},eC=lt.measurePerformance&&Yg&&Yg.mark&&Yg.measure?Yg:{mark:IN,measure:IN},_p='FA "6.7.2"',yee=e=>(eC.mark("".concat(_p," ").concat(e," begins")),()=>$9(e)),$9=e=>{eC.mark("".concat(_p," ").concat(e," ends")),eC.measure("".concat(_p," ").concat(e),"".concat(_p," ").concat(e," begins"),"".concat(_p," ").concat(e," ends"))};var Bj={begin:yee,end:$9};const Ey=()=>{};function $N(e){return typeof(e.getAttribute?e.getAttribute(tc):null)=="string"}function bee(e){const t=e.getAttribute?e.getAttribute(Rj):null,n=e.getAttribute?e.getAttribute(Mj):null;return t&&n}function _ee(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(lt.replacementClass)}function xee(){return lt.autoReplaceSvg===!0?Cy.replace:Cy[lt.autoReplaceSvg]||Cy.replace}function wee(e){return gn.createElementNS("http://www.w3.org/2000/svg",e)}function See(e){return gn.createElement(e)}function B9(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?wee:See}=t;if(typeof e=="string")return gn.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){r.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){r.appendChild(B9(a,{ceFn:n}))}),r}function Oee(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Cy={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(B9(n),t)}),t.getAttribute(tc)===null&<.keepOriginalSource){let n=gn.createComment(Oee(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Lj(t).indexOf(lt.replacementClass))return Cy.replace(e);const r=new RegExp("".concat(lt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((o,l)=>(l===lt.replacementClass||l.match(r)?o.toSvg.push(l):o.toNode.push(l),o),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const i=n.map(a=>Jm(a)).join(`
|
||
`);t.setAttribute(tc,""),t.innerHTML=i}};function BN(e){e()}function U9(e,t){const n=typeof t=="function"?t:Ey;if(e.length===0)n();else{let r=BN;lt.mutateApproach===TJ&&(r=Ml.requestAnimationFrame||BN),r(()=>{const i=xee(),a=Bj.begin("mutate");e.map(i),a(),n()})}}let Uj=!1;function z9(){Uj=!0}function tC(){Uj=!1}let zy=null;function UN(e){if(!CN||!lt.observeMutations)return;const{treeCallback:t=Ey,nodeCallback:n=Ey,pseudoElementsCallback:r=Ey,observeMutationsRoot:i=gn}=e;zy=new CN(a=>{if(Uj)return;const o=Nl();kd(a).forEach(l=>{if(l.type==="childList"&&l.addedNodes.length>0&&!$N(l.addedNodes[0])&&(lt.searchPseudoElements&&r(l.target),t(l.target)),l.type==="attributes"&&l.target.parentNode&<.searchPseudoElements&&r(l.target.parentNode),l.type==="attributes"&&$N(l.target)&&~NJ.indexOf(l.attributeName))if(l.attributeName==="class"&&bee(l.target)){const{prefix:f,iconName:c}=z0(Lj(l.target));l.target.setAttribute(Rj,f||o),c&&l.target.setAttribute(Mj,c)}else _ee(l.target)&&n(l.target)})}),hs&&zy.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Eee(){zy&&zy.disconnect()}function Cee(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(r[o]=l.join(":").trim()),r},{})),n}function Tee(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=z0(Lj(e));return i.prefix||(i.prefix=Nl()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=QJ(i.prefix,e.innerText)||Ij(i.prefix,YE(e.innerText))),!i.iconName&<.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Aee(e){const t=kd(e.attributes).reduce((i,a)=>(i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return lt.autoA11y&&(n?t["aria-labelledby"]="".concat(lt.replacementClass,"-title-").concat(r||Xp()):(t["aria-hidden"]="true",t.focusable="false")),t}function jee(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function zN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=Tee(e),a=Aee(e),o=ZE("parseNodeAttributes",{},e);let l=t.styleParser?Cee(e):[];return Ye({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Xa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:a}},o)}const{styles:Pee}=Qa;function F9(e){const t=lt.autoReplaceSvg==="nest"?zN(e,{styleParser:!1}):zN(e);return~t.extra.classes.indexOf(w9)?Ll("generateLayersText",e,t):Ll("generateSvgReplacementMutation",e,t)}function Ree(){return[...fJ,...FE]}function FN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!hs)return Promise.resolve();const n=gn.documentElement.classList,r=h=>n.add("".concat(jN,"-").concat(h)),i=h=>n.remove("".concat(jN,"-").concat(h)),a=lt.autoFetchSvg?Ree():m9.concat(Object.keys(Pee));a.includes("fa")||a.push("fa");const o=[".".concat(w9,":not([").concat(tc,"])")].concat(a.map(h=>".".concat(h,":not([").concat(tc,"])"))).join(", ");if(o.length===0)return Promise.resolve();let l=[];try{l=kd(e.querySelectorAll(o))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();const f=Bj.begin("onTree"),c=l.reduce((h,m)=>{try{const g=F9(m);g&&h.push(g)}catch(g){_9||g.name==="MissingIcon"&&console.error(g)}return h},[]);return new Promise((h,m)=>{Promise.all(c).then(g=>{U9(g,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),f(),h()})}).catch(g=>{f(),m(g)})})}function Mee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;F9(e).then(n=>{n&&U9([n],t)})}function Nee(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:XE(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:XE(i||{})),e(r,Ye(Ye({},n),{},{mask:i}))}}const Lee=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Xa,symbol:r=!1,mask:i=null,maskId:a=null,title:o=null,titleId:l=null,classes:f=[],attributes:c={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:g,icon:x}=e;return F0(Ye({type:"icon"},e),()=>(nc("beforeDOMElementCreation",{iconDefinition:e,params:t}),lt.autoA11y&&(o?c["aria-labelledby"]="".concat(lt.replacementClass,"-title-").concat(l||Xp()):(c["aria-hidden"]="true",c.focusable="false")),$j({icons:{main:QE(x),mask:i?QE(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:g,transform:Ye(Ye({},Xa),n),symbol:r,title:o,maskId:a,titleId:l,extra:{attributes:c,styles:h,classes:f}})))};var Dee={mixout(){return{icon:Nee(Lee)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=FN,e.nodeCallback=Mee,e}}},provides(e){e.i2svg=function(t){const{node:n=gn,callback:r=()=>{}}=t;return FN(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:a,prefix:o,transform:l,symbol:f,mask:c,maskId:h,extra:m}=n;return new Promise((g,x)=>{Promise.all([JE(r,o),c.iconName?JE(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(_=>{let[w,S]=_;g([t,$j({icons:{main:w,mask:S},prefix:o,iconName:r,transform:l,symbol:f,maskId:h,title:i,titleId:a,extra:m,watchable:!0})])}).catch(x)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:a,styles:o}=t;const l=B0(o);l.length>0&&(r.style=l);let f;return Dj(a)&&(f=Ll("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(f||i.icon),{children:n,attributes:r}}}},kee={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return F0({type:"layer"},()=>{nc("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(a=>{r=r.concat(a.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(lt.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},Iee={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return F0({type:"counter",content:e},()=>(nc("beforeDOMElementCreation",{content:e,params:t}),mee({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:["".concat(lt.cssPrefix,"-layers-counter"),...r]}})))}}}},$ee={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Xa,title:r=null,classes:i=[],attributes:a={},styles:o={}}=t;return F0({type:"text",content:e},()=>(nc("beforeDOMElementCreation",{content:e,params:t}),kN({content:e,transform:Ye(Ye({},Xa),n),title:r,extra:{attributes:a,styles:o,classes:["".concat(lt.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:a}=n;let o=null,l=null;if(h9){const f=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();o=c.width/f,l=c.height/f}return lt.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,kN({content:t.innerHTML,width:o,height:l,transform:i,title:r,extra:a,watchable:!0})])}}};const Bee=new RegExp('"',"ug"),qN=[1105920,1112319],VN=Ye(Ye(Ye(Ye({},{FontAwesome:{normal:"fas",400:"fas"}}),lJ),EJ),yJ),nC=Object.keys(VN).reduce((e,t)=>(e[t.toLowerCase()]=VN[t],e),{}),Uee=Object.keys(nC).reduce((e,t)=>{const n=nC[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function zee(e){const t=e.replace(Bee,""),n=GJ(t,0),r=n>=qN[0]&&n<=qN[1],i=t.length===2?t[0]===t[1]:!1;return{value:YE(i?t[0]:t),isSecondary:r||i}}function Fee(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(nC[n]||{})[i]||Uee[n]}function HN(e,t){const n="".concat(CJ).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const o=kd(e.children).filter(g=>g.getAttribute(VE)===t)[0],l=Ml.getComputedStyle(e,t),f=l.getPropertyValue("font-family"),c=f.match(RJ),h=l.getPropertyValue("font-weight"),m=l.getPropertyValue("content");if(o&&!c)return e.removeChild(o),r();if(c&&m!=="none"&&m!==""){const g=l.getPropertyValue("content");let x=Fee(f,h);const{value:_,isSecondary:w}=zee(g),S=c[0].startsWith("FontAwesome");let O=Ij(x,_),C=O;if(S){const T=JJ(_);T.iconName&&T.prefix&&(O=T.iconName,x=T.prefix)}if(O&&!w&&(!o||o.getAttribute(Rj)!==x||o.getAttribute(Mj)!==C)){e.setAttribute(n,C),o&&e.removeChild(o);const T=jee(),{extra:j}=T;j.attributes[VE]=t,JE(O,x).then(P=>{const R=$j(Ye(Ye({},T),{},{icons:{main:P,mask:k9()},prefix:x,iconName:C,extra:j,watchable:!0})),I=gn.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(I,e.firstChild):e.appendChild(I),I.outerHTML=R.map(V=>Jm(V)).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function qee(e){return Promise.all([HN(e,"::before"),HN(e,"::after")])}function Vee(e){return e.parentNode!==document.head&&!~AJ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(VE)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function WN(e){if(hs)return new Promise((t,n)=>{const r=kd(e.querySelectorAll("*")).filter(Vee).map(qee),i=Bj.begin("searchPseudoElements");z9(),Promise.all(r).then(()=>{i(),tC(),t()}).catch(()=>{i(),tC(),n()})})}var Hee={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=WN,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=gn}=t;lt.searchPseudoElements&&WN(n)}}};let GN=!1;var Wee={mixout(){return{dom:{unwatch(){z9(),GN=!0}}}},hooks(){return{bootstrap(){UN(ZE("mutationObserverCallbacks",{}))},noAuto(){Eee()},watch(e){const{observeMutationsRoot:t}=e;GN?tC():UN(ZE("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const YN=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("-"),a=i[0];let o=i.slice(1).join("-");if(a&&o==="h")return n.flipX=!0,n;if(a&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(a){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},t)};var Gee={mixout(){return{parse:{transform:e=>YN(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=YN(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:a}=t;const o={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(r.x*32,", ").concat(r.y*32,") "),f="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(l," ").concat(f," ").concat(c)},m={transform:"translate(".concat(a/2*-1," -256)")},g={outer:o,inner:h,path:m};return{tag:"g",attributes:Ye({},g.outer),children:[{tag:"g",attributes:Ye({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ye(Ye({},n.icon.attributes),g.path)}]}]}}}};const iw={x:0,y:0,width:"100%",height:"100%"};function KN(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 Yee(e){return e.tag==="g"?e.children:[e]}var Kee={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?z0(n.split(" ").map(i=>i.trim())):k9();return r.prefix||(r.prefix=Nl()),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:a,maskId:o,transform:l}=t;const{width:f,icon:c}=i,{width:h,icon:m}=a,g=zJ({transform:l,containerWidth:h,iconWidth:f}),x={tag:"rect",attributes:Ye(Ye({},iw),{},{fill:"white"})},_=c.children?{children:c.children.map(KN)}:{},w={tag:"g",attributes:Ye({},g.inner),children:[KN(Ye({tag:c.tag,attributes:Ye(Ye({},c.attributes),g.path)},_))]},S={tag:"g",attributes:Ye({},g.outer),children:[w]},O="mask-".concat(o||Xp()),C="clip-".concat(o||Xp()),T={tag:"mask",attributes:Ye(Ye({},iw),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,S]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:Yee(m)},T]};return n.push(j,{tag:"rect",attributes:Ye({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(O,")")},iw)}),{children:n,attributes:r}}}},Zee={provides(e){let t=!1;Ml.matchMedia&&(t=Ml.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:Ye(Ye({},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 a=Ye(Ye({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:Ye(Ye({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:Ye(Ye({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ye(Ye({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:Ye(Ye({},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:Ye(Ye({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Ye(Ye({},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:Ye(Ye({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Xee={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},Qee=[VJ,Dee,kee,Iee,$ee,Hee,Wee,Gee,Kee,Zee,Xee];lee(Qee,{mixoutsTo:Pi});Pi.noAuto;Pi.config;Pi.library;Pi.dom;const rC=Pi.parse;Pi.findIconDefinition;Pi.toHtml;const Jee=Pi.icon;Pi.layer;Pi.text;Pi.counter;var aw={exports:{}},ow,ZN;function ete(){if(ZN)return ow;ZN=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ow=e,ow}var sw,XN;function tte(){if(XN)return sw;XN=1;var e=ete();function t(){}function n(){}return n.resetWarningCache=t,sw=function(){function r(o,l,f,c,h,m){if(m!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},sw}var QN;function nte(){return QN||(QN=1,aw.exports=tte()()),aw.exports}var rte=nte();const ie=Lt(rte);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 Za(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){Pf(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 Fy(e){"@babel/helpers - typeof";return Fy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fy(e)}function Pf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ite(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ate(e,t){if(e==null)return{};var n=ite(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iC(e){return ote(e)||ste(e)||lte(e)||ute()}function ote(e){if(Array.isArray(e))return aC(e)}function ste(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lte(e,t){if(e){if(typeof e=="string")return aC(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 aC(e,t)}}function aC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ute(){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 cte(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,f=e.spin,c=e.spinPulse,h=e.spinReverse,m=e.pulse,g=e.fixedWidth,x=e.inverse,_=e.border,w=e.listItem,S=e.flip,O=e.size,C=e.rotation,T=e.pull,j=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":f,"fa-spin-reverse":h,"fa-spin-pulse":c,"fa-pulse":m,"fa-fw":g,"fa-inverse":x,"fa-border":_,"fa-li":w,"fa-flip":S===!0,"fa-flip-horizontal":S==="horizontal"||S==="both","fa-flip-vertical":S==="vertical"||S==="both"},Pf(t,"fa-".concat(O),typeof O<"u"&&O!==null),Pf(t,"fa-rotate-".concat(C),typeof C<"u"&&C!==null&&C!==0),Pf(t,"fa-pull-".concat(T),typeof T<"u"&&T!==null),Pf(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(j).map(function(P){return j[P]?P:null}).filter(function(P){return P})}function fte(e){return e=e-0,e===e}function q9(e){return fte(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var dte=["style"];function hte(e){return e.charAt(0).toUpperCase()+e.slice(1)}function pte(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=q9(n.slice(0,r)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[hte(i)]=a:t[i]=a,t},{})}function V9(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(f){return V9(e,f)}),i=Object.keys(t.attributes||{}).reduce(function(f,c){var h=t.attributes[c];switch(c){case"class":f.attrs.className=h,delete t.attributes.class;break;case"style":f.attrs.style=pte(h);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?f.attrs[c.toLowerCase()]=h:f.attrs[q9(c)]=h}return f},{attrs:{}}),a=n.style,o=a===void 0?{}:a,l=ate(n,dte);return i.attrs.style=Za(Za({},i.attrs.style),o),e.apply(void 0,[t.tag,Za(Za({},i.attrs),l)].concat(iC(r)))}var H9=!1;try{H9=!0}catch{}function mte(){if(!H9&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function e6(e){if(e&&Fy(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(rC.icon)return rC.icon(e);if(e===null)return null;if(e&&Fy(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 lw(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Pf({},e,t):{}}var t6={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},Xe=ae.forwardRef(function(e,t){var n=Za(Za({},t6),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,l=n.title,f=n.titleId,c=n.maskId,h=e6(r),m=lw("classes",[].concat(iC(cte(n)),iC((o||"").split(" ")))),g=lw("transform",typeof n.transform=="string"?rC.transform(n.transform):n.transform),x=lw("mask",e6(i)),_=Jee(h,Za(Za(Za(Za({},m),g),x),{},{symbol:a,title:l,titleId:f,maskId:c}));if(!_)return mte("Could not find icon",h),null;var w=_.abstract,S={ref:t};return Object.keys(n).forEach(function(O){t6.hasOwnProperty(O)||(S[O]=n[O])}),vte(w[0],S)});Xe.displayName="FontAwesomeIcon";Xe.propTypes={beat:ie.bool,border:ie.bool,beatFade:ie.bool,bounce:ie.bool,className:ie.string,fade:ie.bool,flash:ie.bool,mask:ie.oneOfType([ie.object,ie.array,ie.string]),maskId:ie.string,fixedWidth:ie.bool,inverse:ie.bool,flip:ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ie.oneOfType([ie.object,ie.array,ie.string]),listItem:ie.bool,pull:ie.oneOf(["right","left"]),pulse:ie.bool,rotation:ie.oneOf([0,90,180,270]),shake:ie.bool,size:ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ie.bool,spinPulse:ie.bool,spinReverse:ie.bool,symbol:ie.oneOfType([ie.bool,ie.string]),title:ie.string,titleId:ie.string,transform:ie.oneOfType([ie.string,ie.object]),swapOpacity:ie.bool};var vte=V9.bind(null,ae.createElement);function W9(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=W9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ke(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=W9(e))&&(r&&(r+=" "),r+=t);return r}var uw={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/var n6;function gte(){return n6||(n6=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var f in a)t.call(a,f)&&a[f]&&r.push(f)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(uw)),uw.exports}var yte=gte();const xt=Lt(yte);function r6(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 bte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r6(Object(n),!0).forEach(function(r){_te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function xte(){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 G9(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function wte(){return document.body.clientWidth<window.innerWidth}function Ste(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function Ote(){var e=xte(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;wte()&&G9(n+e)}var Ete;function gt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ete;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function Fl(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Y9(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,a={};r>0;)r-=1,i=n[r],a[i]=e[i];return a}var i6={};function oC(e){i6[e]||(typeof console<"u"&&console.error(e),i6[e]=!0)}function K9(e,t){return function(r,i,a){r[i]!==null&&typeof r[i]<"u"&&oC('"'.concat(i,'" property of "').concat(a,`" has been deprecated.
|
||
`).concat(t));for(var o=arguments.length,l=new Array(o>3?o-3:0),f=3;f<o;f++)l[f-3]=arguments[f];return e.apply(void 0,[r,i,a].concat(l))}}var Cte=(typeof window>"u"?"undefined":rc(window))==="object"&&window.Element||function(){};function zj(e,t,n){if(!(e[t]instanceof Cte))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var Wf=ie.oneOfType([ie.string,ie.func,zj,ie.shape({current:ie.any})]),$t=ie.oneOfType([ie.func,ie.string,ie.shape({$$typeof:ie.symbol,render:ie.func}),ie.arrayOf(ie.oneOfType([ie.func,ie.string,ie.shape({$$typeof:ie.symbol,render:ie.func})]))]),qy={Fade:150,Collapse:350,Modal:300},Vy=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Zg={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Yt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},Tte=["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"],Fj=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ate(e){return e&&rc(e)==="object"?"current"in e:!1}function Z9(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function sC(e){var t=rc(e);return e!=null&&(t==="object"||t==="function")}function a6(e){var t=rc(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&Z9(e)==="[object Symbol]")return n;if(sC(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=sC(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 jte(e){if(!sC(e))return!1;var t=Z9(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function Pte(e){if(Ate(e))return e.current;if(jte(e))return e();if(typeof e=="string"&&Fj){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 o6(e){return e===null?!1:Array.isArray(e)||Fj&&typeof e.length=="number"}function Jp(e,t){var n=Pte(e);return t?o6(n)?n:n===null?[]:[n]:o6(n)?n[0]:n}var Rte=["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 qj(e,t){if(!e||!t)return t;var n=bte({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&rc(e[r])==="object"&&qj(e[r],n)}),n}var Mte=["className","cssModule","noGutters","tag","widths"];function lC(){return lC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lC.apply(this,arguments)}function Nte(e,t){if(e==null)return{};var n=Lte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Dte=["xs","sm","md","lg","xl","xxl"],pf=ie.oneOfType([ie.number,ie.string]),kte={tag:$t,noGutters:K9(ie.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:ie.string,cssModule:ie.object,xs:pf,sm:pf,md:pf,lg:pf,xl:pf,xxl:pf,widths:ie.array};function Ja(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,a=i===void 0?"div":i,o=e.widths,l=o===void 0?Dte:o,f=Nte(e,Mte),c=[];l.forEach(function(m,g){var x=e[m];if(delete f[m],!!x){var _=!g;c.push(_?"row-cols-".concat(x):"row-cols-".concat(m,"-").concat(x))}});var h=gt(xt(t,r?"gx-0":null,"row",c),n);return ae.createElement(a,lC({},f,{className:h}))}Ja.propTypes=kte;var Ite=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uC.apply(this,arguments)}function cw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $te(e,t){if(e==null)return{};var n=Bte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ute={children:ie.node,className:ie.string,color:ie.string,container:ie.oneOfType([ie.bool,ie.string]),cssModule:ie.object,dark:ie.bool,expand:ie.oneOfType([ie.bool,ie.string]),fixed:ie.string,light:ie.bool,role:ie.string,sticky:ie.string,tag:$t},zte=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function X9(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,a=e.cssModule,o=e.light,l=e.dark,f=e.fixed,c=e.sticky,h=e.color,m=e.container,g=m===void 0?"fluid":m,x=e.tag,_=x===void 0?"nav":x,w=e.children,S=$te(e,Ite),O=gt(xt(i,"navbar",zte(r),(t={"navbar-light":o,"navbar-dark":l},cw(t,"bg-".concat(h),h),cw(t,"fixed-".concat(f),f),cw(t,"sticky-".concat(c),c),t)),a),C=g&&g===!0?"container":"container-".concat(g);return ae.createElement(_,uC({},S,{className:O}),g?ae.createElement("div",{className:C},w):w)}X9.propTypes=Ute;var Fte=["className","cssModule","tag"];function cC(){return cC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cC.apply(this,arguments)}function qte(e,t){if(e==null)return{};var n=Vte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hte={className:ie.string,cssModule:ie.object,tag:$t};function Q9(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,a=qte(e,Fte),o=gt(xt(t,"navbar-brand"),n);return ae.createElement(i,cC({},a,{className:o}))}Q9.propTypes=Hte;var Wte=["className","cssModule","children","tag"];function fC(){return fC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fC.apply(this,arguments)}function s6(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 Gte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s6(Object(n),!0).forEach(function(r){Yte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kte(e,t){if(e==null)return{};var n=Zte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[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,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xte={className:ie.string,cssModule:ie.object,tag:$t,type:ie.string,children:ie.node};function J9(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,a=i===void 0?"button":i,o=Kte(e,Wte),l=gt(xt(t,"navbar-toggler"),n);return ae.createElement(a,fC({"aria-label":"Toggle navigation"},Gte({type:"button"},o),{className:l}),r||ae.createElement("span",{className:gt("navbar-toggler-icon",n)}))}J9.propTypes=Xte;var Qte=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dC.apply(this,arguments)}function Jte(e,t){if(e==null)return{};var n=ene(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[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,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tne={card:ie.bool,className:ie.string,cssModule:ie.object,fill:ie.bool,horizontal:ie.oneOf(["center","end"]),justified:ie.bool,navbar:ie.bool,pills:ie.bool,tabs:ie.bool,tag:$t,vertical:ie.oneOfType([ie.bool,ie.string])},nne=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function Vj(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,a=e.vertical,o=a===void 0?!1:a,l=e.horizontal,f=e.justified,c=e.fill,h=e.navbar,m=e.card,g=e.tag,x=g===void 0?"ul":g,_=Jte(e,Qte),w=gt(xt(t,h?"navbar-nav":"nav",l?"justify-content-".concat(l):!1,nne(o),{"nav-tabs":r,"card-header-tabs":m&&r,"nav-pills":i,"card-header-pills":m&&i,"nav-justified":f,"nav-fill":c}),n);return ae.createElement(x,dC({},_,{className:w}))}Vj.propTypes=tne;var rne=["className","cssModule","active","tag"];function hC(){return hC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hC.apply(this,arguments)}function ine(e,t){if(e==null)return{};var n=ane(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ane(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var one={active:ie.bool,className:ie.string,cssModule:ie.object,tag:$t};function Hj(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,a=i===void 0?"li":i,o=ine(e,rne),l=gt(xt(t,"nav-item",r?"active":!1),n);return ae.createElement(a,hC({},o,{className:l}))}Hj.propTypes=one;function pC(e){"@babel/helpers - typeof";return pC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pC(e)}var sne=["className","cssModule","active","tag","innerRef"];function mC(){return mC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mC.apply(this,arguments)}function lne(e,t){if(e==null)return{};var n=une(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function une(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fne(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 dne(e,t,n){return t&&fne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vC(e,t)}function vC(e,t){return vC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vC(e,t)}function pne(e){var t=vne();return function(){var r=Hy(e),i;if(t){var a=Hy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return mne(this,i)}}function mne(e,t){if(t&&(pC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eU(e)}function eU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vne(){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 Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hy(e)}var gne={active:ie.bool,className:ie.string,cssModule:ie.object,disabled:ie.bool,href:ie.any,innerRef:ie.oneOfType([ie.object,ie.func,ie.string]),onClick:ie.func,tag:$t},Wj=function(e){hne(n,e);var t=pne(n);function n(r){var i;return cne(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(eU(i)),i}return dne(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,a=i.className,o=i.cssModule,l=i.active,f=i.tag,c=f===void 0?"a":f,h=i.innerRef,m=lne(i,sne),g=gt(xt(a,"nav-link",{disabled:m.disabled,active:l}),o);return ae.createElement(c,mC({},m,{ref:h,onClick:this.onClick,className:g}))}}]),n}(ae.Component);Wj.propTypes=gne;var yne=["className","cssModule","variant","innerRef"];function gC(){return gC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gC.apply(this,arguments)}function l6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l6(Object(n),!0).forEach(function(r){_ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(e,t){if(e==null)return{};var n=wne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sne={active:ie.bool,"aria-label":ie.string,onClick:ie.func,variant:ie.oneOf(["white"]),className:ie.string,cssModule:ie.object,innerRef:ie.oneOfType([ie.object,ie.string,ie.func])};function tU(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=xne(e,yne),a=gt(xt(t,"btn-close",n&&"btn-close-".concat(n)));return ae.createElement("button",gC({ref:r,type:"button",className:a},bne({"aria-label":"close"},i)))}tU.propTypes=Sne;var One=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function yC(){return yC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yC.apply(this,arguments)}function Ene(e,t){if(e==null)return{};var n=Cne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[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,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tne={active:ie.bool,"aria-label":ie.string,block:ie.bool,children:ie.node,className:ie.string,cssModule:ie.object,close:ie.bool,color:ie.string,disabled:ie.bool,innerRef:ie.oneOfType([ie.object,ie.func,ie.string]),onClick:ie.func,outline:ie.bool,size:ie.string,tag:$t};function qt(e){var t=U.useCallback(function(C){if(e.disabled){C.preventDefault();return}if(e.onClick)return e.onClick(C)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,a=e.className,o=e.close,l=e.cssModule,f=e.color,c=f===void 0?"secondary":f,h=e.outline,m=e.size,g=e.tag,x=g===void 0?"button":g,_=e.innerRef,w=Ene(e,One);if(o)return ae.createElement(tU,w);var S="btn".concat(h?"-outline":"","-").concat(c),O=gt(xt(a,"btn",S,m?"btn-".concat(m):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),l);return w.href&&x==="button"&&(x="a"),ae.createElement(x,yC({type:x==="button"&&w.onClick?"button":void 0},w,{className:O,ref:_,onClick:t,"aria-label":r}))}qt.propTypes=Tne;var nU=U.createContext(),rU=U.createContext();function u6(e){var t=e.children,n=U.useState(null),r=n[0],i=n[1],a=U.useRef(!1);U.useEffect(function(){return function(){a.current=!0}},[]);var o=U.useCallback(function(l){a.current||i(l)},[]);return U.createElement(nU.Provider,{value:r},U.createElement(rU.Provider,{value:o},t))}var iU=function(t){return Array.isArray(t)?t[0]:t},aU=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)}},bC=function(t,n){if(typeof t=="function")return aU(t,n);t!=null&&(t.current=n)},c6=function(t){return t.reduce(function(n,r){var i=r[0],a=r[1];return n[i]=a,n},{})},f6=typeof window<"u"&&window.document&&window.document.createElement?U.useLayoutEffect:U.useEffect,q0=_B();const zu=Lt(q0);var Qr="top",Qi="bottom",Ji="right",Jr="left",Gj="auto",ev=[Qr,Qi,Ji,Jr],Gf="start",em="end",Ane="clippingParents",oU="viewport",ip="popper",jne="reference",d6=ev.reduce(function(e,t){return e.concat([t+"-"+Gf,t+"-"+em])},[]),sU=[].concat(ev,[Gj]).reduce(function(e,t){return e.concat([t,t+"-"+Gf,t+"-"+em])},[]),Pne="beforeRead",Rne="read",Mne="afterRead",Nne="beforeMain",Lne="main",Dne="afterMain",kne="beforeWrite",Ine="write",$ne="afterWrite",Bne=[Pne,Rne,Mne,Nne,Lne,Dne,kne,Ine,$ne];function uo(e){return e?(e.nodeName||"").toLowerCase():null}function Ti(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ic(e){var t=Ti(e).Element;return e instanceof t||e instanceof Element}function Xi(e){var t=Ti(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yj(e){if(typeof ShadowRoot>"u")return!1;var t=Ti(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Une(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Xi(a)||!uo(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var l=i[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function zne(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],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=o.reduce(function(f,c){return f[c]="",f},{});!Xi(i)||!uo(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(f){i.removeAttribute(f)}))})}}const Fne={name:"applyStyles",enabled:!0,phase:"write",fn:Une,effect:zne,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Yu=Math.max,Wy=Math.min,Yf=Math.round;function _C(){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 lU(){return!/^((?!chrome|android).)*safari/i.test(_C())}function Kf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Xi(e)&&(i=e.offsetWidth>0&&Yf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Yf(r.height)/e.offsetHeight||1);var o=ic(e)?Ti(e):window,l=o.visualViewport,f=!lU()&&n,c=(r.left+(f&&l?l.offsetLeft:0))/i,h=(r.top+(f&&l?l.offsetTop:0))/a,m=r.width/i,g=r.height/a;return{width:m,height:g,top:h,right:c+m,bottom:h+g,left:c,x:c,y:h}}function Kj(e){var t=Kf(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 uU(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yj(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function os(e){return Ti(e).getComputedStyle(e)}function qne(e){return["table","td","th"].indexOf(uo(e))>=0}function ql(e){return((ic(e)?e.ownerDocument:e.document)||window.document).documentElement}function V0(e){return uo(e)==="html"?e:e.assignedSlot||e.parentNode||(Yj(e)?e.host:null)||ql(e)}function h6(e){return!Xi(e)||os(e).position==="fixed"?null:e.offsetParent}function Vne(e){var t=/firefox/i.test(_C()),n=/Trident/i.test(_C());if(n&&Xi(e)){var r=os(e);if(r.position==="fixed")return null}var i=V0(e);for(Yj(i)&&(i=i.host);Xi(i)&&["html","body"].indexOf(uo(i))<0;){var a=os(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function tv(e){for(var t=Ti(e),n=h6(e);n&&qne(n)&&os(n).position==="static";)n=h6(n);return n&&(uo(n)==="html"||uo(n)==="body"&&os(n).position==="static")?t:n||Vne(e)||t}function Zj(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lp(e,t,n){return Yu(e,Wy(t,n))}function Hne(e,t,n){var r=Lp(e,t,n);return r>n?n:r}function cU(){return{top:0,right:0,bottom:0,left:0}}function fU(e){return Object.assign({},cU(),e)}function dU(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Wne=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,fU(typeof t!="number"?t:dU(t,ev))};function Gne(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=ro(n.placement),f=Zj(l),c=[Jr,Ji].indexOf(l)>=0,h=c?"height":"width";if(!(!a||!o)){var m=Wne(i.padding,n),g=Kj(a),x=f==="y"?Qr:Jr,_=f==="y"?Qi:Ji,w=n.rects.reference[h]+n.rects.reference[f]-o[f]-n.rects.popper[h],S=o[f]-n.rects.reference[f],O=tv(a),C=O?f==="y"?O.clientHeight||0:O.clientWidth||0:0,T=w/2-S/2,j=m[x],P=C-g[h]-m[_],R=C/2-g[h]/2+T,I=Lp(j,R,P),V=f;n.modifiersData[r]=(t={},t[V]=I,t.centerOffset=I-R,t)}}function Yne(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)||uU(t.elements.popper,i)&&(t.elements.arrow=i))}const Kne={name:"arrow",enabled:!0,phase:"main",fn:Gne,effect:Yne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zf(e){return e.split("-")[1]}var Zne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xne(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Yf(n*i)/i||0,y:Yf(r*i)/i||0}}function p6(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,l=e.position,f=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,m=e.isFixed,g=o.x,x=g===void 0?0:g,_=o.y,w=_===void 0?0:_,S=typeof h=="function"?h({x,y:w}):{x,y:w};x=S.x,w=S.y;var O=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),T=Jr,j=Qr,P=window;if(c){var R=tv(n),I="clientHeight",V="clientWidth";if(R===Ti(n)&&(R=ql(n),os(R).position!=="static"&&l==="absolute"&&(I="scrollHeight",V="scrollWidth")),R=R,i===Qr||(i===Jr||i===Ji)&&a===em){j=Qi;var G=m&&R===P&&P.visualViewport?P.visualViewport.height:R[I];w-=G-r.height,w*=f?1:-1}if(i===Jr||(i===Qr||i===Qi)&&a===em){T=Ji;var W=m&&R===P&&P.visualViewport?P.visualViewport.width:R[V];x-=W-r.width,x*=f?1:-1}}var K=Object.assign({position:l},c&&Zne),ne=h===!0?Xne({x,y:w},Ti(n)):{x,y:w};if(x=ne.x,w=ne.y,f){var le;return Object.assign({},K,(le={},le[j]=C?"0":"",le[T]=O?"0":"",le.transform=(P.devicePixelRatio||1)<=1?"translate("+x+"px, "+w+"px)":"translate3d("+x+"px, "+w+"px, 0)",le))}return Object.assign({},K,(t={},t[j]=C?w+"px":"",t[T]=O?x+"px":"",t.transform="",t))}function Qne(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,l=n.roundOffsets,f=l===void 0?!0:l,c={placement:ro(t.placement),variation:Zf(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,p6(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p6(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Jne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qne,data:{}};var Xg={passive:!0};function ere(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,l=o===void 0?!0:o,f=Ti(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(h){h.addEventListener("scroll",n.update,Xg)}),l&&f.addEventListener("resize",n.update,Xg),function(){a&&c.forEach(function(h){h.removeEventListener("scroll",n.update,Xg)}),l&&f.removeEventListener("resize",n.update,Xg)}}const tre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ere,data:{}};var nre={left:"right",right:"left",bottom:"top",top:"bottom"};function Ty(e){return e.replace(/left|right|bottom|top/g,function(t){return nre[t]})}var rre={start:"end",end:"start"};function m6(e){return e.replace(/start|end/g,function(t){return rre[t]})}function Xj(e){var t=Ti(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qj(e){return Kf(ql(e)).left+Xj(e).scrollLeft}function ire(e,t){var n=Ti(e),r=ql(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,f=0;if(i){a=i.width,o=i.height;var c=lU();(c||!c&&t==="fixed")&&(l=i.offsetLeft,f=i.offsetTop)}return{width:a,height:o,x:l+Qj(e),y:f}}function are(e){var t,n=ql(e),r=Xj(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Yu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Yu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Qj(e),f=-r.scrollTop;return os(i||n).direction==="rtl"&&(l+=Yu(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:f}}function Jj(e){var t=os(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function hU(e){return["html","body","#document"].indexOf(uo(e))>=0?e.ownerDocument.body:Xi(e)&&Jj(e)?e:hU(V0(e))}function Dp(e,t){var n;t===void 0&&(t=[]);var r=hU(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ti(r),o=i?[a].concat(a.visualViewport||[],Jj(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(Dp(V0(o)))}function xC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ore(e,t){var n=Kf(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 v6(e,t,n){return t===oU?xC(ire(e,n)):ic(t)?ore(t,n):xC(are(ql(e)))}function sre(e){var t=Dp(V0(e)),n=["absolute","fixed"].indexOf(os(e).position)>=0,r=n&&Xi(e)?tv(e):e;return ic(r)?t.filter(function(i){return ic(i)&&uU(i,r)&&uo(i)!=="body"}):[]}function lre(e,t,n,r){var i=t==="clippingParents"?sre(e):[].concat(t),a=[].concat(i,[n]),o=a[0],l=a.reduce(function(f,c){var h=v6(e,c,r);return f.top=Yu(h.top,f.top),f.right=Wy(h.right,f.right),f.bottom=Wy(h.bottom,f.bottom),f.left=Yu(h.left,f.left),f},v6(e,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function pU(e){var t=e.reference,n=e.element,r=e.placement,i=r?ro(r):null,a=r?Zf(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,f;switch(i){case Qr:f={x:o,y:t.y-n.height};break;case Qi:f={x:o,y:t.y+t.height};break;case Ji:f={x:t.x+t.width,y:l};break;case Jr:f={x:t.x-n.width,y:l};break;default:f={x:t.x,y:t.y}}var c=i?Zj(i):null;if(c!=null){var h=c==="y"?"height":"width";switch(a){case Gf:f[c]=f[c]-(t[h]/2-n[h]/2);break;case em:f[c]=f[c]+(t[h]/2-n[h]/2);break}}return f}function tm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,l=n.boundary,f=l===void 0?Ane:l,c=n.rootBoundary,h=c===void 0?oU:c,m=n.elementContext,g=m===void 0?ip:m,x=n.altBoundary,_=x===void 0?!1:x,w=n.padding,S=w===void 0?0:w,O=fU(typeof S!="number"?S:dU(S,ev)),C=g===ip?jne:ip,T=e.rects.popper,j=e.elements[_?C:g],P=lre(ic(j)?j:j.contextElement||ql(e.elements.popper),f,h,o),R=Kf(e.elements.reference),I=pU({reference:R,element:T,placement:i}),V=xC(Object.assign({},T,I)),G=g===ip?V:R,W={top:P.top-G.top+O.top,bottom:G.bottom-P.bottom+O.bottom,left:P.left-G.left+O.left,right:G.right-P.right+O.right},K=e.modifiersData.offset;if(g===ip&&K){var ne=K[i];Object.keys(W).forEach(function(le){var Q=[Ji,Qi].indexOf(le)>=0?1:-1,J=[Qr,Qi].indexOf(le)>=0?"y":"x";W[le]+=ne[J]*Q})}return W}function ure(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,l=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?sU:f,h=Zf(r),m=h?l?d6:d6.filter(function(_){return Zf(_)===h}):ev,g=m.filter(function(_){return c.indexOf(_)>=0});g.length===0&&(g=m);var x=g.reduce(function(_,w){return _[w]=tm(e,{placement:w,boundary:i,rootBoundary:a,padding:o})[ro(w)],_},{});return Object.keys(x).sort(function(_,w){return x[_]-x[w]})}function cre(e){if(ro(e)===Gj)return[];var t=Ty(e);return[m6(e),t,m6(t)]}function fre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!0:o,f=n.fallbackPlacements,c=n.padding,h=n.boundary,m=n.rootBoundary,g=n.altBoundary,x=n.flipVariations,_=x===void 0?!0:x,w=n.allowedAutoPlacements,S=t.options.placement,O=ro(S),C=O===S,T=f||(C||!_?[Ty(S)]:cre(S)),j=[S].concat(T).reduce(function(oe,he){return oe.concat(ro(he)===Gj?ure(t,{placement:he,boundary:h,rootBoundary:m,padding:c,flipVariations:_,allowedAutoPlacements:w}):he)},[]),P=t.rects.reference,R=t.rects.popper,I=new Map,V=!0,G=j[0],W=0;W<j.length;W++){var K=j[W],ne=ro(K),le=Zf(K)===Gf,Q=[Qr,Qi].indexOf(ne)>=0,J=Q?"width":"height",H=tm(t,{placement:K,boundary:h,rootBoundary:m,altBoundary:g,padding:c}),B=Q?le?Ji:Jr:le?Qi:Qr;P[J]>R[J]&&(B=Ty(B));var z=Ty(B),F=[];if(a&&F.push(H[ne]<=0),l&&F.push(H[B]<=0,H[z]<=0),F.every(function(oe){return oe})){G=K,V=!1;break}I.set(K,F)}if(V)for(var M=_?3:1,k=function(he){var de=j.find(function(be){var $=I.get(be);if($)return $.slice(0,he).every(function(q){return q})});if(de)return G=de,"break"},te=M;te>0;te--){var Z=k(te);if(Z==="break")break}t.placement!==G&&(t.modifiersData[r]._skip=!0,t.placement=G,t.reset=!0)}}const dre={name:"flip",enabled:!0,phase:"main",fn:fre,requiresIfExists:["offset"],data:{_skip:!1}};function g6(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 y6(e){return[Qr,Ji,Qi,Jr].some(function(t){return e[t]>=0})}function hre(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=tm(t,{elementContext:"reference"}),l=tm(t,{altBoundary:!0}),f=g6(o,r),c=g6(l,i,a),h=y6(f),m=y6(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const pre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hre};function mre(e,t,n){var r=ro(e),i=[Jr,Qr].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],l=a[1];return o=o||0,l=(l||0)*i,[Jr,Ji].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function vre(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=sU.reduce(function(h,m){return h[m]=mre(m,t.rects,a),h},{}),l=o[t.placement],f=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const gre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vre};function yre(e){var t=e.state,n=e.name;t.modifiersData[n]=pU({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bre={name:"popperOffsets",enabled:!0,phase:"read",fn:yre,data:{}};function _re(e){return e==="x"?"y":"x"}function xre(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!1:o,f=n.boundary,c=n.rootBoundary,h=n.altBoundary,m=n.padding,g=n.tether,x=g===void 0?!0:g,_=n.tetherOffset,w=_===void 0?0:_,S=tm(t,{boundary:f,rootBoundary:c,padding:m,altBoundary:h}),O=ro(t.placement),C=Zf(t.placement),T=!C,j=Zj(O),P=_re(j),R=t.modifiersData.popperOffsets,I=t.rects.reference,V=t.rects.popper,G=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,W=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ne={x:0,y:0};if(R){if(a){var le,Q=j==="y"?Qr:Jr,J=j==="y"?Qi:Ji,H=j==="y"?"height":"width",B=R[j],z=B+S[Q],F=B-S[J],M=x?-V[H]/2:0,k=C===Gf?I[H]:V[H],te=C===Gf?-V[H]:-I[H],Z=t.elements.arrow,oe=x&&Z?Kj(Z):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cU(),de=he[Q],be=he[J],$=Lp(0,I[H],oe[H]),q=T?I[H]/2-M-$-de-W.mainAxis:k-$-de-W.mainAxis,ee=T?-I[H]/2+M+$+be+W.mainAxis:te+$+be+W.mainAxis,fe=t.elements.arrow&&tv(t.elements.arrow),X=fe?j==="y"?fe.clientTop||0:fe.clientLeft||0:0,ue=(le=K==null?void 0:K[j])!=null?le:0,pe=B+q-ue-X,ye=B+ee-ue,me=Lp(x?Wy(z,pe):z,B,x?Yu(F,ye):F);R[j]=me,ne[j]=me-B}if(l){var we,Te=j==="x"?Qr:Jr,Le=j==="x"?Qi:Ji,ze=R[P],$e=P==="y"?"height":"width",Fe=ze+S[Te],_e=ze-S[Le],Se=[Qr,Jr].indexOf(O)!==-1,De=(we=K==null?void 0:K[P])!=null?we:0,Me=Se?Fe:ze-I[$e]-V[$e]-De+W.altAxis,je=Se?ze+I[$e]+V[$e]-De-W.altAxis:_e,qe=x&&Se?Hne(Me,ze,je):Lp(x?Me:Fe,ze,x?je:_e);R[P]=qe,ne[P]=qe-ze}t.modifiersData[r]=ne}}const wre={name:"preventOverflow",enabled:!0,phase:"main",fn:xre,requiresIfExists:["offset"]};function Sre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ore(e){return e===Ti(e)||!Xi(e)?Xj(e):Sre(e)}function Ere(e){var t=e.getBoundingClientRect(),n=Yf(t.width)/e.offsetWidth||1,r=Yf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Cre(e,t,n){n===void 0&&(n=!1);var r=Xi(t),i=Xi(t)&&Ere(t),a=ql(t),o=Kf(e,i,n),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((uo(t)!=="body"||Jj(a))&&(l=Ore(t)),Xi(t)?(f=Kf(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Qj(a))),{x:o.left+l.scrollLeft-f.x,y:o.top+l.scrollTop-f.y,width:o.width,height:o.height}}function Tre(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var f=t.get(l);f&&i(f)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function Are(e){var t=Tre(e);return Bne.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function jre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Pre(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 b6={placement:"bottom",modifiers:[],strategy:"absolute"};function _6(){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 Rre(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?b6:i;return function(l,f,c){c===void 0&&(c=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},b6,a),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},m=[],g=!1,x={state:h,setOptions:function(O){var C=typeof O=="function"?O(h.options):O;w(),h.options=Object.assign({},a,h.options,C),h.scrollParents={reference:ic(l)?Dp(l):l.contextElement?Dp(l.contextElement):[],popper:Dp(f)};var T=Are(Pre([].concat(r,h.options.modifiers)));return h.orderedModifiers=T.filter(function(j){return j.enabled}),_(),x.update()},forceUpdate:function(){if(!g){var O=h.elements,C=O.reference,T=O.popper;if(_6(C,T)){h.rects={reference:Cre(C,tv(T),h.options.strategy==="fixed"),popper:Kj(T)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(W){return h.modifiersData[W.name]=Object.assign({},W.data)});for(var j=0;j<h.orderedModifiers.length;j++){if(h.reset===!0){h.reset=!1,j=-1;continue}var P=h.orderedModifiers[j],R=P.fn,I=P.options,V=I===void 0?{}:I,G=P.name;typeof R=="function"&&(h=R({state:h,options:V,name:G,instance:x})||h)}}}},update:jre(function(){return new Promise(function(S){x.forceUpdate(),S(h)})}),destroy:function(){w(),g=!0}};if(!_6(l,f))return x;x.setOptions(c).then(function(S){!g&&c.onFirstUpdate&&c.onFirstUpdate(S)});function _(){h.orderedModifiers.forEach(function(S){var O=S.name,C=S.options,T=C===void 0?{}:C,j=S.effect;if(typeof j=="function"){var P=j({state:h,name:O,instance:x,options:T}),R=function(){};m.push(P||R)}})}function w(){m.forEach(function(S){return S()}),m=[]}return x}}var Mre=[tre,bre,Jne,Fne,gre,dre,wre,Kne,pre],Nre=Rre({defaultModifiers:Mre}),fw,x6;function Lre(){if(x6)return fw;x6=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var l,f,c;if(Array.isArray(a)){if(l=a.length,l!=o.length)return!1;for(f=l;f--!==0;)if(!i(a[f],o[f]))return!1;return!0}var h;if(t&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;for(h=a.entries();!(f=h.next()).done;)if(!i(f.value[1],o.get(f.value[0])))return!1;return!0}if(n&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(l=a.length,l!=o.length)return!1;for(f=l;f--!==0;)if(a[f]!==o[f])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof o.valueOf=="function")return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof o.toString=="function")return a.toString()===o.toString();if(c=Object.keys(a),l=c.length,l!==Object.keys(o).length)return!1;for(f=l;f--!==0;)if(!Object.prototype.hasOwnProperty.call(o,c[f]))return!1;if(e&&a instanceof Element)return!1;for(f=l;f--!==0;)if(!((c[f]==="_owner"||c[f]==="__v"||c[f]==="__o")&&a.$$typeof)&&!i(a[c[f]],o[c[f]]))return!1;return!0}return a!==a&&o!==o}return fw=function(o,l){try{return i(o,l)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},fw}var Dre=Lre();const kre=Lt(Dre);var Ire=[],$re=function(t,n,r){r===void 0&&(r={});var i=U.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ire},o=U.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],f=o[1],c=U.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(x){var _=x.state,w=Object.keys(_.elements);q0.flushSync(function(){f({styles:c6(w.map(function(S){return[S,_.styles[S]||{}]})),attributes:c6(w.map(function(S){return[S,_.attributes[S]]}))})})},requires:["computeStyles"]}},[]),h=U.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return kre(i.current,g)?i.current||g:(i.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),m=U.useRef();return f6(function(){m.current&&m.current.setOptions(h)},[h]),f6(function(){if(!(t==null||n==null)){var g=r.createPopper||Nre,x=g(t,n,h);return m.current=x,function(){x.destroy(),m.current=null}}},[t,n,r.createPopper]),{state:m.current?m.current.state:null,styles:l.styles,attributes:l.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},Bre=function(){},Ure=function(){return Promise.resolve(null)},zre=[];function mU(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,a=e.modifiers,o=a===void 0?zre:a,l=e.referenceElement,f=e.onFirstUpdate,c=e.innerRef,h=e.children,m=U.useContext(nU),g=U.useState(null),x=g[0],_=g[1],w=U.useState(null),S=w[0],O=w[1];U.useEffect(function(){bC(c,x)},[c,x]);var C=U.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:f,modifiers:[].concat(o,[{name:"arrow",enabled:S!=null,options:{element:S}}])}},[n,i,f,o,S]),T=$re(l||m,x,C),j=T.state,P=T.styles,R=T.forceUpdate,I=T.update,V=U.useMemo(function(){return{ref:_,style:P.popper,placement:j?j.placement:n,hasPopperEscaped:j&&j.modifiersData.hide?j.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:j&&j.modifiersData.hide?j.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:O},forceUpdate:R||Bre,update:I||Ure}},[_,O,n,j,P,I,R]);return iU(h)(V)}var dw,w6;function Fre(){if(w6)return dw;w6=1;var e=function(){};return dw=e,dw}var qre=Fre();const Vre=Lt(qre);function Hre(e){var t=e.children,n=e.innerRef,r=U.useContext(rU),i=U.useCallback(function(a){bC(n,a),aU(r,a)},[n,r]);return U.useEffect(function(){return function(){return bC(n,null)}},[]),U.useEffect(function(){Vre(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),iU(t)({ref:i})}var nm=ae.createContext({}),vU=ae.createContext({});function wC(e){"@babel/helpers - typeof";return wC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wC(e)}var Wre=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];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 pl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gre(e,t){if(e==null)return{};var n=Yre(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Kre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zre(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 Xre(e,t,n){return t&&Zre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OC(e,t)}function OC(e,t){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},OC(e,t)}function Jre(e){var t=tie();return function(){var r=Gy(e),i;if(t){var a=Gy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return eie(this,i)}}function eie(e,t){if(t&&(wC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vl(e)}function vl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tie(){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 Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gy(e)}var nie={a11y:ie.bool,disabled:ie.bool,direction:ie.oneOf(["up","down","start","end","left","right"]),group:ie.bool,isOpen:ie.bool,nav:ie.bool,active:ie.bool,size:ie.string,tag:$t,toggle:ie.func,children:ie.node,className:ie.string,cssModule:ie.object,dropup:ie.bool,inNavbar:ie.bool,setActiveFromChild:ie.bool,menuRole:ie.oneOf(["listbox","menu"])},rie={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},iie=[Yt.space,Yt.enter,Yt.up,Yt.down,Yt.end,Yt.home],ja=function(e){Qre(n,e);var t=Jre(n);function n(r){var i;return Kre(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(vl(i)),i.handleDocumentClick=i.handleDocumentClick.bind(vl(i)),i.handleKeyDown=i.handleKeyDown.bind(vl(i)),i.removeEvents=i.removeEvents.bind(vl(i)),i.toggle=i.toggle.bind(vl(i)),i.handleMenuRef=i.handleMenuRef.bind(vl(i)),i.handleToggleRef=i.handleToggleRef.bind(vl(i)),i.containerRef=ae.createRef(),i.menuRef=ae.createRef(),i.toggleRef=ae.createRef(),i}return Xre(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!==Yt.tab))){var a=this.getContainer(),o=this.getMenu(),l=this.getToggle();if(l){var f=l.contains(i.target),c=o&&o.contains(i.target)&&o!==i.target,h=!1;a&&(h=a.classList.contains("input-group")&&a.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((f&&!h||c)&&(i.type!=="keyup"||i.which===Yt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var a=this,o=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",l=this.getMenuCtrl()===i.target,f=Yt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||f&&!this.props.a11y||f&&!(o||l))&&((iie.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(l)if([Yt.space,Yt.enter,Yt.up,Yt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var C;return(C=a.getMenuItems()[0])===null||C===void 0?void 0:C.focus()});else if(this.props.isOpen&&f){var c;i.preventDefault(),(c=this.getMenuItems()[0])===null||c===void 0||c.focus()}else this.props.isOpen&&i.which===Yt.esc&&this.toggle(i);if(this.props.isOpen&&o){if([Yt.tab,Yt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Yt.space,Yt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Yt.down,Yt.up].indexOf(i.which)>-1||[Yt.n,Yt.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),m=h.indexOf(i.target);Yt.up===i.which||Yt.p===i.which&&i.ctrlKey?m=m!==0?m-1:h.length-1:(Yt.down===i.which||Yt.n===i.which&&i.ctrlKey)&&(m=m===h.length-1?0:m+1),h[m].focus()}else if(Yt.end===i.which){var g=this.getMenuItems();g[g.length-1].focus()}else if(Yt.home===i.which){var x=this.getMenuItems();x[0].focus()}else if(i.which>=48&&i.which<=90)for(var _=this.getMenuItems(),w=String.fromCharCode(i.which).toLowerCase(),S=0;S<_.length;S+=1){var O=_[S].textContent&&_[S].textContent[0].toLowerCase();if(O===w){_[S].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(a){return document.addEventListener(a,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(a){return document.removeEventListener(a,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,a=this,o=Fl(this.props,["toggle","disabled","inNavbar","a11y"]),l=o.className,f=o.cssModule,c=o.direction,h=o.isOpen,m=o.group,g=o.size,x=o.nav,_=o.setActiveFromChild,w=o.active,S=o.tag;o.menuRole;var O=Gre(o,Wre),C=S||(x?"li":"div"),T=!1;_&&ae.Children.map(this.props.children[1].props.children,function(P){P&&P.props.active&&(T=!0)});var j=gt(xt(l,x&&w?"active":!1,_&&T?"active":!1,(i={"btn-group":m},pl(i,"btn-group-".concat(g),!!g),pl(i,"dropdown",!m),pl(i,"dropup",c==="up"),pl(i,"dropstart",c==="start"||c==="left"),pl(i,"dropend",c==="end"||c==="right"),pl(i,"show",h),pl(i,"nav-item",x),i)),f);return this.context.insideInputGroup?ae.createElement(nm.Provider,{value:this.getContextValue()},ae.createElement(u6,null,ae.Children.map(this.props.children,function(P){return ae.cloneElement(P,{onKeyDown:a.handleKeyDown})}))):ae.createElement(nm.Provider,{value:this.getContextValue()},ae.createElement(u6,null,ae.createElement(C,SC({},O,pl({},typeof C=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:j}))))}}]),n}(ae.Component);ja.propTypes=nie;ja.defaultProps=rie;ja.contextType=vU;function EC(e){"@babel/helpers - typeof";return EC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EC(e)}var aie=["className","cssModule","divider","tag","header","active","text"];function CC(){return CC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CC.apply(this,arguments)}function oie(e,t){if(e==null)return{};var n=sie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uie(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 cie(e,t,n){return t&&uie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TC(e,t)}function TC(e,t){return TC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TC(e,t)}function die(e){var t=pie();return function(){var r=Yy(e),i;if(t){var a=Yy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return hie(this,i)}}function hie(e,t){if(t&&(EC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AC(e)}function AC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pie(){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 Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yy(e)}var mie={children:ie.node,active:ie.bool,disabled:ie.bool,divider:ie.bool,tag:$t,header:ie.bool,onClick:ie.func,className:ie.string,cssModule:ie.object,toggle:ie.bool,text:ie.bool},Je=function(e){fie(n,e);var t=die(n);function n(r){var i;return lie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(AC(i)),i.getTabIndex=i.getTabIndex.bind(AC(i)),i}return cie(n,[{key:"onClick",value:function(i){var a,o=this.props,l=o.disabled,f=o.header,c=o.divider,h=o.text;if(l||f||c||h){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((a=this.props.toggle)!==null&&a!==void 0)||a)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,a=i.disabled,o=i.header,l=i.divider,f=i.text;return a||o||l||f?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),a=i>-1?this.getRole():void 0,o=Fl(this.props,["toggle"]),l=o.className,f=o.cssModule,c=o.divider,h=o.tag,m=h===void 0?"button":h,g=o.header,x=o.active,_=o.text,w=oie(o,aie),S=gt(xt(l,{disabled:w.disabled,"dropdown-item":!c&&!g&&!_,active:x,"dropdown-header":g,"dropdown-divider":c,"dropdown-item-text":_}),f);return m==="button"&&(g?m="h6":c?m="div":w.href?m="a":_&&(m="span")),ae.createElement(m,CC({type:m==="button"&&(w.onClick||this.props.toggle)?"button":void 0},w,{tabIndex:i,role:a,className:S,onClick:this.onClick}))}}]),n}(ae.Component);Je.propTypes=mie;Je.contextType=nm;function jC(e){"@babel/helpers - typeof";return jC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jC(e)}var vie=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ky.apply(this,arguments)}function S6(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 hw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(n),!0).forEach(function(r){gie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yie(e){return wie(e)||xie(e)||_ie(e)||bie()}function bie(){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 _ie(e,t){if(e){if(typeof e=="string")return PC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PC(e,t)}}function xie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wie(e){if(Array.isArray(e))return PC(e)}function PC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sie(e,t){if(e==null)return{};var n=Oie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cie(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 Tie(e,t,n){return t&&Cie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RC(e,t)}function RC(e,t){return RC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RC(e,t)}function jie(e){var t=Mie();return function(){var r=Zy(e),i;if(t){var a=Zy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Pie(this,i)}}function Pie(e,t){if(t&&(jC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rie(e)}function Rie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mie(){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 Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zy(e)}var Nie={tag:$t,children:ie.node.isRequired,dark:ie.bool,end:ie.bool,flip:ie.bool,modifiers:ie.array,className:ie.string,cssModule:ie.object,style:ie.object,persist:ie.bool,strategy:ie.string,container:Wf,updateOnSelect:ie.bool,right:K9(ie.bool,'Please use "end" instead.')},Lie={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},Vl=function(e){Aie(n,e);var t=jie(n);function n(){return Eie(this,n),t.apply(this,arguments)}return Tie(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,a=this.props,o=a.className,l=a.cssModule,f=a.dark,c=a.end,h=a.right,m=a.tag,g=m===void 0?"div":m,x=a.flip,_=x===void 0?!0:x,w=a.modifiers,S=w===void 0?[]:w,O=a.persist,C=a.strategy,T=a.container,j=a.updateOnSelect,P=Sie(a,vie),R=gt(xt(o,"dropdown-menu",{"dropdown-menu-dark":f,"dropdown-menu-end":c||h,show:this.context.isOpen}),l),I=g;if(O||this.context.isOpen&&!this.context.inNavbar){var V=Lie[this.context.direction]||"bottom",G=c||h?"end":"start",W="".concat(V,"-").concat(G),K=[].concat(yie(S),[{name:"flip",enabled:!!_}]),ne={};O&&(ne.display="block",ne.visibility=this.context.isOpen?"visible":"hidden");var le=ae.createElement(mU,{placement:W,modifiers:K,strategy:C},function(J){var H=J.ref,B=J.style,z=J.placement,F=J.update,M=hw(hw(hw({},i.props.style),ne),B),k=function(Z){H(Z);var oe=i.context.onMenuRef;oe&&oe(Z)};return ae.createElement(I,Ky({tabIndex:"-1",role:i.getRole(),ref:k},P,{style:M,"aria-hidden":!i.context.isOpen,className:R,"data-popper-placement":z,onClick:function(){return j&&F()}}))});return T?zu.createPortal(le,Jp(T)):le}var Q=this.context.onMenuRef;return ae.createElement(I,Ky({tabIndex:"-1",role:this.getRole()},P,{ref:Q,"aria-hidden":!this.context.isOpen,className:R,"data-popper-placement":P.placement,"data-bs-popper":"static"}))}}]),n}(ae.Component);Vl.propTypes=Nie;Vl.contextType=nm;function MC(e){"@babel/helpers - typeof";return MC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MC(e)}var Die=["className","color","cssModule","caret","split","nav","tag","innerRef"];function NC(){return NC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NC.apply(this,arguments)}function kie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iie(e,t){if(e==null)return{};var n=$ie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $ie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Bie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uie(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 zie(e,t,n){return t&&Uie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LC(e,t)}function LC(e,t){return LC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LC(e,t)}function qie(e){var t=Hie();return function(){var r=Xy(e),i;if(t){var a=Xy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Vie(this,i)}}function Vie(e,t){if(t&&(MC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gU(e)}function gU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hie(){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 Xy(e){return Xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xy(e)}var Wie={caret:ie.bool,color:ie.string,children:ie.node,className:ie.string,cssModule:ie.object,disabled:ie.bool,onClick:ie.func,"aria-haspopup":ie.bool,split:ie.bool,tag:$t,nav:ie.bool,innerRef:ie.oneOfType([ie.object,ie.string,ie.func])},Gie={color:"secondary","aria-haspopup":!0},ps=function(e){Fie(n,e);var t=qie(n);function n(r){var i;return Bie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(gU(i)),i}return zie(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,a=this.props,o=a.className,l=a.color,f=a.cssModule,c=a.caret,h=a.split,m=a.nav,g=a.tag,x=a.innerRef,_=Iie(a,Die),w=_["aria-label"]||"Toggle Dropdown",S=gt(xt(o,{"dropdown-toggle":c||h,"dropdown-toggle-split":h,"nav-link":m}),f),O=typeof _.children<"u"?_.children:ae.createElement("span",{className:"visually-hidden"},w),C;m&&!g?(C="a",_.href="#"):g?C=g:(C=qt,_.color=l,_.cssModule=f);var T=function(P){var R=P.ref,I=function(G){R(G);var W=i.context.onToggleRef;W&&W(G)};return ae.createElement(C,NC({},_,kie({},typeof C=="string"?"ref":"innerRef",I),{className:S,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:O}))};return this.context.inNavbar?ae.createElement(ae.Fragment,null,T({ref:this.context.onToggleRef})):ae.createElement(Hre,{innerRef:x},T)}}]),n}(ae.Component);ps.propTypes=Wie;ps.defaultProps=Gie;ps.contextType=nm;function Yie(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 DC(e,t){return DC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},DC(e,t)}function Kie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,DC(e,t)}const O6={disabled:!1},yU=ae.createContext(null);var Zie=function(t){return t.scrollTop},xp="unmounted",Ru="exited",Mu="entering",Cf="entered",kC="exiting",ei=function(e){Kie(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,l=o&&!o.isMounting?r.enter:r.appear,f;return a.appearStatus=null,r.in?l?(f=Ru,a.appearStatus=Mu):f=Cf:r.unmountOnExit||r.mountOnEnter?f=xp:f=Ru,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===xp?{status:Ru}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Mu&&o!==Cf&&(a=Mu):(o===Mu||o===Cf)&&(a=kC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Mu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:zu.findDOMNode(this);o&&Zie(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ru&&this.setState({status:xp})},n.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,f=this.props.nodeRef?[l]:[zu.findDOMNode(this),l],c=f[0],h=f[1],m=this.getTimeouts(),g=l?m.appear:m.enter;if(!i&&!o||O6.disabled){this.safeSetState({status:Cf},function(){a.props.onEntered(c)});return}this.props.onEnter(c,h),this.safeSetState({status:Mu},function(){a.props.onEntering(c,h),a.onTransitionEnd(g,function(){a.safeSetState({status:Cf},function(){a.props.onEntered(c,h)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:zu.findDOMNode(this);if(!a||O6.disabled){this.safeSetState({status:Ru},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:kC},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Ru},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:zu.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=f[0],h=f[1];this.props.addEndListener(c,h)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===xp)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Yie(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ae.createElement(yU.Provider,{value:null},typeof o=="function"?o(i,l):ae.cloneElement(ae.Children.only(o),l))},t}(ae.Component);ei.contextType=yU;ei.propTypes={};function mf(){}ei.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mf,onEntering:mf,onEntered:mf,onExit:mf,onExiting:mf,onExited:mf};ei.UNMOUNTED=xp;ei.EXITED=Ru;ei.ENTERING=Mu;ei.ENTERED=Cf;ei.EXITING=kC;var Xie=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qy.apply(this,arguments)}function Qie(e,t){if(e==null)return{};var n=Jie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function E6(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 rm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E6(Object(n),!0).forEach(function(r){eae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tae=rm(rm({},ei.propTypes),{},{children:ie.oneOfType([ie.arrayOf(ie.node),ie.node]),tag:$t,baseClass:ie.string,baseClassActive:ie.string,className:ie.string,cssModule:ie.object,innerRef:ie.oneOfType([ie.object,ie.string,ie.func])}),C6=rm(rm({},ei.defaultProps),{},{timeout:qy.Fade,appear:!0,enter:!0,exit:!0,in:!0});function eo(e){var t=U.useRef(null),n=qj(C6,e),r=n.tag,i=r===void 0?"div":r,a=n.baseClass,o=a===void 0?"fade":a,l=n.baseClassActive,f=l===void 0?"show":l,c=n.className,h=n.cssModule,m=n.children,g=n.innerRef,x=g===void 0?t:g,_=Qie(n,Xie),w=Y9(rm({defaultProps:C6},_),Vy),S=Fl(_,Vy);return ae.createElement(ei,Qy({nodeRef:x},w),function(O){var C=O==="entered",T=gt(xt(c,o,C&&f),h);return ae.createElement(i,Qy({className:T},S,{ref:x}),m)})}eo.propTypes=tae;function IC(e){"@babel/helpers - typeof";return IC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IC(e)}var nae=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],vf;function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jy.apply(this,arguments)}function rae(e,t){if(e==null)return{};var n=iae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function aae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oae(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 sae(e,t,n){return t&&oae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lae(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&&$C(e,t)}function $C(e,t){return $C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$C(e,t)}function uae(e){var t=fae();return function(){var r=eb(e),i;if(t){var a=eb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return cae(this,i)}}function cae(e,t){if(t&&(IC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bU(e)}function bU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function eb(e){return eb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eb(e)}function T6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T6(Object(n),!0).forEach(function(r){Rf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dae=Xf(Xf({},ei.propTypes),{},{horizontal:ie.bool,isOpen:ie.bool,children:ie.oneOfType([ie.arrayOf(ie.node),ie.node]),tag:$t,className:ie.node,navbar:ie.bool,cssModule:ie.object,innerRef:ie.shape({current:ie.object})}),hae=Xf(Xf({},ei.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:qy.Collapse}),pae=(vf={},Rf(vf,Zg.ENTERING,"collapsing"),Rf(vf,Zg.ENTERED,"collapse show"),Rf(vf,Zg.EXITING,"collapsing"),Rf(vf,Zg.EXITED,"collapse"),vf);function mae(e){return pae[e]||"collapse"}var eP=function(e){lae(n,e);var t=uae(n);function n(r){var i;return aae(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||ae.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(a){i[a]=i[a].bind(bU(i))}),i}return sae(n,[{key:"onEntering",value:function(i,a){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onEntering(o,a)}},{key:"onEntered",value:function(i,a){var o=this.getNode();this.setState({dimension:null}),this.props.onEntered(o,a)}},{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,a=this.props,o=a.tag,l=a.horizontal,f=a.isOpen,c=a.className,h=a.navbar,m=a.cssModule,g=a.children;a.innerRef;var x=rae(a,nae),_=this.state.dimension,w=Y9(x,Vy),S=Fl(x,Vy);return ae.createElement(ei,Jy({},w,{in:f,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var C=mae(O),T=gt(xt(c,l&&"collapse-horizontal",C,h&&"navbar-collapse"),m),j=_===null?null:Rf({},l?"width":"height",_);return ae.createElement(o,Jy({},S,{style:Xf(Xf({},S.style),j),className:T,ref:i.nodeRef}),g)})}}]),n}(U.Component);eP.propTypes=dae;eP.defaultProps=hae;var vae=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function BC(){return BC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BC.apply(this,arguments)}function gae(e,t){if(e==null)return{};var n=yae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bae={body:ie.bool,className:ie.string,color:ie.string,cssModule:ie.object,innerRef:ie.oneOfType([ie.object,ie.string,ie.func]),inverse:ie.bool,outline:ie.bool,tag:$t};function ra(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,a=e.inverse,o=e.outline,l=e.tag,f=l===void 0?"div":l,c=e.innerRef,h=gae(e,vae),m=gt(xt(t,"card",a?"text-white":!1,i?"card-body":!1,r?"".concat(o?"border":"bg","-").concat(r):!1),n);return ae.createElement(f,BC({},h,{className:m,ref:c}))}ra.propTypes=bae;var _ae=["className","cssModule","innerRef","tag"];function UC(){return UC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UC.apply(this,arguments)}function xae(e,t){if(e==null)return{};var n=wae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sae={className:ie.string,cssModule:ie.object,innerRef:ie.oneOfType([ie.object,ie.string,ie.func]),tag:$t};function nv(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,a=i===void 0?"div":i,o=xae(e,_ae),l=gt(xt(t,"card-body"),n);return ae.createElement(a,UC({},o,{className:l,ref:r}))}nv.propTypes=Sae;var Oae=["className","cssModule","tag"];function zC(){return zC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zC.apply(this,arguments)}function Eae(e,t){if(e==null)return{};var n=Cae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tae={className:ie.string,cssModule:ie.object,tag:$t};function _U(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=Eae(e,Oae),o=gt(xt(t,"card-footer"),n);return ae.createElement(i,zC({},a,{className:o}))}_U.propTypes=Tae;var Aae=["className","cssModule","tag"];function FC(){return FC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FC.apply(this,arguments)}function jae(e,t){if(e==null)return{};var n=Pae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Rae={className:ie.string,cssModule:ie.object,tag:$t};function rv(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=jae(e,Aae),o=gt(xt(t,"card-header"),n);return ae.createElement(i,FC({},a,{className:o}))}rv.propTypes=Rae;var Mae=["className","cssModule","tag"];function qC(){return qC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qC.apply(this,arguments)}function Nae(e,t){if(e==null)return{};var n=Lae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Dae={className:ie.string,cssModule:ie.object,tag:$t};function xU(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,a=Nae(e,Mae),o=gt(xt(t,"card-text"),n);return ae.createElement(i,qC({},a,{className:o}))}xU.propTypes=Dae;var kae=["className","cssModule","tag"];function VC(){return VC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VC.apply(this,arguments)}function Iae(e,t){if(e==null)return{};var n=$ae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $ae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Bae={className:ie.string,cssModule:ie.object,tag:$t};function wU(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=Iae(e,kae),o=gt(xt(t,"card-title"),n);return ae.createElement(i,VC({},a,{className:o}))}wU.propTypes=Bae;function HC(e){"@babel/helpers - typeof";return HC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HC(e)}var Uae=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function WC(){return WC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WC.apply(this,arguments)}function A6(e){return Vae(e)||qae(e)||Fae(e)||zae()}function zae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fae(e,t){if(e){if(typeof e=="string")return GC(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 GC(e,t)}}function qae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vae(e){if(Array.isArray(e))return GC(e)}function GC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hae(e,t){if(e==null)return{};var n=Wae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Gae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j6(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 Yae(e,t,n){return t&&j6(e.prototype,t),n&&j6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YC(e,t)}function YC(e,t){return YC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YC(e,t)}function Zae(e){var t=Qae();return function(){var r=tb(e),i;if(t){var a=tb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Xae(this,i)}}function Xae(e,t){if(t&&(HC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wp(e)}function wp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tb(e){return tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tb(e)}function P6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ay(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P6(Object(n),!0).forEach(function(r){Jae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eoe(){}var toe={children:ie.oneOfType([ie.node,ie.func]).isRequired,popperClassName:ie.string,placement:ie.string,placementPrefix:ie.string,arrowClassName:ie.string,hideArrow:ie.bool,tag:$t,isOpen:ie.bool,cssModule:ie.object,offset:ie.arrayOf(ie.number),fallbackPlacements:ie.array,flip:ie.bool,container:Wf,target:Wf.isRequired,modifiers:ie.array,strategy:ie.string,boundariesElement:ie.oneOfType([ie.string,zj]),onClosed:ie.func,fade:ie.bool,transition:ie.shape(eo.propTypes)},noe={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:eoe,fade:!0,transition:Ay({},eo.defaultProps)},tP=function(e){Kae(n,e);var t=Zae(n);function n(r){var i;return Gae(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(wp(i)),i.getTargetNode=i.getTargetNode.bind(wp(i)),i.getRef=i.getRef.bind(wp(i)),i.onClosed=i.onClosed.bind(wp(i)),i.state={isOpen:r.isOpen},i}return Yae(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 Jp(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Jp(i):i}},{key:"renderChildren",value:function(){var i=this.props,a=i.cssModule,o=i.children,l=i.isOpen,f=i.flip;i.target;var c=i.offset,h=i.fallbackPlacements,m=i.placementPrefix,g=i.arrowClassName,x=i.hideArrow,_=i.popperClassName,w=i.tag;i.container;var S=i.modifiers,O=i.strategy,C=i.boundariesElement;i.onClosed;var T=i.fade,j=i.transition,P=i.placement,R=Hae(i,Uae),I=gt(xt("arrow",g),a),V=gt(xt(_,m?"".concat(m,"-auto"):""),this.props.cssModule),G=S.map(function(le){return le.name}),W=[{name:"offset",options:{offset:c}},{name:"flip",enabled:f,options:{fallbackPlacements:h}},{name:"preventOverflow",options:{boundary:C}}].filter(function(le){return!G.includes(le.name)}),K=[].concat(A6(W),A6(S)),ne=Ay(Ay(Ay({},eo.defaultProps),j),{},{baseClass:T?j.baseClass:"",timeout:T?j.timeout:0});return ae.createElement(eo,WC({},ne,R,{in:l,onExited:this.onClosed,tag:w}),ae.createElement(mU,{referenceElement:this.targetNode,modifiers:K,placement:P,strategy:O},function(le){var Q=le.ref,J=le.style,H=le.placement,B=le.isReferenceHidden,z=le.arrowProps,F=le.update;return ae.createElement("div",{ref:Q,style:J,className:V,"data-popper-placement":H,"data-popper-reference-hidden":B?"true":void 0},typeof o=="function"?o({update:F}):o,!x&&ae.createElement("span",{ref:z.ref,className:I,style:z.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():zu.createPortal(ae.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,a){return i.isOpen&&!a.isOpen?{isOpen:i.isOpen}:null}}]),n}(ae.Component);tP.propTypes=toe;tP.defaultProps=noe;function KC(){return KC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KC.apply(this,arguments)}function im(e){"@babel/helpers - typeof";return im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},im(e)}function roe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R6(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 ioe(e,t,n){return t&&R6(e.prototype,t),n&&R6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZC(e,t)}function ZC(e,t){return ZC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZC(e,t)}function ooe(e){var t=loe();return function(){var r=nb(e),i;if(t){var a=nb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return soe(this,i)}}function soe(e,t){if(t&&(im(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mi(e)}function mi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function loe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nb(e){return nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nb(e)}var nP={children:ie.oneOfType([ie.node,ie.func]),placement:ie.oneOf(Tte),target:Wf.isRequired,container:Wf,isOpen:ie.bool,disabled:ie.bool,hideArrow:ie.bool,boundariesElement:ie.oneOfType([ie.string,zj]),className:ie.string,innerClassName:ie.string,arrowClassName:ie.string,popperClassName:ie.string,cssModule:ie.object,toggle:ie.func,autohide:ie.bool,placementPrefix:ie.string,delay:ie.oneOfType([ie.shape({show:ie.number,hide:ie.number}),ie.number]),modifiers:ie.array,strategy:ie.string,offset:ie.arrayOf(ie.number),innerRef:ie.oneOfType([ie.func,ie.string,ie.object]),trigger:ie.string,fade:ie.bool,flip:ie.bool},SU={show:0,hide:50},uoe={isOpen:!1,hideArrow:!1,autohide:!1,delay:SU,toggle:function(){},trigger:"click",fade:!0};function OU(e,t){return t&&(e===t||t.contains(e))}function M6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return OU(e,n)})[0]}var rP=function(e){aoe(n,e);var t=ooe(n);function n(r){var i;return roe(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(mi(i)),i.handleDocumentClick=i.handleDocumentClick.bind(mi(i)),i.removeTargetEvents=i.removeTargetEvents.bind(mi(i)),i.toggle=i.toggle.bind(mi(i)),i.showWithDelay=i.showWithDelay.bind(mi(i)),i.hideWithDelay=i.hideWithDelay.bind(mi(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(mi(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(mi(i)),i.show=i.show.bind(mi(i)),i.hide=i.hide.bind(mi(i)),i.onEscKeyDown=i.onEscKeyDown.bind(mi(i)),i.getRef=i.getRef.bind(mi(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return ioe(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 a=this.props.trigger.split(" ");a.indexOf("legacy")>-1&&(this.props.isOpen||M6(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!OU(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):a.indexOf("click")>-1&&M6(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 a=this.props.innerRef;a&&(typeof a=="function"?a(i):im(a)==="object"&&(a.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var a=this.props.delay;return im(a)==="object"?isNaN(a[i])?SU[i]:a[i]:a}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var a=this._targets.indexOf(i);return a>=0?this._targets[a]: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 a=i.composedPath();this.currentTargetElement=a&&a[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,a,o){this._targets.forEach(function(l){l.addEventListener(i,a,o)})}},{key:"removeEventOnTargets",value:function(i,a,o){this._targets.forEach(function(l){l.removeEventListener(i,a,o)})}},{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=Jp(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 a=this.currentTargetElement||this._targets[0];if(!a)return null;var o=this.props,l=o.className,f=o.cssModule,c=o.innerClassName,h=o.isOpen,m=o.hideArrow,g=o.boundariesElement,x=o.placement,_=o.placementPrefix,w=o.arrowClassName,S=o.popperClassName,O=o.container,C=o.modifiers,T=o.strategy,j=o.offset,P=o.fade,R=o.flip,I=o.children,V=Fl(this.props,Object.keys(nP)),G=gt(S,f),W=gt(c,f);return ae.createElement(tP,{className:l,target:a,isOpen:h,hideArrow:m,boundariesElement:g,placement:x,placementPrefix:_,arrowClassName:w,popperClassName:G,container:O,modifiers:C,strategy:T,offset:j,cssModule:f,fade:P,flip:R},function(K){var ne=K.update;return ae.createElement("div",KC({},V,{ref:i.getRef,className:W,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof I=="function"?I({update:ne}):I)})}}],[{key:"getDerivedStateFromProps",value:function(i,a){return i.isOpen&&!a.isOpen?{isOpen:i.isOpen}:null}}]),n}(ae.Component);rP.propTypes=nP;rP.defaultProps=uoe;var coe=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rb.apply(this,arguments)}function N6(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 pw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N6(Object(n),!0).forEach(function(r){foe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function foe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function doe(e,t){if(e==null)return{};var n=hoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var poe={animated:ie.bool,bar:ie.bool,barAriaLabelledBy:ie.string,barAriaValueText:ie.string,barClassName:ie.string,barStyle:ie.object,children:ie.node,className:ie.string,cssModule:ie.object,color:ie.string,max:ie.oneOfType([ie.string,ie.number]),min:ie.oneOfType([ie.string,ie.number]),multi:ie.bool,striped:ie.bool,style:ie.object,tag:$t,value:ie.oneOfType([ie.string,ie.number])};function EU(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,a=e.value,o=a===void 0?0:a,l=e.min,f=l===void 0?0:l,c=e.max,h=c===void 0?100:c,m=e.animated,g=e.striped,x=e.color,_=e.bar,w=e.multi,S=e.tag,O=S===void 0?"div":S,C=e.style,T=C===void 0?{}:C,j=e.barStyle,P=j===void 0?{}:j,R=e.barAriaValueText,I=e.barAriaLabelledBy,V=doe(e,coe),G=a6(o)/a6(h)*100,W=gt(xt(n,"progress"),i),K=gt(xt("progress-bar",_&&n||r,m?"progress-bar-animated":null,x?"bg-".concat(x):null,g||m?"progress-bar-striped":null),i),ne={className:K,style:pw(pw(pw({},_?T:{}),P),{},{width:"".concat(G,"%")}),role:"progressbar","aria-valuenow":o,"aria-valuemin":f,"aria-valuemax":h,"aria-valuetext":R,"aria-labelledby":I,children:t};return _?ae.createElement(O,rb({},V,ne)):ae.createElement(O,rb({},V,{style:T,className:W}),w?t:ae.createElement("div",ne))}EU.propTypes=poe;function XC(e){"@babel/helpers - typeof";return XC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XC(e)}function moe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function voe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function goe(e,t,n){return t&&voe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QC(e,t)}function QC(e,t){return QC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},QC(e,t)}function boe(e){var t=woe();return function(){var r=ib(e),i;if(t){var a=ib(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return _oe(this,i)}}function _oe(e,t){if(t&&(XC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xoe(e)}function xoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function woe(){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 ib(e){return ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ib(e)}var Soe={children:ie.node.isRequired,node:ie.any},CU=function(e){yoe(n,e);var t=boe(n);function n(){return moe(this,n),t.apply(this,arguments)}return goe(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return Fj?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),zu.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(ae.Component);CU.propTypes=Soe;function JC(e){"@babel/helpers - typeof";return JC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JC(e)}function L6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(n),!0).forEach(function(r){Tf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kp.apply(this,arguments)}function Tf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eoe(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 Coe(e,t,n){return t&&Eoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Toe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eT(e,t)}function eT(e,t){return eT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eT(e,t)}function Aoe(e){var t=Poe();return function(){var r=ab(e),i;if(t){var a=ab(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return joe(this,i)}}function joe(e,t){if(t&&(JC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 Poe(){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 ab(e){return ab=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ab(e)}function ob(){}var D6=ie.shape(eo.propTypes),TU={autoFocus:ie.bool,backdrop:ie.oneOfType([ie.bool,ie.oneOf(["static"])]),backdropClassName:ie.string,backdropTransition:D6,centered:ie.bool,children:ie.node,contentClassName:ie.string,className:ie.string,container:Wf,cssModule:ie.object,external:ie.node,fade:ie.bool,fullscreen:ie.oneOfType([ie.bool,ie.oneOf(["sm","md","lg","xl"])]),innerRef:ie.oneOfType([ie.object,ie.string,ie.func]),isOpen:ie.bool,keyboard:ie.bool,labelledBy:ie.string,modalClassName:ie.string,modalTransition:D6,onClosed:ie.func,onEnter:ie.func,onExit:ie.func,onOpened:ie.func,returnFocusAfterClose:ie.bool,role:ie.string,scrollable:ie.bool,size:ie.string,toggle:ie.func,trapFocus:ie.bool,unmountOnClose:ie.bool,wrapClassName:ie.string,zIndex:ie.oneOfType([ie.number,ie.string])},Roe=Object.keys(TU),Moe={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:ob,onClosed:ob,modalTransition:{timeout:qy.Modal},backdropTransition:{mountOnEnter:!0,timeout:qy.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},ia=function(e){Toe(n,e);var t=Aoe(n);function n(r){var i;return Ooe(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Hi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Hi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Hi(i)),i.handleEscape=i.handleEscape.bind(Hi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Hi(i)),i.handleTab=i.handleTab.bind(Hi(i)),i.onOpened=i.onOpened.bind(Hi(i)),i.onClosed=i.onClosed.bind(Hi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Hi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Hi(i)),i.trapFocus=i.trapFocus.bind(Hi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return Coe(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isOpen,o=i.autoFocus,l=i.onEnter;a&&(this.init(),this.setState({isOpen:!0}),o&&this.setFocus()),l&&l(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,a){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!a.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 a=this._dialog?this._dialog.parentNode:null;if(a&&i.target===a&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;a&&i.target===a&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var a=this.getFocusableChildren(),o=a.length;if(o!==0){for(var l=this.getFocusedChild(),f=0,c=0;c<o;c+=1)if(a[c]===l){f=c;break}i.shiftKey&&f===0?(i.preventDefault(),a[o-1].focus()):!i.shiftKey&&f===o-1&&(i.preventDefault(),a[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===Yt.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,a){this.props.onOpened(),(this.props.modalTransition.onEntered||ob)(i,a)}},{key:"onClosed",value:function(i){var a=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||ob)(i),a&&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(Rte.join(", "))}},{key:"getFocusedChild",value:function(){var i,a=this.getFocusableChildren();try{i=document.activeElement}catch{i=a[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 a=this.getFocusableChildren(),o=0;o<a.length;o+=1)if(a[o]===i.target)return;a.length>0&&(i.preventDefault(),i.stopPropagation(),a[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=Jp(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Ste(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),Ote(),n.openCount===0&&(document.body.className=xt(document.body.className,gt("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=gt("modal-open",this.props.cssModule),a=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(a," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),G9(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,a=this,o=Fl(this.props,Roe),l="modal-dialog";return ae.createElement("div",kp({},o,{className:gt(xt(l,this.props.className,(i={},Tf(i,"modal-".concat(this.props.size),this.props.size),Tf(i,"".concat(l,"-centered"),this.props.centered),Tf(i,"".concat(l,"-scrollable"),this.props.scrollable),Tf(i,"modal-fullscreen",this.props.fullscreen===!0),Tf(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(c){a._dialog=c}}),ae.createElement("div",{className:gt(xt("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 a=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=a?"none":"block";var o=this.props,l=o.wrapClassName,f=o.modalClassName,c=o.backdropClassName,h=o.cssModule,m=o.isOpen,g=o.backdrop,x=o.role,_=o.labelledBy,w=o.external,S=o.innerRef,O={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":_,"aria-modal":!0,role:x,tabIndex:"-1"},C=this.props.fade,T=gf(gf(gf({},eo.defaultProps),this.props.modalTransition),{},{baseClass:C?this.props.modalTransition.baseClass:"",timeout:C?this.props.modalTransition.timeout:0}),j=gf(gf(gf({},eo.defaultProps),this.props.backdropTransition),{},{baseClass:C?this.props.backdropTransition.baseClass:"",timeout:C?this.props.backdropTransition.timeout:0}),P=g&&(C?ae.createElement(eo,kp({},j,{in:m&&!!g,cssModule:h,className:gt(xt("modal-backdrop",c),h)})):ae.createElement("div",{className:gt(xt("modal-backdrop","show",c),h)}));return ae.createElement(CU,{node:this._element},ae.createElement("div",{className:gt(l)},ae.createElement(eo,kp({},O,T,{in:m,onEntered:this.onOpened,onExited:this.onClosed,cssModule:h,className:gt(xt("modal",f,this.state.showStaticBackdropAnimation&&"modal-static"),h),innerRef:S}),w,this.renderModalDialog()),P))}return null}}]),n}(ae.Component);ia.propTypes=TU;ia.defaultProps=Moe;ia.openCount=0;ia.originalBodyOverflow=null;var Noe=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tT.apply(this,arguments)}function Loe(e,t){if(e==null)return{};var n=Doe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Doe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var koe={children:ie.node,className:ie.string,close:ie.object,closeAriaLabel:ie.string,cssModule:ie.object,tag:$t,toggle:ie.func,wrapTag:$t};function Hl(e){var t,n=e.className,r=e.cssModule,i=e.children,a=e.toggle,o=e.tag,l=o===void 0?"h5":o,f=e.wrapTag,c=f===void 0?"div":f,h=e.closeAriaLabel,m=h===void 0?"Close":h,g=e.close,x=Loe(e,Noe),_=gt(xt(n,"modal-header"),r);return!g&&a&&(t=ae.createElement("button",{type:"button",onClick:a,className:gt("btn-close",r),"aria-label":m})),ae.createElement(c,tT({},x,{className:_}),ae.createElement(l,{className:gt("modal-title",r)},i),g||t)}Hl.propTypes=koe;var Ioe=["className","cssModule","tag"];function nT(){return nT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nT.apply(this,arguments)}function $oe(e,t){if(e==null)return{};var n=Boe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Boe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Uoe={className:ie.string,cssModule:ie.object,tag:$t};function ms(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=$oe(e,Ioe),o=gt(xt(t,"modal-body"),n);return ae.createElement(i,nT({},a,{className:o}))}ms.propTypes=Uoe;var zoe=["className","cssModule","tag"];function rT(){return rT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rT.apply(this,arguments)}function Foe(e,t){if(e==null)return{};var n=qoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Voe={className:ie.string,cssModule:ie.object,tag:$t};function Id(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=Foe(e,zoe),o=gt(xt(t,"modal-footer"),n);return ae.createElement(i,rT({},a,{className:o}))}Id.propTypes=Voe;function iT(){return iT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iT.apply(this,arguments)}var Hoe={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function H0(e){var t=xt("tooltip-arrow",e.arrowClassName),n=xt("tooltip","show",e.popperClassName),r=xt("tooltip-inner",e.innerClassName),i=qj(Hoe,e);return ae.createElement(rP,iT({},i,{arrowClassName:t,popperClassName:n,innerClassName:r}))}H0.propTypes=nP;var Woe=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function aT(){return aT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aT.apply(this,arguments)}function Goe(e,t){if(e==null)return{};var n=Yoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Koe={children:ie.node,row:ie.bool,check:ie.bool,switch:ie.bool,inline:ie.bool,floating:ie.bool,noMargin:ie.bool,disabled:ie.bool,tag:$t,className:ie.string,cssModule:ie.object};function sb(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,a=e.check,o=e.inline,l=e.floating,f=e.noMargin,c=e.tag,h=c===void 0?"div":c,m=e.switch,g=Goe(e,Woe),x=a||m,_=gt(xt(t,r?"row":!1,x?"form-check":!1,m?"form-switch":!1,x||f?!1:"mb-3",x&&o?"form-check-inline":!1,x&&i?"disabled":!1,l&&"form-floating"),n);return h==="fieldset"&&(g.disabled=i),ae.createElement(h,aT({},g,{className:_}))}sb.propTypes=Koe;function oT(e){"@babel/helpers - typeof";return oT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oT(e)}var Zoe=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function sT(){return sT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sT.apply(this,arguments)}function Xoe(e,t){if(e==null)return{};var n=Qoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Joe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ese(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 tse(e,t,n){return t&&ese(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nse(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&&lT(e,t)}function lT(e,t){return lT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lT(e,t)}function rse(e){var t=ase();return function(){var r=lb(e),i;if(t){var a=lb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ise(this,i)}}function ise(e,t){if(t&&(oT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uT(e)}function uT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ase(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lb(e){return lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lb(e)}var ose={children:ie.node,type:ie.string,size:ie.oneOfType([ie.number,ie.string]),bsSize:ie.string,valid:ie.bool,invalid:ie.bool,tag:$t,innerRef:ie.oneOfType([ie.object,ie.func,ie.string]),plaintext:ie.bool,addon:ie.bool,className:ie.string,cssModule:ie.object},sr=function(e){nse(n,e);var t=rse(n);function n(r){var i;return Joe(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(uT(i)),i.focus=i.focus.bind(uT(i)),i}return tse(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,a=i.className,o=i.cssModule,l=i.type,f=l===void 0?"text":l,c=i.bsSize,h=i.valid,m=i.invalid,g=i.tag,x=i.addon,_=i.plaintext,w=i.innerRef,S=Xoe(i,Zoe),O=["switch","radio","checkbox"].indexOf(f)>-1,C=/\D/g,T=f==="textarea",j=f==="select",P=f==="range",R=g||(j||T?f:"input"),I="form-control";_?(I="".concat(I,"-plaintext"),R=g||"input"):P?I="form-range":j?I="form-select":O&&(x?I=null:I="form-check-input"),S.size&&C.test(S.size)&&(oC(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),c=S.size,delete S.size);var V=gt(xt(a,m&&"is-invalid",h&&"is-valid",c?j?"form-select-".concat(c):"form-control-".concat(c):!1,I),o);return(R==="input"||g&&typeof g=="function")&&(S.type=f==="switch"?"checkbox":f),S.children&&!(_||f==="select"||typeof R!="string"||R==="select")&&(oC('Input with a type of "'.concat(f,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete S.children),ae.createElement(R,sT({},S,{ref:w,className:V,"aria-invalid":m}))}}]),n}(ae.Component);sr.propTypes=ose;var sse=["className","cssModule","tag","type","size"];function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(this,arguments)}function lse(e,t){if(e==null)return{};var n=use(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function use(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cse={className:ie.string,cssModule:ie.object,size:ie.string,tag:$t,type:ie.string};function iv(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var a=e.size,o=lse(e,sse),l=gt(xt(t,"input-group",a?"input-group-".concat(a):null),n);return e.type==="dropdown"?ae.createElement(ja,ub({},o,{className:l})):ae.createElement(vU.Provider,{value:{insideInputGroup:!0}},ae.createElement(i,ub({},o,{className:l})))}iv.propTypes=cse;var fse=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function cT(){return cT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cT.apply(this,arguments)}function dse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hse(e,t){if(e==null)return{};var n=pse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mse={children:ie.node,className:ie.string,listClassName:ie.string,cssModule:ie.object,size:ie.string,tag:$t,listTag:$t,"aria-label":ie.string};function iP(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,a=e.tag,o=a===void 0?"nav":a,l=e.listTag,f=l===void 0?"ul":l,c=e["aria-label"],h=c===void 0?"pagination":c,m=hse(e,fse),g=gt(xt(t),r),x=gt(xt(n,"pagination",dse({},"pagination-".concat(i),!!i)),r);return ae.createElement(o,{className:g,"aria-label":h},ae.createElement(f,cT({},m,{className:x})))}iP.propTypes=mse;var vse=["active","className","cssModule","disabled","tag"];function fT(){return fT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fT.apply(this,arguments)}function gse(e,t){if(e==null)return{};var n=yse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bse={active:ie.bool,children:ie.node,className:ie.string,cssModule:ie.object,disabled:ie.bool,tag:$t};function Ku(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,a=e.tag,o=a===void 0?"li":a,l=gse(e,vse),f=gt(xt(n,"page-item",{active:t,disabled:i}),r);return ae.createElement(o,fT({},l,{className:f}))}Ku.propTypes=bse;var _se=["className","cssModule","next","previous","first","last","tag"];function dT(){return dT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dT.apply(this,arguments)}function xse(e,t){if(e==null)return{};var n=wse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sse={"aria-label":ie.string,children:ie.node,className:ie.string,cssModule:ie.object,next:ie.bool,previous:ie.bool,first:ie.bool,last:ie.bool,tag:$t};function Zu(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,a=e.first,o=e.last,l=e.tag,f=l===void 0?"a":l,c=xse(e,_se),h=gt(xt(t,"page-link"),n),m;i?m="Previous":r?m="Next":a?m="First":o&&(m="Last");var g=e["aria-label"]||m,x;i?x="‹":r?x="›":a?x="«":o&&(x="»");var _=e.children;return _&&Array.isArray(_)&&_.length===0&&(_=null),!c.href&&f==="a"&&(f="button"),(i||r||a||o)&&(_=[ae.createElement("span",{"aria-hidden":"true",key:"caret"},_||x),ae.createElement("span",{className:"visually-hidden",key:"ariaLabel"},g)]),ae.createElement(f,dT({},c,{className:h,"aria-label":g}),_)}Zu.propTypes=Sse;function hT(e){"@babel/helpers - typeof";return hT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hT(e)}function k6(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 Ose(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k6(Object(n),!0).forEach(function(r){Ese(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ese(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(){return pT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pT.apply(this,arguments)}function Cse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tse(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 Ase(e,t,n){return t&&Tse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jse(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&&mT(e,t)}function mT(e,t){return mT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mT(e,t)}function Pse(e){var t=Mse();return function(){var r=cb(e),i;if(t){var a=cb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Rse(this,i)}}function Rse(e,t){if(t&&(hT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AU(e)}function AU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mse(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cb(e)}var Nse=["defaultOpen"],jU=function(e){jse(n,e);var t=Pse(n);function n(r){var i;return Cse(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(AU(i)),i}return Ase(n,[{key:"toggle",value:function(i){var a=this;this.setState(function(o){return{isOpen:!o.isOpen}},function(){a.props.onToggle&&a.props.onToggle(i,a.state.isOpen)})}},{key:"render",value:function(){return ae.createElement(ja,pT({isOpen:this.state.isOpen,toggle:this.toggle},Fl(this.props,Nse)))}}]),n}(U.Component);jU.propTypes=Ose({defaultOpen:ie.bool,onToggle:ie.func},ja.propTypes);function vT(e){"@babel/helpers - typeof";return vT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vT(e)}function I6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I6(Object(n),!0).forEach(function(r){Dse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gT(){return gT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gT.apply(this,arguments)}function kse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ise(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 $se(e,t,n){return t&&Ise(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yT(e,t)}function yT(e,t){return yT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yT(e,t)}function Use(e){var t=Fse();return function(){var r=fb(e),i;if(t){var a=fb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return zse(this,i)}}function zse(e,t){if(t&&(vT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PU(e)}function PU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fse(){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 fb(e){return fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fb(e)}var qse=["defaultOpen"],aa=function(e){Bse(n,e);var t=Use(n);function n(r){var i;return kse(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(PU(i)),i}return $se(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return ae.createElement(H0,gT({isOpen:this.state.isOpen,toggle:this.toggle},Fl(this.props,qse)))}}]),n}(U.Component);aa.propTypes=Lse({defaultOpen:ie.bool},H0.propTypes);function RU(e,t=globalThis.setTimeout,n=globalThis.clearTimeout){const r=U.useRef(null),i=U.useCallback(()=>{r.current&&n(r.current)},[n]),a=U.useCallback((o,l)=>{i(),r.current=t(()=>{o(),r.current=null},l??e)},[i,e,t]);return U.useEffect(()=>i,[i]),U.useMemo(()=>({setTimeout:a,clearCurrentTimeout:i}),[i,a])}const Jt=(e=!1)=>{const[t,n]=U.useState(e),r=U.useCallback(()=>n(o=>!o),[]),i=U.useCallback(()=>n(!0),[]),a=U.useCallback(()=>n(!1),[]);return[t,r,i,a]},ac=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>y.jsx(ra,{body:!0,className:ke(e,{"w-100":i,"w-75 mx-auto":!i,"border-danger":r==="error"}),children:y.jsxs("h3",{className:ke("text-center mb-0",{"text-muted":r==="default","text-danger":r==="error"}),children:[n&&y.jsx(Xe,{icon:k0,spin:!0}),n&&y.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})}),Mn=({title:e,children:t,bodyClassName:n,...r})=>y.jsxs(ra,{...r,children:[e&&y.jsx(rv,{role:"heading","aria-level":4,children:e}),y.jsx(nv,{className:n,children:t})]}),Oi=({children:e,type:t,className:n,small:r=!1})=>y.jsx(Mn,{role:"document",className:ke("text-center",{"w-75 mx-auto":!r,"w-100":r,"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"},n),bodyClassName:ke({"p-2":r}),children:e}),MU=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:a=!1})=>{const o=U.useId(),l=h=>t==null?void 0:t(h.target.checked,h),f={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=a?{display:"inline-block"}:{};return y.jsxs("span",{className:ke("form-check",f,n),style:c,children:[y.jsx("input",{type:"checkbox",className:"form-check-input",id:o,checked:e,onChange:l}),y.jsx("label",{className:"form-check-label",htmlFor:o,children:r})]})},NU=e=>y.jsx(MU,{type:"checkbox",...e}),ss=e=>y.jsx(MU,{type:"switch",...e}),$d=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:a})=>y.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[y.jsx("label",{className:`form-label ${r}`,htmlFor:a,children:t}),e]}),Vse=({children:e,value:t,onChange:n,type:r,required:i,placeholder:a,className:o,labelClassName:l})=>{const f=U.useId();return y.jsx($d,{label:y.jsxs(y.Fragment,{children:[e,":"]}),className:o,labelClassName:l,id:f,children:y.jsx("input",{id:f,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:a,onChange:c=>n(c.target.value)})})},Hse=500;let jy;const $6=()=>{jy!==null&&clearTimeout(jy),jy=null},W0=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:a=setTimeout})=>{const[o,l]=U.useState(i),f=(c,h=Hse)=>{l(c),$6(),jy=a(()=>{e(c),$6()},h)};return y.jsxs("div",{className:ke("search-field",t),children:[y.jsx("input",{type:"text",className:ke("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>f(c.target.value)}),y.jsx(Xe,{icon:s9,className:"search-field__icon"}),y.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>f("",0)})]})},Dl=()=>U.useRef(null),LU=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const a=i.slice(0,-2);n[a]??(n[a]=[]),n[a].push(r)}else n[i]=r}),n},aP=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()},Bd=()=>{const{search:e}=Pr();return U.useMemo(()=>LU(e),[e])},Wse=2e3,G0=(e={},t,n=globalThis.setTimeout,r=globalThis.clearTimeout)=>{const{initialValue:i=!1,delay:a=Wse}=typeof e=="boolean"?{initialValue:e,delay:t}:e,{setTimeout:o}=RU(a,n,r),[l,f]=U.useState(i),c=U.useRef(i),h=U.useCallback(()=>{f(!c.current),o(()=>f(c.current))},[o]);return[l,h]},vs=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:a,end:o=!1,minWidth:l,inline:f,size:c,...h})=>{const[m,g]=Jt(),x=ke("dropdown-btn__toggle",n,{"btn-block":!f,"dropdown-btn__toggle--with-caret":!a}),_={minWidth:l&&`${l}px`};return y.jsxs(ja,{isOpen:m,toggle:g,disabled:t,className:i,children:[y.jsx(ps,{size:c,caret:!a,className:x,color:"primary",...h,children:e}),y.jsx(Vl,{className:"w-100",end:o,style:_,children:m&&r})]})},Y0=({children:e,minWidth:t,label:n="Options"})=>y.jsx(vs,{text:y.jsx(Xe,{className:"px-1",icon:jQ}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Ip=({children:e,...t})=>y.jsx(Hj,{children:y.jsx(Wj,{className:"nav-pills__nav-link",tag:L0,...t,children:e})}),DU=({children:e,fill:t=!1,className:n=""})=>y.jsx(ra,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:y.jsx(Vj,{pills:!0,fill:t,children:U.Children.map(e,r=>{if(!U.isValidElement(r)||r.type!==Ip)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})});function av(e,t,n){return typeof e=="object"?av(e.currentField,e.newField,e.currentOrderDir):e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC"}const kU=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const a=n==="ASC"?1:-1,o=n==="ASC"?-1:1;return r[t]>i[t]?a:o}),Gse=e=>e.dir?`${e.field}-${e.dir}`:void 0,Yse=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function ov({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:a=!0}){const[o,l]=Jt(),f=c=>()=>{const h=av(c,t.field,t.dir);n(h?c:void 0,h)};return y.jsxs(ja,{isOpen:o,toggle:l,children:[y.jsxs(ps,{caret:!0,color:r?"primary":"link",className:ke({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&y.jsx(y.Fragment,{children:"Order by"}),r&&!t.field&&y.jsx("i",{children:"Order by..."}),r&&t.field&&y.jsxs(y.Fragment,{children:[a&&"Order by: ",e[t.field]," - ",y.jsx("small",{children:t.dir??"DESC"})]})]}),y.jsx(Vl,{end:i,className:"w-100",style:r?void 0:{minWidth:"11rem"},children:o&&y.jsxs(y.Fragment,{children:[Object.entries(e).map(([c,h])=>y.jsxs(Je,{active:t.field===c,onClick:f(c),className:"d-flex justify-content-between align-items-center",tabIndex:-1,children:[h,t.field===c&&y.jsx(Xe,{icon:t.dir==="ASC"?NQ:vQ})]},c)),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsx(Je,{disabled:!t.field,onClick:()=>n(),tabIndex:-1,children:y.jsx("i",{children:"Clear selection"})})]})})]})}const am="#4696e5",Kse="rgba(70, 150, 229, 0.4)",bT="#f77f28",Zse="rgba(247, 127, 40, 0.4)",Xse="white",Qse="#161b22",Jse=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},sv=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},oP=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",ele=({className:e,...t})=>y.jsx("div",{className:ke("tw:px-4 tw:py-3 tw:rounded-t-md","tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-b tw:border-lm-border tw:dark:border-dm-border",e),...t}),tle=({className:e,...t})=>y.jsx("div",{className:ke("tw:p-4 tw:bg-lm-primary tw:dark:bg-dm-primary tw:first:rounded-t-md","tw:first:rounded-t-md tw:last:rounded-b-md",e),...t}),nle=({className:e,...t})=>y.jsx("div",{className:ke("tw:px-4 tw:py-3 tw:rounded-b-md","tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-t tw:border-lm-border tw:dark:border-dm-border",e),...t}),rle=({className:e,...t})=>y.jsx("div",{className:ke("tw:group/card tw:rounded-md tw:shadow-md","tw:border tw:border-lm-border tw:dark:border-dm-border tw:bg-lm-primary tw:dark:bg-dm-primary",e),...t}),wi=Object.assign(rle,{Body:tle,Header:ele,Footer:nle}),K0=({bodyClassName:e,children:t,...n})=>{const{title:r,titleSize:i="md",...a}="title"in n?n:{...n,title:void 0,titleSize:void 0};return y.jsxs(wi,{...a,children:[r&&y.jsxs(wi.Header,{children:[i==="lg"&&y.jsx("h4",{children:r}),i==="md"&&y.jsx("h5",{children:r}),i==="sm"&&y.jsx("h6",{children:r})]}),y.jsx(wi.Body,{className:e,children:t})]})},lv=U.createContext(void 0),Ud=U.createContext({responsive:!0}),ile=({children:e,className:t})=>{const{responsive:n}=U.useContext(Ud);return y.jsx(lv.Provider,{value:{section:"head"},children:y.jsx("thead",{className:ke({"tw:hidden tw:lg:table-header-group":n},t),children:e})})},ale=({children:e,className:t})=>{const{responsive:n}=U.useContext(Ud);return y.jsx(lv.Provider,{value:{section:"body"},children:y.jsx("tbody",{className:ke({"tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3":n},t),children:e})})},ole=({children:e,className:t})=>{const{responsive:n}=U.useContext(Ud);return y.jsx(lv.Provider,{value:{section:"footer"},children:y.jsx("tfoot",{className:ke({"tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3 tw:mt-4":n},t),children:e})})},sle=({children:e,className:t,...n})=>{const r=U.useContext(lv),i=(r==null?void 0:r.section)==="body",{responsive:a}=U.useContext(Ud);return y.jsx("tr",{className:ke("tw:group",{"tw:lg:table-row tw:flex tw:flex-col":a,"tw:lg:border-0 tw:border-y-2 tw:border-lm-border tw:dark:border-dm-border":a,"tw:hover:bg-lm-primary tw:dark:hover:bg-dm-primary":i,"tw:group-[&]/card:hover:bg-lm-secondary tw:dark:group-[&]/card:hover:bg-dm-secondary":i},t),...n,children:e})},lle=({children:e,className:t,columnName:n,type:r,...i})=>{const a=U.useContext(lv),o=r??((a==null?void 0:a.section)!=="body"?"th":"td"),{responsive:l}=U.useContext(Ud);return y.jsx(o,{"data-column":l?n:void 0,className:ke("tw:p-2 tw:border-lm-border tw:dark:border-dm-border",{"tw:border-b-1":!l,"tw:block tw:lg:table-cell tw:not-last:border-b-1 tw:lg:border-b-1":l,"tw:before:lg:hidden tw:before:content-[attr(data-column)] tw:before:font-bold tw:before:mr-1":l&&o==="td"},t),...i,children:e})},ule=({header:e,footer:t,children:n,responsive:r=!0,...i})=>y.jsx(Ud.Provider,{value:{responsive:r},children:y.jsxs("table",{className:"tw:w-full",...i,children:[y.jsx(ile,{children:e}),y.jsx(ale,{children:n}),t&&y.jsx(ole,{children:t})]})}),bi=Object.assign(ule,{Row:sle,Cell:lle}),ea=({children:e,className:t,disabled:n,variant:r="primary",size:i="md",inline:a=!1,solid:o=!1,type:l="button",...f})=>{const c="to"in f?hn:"button",h=c===hn?void 0:l;return y.jsx(c,{className:ke({"tw:inline-flex":a,"tw:flex":!a},"tw:gap-2 tw:items-center tw:justify-center","tw:border tw:rounded-md tw:no-underline","tw:transition-colors",{"tw:focus-ring":r!=="danger","tw:focus-ring-danger":r==="danger"},{"tw:px-1.5 tw:py-1 tw:text-sm":i==="sm","tw:px-3 tw:py-1.5":i==="md","tw:px-4 tw:py-2 tw:text-lg":i==="lg"},{"tw:border-brand tw:text-brand":r==="primary","tw:border-zinc-500":r==="secondary","tw:text-zinc-500":r==="secondary"&&!o,"tw:border-danger":r==="danger","tw:text-danger":r==="danger"&&!o},o&&{"tw:text-white":!0,"tw:bg-brand":r==="primary","tw:highlight:bg-brand-dark tw:highlight:border-brand-dark":r==="primary","tw:bg-zinc-500":r==="secondary","tw:highlight:bg-zinc-600 tw:highlight:border-zinc-600":r==="secondary","tw:bg-danger":r==="danger","tw:highlight:bg-danger-dark tw:highlight:border-danger-dark":r==="danger"},!n&&{"tw:highlight:text-white":!o,"tw:highlight:bg-brand":r==="primary","tw:highlight:bg-zinc-500":r==="secondary","tw:highlight:bg-danger":r==="danger"},{"tw:pointer-events-none tw:opacity-65":n},t),disabled:n,type:h,...f,children:e})},IU=U.forwardRef(({className:e,onChange:t,...n},r)=>{const i=U.useCallback(a=>t==null?void 0:t(a.target.checked,a),[t]);return y.jsx("input",{ref:r,type:"checkbox",className:ke("tw:appearance-none tw:focus-ring","tw:border-1 tw:border-lm-input-border tw:dark:border-dm-input-border","tw:bg-lm-primary tw:dark:bg-dm-primary tw:checked:bg-brand tw:bg-no-repeat","tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input",e),onChange:i,...n})});U.forwardRef(({className:e,...t},n)=>y.jsx(IU,{ref:n,className:ke("tw:rounded-sm tw:w-4 tw:h-4 tw:checked:bg-(image:--tick) tw:bg-center",e),...t}));const _T=({onClick:e,label:t="Close"})=>y.jsx("button",{type:"button",onClick:e,className:ke("tw:opacity-50 tw:highlight:opacity-80 tw:transition-opacity","tw:rounded-md tw:focus-ring"),"aria-label":t,children:y.jsx(Xe,{icon:zQ,size:"xl"})}),sP=U.forwardRef(({borderless:e=!1,size:t="md",feedback:n,className:r,disabled:i,readOnly:a,...o},l)=>{const f=!i&&!a;return y.jsx("input",{ref:l,className:ke("tw:w-full",{"tw:focus-ring":!n,"tw:focus-ring-danger":n==="error"},{"tw:px-2 tw:py-1 tw:text-sm":t==="sm","tw:px-3 tw:py-1.5":t==="md","tw:px-4 tw:py-2 tw:text-xl":t==="lg"},{"tw:rounded-md tw:border":!e,"tw:border-lm-input-border tw:dark:border-dm-input-border":!e&&!n,"tw:border-danger":!e&&n==="error","tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input":!f,"tw:bg-lm-primary tw:dark:bg-dm-primary":f,"tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input":f},r),disabled:i,readOnly:a,...o})}),lP=({required:e,children:t,...n})=>y.jsxs("label",{...n,children:[t,e&&y.jsx("span",{className:"tw:text-danger tw:ml-1","data-testid":"required-indicator",children:"*"})]}),B6=U.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,...a},o)=>{const l=U.useId();return y.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1",children:[y.jsx(lP,{htmlFor:l,required:n,children:e}),y.jsx(sP,{ref:o,id:l,className:t,required:n||r,feedback:i?"error":void 0,...a}),i&&y.jsx("span",{className:"tw:text-danger",children:i})]})}),cle=U.forwardRef(({containerClassName:e,className:t,size:n,...r},i)=>{const[a,o,,l]=Jt(!1),f=U.useRef(null),c=U.useCallback(({relatedTarget:h})=>{var m;(m=f.current)!=null&&m.contains(h)||l()},[f,l]);return y.jsxs("div",{className:ke("tw:group tw:relative",e),ref:f,onBlurCapture:c,children:[y.jsx(sP,{ref:i,type:a?"text":"password",className:ke({"tw:pr-10":n!=="sm","tw:pr-8":n==="sm"},t),size:n,"data-testid":"input",...r}),y.jsx("button",{type:"button",onClick:o,title:a?"Hide password":"Show password","aria-label":a?"Hide password":"Show password",className:ke("tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:px-1","tw:text-placeholder tw:hover:text-lm-text tw:hover:dark:text-dm-text tw:transition-colors",{"tw:right-1.5":n!=="sm","tw:scale-85 tw:right-1":n==="sm"}),tabIndex:-1,children:y.jsx(Xe,{fixedWidth:!0,icon:a?oQ:gQ})})]})}),fle=U.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,...a},o)=>{const l=U.useId();return y.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1",children:[y.jsx(lP,{htmlFor:l,required:n,children:e}),y.jsx(cle,{ref:o,id:l,className:t,required:n||r,feedback:i?"error":void 0,...a}),i&&y.jsx("span",{className:"tw:text-danger",children:i})]})}),dle=U.forwardRef(({className:e,size:t="md",feedback:n,style:r={},disabled:i,...a},o)=>y.jsx("select",{ref:o,className:ke("tw:w-full tw:appearance-none tw:pr-9","tw:bg-(image:--chevron-down) tw:bg-no-repeat",{"tw:focus-ring":!n,"tw:focus-ring-danger":n==="error"},"tw:rounded-md tw:border",{"tw:border-lm-input-border tw:dark:border-dm-input-border":!n,"tw:border-danger":n==="error"},{"tw:pl-2 tw:py-1 tw:text-sm":t==="sm","tw:pl-3 tw:py-1.5":t==="md","tw:pl-4 tw:py-2 tw:text-xl":t==="lg","tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input":i,"tw:bg-lm-primary tw:dark:bg-dm-primary tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input":!i},e),style:{...r,background:"right 0.75rem center / 16px 12px"},disabled:i,...a}));U.forwardRef(({selectClassName:e,label:t,required:n,hiddenRequired:r,...i},a)=>{const o=U.useId();return y.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1",children:[y.jsx(lP,{htmlFor:o,required:n,children:t}),y.jsx(dle,{ref:a,id:o,className:e,required:n||r,...i})]})});const hle=U.forwardRef(({onChange:e,containerClassName:t,inputClassName:n,size:r="lg",loading:i=!1,...a},o)=>{const{setTimeout:l,clearCurrentTimeout:f}=RU(500),c=U.useCallback(h=>{h?l(()=>e(h)):(f(),e(h))},[f,e,l]);return y.jsxs("div",{className:ke("tw:group tw:relative tw:focus-within:z-10",t),children:[y.jsx(Xe,{icon:i?k0:s9,spin:i,className:ke("tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:transition-colors","tw:text-placeholder tw:group-focus-within:text-lm-text tw:dark:group-focus-within:text-dm-text",{"tw:left-3":r!=="sm","tw:scale-85 tw:left-2":r==="sm"})}),y.jsx(sP,{ref:o,type:"search",className:ke({"tw:pl-9":r!=="sm","tw:pl-7":r==="sm"},n),placeholder:"Search...",onChange:h=>c(h.target.value),size:r,...a})]})});U.forwardRef(({className:e,...t},n)=>y.jsx(IU,{ref:n,className:ke("tw:rounded-full tw:w-8 tw:h-4","tw:bg-(image:--circle-grey-dark) tw:dark:bg-(image:--circle-grey-light) tw:checked:bg-(image:--circle-white)","tw:focus-visible:not-checked:bg-(image:--circle-light-blue)","tw:checked:bg-right tw:transition-[background-position]",e),...t}));const ple=({className:e,disabled:t,size:n="md",type:r="button",...i})=>y.jsx("button",{className:ke("tw:inline-flex tw:rounded-md tw:focus-ring","tw:text-brand tw:highlight:text-brand-dark tw:highlight:underline",{"tw:px-1.5 tw:py-1 tw:text-sm":n==="sm","tw:px-3 tw:py-1.5":n==="md","tw:px-4 tw:py-2 tw:text-lg":n==="lg","tw:pointer-events-none tw:opacity-65":t},e),disabled:t,type:r,...i}),$U=U.createContext(null),mle=({className:e,to:t,...n})=>{const r=U.useContext($U);return y.jsx(L0,{role:"menuitem",to:t,className:({isActive:i})=>ke("tw:px-4 tw:pt-2 tw:pb-[calc(0.5rem-3px)] tw:border-b-3","tw:font-bold tw:no-underline tw:text-center tw:highlight:text-brand tw:transition-colors","tw:rounded-none tw:outline-none tw:focus-visible:inset-ring-2 tw:focus-visible:inset-ring-brand/50",{"tw:border-b-brand active":i,"tw:border-b-transparent tw:text-gray-500":!i,"tw:flex-grow":r==null?void 0:r.fill},e),...n})},vle=({children:e,className:t,fill:n})=>y.jsx($U.Provider,{value:{fill:n},children:y.jsx(wi,{role:"menubar",className:ke("tw:flex tw:overflow-hidden",t),children:e})});Object.assign(vle,{Pill:mle});const gle=({open:e,children:t,className:n,onClose:r,...i})=>{const a=U.useRef(null);return U.useEffect(()=>{var o,l;const f=document.body,c=f.style.overflow,h=f.style.paddingRight;if(e){const m=window.outerWidth-f.clientWidth,g=f.scrollHeight>f.clientHeight;f.style.overflow="hidden",g&&(f.style.paddingRight=`${m}px`),(o=a.current)==null||o.showModal()}else(l=a.current)==null||l.close();return()=>{f.style.overflow=c,f.style.paddingRight=h}},[e]),q0.createPortal(y.jsx("dialog",{ref:a,className:ke("tw:bg-transparent tw:backdrop:bg-black/50",n),onCancel:o=>{o.preventDefault(),r()},...i,children:e&&t}),document.body)},BU=({open:e,onClose:t,variant:n="default",title:r,children:i,className:a,...o})=>{const{size:l="md",confirmText:f="Confirm",cancelText:c="Cancel",confirmDisabled:h,onConfirm:m,onClosed:g,...x}="onConfirm"in o?o:{...o},[_,w]=U.useState(e),S=U.useRef(null),O=U.useRef("cancel"),C=U.useCallback(()=>{O.current="confirm",m==null||m()},[m]);return U.useEffect(()=>{if(e){O.current="cancel",w(!0);return}const T=S.current;if(T){delete S.current.dataset.open;let j=!1;const P=R=>{j||R.target!==T||(j=!0,w(!1),g==null||g(O.current))};return T.addEventListener("transitionend",P),()=>{T.removeEventListener("transitionend",P)}}},[g,e]),U.useEffect(()=>{const T=S.current;_&&T&&(T.dataset.open="")},[_]),y.jsx(gle,{open:_,onClose:t,className:ke({"tw:flex tw:w-screen tw:h-screen tw:max-w-screen tw:max-h-screen":_,"tw:overflow-hidden":n==="cover"},a),...x,children:y.jsx("div",{"data-testid":"transition-container",ref:S,className:ke("tw:w-full tw:m-auto tw:p-4 tw:sm:p-6","tw:-translate-y-4 tw:data-open:translate-y-0 tw:opacity-0 tw:data-open:opacity-100","tw:transition-[opacity_,_translate] tw:duration-300",n!=="cover"&&{"tw:sm:w-sm":l==="sm","tw:md:w-lg":l==="md","tw:md:w-4xl":l==="lg","tw:md:w-6xl":l==="xl"},{"tw:h-full":n==="cover"}),children:y.jsx(wi,{className:ke("tw:w-full",{"tw:h-full tw:relative tw:overflow-auto":n==="cover"}),children:n==="cover"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:ke("tw:px-4 tw:py-3 tw:absolute tw:top-0 tw:left-0 tw:right-0","tw:flex tw:items-center tw:justify-between","tw:text-white tw:bg-linear-to-b tw:from-black/70 tw:to-black/10","tw:[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"),children:[y.jsx("h5",{children:r}),y.jsx(_T,{onClick:t,label:"Close dialog"})]}),y.jsx("div",{children:i})]}):y.jsxs(y.Fragment,{children:[y.jsxs(wi.Header,{className:ke("tw:sticky tw:top-0","tw:flex tw:items-center tw:justify-between tw:gap-x-2"),children:[y.jsx("h5",{className:ke({"tw:text-danger":n==="danger"}),children:r}),y.jsx(_T,{onClick:t,label:"Close dialog"})]}),y.jsx(wi.Body,{children:i}),m&&y.jsxs(wi.Footer,{"data-testid":"footer",className:ke("tw:flex tw:justify-end tw:items-center tw:gap-x-2","tw:[&]:px-3 tw:sticky tw:bottom-0"),children:[y.jsx(ple,{onClick:t,children:c}),y.jsx(ea,{solid:!0,variant:n==="danger"?"danger":"primary",disabled:h,onClick:C,children:f})]})]})})})})},UU=({className:e,children:t,loading:n=!1,variant:r="default"})=>y.jsx(K0,{className:ke({"tw:[&]:border-danger":r==="error"},e),children:y.jsxs("h3",{className:ke("tw:text-center",{"tw:text-gray-500 tw:dark:text-gray-400":r==="default","tw:text-danger":r==="error"}),children:[n&&y.jsxs(y.Fragment,{children:[y.jsx(Xe,{icon:k0,spin:!0}),y.jsx("span",{className:"tw:ml-2",children:t??"Loading..."})]}),!n&&t]})}),zU=({variant:e,className:t,size:n="md",children:r})=>y.jsx("div",{className:ke("tw:rounded-md tw:text-center",{"tw:p-2":n==="sm","tw:p-4":n==="md","tw:p-6":n==="lg","tw:[&]:text-white":e!=="warning","tw:bg-brand":e==="success","tw:bg-danger":e==="error","tw:bg-warning tw:text-black":e==="warning"},t),children:r}),yle=({isOpen:e,onClose:t,forceUpdate:n})=>{const[r,,i]=Jt(),a=U.useCallback(()=>{i(),n()},[n,i]);return e?y.jsxs(wi,{role:"alert",className:ke("tw:w-[700px] tw:max-w-[calc(100%-30px)]","tw:fixed tw:top-[35px] tw:left-[50%] tw:translate-x-[-50%] tw:z-[1040]"),children:[y.jsxs(wi.Header,{className:"tw:flex tw:items-center tw:justify-between",children:[y.jsx("h5",{children:"This app has just been updated!"}),y.jsx(_T,{onClick:t})]}),y.jsxs(wi.Body,{className:"tw:flex tw:gap-4 tw:items-center tw:justify-between tw:max-md:flex-col",children:["Restart it to enjoy the new features.",y.jsxs(ea,{disabled:r,variant:"secondary",solid:!0,onClick:a,children:[!r&&y.jsxs(y.Fragment,{children:["Restart now ",y.jsx(Xe,{icon:VQ})]}),r&&y.jsx(y.Fragment,{children:"Restarting..."})]})]})]}):null},FU=({children:e,title:t})=>y.jsx("div",{className:"tw:pt-4",children:y.jsxs(K0,{className:"tw:p-4 tw:w-full tw:lg:w-[65%] tw:m-auto",children:[y.jsx("h2",{children:t}),e]})}),qU=({to:e="/",children:t="Home"})=>y.jsxs(FU,{title:"Oops! We could not find requested route.",children:[y.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),y.jsx("br",{}),y.jsx(ea,{inline:!0,to:e,size:"lg",children:t})]});function Pa(e){return U.useMemo(()=>e,[e])}function Ra(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const ble=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"})})},VU=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var S;const{MainHeader:a,Home:o,ShlinkWebComponentContainer:l,CreateServer:f,EditServer:c,Settings:h,ManageServers:m,ShlinkVersionsContainer:g}=Pa(VU),x=Pr(),_=U.useRef(t),w=x.pathname==="/";return U.useEffect(()=>{Object.keys(_.current).length===0&&e()},[e]),U.useEffect(()=>{var O;Jse(((O=n.ui)==null?void 0:O.theme)??oP())},[(S=n.ui)==null?void 0:S.theme]),y.jsxs("div",{className:"tw:px-3 tw:h-full",children:[y.jsx(a,{}),y.jsxs("div",{className:"tw:h-full tw:pt-(--header-height)",children:[y.jsx("div",{"data-testid":"shlink-wrapper",className:ke("tw:min-h-full tw:pb-[calc(var(--footer-height)+var(--footer-margin))] tw:-mb-[calc(var(--footer-height)+var(--footer-margin))]",{"tw:flex tw:items-center tw:pt-4":w}),children:y.jsxs(M0,{children:[y.jsx(St,{index:!0,element:y.jsx(o,{})}),y.jsx(St,{path:"/settings",children:["","*"].map(O=>y.jsx(St,{path:O,element:y.jsx(h,{})},O))}),y.jsx(St,{path:"/manage-servers",element:y.jsx(m,{})}),y.jsx(St,{path:"/server/create",element:y.jsx(f,{})}),y.jsx(St,{path:"/server/:serverId/edit",element:y.jsx(c,{})}),y.jsx(St,{path:"/server/:serverId",children:["","*"].map(O=>y.jsx(St,{path:O,element:y.jsx(l,{})},O))}),y.jsx(St,{path:"*",element:y.jsx(qU,{})})]})}),y.jsx("div",{className:"tw:h-(--footer-height) tw:mt-(--footer-margin) tw:md:px-4",children:y.jsx(g,{})})]}),y.jsx(yle,{isOpen:r,onClose:i,forceUpdate:ble})]})},_le=Ra(VU,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function gr(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 xle=typeof Symbol=="function"&&Symbol.observable||"@@observable",U6=xle,mw=()=>Math.random().toString(36).substring(7).split("").join("."),wle={INIT:`@@redux/INIT${mw()}`,REPLACE:`@@redux/REPLACE${mw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${mw()}`},db=wle;function uP(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 HU(e,t,n){if(typeof e!="function")throw new Error(gr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(gr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(gr(1));return n(HU)(e,t)}let r=e,i=t,a=new Map,o=a,l=0,f=!1;function c(){o===a&&(o=new Map,a.forEach((S,O)=>{o.set(O,S)}))}function h(){if(f)throw new Error(gr(3));return i}function m(S){if(typeof S!="function")throw new Error(gr(4));if(f)throw new Error(gr(5));let O=!0;c();const C=l++;return o.set(C,S),function(){if(O){if(f)throw new Error(gr(6));O=!1,c(),o.delete(C),a=null}}}function g(S){if(!uP(S))throw new Error(gr(7));if(typeof S.type>"u")throw new Error(gr(8));if(typeof S.type!="string")throw new Error(gr(17));if(f)throw new Error(gr(9));try{f=!0,i=r(i,S)}finally{f=!1}return(a=o).forEach(C=>{C()}),S}function x(S){if(typeof S!="function")throw new Error(gr(10));r=S,g({type:db.REPLACE})}function _(){const S=m;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(gr(11));function C(){const j=O;j.next&&j.next(h())}return C(),{unsubscribe:S(C)}},[U6](){return this}}}return g({type:db.INIT}),{dispatch:g,subscribe:m,getState:h,replaceReducer:x,[U6]:_}}function Sle(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:db.INIT})>"u")throw new Error(gr(12));if(typeof n(void 0,{type:db.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gr(13))})}function cP(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(n[o]=e[o])}const r=Object.keys(n);let i;try{Sle(n)}catch(a){i=a}return function(o={},l){if(i)throw i;let f=!1;const c={};for(let h=0;h<r.length;h++){const m=r[h],g=n[m],x=o[m],_=g(x,l);if(typeof _>"u")throw l&&l.type,new Error(gr(14));c[m]=_,f=f||_!==x}return f=f||r.length!==Object.keys(o).length,f?c:o}}function hb(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ole(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(gr(15))};const o={getState:i.getState,dispatch:(f,...c)=>a(f,...c)},l=e.map(f=>f(o));return a=hb(...l)(i.dispatch),{...i,dispatch:a}}}function Ele(e){return uP(e)&&"type"in e&&typeof e.type=="string"}var WU=Symbol.for("immer-nothing"),z6=Symbol.for("immer-draftable"),Ai=Symbol.for("immer-state");function ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qf=Object.getPrototypeOf;function oc(e){return!!e&&!!e[Ai]}function ls(e){var t;return e?GU(e)||Array.isArray(e)||!!e[z6]||!!((t=e.constructor)!=null&&t[z6])||X0(e)||Q0(e):!1}var Cle=Object.prototype.constructor.toString();function GU(e){if(!e||typeof e!="object")return!1;const t=Qf(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)===Cle}function om(e,t){Z0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Z0(e){const t=e[Ai];return t?t.type_:Array.isArray(e)?1:X0(e)?2:Q0(e)?3:0}function xT(e,t){return Z0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function YU(e,t,n){const r=Z0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tle(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function X0(e){return e instanceof Map}function Q0(e){return e instanceof Set}function Nu(e){return e.copy_||e.base_}function wT(e,t){if(X0(e))return new Map(e);if(Q0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&GU(e))return Qf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ai];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const a=r[i],o=n[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Qf(e),n)}function fP(e,t=!1){return J0(e)||oc(e)||!ls(e)||(Z0(e)>1&&(e.set=e.add=e.clear=e.delete=Ale),Object.freeze(e),t&&om(e,(n,r)=>fP(r,!0))),e}function Ale(){ba(2)}function J0(e){return Object.isFrozen(e)}var jle={};function sc(e){const t=jle[e];return t||ba(0,e),t}var sm;function KU(){return sm}function Ple(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function F6(e,t){t&&(sc("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ST(e){OT(e),e.drafts_.forEach(Rle),e.drafts_=null}function OT(e){e===sm&&(sm=e.parent_)}function q6(e){return sm=Ple(sm,e)}function Rle(e){const t=e[Ai];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function V6(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ai].modified_&&(ST(t),ba(4)),ls(e)&&(e=pb(t,e),t.parent_||mb(t,e)),t.patches_&&sc("Patches").generateReplacementPatches_(n[Ai].base_,e,t.patches_,t.inversePatches_)):e=pb(t,n,[]),ST(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==WU?e:void 0}function pb(e,t,n){if(J0(t))return t;const r=t[Ai];if(!r)return om(t,(i,a)=>H6(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return mb(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),om(a,(l,f)=>H6(e,r,i,l,f,n,o)),mb(e,i,!1),n&&e.patches_&&sc("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function H6(e,t,n,r,i,a,o){if(oc(i)){const l=a&&t&&t.type_!==3&&!xT(t.assigned_,r)?a.concat(r):void 0,f=pb(e,i,l);if(YU(n,r,f),oc(f))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(ls(i)&&!J0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;pb(e,i),(!t||!t.scope_.parent_)&&mb(e,i)}}function mb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fP(t,n)}function Mle(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:KU(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=dP;n&&(i=[r],a=lm);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return r.draft_=l,r.revoke_=o,l}var dP={get(e,t){if(t===Ai)return e;const n=Nu(e);if(!xT(n,t))return Nle(e,n,t);const r=n[t];return e.finalized_||!ls(r)?r:r===vw(e.base_,t)?(gw(e),e.copy_[t]=CT(r,e)):r},has(e,t){return t in Nu(e)},ownKeys(e){return Reflect.ownKeys(Nu(e))},set(e,t,n){const r=ZU(Nu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=vw(Nu(e),t),a=i==null?void 0:i[Ai];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Tle(n,i)&&(n!==void 0||xT(e.base_,t)))return!0;gw(e),ET(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 vw(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,gw(e),ET(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Nu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ba(11)},getPrototypeOf(e){return Qf(e.base_)},setPrototypeOf(){ba(12)}},lm={};om(dP,(e,t)=>{lm[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});lm.deleteProperty=function(e,t){return lm.set.call(this,e,t,void 0)};lm.set=function(e,t,n){return dP.set.call(this,e[0],t,n,e[0])};function vw(e,t){const n=e[Ai];return(n?Nu(n):e)[t]}function Nle(e,t,n){var i;const r=ZU(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function ZU(e,t){if(!(t in e))return;let n=Qf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Qf(n)}}function ET(e){e.modified_||(e.modified_=!0,e.parent_&&ET(e.parent_))}function gw(e){e.copy_||(e.copy_=wT(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Lle=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(f=a,...c){return o.produce(f,h=>n.call(this,h,...c))}}typeof n!="function"&&ba(6),r!==void 0&&typeof r!="function"&&ba(7);let i;if(ls(t)){const a=q6(this),o=CT(t,void 0);let l=!0;try{i=n(o),l=!1}finally{l?ST(a):OT(a)}return F6(a,r),V6(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===WU&&(i=void 0),this.autoFreeze_&&fP(i,!0),r){const a=[],o=[];sc("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else ba(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...l)=>this.produceWithPatches(o,f=>t(f,...l));let r,i;return[this.produce(t,n,(o,l)=>{r=o,i=l}),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){ls(e)||ba(8),oc(e)&&(e=Dle(e));const t=q6(this),n=CT(e,void 0);return n[Ai].isManual_=!0,OT(t),n}finishDraft(e,t){const n=e&&e[Ai];(!n||!n.isManual_)&&ba(9);const{scope_:r}=n;return F6(r,t),V6(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=sc("Patches").applyPatches_;return oc(e)?r(e,t):this.produce(e,i=>r(i,t))}};function CT(e,t){const n=X0(e)?sc("MapSet").proxyMap_(e,t):Q0(e)?sc("MapSet").proxySet_(e,t):Mle(e,t);return(t?t.scope_:KU()).drafts_.push(n),n}function Dle(e){return oc(e)||ba(10,e),XU(e)}function XU(e){if(!ls(e)||J0(e))return e;const t=e[Ai];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=wT(e,t.scope_.immer_.useStrictShallowCopy_)}else n=wT(e,!0);return om(n,(r,i)=>{YU(n,r,XU(i))}),t&&(t.finalized_=!1),n}var ji=new Lle,QU=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseStrictShallowCopy.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function JU(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var kle=JU(),Ile=JU,$le=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hb:hb.apply(null,arguments)},Ble=e=>e&&typeof e.match=="function";function Fr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Jo(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=>Ele(r)&&r.type===e,n}var ez=class Sp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Sp.prototype)}static get[Symbol.species](){return Sp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Sp(...t[0].concat(this)):new Sp(...t.concat(this))}};function W6(e){return ls(e)?QU(e,()=>{}):e}function G6(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Ule(e){return typeof e=="boolean"}var zle=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new ez;return n&&(Ule(n)?o.push(kle):o.push(Ile(n.extraArgument))),o},Fle="RTK_autoBatch",Y6=e=>t=>{setTimeout(t,e)},qle=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,o=!1;const l=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Y6(10):e.type==="callback"?e.queueNotification:Y6(e.timeout),c=()=>{o=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const m=()=>i&&h(),g=r.subscribe(m);return l.add(h),()=>{g(),l.delete(h)}},dispatch(h){var m;try{return i=!((m=h==null?void 0:h.meta)!=null&&m[Fle]),a=!i,a&&(o||(o=!0,f(c))),r.dispatch(h)}finally{i=!0}}})},Vle=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ez(e);return r&&i.push(qle(typeof r=="object"?r:void 0)),i};function tz(e){const t=zle(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(uP(n))l=cP(n);else throw new Error(Jo(1));let f;typeof r=="function"?f=r(t):f=t();let c=hb;i&&(c=$le({trace:!1,...typeof i=="object"&&i}));const h=Ole(...f),m=Vle(h);let g=typeof o=="function"?o(m):m();const x=c(...g);return HU(l,a,x)}function nz(e){const t={},n=[];let r;const i={addCase(a,o){const l=typeof a=="string"?a:a.type;if(!l)throw new Error(Jo(28));if(l in t)throw new Error(Jo(29));return t[l]=o,i},addMatcher(a,o){return n.push({matcher:a,reducer:o}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function Hle(e){return typeof e=="function"}function Wle(e,t){let[n,r,i]=nz(t),a;if(Hle(e))a=()=>W6(e());else{const l=W6(e);a=()=>l}function o(l=a(),f){let c=[n[f.type],...r.filter(({matcher:h})=>h(f)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,m)=>{if(m)if(oc(h)){const x=m(h,f);return x===void 0?h:x}else{if(ls(h))return QU(h,g=>m(g,f));{const g=m(h,f);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},l)}return o.getInitialState=a,o}var Gle=(e,t)=>Ble(e)?e.match(t):e(t);function Yle(...e){return t=>e.some(n=>Gle(n,t))}var Kle="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zle=(e=21)=>{let t="",n=e;for(;n--;)t+=Kle[Math.random()*64|0];return t},Xle=["name","message","stack","code"],yw=class{constructor(e,t){df(this,"_type");this.payload=e,this.meta=t}},K6=class{constructor(e,t){df(this,"_type");this.payload=e,this.meta=t}},Qle=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Xle)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Z6="External signal was aborted",rz=(()=>{function e(t,n,r){const i=Fr(t+"/fulfilled",(f,c,h,m)=>({payload:f,meta:{...m||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=Fr(t+"/pending",(f,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:f,requestStatus:"pending"}})),o=Fr(t+"/rejected",(f,c,h,m,g)=>({payload:m,error:(r&&r.serializeError||Qle)(f||"Rejected"),meta:{...g||{},arg:h,requestId:c,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(f==null?void 0:f.name)==="AbortError",condition:(f==null?void 0:f.name)==="ConditionError"}}));function l(f,{signal:c}={}){return(h,m,g)=>{const x=r!=null&&r.idGenerator?r.idGenerator(f):Zle(),_=new AbortController;let w,S;function O(T){S=T,_.abort()}c&&(c.aborted?O(Z6):c.addEventListener("abort",()=>O(Z6),{once:!0}));const C=async function(){var P,R;let T;try{let I=(P=r==null?void 0:r.condition)==null?void 0:P.call(r,f,{getState:m,extra:g});if(eue(I)&&(I=await I),I===!1||_.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const V=new Promise((G,W)=>{w=()=>{W({name:"AbortError",message:S||"Aborted"})},_.signal.addEventListener("abort",w)});h(a(x,f,(R=r==null?void 0:r.getPendingMeta)==null?void 0:R.call(r,{requestId:x,arg:f},{getState:m,extra:g}))),T=await Promise.race([V,Promise.resolve(n(f,{dispatch:h,getState:m,extra:g,requestId:x,signal:_.signal,abort:O,rejectWithValue:(G,W)=>new yw(G,W),fulfillWithValue:(G,W)=>new K6(G,W)})).then(G=>{if(G instanceof yw)throw G;return G instanceof K6?i(G.payload,x,f,G.meta):i(G,x,f)})])}catch(I){T=I instanceof yw?o(null,x,f,I.payload,I.meta):o(I,x,f)}finally{w&&_.signal.removeEventListener("abort",w)}return r&&!r.dispatchConditionRejection&&o.match(T)&&T.meta.condition||h(T),T}();return Object.assign(C,{abort:O,requestId:x,arg:f,unwrap(){return C.then(Jle)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:Yle(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Jle(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function eue(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tue=Symbol.for("rtk-slice-createasyncthunk");function nue(e,t){return`${e}/${t}`}function rue({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[tue];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(Jo(11));const l=(typeof i.reducers=="function"?i.reducers(aue()):i.reducers)||{},f=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(T,j){const P=typeof T=="string"?T:T.type;if(!P)throw new Error(Jo(12));if(P in c.sliceCaseReducersByType)throw new Error(Jo(13));return c.sliceCaseReducersByType[P]=j,h},addMatcher(T,j){return c.sliceMatchers.push({matcher:T,reducer:j}),h},exposeAction(T,j){return c.actionCreators[T]=j,h},exposeCaseReducer(T,j){return c.sliceCaseReducersByName[T]=j,h}};f.forEach(T=>{const j=l[T],P={reducerName:T,type:nue(a,T),createNotation:typeof i.reducers=="function"};sue(j)?uue(P,j,h,t):oue(P,j,h)});function m(){const[T={},j=[],P=void 0]=typeof i.extraReducers=="function"?nz(i.extraReducers):[i.extraReducers],R={...T,...c.sliceCaseReducersByType};return Wle(i.initialState,I=>{for(let V in R)I.addCase(V,R[V]);for(let V of c.sliceMatchers)I.addMatcher(V.matcher,V.reducer);for(let V of j)I.addMatcher(V.matcher,V.reducer);P&&I.addDefaultCase(P)})}const g=T=>T,x=new Map;let _;function w(T,j){return _||(_=m()),_(T,j)}function S(){return _||(_=m()),_.getInitialState()}function O(T,j=!1){function P(I){let V=I[T];return typeof V>"u"&&j&&(V=S()),V}function R(I=g){const V=G6(x,j,()=>new WeakMap);return G6(V,I,()=>{const G={};for(const[W,K]of Object.entries(i.selectors??{}))G[W]=iue(K,I,S,j);return G})}return{reducerPath:T,getSelectors:R,get selectors(){return R(P)},selectSlice:P}}const C={name:a,reducer:w,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...O(o),injectInto(T,{reducerPath:j,...P}={}){const R=j??o;return T.inject({reducerPath:R,reducer:w},P),{...C,...O(R,!0)}}};return C}}function iue(e,t,n,r){function i(a,...o){let l=t(a);return typeof l>"u"&&r&&(l=n()),e(l,...o)}return i.unwrapped=e,i}var $n=rue();function aue(){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 oue({type:e,reducerName:t,createNotation:n},r,i){let a,o;if("reducer"in r){if(n&&!lue(r))throw new Error(Jo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Fr(e,o):Fr(e))}function sue(e){return e._reducerDefinitionType==="asyncThunk"}function lue(e){return e._reducerDefinitionType==="reducerWithPrepare"}function uue({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Jo(18));const{payloadCreator:a,fulfilled:o,pending:l,rejected:f,settled:c,options:h}=n,m=i(e,a,h);r.exposeAction(t,m),o&&r.addCase(m.fulfilled,o),l&&r.addCase(m.pending,l),f&&r.addCase(m.rejected,f),c&&r.addMatcher(m.settled,c),r.exposeCaseReducer(t,{fulfilled:o||Qg,pending:l||Qg,rejected:f||Qg,settled:c||Qg})}function Qg(){}function Jo(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:cue,reducer:fue}=$n({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:due,resetAppUpdate:hue}=cue,pue=fue,mue=(e,t)=>{e.factory("App",_le),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>due),e.serviceFactory("resetAppUpdate",()=>hue)};var iz=e=>{throw TypeError(e)},az=(e,t,n)=>t.has(e)||iz("Cannot "+n),X6=(e,t,n)=>(az(e,t,"read from private field"),n?n.call(e):t.get(e)),vue=(e,t,n)=>t.has(e)?iz("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),gue=(e,t,n,r)=>(az(e,t,"write to private field"),t.set(e,n),n);const Q6={"Content-Type":"application/json"},J6=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...Q6}}:{headers:Q6}:e;var Op;let yue=class{constructor(t=globalThis.fetch.bind(globalThis)){vue(this,Op),gue(this,Op,t)}async jsonRequest(t,n){const r=await X6(this,Op).call(this,t,J6(n)),i=await r.json();if(!r.ok)throw i;return i}async emptyRequest(t,n){const r=await X6(this,Op).call(this,t,J6(n));if(!r.ok)throw await r.json()}};Op=new WeakMap;const hP={INVALID_ARGUMENT:"https://shlink.io/api/error/invalid-data",INVALID_SHORT_URL_DELETION:"https://shlink.io/api/error/invalid-short-url-deletion",DOMAIN_NOT_FOUND:"https://shlink.io/api/error/domain-not-found",FORBIDDEN_OPERATION:"https://shlink.io/api/error/forbidden-tag-operation",INVALID_SLUG:"https://shlink.io/api/error/non-unique-slug",INVALID_SHORTCODE:"https://shlink.io/api/error/short-url-not-found",TAG_CONFLICT:"https://shlink.io/api/error/tag-conflict",TAG_NOT_FOUND:"https://shlink.io/api/error/tag-not-found",MERCURE_NOT_CONFIGURED:"https://shlink.io/api/error/mercure-not-configured",INVALID_AUTHORIZATION:"https://shlink.io/api/error/missing-authentication",INVALID_API_KEY:"https://shlink.io/api/error/invalid-api-key",NOT_FOUND:"https://shlink.io/api/error/not-found",INVALID_URL:"https://shlink.io/api/error/invalid-url"};Object.freeze(hP);const bue=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,eL=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(bue);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},tL=e=>e==="*"||e==="x"||e==="X",nL=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},_ue=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],xue=(e,t)=>{if(tL(e)||tL(t))return 0;const[n,r]=_ue(nL(e),nL(t));return n>r?1:n<r?-1:0},rL=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=xue(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},wue=(e,t)=>{const n=eL(e),r=eL(t),i=n.pop(),a=r.pop(),o=rL(n,r);return o!==0?o:i&&a?rL(i.split("."),a.split(".")):i||a?i?-1:1:0},TT=(e,t,n)=>{Sue(n);const r=wue(e,t);return oz[n].includes(r)},oz={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},iL=Object.keys(oz),Sue=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(iL.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${iL.join("|")}`)},sz=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),lz=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),bw=e=>Object.prototype.toString.call(e)==="[object Object]",uz=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const a=t(...r);return n[i]=a,a}},e_=(e,t)=>{const n={...e};return!bw(e)||!bw(t)||Object.keys(t).forEach(r=>{bw(t[r])?n[r]=r in e&&e[r]!==void 0?e_(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},pP=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Oue=(e,t)=>[...e].sort((n,r)=>{const i=t(n),a=t(r);return i===a?0:i<a?-1:1}),Bf=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},aL=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),Ei=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Eue="Left",Cue="Right",Tue="Up",Aue="Down",Mf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},AT={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},oL="mousemove",sL="mouseup",jue="touchend",Pue="touchmove",Rue="touchstart";function Mue(e,t,n,r){return e>t?n>0?Cue:Eue:r>0?Aue:Tue}function lL(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 Nue(e,t){const n=h=>{const m="touches"in h;m&&h.touches.length>1||e((g,x)=>{x.trackMouse&&!m&&(document.addEventListener(oL,r),document.addEventListener(sL,o));const{clientX:_,clientY:w}=m?h.touches[0]:h,S=lL([_,w],x.rotationAngle);return x.onTouchStartOrOnMouseDown&&x.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},g),AT),{initial:S.slice(),xy:S,start:h.timeStamp||0})})},r=h=>{e((m,g)=>{const x="touches"in h;if(x&&h.touches.length>1)return m;if(h.timeStamp-m.start>g.swipeDuration)return m.swiping?Object.assign(Object.assign({},m),{swiping:!1}):m;const{clientX:_,clientY:w}=x?h.touches[0]:h,[S,O]=lL([_,w],g.rotationAngle),C=S-m.xy[0],T=O-m.xy[1],j=Math.abs(C),P=Math.abs(T),R=(h.timeStamp||0)-m.start,I=Math.sqrt(j*j+P*P)/(R||1),V=[C/(R||1),T/(R||1)],G=Mue(j,P,C,T),W=typeof g.delta=="number"?g.delta:g.delta[G.toLowerCase()]||Mf.delta;if(j<W&&P<W&&!m.swiping)return m;const K={absX:j,absY:P,deltaX:C,deltaY:T,dir:G,event:h,first:m.first,initial:m.initial,velocity:I,vxvy:V};K.first&&g.onSwipeStart&&g.onSwipeStart(K),g.onSwiping&&g.onSwiping(K);let ne=!1;return(g.onSwiping||g.onSwiped||g[`onSwiped${G}`])&&(ne=!0),ne&&g.preventScrollOnSwipe&&g.trackTouch&&h.cancelable&&h.preventDefault(),Object.assign(Object.assign({},m),{first:!1,eventData:K,swiping:!0})})},i=h=>{e((m,g)=>{let x;if(m.swiping&&m.eventData){if(h.timeStamp-m.start<g.swipeDuration){x=Object.assign(Object.assign({},m.eventData),{event:h}),g.onSwiped&&g.onSwiped(x);const _=g[`onSwiped${x.dir}`];_&&_(x)}}else g.onTap&&g.onTap({event:h});return g.onTouchEndOrOnMouseUp&&g.onTouchEndOrOnMouseUp({event:h}),Object.assign(Object.assign(Object.assign({},m),AT),{eventData:x})})},a=()=>{document.removeEventListener(oL,r),document.removeEventListener(sL,o)},o=h=>{a(),i(h)},l=(h,m)=>{let g=()=>{};if(h&&h.addEventListener){const x=Object.assign(Object.assign({},Mf.touchEventOptions),m.touchEventOptions),_=[[Rue,n,x],[Pue,r,Object.assign(Object.assign({},x),m.preventScrollOnSwipe?{passive:!1}:{})],[jue,i,x]];_.forEach(([w,S,O])=>h.addEventListener(w,S,O)),g=()=>_.forEach(([w,S])=>h.removeEventListener(w,S))}return g},c={ref:h=>{h!==null&&e((m,g)=>{if(m.el===h)return m;const x={};return m.el&&m.el!==h&&m.cleanUpTouch&&(m.cleanUpTouch(),x.cleanUpTouch=void 0),g.trackTouch&&h&&(x.cleanUpTouch=l(h,g)),Object.assign(Object.assign(Object.assign({},m),{el:h}),x)})}};return t.trackMouse&&(c.onMouseDown=n),[c,l]}function Lue(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 Due(e){const{trackMouse:t}=e,n=U.useRef(Object.assign({},AT)),r=U.useRef(Object.assign({},Mf)),i=U.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Mf),e);let a;for(a in Mf)r.current[a]===void 0&&(r.current[a]=Mf[a]);const[o,l]=U.useMemo(()=>Nue(f=>n.current=f(n.current,r.current),{trackMouse:t}),[t]);return n.current=Lue(n.current,r.current,i.current,l),o}var Ep={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/var kue=Ep.exports,uL;function Iue(){return uL||(uL=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,o=n.XDomainRequest,l=n.ActiveXObject,f=n.EventSource,c=n.document,h=n.Promise,m=n.fetch,g=n.Response,x=n.TextDecoder,_=n.TextEncoder,w=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(me){c.readyState="complete"},!1)),a==null&&l!=null&&(a=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(me){function we(){}return we.prototype=me,new we}),Date.now||(Date.now=function(){return new Date().getTime()}),w==null){var S=m;m=function(me,we){var Te=we.signal;return S(me,{headers:we.headers,credentials:we.credentials,cache:we.cache}).then(function(Le){var ze=Le.body.getReader();return Te._reader=ze,Te._aborted&&Te._reader.cancel(),{status:Le.status,statusText:Le.statusText,headers:Le.headers,body:{getReader:function(){return ze}}}})},w=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function O(){this.bitsNeeded=0,this.codePoint=0}O.prototype.decode=function(me){function we(De,Me,je){if(je===1)return De>=128>>Me&&De<<Me<=2047;if(je===2)return De>=2048>>Me&&De<<Me<=55295||De>=57344>>Me&&De<<Me<=65535;if(je===3)return De>=65536>>Me&&De<<Me<=1114111;throw new Error}function Te(De,Me){if(De===6*1)return Me>>6>15?3:Me>31?2:1;if(De===6*2)return Me>15?3:2;if(De===6*3)return 3;throw new Error}for(var Le=65533,ze="",$e=this.bitsNeeded,Fe=this.codePoint,_e=0;_e<me.length;_e+=1){var Se=me[_e];$e!==0&&(Se<128||Se>191||!we(Fe<<6|Se&63,$e-6,Te($e,Fe)))&&($e=0,Fe=Le,ze+=String.fromCharCode(Fe)),$e===0?(Se>=0&&Se<=127?($e=0,Fe=Se):Se>=192&&Se<=223?($e=6*1,Fe=Se&31):Se>=224&&Se<=239?($e=6*2,Fe=Se&15):Se>=240&&Se<=247?($e=6*3,Fe=Se&7):($e=0,Fe=Le),$e!==0&&!we(Fe,$e,Te($e,Fe))&&($e=0,Fe=Le)):($e-=6,Fe=Fe<<6|Se&63),$e===0&&(Fe<=65535?ze+=String.fromCharCode(Fe):(ze+=String.fromCharCode(55296+(Fe-65535-1>>10)),ze+=String.fromCharCode(56320+(Fe-65535-1&1023))))}return this.bitsNeeded=$e,this.codePoint=Fe,ze};var C=function(){try{return new x().decode(new _().encode("test"),{stream:!0})==="test"}catch(me){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+me)}return!1};(x==null||_==null||!C())&&(x=O);var T=function(){};function j(me){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=T,this.onload=T,this.onerror=T,this.onreadystatechange=T,this._contentType="",this._xhr=me,this._sendTimeout=0,this._abort=T}j.prototype.open=function(me,we){this._abort(!0);var Te=this,Le=this._xhr,ze=1,$e=0;this._abort=function(je){Te._sendTimeout!==0&&(i(Te._sendTimeout),Te._sendTimeout=0),(ze===1||ze===2||ze===3)&&(ze=4,Le.onload=T,Le.onerror=T,Le.onabort=T,Le.onprogress=T,Le.onreadystatechange=T,Le.abort(),$e!==0&&(i($e),$e=0),je||(Te.readyState=4,Te.onabort(null),Te.onreadystatechange())),ze=0};var Fe=function(){if(ze===1){var je=0,qe="",Ge=void 0;if("contentType"in Le)je=200,qe="OK",Ge=Le.contentType;else try{je=Le.status,qe=Le.statusText,Ge=Le.getResponseHeader("Content-Type")}catch{je=0,qe="",Ge=void 0}je!==0&&(ze=2,Te.readyState=2,Te.status=je,Te.statusText=qe,Te._contentType=Ge,Te.onreadystatechange())}},_e=function(){if(Fe(),ze===2||ze===3){ze=3;var je="";try{je=Le.responseText}catch{}Te.readyState=3,Te.responseText=je,Te.onprogress()}},Se=function(je,qe){if((qe==null||qe.preventDefault==null)&&(qe={preventDefault:T}),_e(),ze===1||ze===2||ze===3){if(ze=4,$e!==0&&(i($e),$e=0),Te.readyState=4,je==="load")Te.onload(qe);else if(je==="error")Te.onerror(qe);else if(je==="abort")Te.onabort(qe);else throw new TypeError;Te.onreadystatechange()}},De=function(je){Le!=null&&(Le.readyState===4?(!("onload"in Le)||!("onerror"in Le)||!("onabort"in Le))&&Se(Le.responseText===""?"error":"load",je):Le.readyState===3?"onprogress"in Le||_e():Le.readyState===2&&Fe())},Me=function(){$e=r(function(){Me()},500),Le.readyState===3&&_e()};"onload"in Le&&(Le.onload=function(je){Se("load",je)}),"onerror"in Le&&(Le.onerror=function(je){Se("error",je)}),"onabort"in Le&&(Le.onabort=function(je){Se("abort",je)}),"onprogress"in Le&&(Le.onprogress=_e),"onreadystatechange"in Le&&(Le.onreadystatechange=function(je){De(je)}),("contentType"in Le||!("ontimeout"in a.prototype))&&(we+=(we.indexOf("?")===-1?"?":"&")+"padding=true"),Le.open(me,we,!0),"readyState"in Le&&($e=r(function(){Me()},0))},j.prototype.abort=function(){this._abort(!1)},j.prototype.getResponseHeader=function(me){return this._contentType},j.prototype.setRequestHeader=function(me,we){var Te=this._xhr;"setRequestHeader"in Te&&Te.setRequestHeader(me,we)},j.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},j.prototype.send=function(){if((!("ontimeout"in a.prototype)||!("sendAsBinary"in a.prototype)&&!("mozAnon"in a.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var me=this;me._sendTimeout=r(function(){me._sendTimeout=0,me.send()},4);return}var we=this._xhr;"withCredentials"in we&&(we.withCredentials=this.withCredentials);try{we.send(void 0)}catch(Te){throw Te}};function P(me){return me.replace(/[A-Z]/g,function(we){return String.fromCharCode(we.charCodeAt(0)+32)})}function R(me){for(var we=Object.create(null),Te=me.split(`\r
|
||
`),Le=0;Le<Te.length;Le+=1){var ze=Te[Le],$e=ze.split(": "),Fe=$e.shift(),_e=$e.join(": ");we[P(Fe)]=_e}this._map=we}R.prototype.get=function(me){return this._map[P(me)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function I(){}I.prototype.open=function(me,we,Te,Le,ze,$e,Fe){me.open("GET",ze);var _e=0;me.onprogress=function(){var De=me.responseText,Me=De.slice(_e);_e+=Me.length,Te(Me)},me.onerror=function(De){De.preventDefault(),Le(new Error("NetworkError"))},me.onload=function(){Le(null)},me.onabort=function(){Le(null)},me.onreadystatechange=function(){if(me.readyState===a.HEADERS_RECEIVED){var De=me.status,Me=me.statusText,je=me.getResponseHeader("Content-Type"),qe=me.getAllResponseHeaders();we(De,Me,je,new R(qe))}},me.withCredentials=$e;for(var Se in Fe)Object.prototype.hasOwnProperty.call(Fe,Se)&&me.setRequestHeader(Se,Fe[Se]);return me.send(),me};function V(me){this._headers=me}V.prototype.get=function(me){return this._headers.get(me)};function G(){}G.prototype.open=function(me,we,Te,Le,ze,$e,Fe){var _e=null,Se=new w,De=Se.signal,Me=new x;return m(ze,{headers:Fe,credentials:$e?"include":"same-origin",signal:De,cache:"no-store"}).then(function(je){return _e=je.body.getReader(),we(je.status,je.statusText,je.headers.get("Content-Type"),new V(je.headers)),new h(function(qe,Ge){var Qe=function(){_e.read().then(function(ct){if(ct.done)qe(void 0);else{var ot=Me.decode(ct.value,{stream:!0});Te(ot),Qe()}}).catch(function(ct){Ge(ct)})};Qe()})}).catch(function(je){if(je.name!=="AbortError")return je}).then(function(je){Le(je)}),{abort:function(){_e!=null&&_e.cancel(),Se.abort()}}};function W(){this._listeners=Object.create(null)}function K(me){r(function(){throw me},0)}W.prototype.dispatchEvent=function(me){me.target=this;var we=this._listeners[me.type];if(we!=null)for(var Te=we.length,Le=0;Le<Te;Le+=1){var ze=we[Le];try{typeof ze.handleEvent=="function"?ze.handleEvent(me):ze.call(this,me)}catch($e){K($e)}}},W.prototype.addEventListener=function(me,we){me=String(me);var Te=this._listeners,Le=Te[me];Le==null&&(Le=[],Te[me]=Le);for(var ze=!1,$e=0;$e<Le.length;$e+=1)Le[$e]===we&&(ze=!0);ze||Le.push(we)},W.prototype.removeEventListener=function(me,we){me=String(me);var Te=this._listeners,Le=Te[me];if(Le!=null){for(var ze=[],$e=0;$e<Le.length;$e+=1)Le[$e]!==we&&ze.push(Le[$e]);ze.length===0?delete Te[me]:Te[me]=ze}};function ne(me){this.type=me,this.target=void 0}function le(me,we){ne.call(this,me),this.data=we.data,this.lastEventId=we.lastEventId}le.prototype=Object.create(ne.prototype);function Q(me,we){ne.call(this,me),this.status=we.status,this.statusText=we.statusText,this.headers=we.headers}Q.prototype=Object.create(ne.prototype);function J(me,we){ne.call(this,me),this.error=we.error}J.prototype=Object.create(ne.prototype);var H=-1,B=0,z=1,F=2,M=-1,k=0,te=1,Z=2,oe=3,he=/^text\/event\-stream(;.*)?$/i,de=1e3,be=18e6,$=function(me,we){var Te=me==null?we:parseInt(me,10);return Te!==Te&&(Te=we),q(Te)},q=function(me){return Math.min(Math.max(me,de),be)},ee=function(me,we,Te){try{typeof we=="function"&&we.call(me,Te)}catch(Le){K(Le)}};function fe(me,we){W.call(this),we=we||{},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,pe(this,me,we)}function X(){return a!=null&&"withCredentials"in a.prototype||o==null?new a:new o}var ue=m!=null&&g!=null&&"body"in g.prototype;function pe(me,we,Te){we=String(we);var Le=!!Te.withCredentials,ze=Te.lastEventIdQueryParameterName||"lastEventId",$e=q(1e3),Fe=$(Te.heartbeatTimeout,45e3),_e="",Se=$e,De=!1,Me=0,je=Te.headers||{},qe=Te.Transport,Ge=ue&&qe==null?void 0:new j(qe!=null?new qe:X()),Qe=qe!=null&&typeof qe!="string"?new qe:Ge==null?new G:new I,ct=void 0,ot=0,_t=H,It="",Bt="",Ut="",xr="",Vn=k,xs=0,ni=0,ws=function(yn,pn,Qn,Hn){if(_t===B)if(yn===200&&Qn!=null&&he.test(Qn)){_t=z,De=Date.now(),Se=$e,me.readyState=z;var rn=new Q("open",{status:yn,statusText:pn,headers:Hn});me.dispatchEvent(rn),ee(me,me.onopen,rn)}else{var Nt="";yn!==200?(pn&&(pn=pn.replace(/\s+/g," ")),Nt="EventSource's response has a status "+yn+" "+pn+" that is not 200. Aborting the connection."):Nt="EventSource's response has a Content-Type specifying an unsupported type: "+(Qn==null?"-":Qn.replace(/\s+/g," "))+". Aborting the connection.",Ss();var rn=new Q("error",{status:yn,statusText:pn,headers:Hn});me.dispatchEvent(rn),ee(me,me.onerror,rn),console.error(Nt)}},Da=function(yn){if(_t===z){for(var pn=-1,Qn=0;Qn<yn.length;Qn+=1){var Hn=yn.charCodeAt(Qn);(Hn===10||Hn===13)&&(pn=Qn)}var rn=(pn!==-1?xr:"")+yn.slice(0,pn+1);xr=(pn===-1?xr:"")+yn.slice(pn+1),yn!==""&&(De=Date.now(),Me+=yn.length);for(var Nt=0;Nt<rn.length;Nt+=1){var Hn=rn.charCodeAt(Nt);if(Vn===M&&Hn===10)Vn=k;else if(Vn===M&&(Vn=k),Hn===13||Hn===10){if(Vn!==k){Vn===te&&(ni=Nt+1);var an=rn.slice(xs,ni-1),Jn=rn.slice(ni+(ni<Nt&&rn.charCodeAt(ni)===32?1:0),Nt);an==="data"?(It+=`
|
||
`,It+=Jn):an==="id"?Bt=Jn:an==="event"?Ut=Jn:an==="retry"?($e=$(Jn,$e),Se=$e):an==="heartbeatTimeout"&&(Fe=$(Jn,Fe),ot!==0&&(i(ot),ot=r(function(){ka()},Fe)))}if(Vn===k){if(It!==""){_e=Bt,Ut===""&&(Ut="message");var Ln=new le(Ut,{data:It.slice(1),lastEventId:Bt});if(me.dispatchEvent(Ln),Ut==="open"?ee(me,me.onopen,Ln):Ut==="message"?ee(me,me.onmessage,Ln):Ut==="error"&&ee(me,me.onerror,Ln),_t===F)return}It="",Ut=""}Vn=Hn===13?M:k}else Vn===k&&(xs=Nt,Vn=te),Vn===te?Hn===58&&(ni=Nt+1,Vn=Z):Vn===Z&&(Vn=oe)}}},Sc=function(yn){if(_t===z||_t===B){_t=H,ot!==0&&(i(ot),ot=0),ot=r(function(){ka()},Se),Se=q(Math.min($e*16,Se*2)),me.readyState=B;var pn=new J("error",{error:yn});me.dispatchEvent(pn),ee(me,me.onerror,pn),yn!=null&&console.error(yn)}},Ss=function(){_t=F,ct!=null&&(ct.abort(),ct=void 0),ot!==0&&(i(ot),ot=0),me.readyState=F},ka=function(){if(ot=0,_t!==H){if(!De&&ct!=null)Sc(new Error("No activity within "+Fe+" milliseconds. "+(_t===B?"No response received.":Me+" chars received.")+" Reconnecting.")),ct!=null&&(ct.abort(),ct=void 0);else{var yn=Math.max((De||Date.now())+Fe-Date.now(),1);De=!1,ot=r(function(){ka()},yn)}return}De=!1,Me=0,ot=r(function(){ka()},Fe),_t=B,It="",Ut="",Bt=_e,xr="",xs=0,ni=0,Vn=k;var pn=we;if(we.slice(0,5)!=="data:"&&we.slice(0,5)!=="blob:"&&_e!==""){var Qn=we.indexOf("?");pn=Qn===-1?we:we.slice(0,Qn+1)+we.slice(Qn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Jn,Ln){return Ln===ze?"":Jn}),pn+=(we.indexOf("?")===-1?"?":"&")+ze+"="+encodeURIComponent(_e)}var Hn=me.withCredentials,rn={};rn.Accept="text/event-stream";var Nt=me.headers;if(Nt!=null)for(var an in Nt)Object.prototype.hasOwnProperty.call(Nt,an)&&(rn[an]=Nt[an]);try{ct=Qe.open(Ge,ws,Da,Sc,pn,Hn,rn)}catch(Jn){throw Ss(),Jn}};me.url=we,me.readyState=B,me.withCredentials=Le,me.headers=je,me._close=Ss,ka()}fe.prototype=Object.create(W.prototype),fe.prototype.CONNECTING=B,fe.prototype.OPEN=z,fe.prototype.CLOSED=F,fe.prototype.close=function(){this._close()},fe.CONNECTING=B,fe.OPEN=z,fe.CLOSED=F,fe.prototype.withCredentials=void 0;var ye=f;a!=null&&(f==null||!("withCredentials"in f.prototype))&&(ye=fe),function(me){{var we=me(t);we!==void 0&&(e.exports=we)}}(function(me){me.EventSourcePolyfill=fe,me.NativeEventSource=f,me.EventSource=ye})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:kue:globalThis)}(Ep,Ep.exports)),Ep.exports}var $ue=Iue();const Cl=({children:e})=>y.jsx("small",{className:"form-text text-muted d-block",children:e}),Bue=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=Hr("realTimeUpdates",{enabled:!0}),i=U.useId();return y.jsxs(Mn,{title:"Real-time updates",className:"h-100",children:[y.jsx(sb,{children:y.jsxs(ss,{checked:n,onChange:e,children:["Enable or disable real-time updates.",y.jsxs(Cl,{children:["Real-time updates are currently being ",y.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),y.jsxs($d,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ke("form-label",{"text-muted":!n}),id:i,children:[y.jsx(sr,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:a})=>t(Number(a.value))}),n&&y.jsx(Cl,{children:r?y.jsxs("span",{children:["Updates will be reflected in the UI every ",y.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},_w=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Uue=e=>e==="includes"?y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"including"})," provided input."]}):y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"starting with"})," provided input."]}),zue=({updateShortUrlCreationSettings:e})=>{const t=Hr("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return y.jsxs(Mn,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[y.jsxs(ss,{checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),children:["Request validation on long URLs when creating new short URLs."," ",y.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]}),y.jsxs(Cl,{children:["The initial state of the ",y.jsx("b",{children:"Validate URL"})," checkbox will be ",y.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),y.jsxs(ss,{checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),children:["Make all new short URLs forward their query params to the long URL.",y.jsxs(Cl,{children:["The initial state of the ",y.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",y.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]}),y.jsxs($d,{noMargin:!0,label:"Tag suggestions search mode:",children:[y.jsxs(vs,{text:_w(t.tagFilteringMode),children:[y.jsx(Je,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:_w("startsWith")}),y.jsx(Je,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:_w("includes")})]}),y.jsx(Cl,{children:Uue(t.tagFilteringMode)})]})]})},Fue={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},que=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=Hr("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return y.jsxs(Mn,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[y.jsxs(ss,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",y.jsxs(Cl,{children:["When deleting a short URL, confirmation ",y.jsx("b",{children:r?"will":"won't"})," be required."]})]}),y.jsx($d,{noMargin:!0,label:"Default ordering for short URLs list:",children:y.jsx(ov,{items:Fue,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,a)=>e({defaultOrdering:{field:i,dir:a}})})})]})},Vue={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Hue=({updateTagsSettings:e})=>{const t=Hr("tags",{});return y.jsx(Mn,{title:"Tags",className:"h-100",children:y.jsx($d,{noMargin:!0,label:"Default ordering for tags list:",children:y.jsx(ov,{items:Vue,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},Wue=({updateUiSettings:e,_matchMedia:t})=>{const n=Hr("ui"),r=U.useMemo(()=>(n==null?void 0:n.theme)??oP(t),[n==null?void 0:n.theme,t]);return y.jsxs(Mn,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[y.jsx(ss,{checked:r==="dark",onChange:i=>{e({...n,theme:i?"dark":"light"})},children:"Use dark theme."}),y.jsx(Xe,{icon:r==="dark"?GQ:DQ})]})},cz={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Gue=(e,t)=>!e||e==="all"?t:cz[e],Yue=({onChange:e,active:t,allText:n})=>y.jsxs(vs,{text:Gue(t,n),children:[y.jsx(Je,{active:t==="all",onClick:()=>e("all"),children:n}),y.jsx(Je,{divider:!0}),Object.entries(cz).map(([r,i])=>y.jsx(Je,{active:t===r,onClick:()=>e(r),children:i},r))]}),cL=e=>(e==null?void 0:e.defaultInterval)??"last30Days",Kue=({updateVisitsSettings:e})=>{const t=Hr("visits"),n=U.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??cL(t),...i}),[e,t]);return y.jsxs(Mn,{title:"Visits",className:"h-100",children:[y.jsx(sb,{children:y.jsxs(ss,{checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",y.jsxs(Cl,{children:["The visits coming from potential bots will be ",y.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),y.jsx(sb,{children:y.jsxs(ss,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",y.jsxs(Cl,{children:["When loading visits, previous period ",y.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),y.jsx($d,{noMargin:!0,label:"Default interval to load on visits sections:",children:y.jsx(Yue,{allText:"All visits",active:cL(t),onChange:r=>n({defaultInterval:r})})})]})},xw=({children:e})=>U.Children.map(e,(t,n)=>y.jsx("div",{className:"mb-3",children:t},n)),Zue=({settings:e,updateSettings:t,onUpdateSettings:n=t,defaultShortUrlsListOrdering:r})=>{const i=U.useCallback(f=>n==null?void 0:n(e_(e,f)),[e,n]),a=U.useCallback(f=>i({realTimeUpdates:{enabled:f}}),[i]),o=U.useCallback(f=>i({realTimeUpdates:{interval:f}}),[i]),l=U.useCallback((f,c)=>i({[f]:c}),[i]);return y.jsxs(hz,{value:e,children:[y.jsxs(DU,{className:"mb-3",children:[y.jsx(Ip,{to:"../general",children:"General"}),y.jsx(Ip,{to:"../short-urls",children:"Short URLs"}),y.jsx(Ip,{to:"../other-items",children:"Other items"})]}),y.jsxs(M0,{children:[y.jsx(St,{path:"general",element:y.jsxs(xw,{children:[y.jsx(Wue,{updateUiSettings:f=>l("ui",f)}),y.jsx(Bue,{toggleRealTimeUpdates:a,setRealTimeUpdatesInterval:o})]})}),y.jsx(St,{path:"short-urls",element:y.jsxs(xw,{children:[y.jsx(zue,{updateShortUrlCreationSettings:f=>l("shortUrlCreation",f)}),y.jsx(que,{defaultOrdering:r,updateShortUrlsListSettings:f=>l("shortUrlsList",f)})]})}),y.jsx(St,{path:"other-items",element:y.jsxs(xw,{children:[y.jsx(Hue,{updateTagsSettings:f=>l("tags",f)}),y.jsx(Kue,{updateVisitsSettings:f=>l("visits",f)})]})}),y.jsx(St,{path:"*",element:y.jsx(gj,{replace:!0,to:"../general"})})]})]})},fz={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},dz=U.createContext(fz),{Provider:hz}=dz,mP=()=>U.useContext(dz)??fz;function Hr(e,t){return mP()[e]??t}/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const Xue={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"]},Que=Xue,Jue={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"]},vP={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"]},gP=6048e5,ece=864e5,pz=6e4,yP=36e5,Jg=43200,fL=1440,dL=Symbol.for("constructDateFrom");function br(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&dL in e?e[dL](t):e instanceof Date?new e.constructor(t):new Date(t)}function Mt(e,t){return br(t||e,e)}function bP(e,t,n){const r=Mt(e,n==null?void 0:n.in);return isNaN(t)?br(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function tce(e,t,n){const r=Mt(e,n==null?void 0:n.in);if(isNaN(t))return br(e,NaN);if(!t)return r;const i=r.getDate(),a=br(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function nce(e,t,n){const{years:r=0,months:i=0,weeks:a=0,days:o=0,hours:l=0,minutes:f=0,seconds:c=0}=t,h=Mt(e,n==null?void 0:n.in),m=i||r?tce(h,i+r*12):h,g=o||a?bP(m,o+a*7):m,x=f+l*60,w=(c+x*60)*1e3;return br(e,+g+w)}let rce={};function uv(){return rce}function lc(e,t){var l,f,c,h;const n=uv(),r=(t==null?void 0:t.weekStartsOn)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((h=(c=n.locale)==null?void 0:c.options)==null?void 0:h.weekStartsOn)??0,i=Mt(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function um(e,t){return lc(e,{...t,weekStartsOn:1})}function mz(e,t){const n=Mt(e,t==null?void 0:t.in),r=n.getFullYear(),i=br(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=um(i),o=br(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=um(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Jf(e){const t=Mt(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 vc(e,...t){const n=br.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function uc(e,t){const n=Mt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function t_(e,t,n){const[r,i]=vc(n==null?void 0:n.in,e,t),a=uc(r),o=uc(i),l=+a-Jf(a),f=+o-Jf(o);return Math.round((l-f)/ece)}function ice(e,t){const n=mz(e,t),r=br(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),um(r)}function vz(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=br.bind(null,i));const a=Mt(i,r);(!n||n<a||isNaN(+a))&&(n=a)}),br(r,n||NaN)}function ace(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=br.bind(null,i));const a=Mt(i,r);(!n||n>a||isNaN(+a))&&(n=a)}),br(r,n||NaN)}function Py(e,t){const n=+Mt(e)-+Mt(t);return n<0?-1:n>0?1:n}function oce(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sce(e){return!(!oce(e)&&typeof e!="number"||isNaN(+Mt(e)))}function vb(e,t,n){const[r,i]=vc(n==null?void 0:n.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function lce(e,t,n){const[r,i]=vc(n==null?void 0:n.in,e,t),a=lc(r,n),o=lc(i,n),l=+a-Jf(a),f=+o-Jf(o);return Math.round((l-f)/gP)}function gz(e,t,n){const[r,i]=vc(n==null?void 0:n.in,e,t),a=hL(r,i),o=Math.abs(t_(r,i));r.setDate(r.getDate()-a*o);const l=+(hL(r,i)===-a),f=a*(o-l);return f===0?0:f}function hL(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 yz(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function uce(e,t,n){const[r,i]=vc(n==null?void 0:n.in,e,t),a=(+r-+i)/yP;return yz(n==null?void 0:n.roundingMethod)(a)}function cce(e,t){return+Mt(e)-+Mt(t)}function ed(e,t){const n=Mt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function fce(e,t){const n=Mt(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 dce(e,t){const n=Mt(e,t==null?void 0:t.in);return+ed(n,t)==+fce(n,t)}function hce(e,t,n){const[r,i,a]=vc(n==null?void 0:n.in,e,e,t),o=Py(i,a),l=Math.abs(vb(i,a));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*l);let f=Py(i,a)===-o;dce(r)&&l===1&&Py(r,a)===1&&(f=!1);const c=o*(l-+f);return c===0?0:c}function pce(e,t,n){const r=cce(e,t)/1e3;return yz(n==null?void 0:n.roundingMethod)(r)}function mce(e,t){const n=Mt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function vce(e,t){const n=t==null?void 0:t.weekStartsOn,r=Mt(e,t==null?void 0:t.in),i=r.getDay(),a=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+a),r.setHours(23,59,59,999),r}function gce(e,t){return vce(e,{...t,weekStartsOn:1})}const yce={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"}},bce=(e,t,n)=>{let r;const i=yce[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 ww(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const _ce={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xce={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wce={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Sce={date:ww({formats:_ce,defaultWidth:"full"}),time:ww({formats:xce,defaultWidth:"full"}),dateTime:ww({formats:wce,defaultWidth:"full"})},Oce={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ece=(e,t,n,r)=>Oce[e];function ap(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const Cce={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ace={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"]},jce={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"]},Pce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Rce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Mce=(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"},Nce={ordinalNumber:Mce,era:ap({values:Cce,defaultWidth:"wide"}),quarter:ap({values:Tce,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ap({values:Ace,defaultWidth:"wide"}),day:ap({values:jce,defaultWidth:"wide"}),dayPeriod:ap({values:Pce,defaultWidth:"wide",formattingValues:Rce,defaultFormattingWidth:"wide"})};function op(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(l)?Dce(l,m=>m.test(o)):Lce(l,m=>m.test(o));let c;c=e.valueCallback?e.valueCallback(f):f,c=n.valueCallback?n.valueCallback(c):c;const h=t.slice(o.length);return{value:c,rest:h}}}function Lce(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Dce(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function kce(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}const Ice=/^(\d+)(th|st|nd|rd)?/i,$ce=/\d+/i,Bce={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},Uce={any:[/^b/i,/^(a|c)/i]},zce={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fce={any:[/1/i,/2/i,/3/i,/4/i]},qce={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vce={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Hce={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},Wce={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]},Gce={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},Yce={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}},Kce={ordinalNumber:kce({matchPattern:Ice,parsePattern:$ce,valueCallback:e=>parseInt(e,10)}),era:op({matchPatterns:Bce,defaultMatchWidth:"wide",parsePatterns:Uce,defaultParseWidth:"any"}),quarter:op({matchPatterns:zce,defaultMatchWidth:"wide",parsePatterns:Fce,defaultParseWidth:"any",valueCallback:e=>e+1}),month:op({matchPatterns:qce,defaultMatchWidth:"wide",parsePatterns:Vce,defaultParseWidth:"any"}),day:op({matchPatterns:Hce,defaultMatchWidth:"wide",parsePatterns:Wce,defaultParseWidth:"any"}),dayPeriod:op({matchPatterns:Gce,defaultMatchWidth:"any",parsePatterns:Yce,defaultParseWidth:"any"})},bz={code:"en-US",formatDistance:bce,formatLong:Sce,formatRelative:Ece,localize:Nce,match:Kce,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zce(e,t){const n=Mt(e,t==null?void 0:t.in);return t_(n,mce(n))+1}function Xce(e,t){const n=Mt(e,t==null?void 0:t.in),r=+um(n)-+ice(n);return Math.round(r/gP)+1}function _z(e,t){var h,m,g,x;const n=Mt(e,t==null?void 0:t.in),r=n.getFullYear(),i=uv(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(g=i.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,o=br((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const l=lc(o,t),f=br((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,a),f.setHours(0,0,0,0);const c=lc(f,t);return+n>=+l?r+1:+n>=+c?r:r-1}function Qce(e,t){var l,f,c,h;const n=uv(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(c=n.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??1,i=_z(e,t),a=br((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),lc(a,t)}function Jce(e,t){const n=Mt(e,t==null?void 0:t.in),r=+lc(n,t)-+Qce(n,t);return Math.round(r/gP)+1}function Rt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ml={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Rt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Rt(n+1,2)},d(e,t){return Rt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Rt(e.getHours()%12||12,t.length)},H(e,t){return Rt(e.getHours(),t.length)},m(e,t){return Rt(e.getMinutes(),t.length)},s(e,t){return Rt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Rt(i,t.length)}},yf={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pL={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 ml.y(e,t)},Y:function(e,t,n,r){const i=_z(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Rt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Rt(a,t.length)},R:function(e,t){const n=mz(e);return Rt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Rt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ml.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Jce(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Rt(i,t.length)},I:function(e,t,n){const r=Xce(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Rt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ml.d(e,t)},D:function(e,t,n){const r=Zce(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Rt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Rt(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Rt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Rt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=yf.noon:r===0?i=yf.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=yf.evening:r>=12?i=yf.afternoon:r>=4?i=yf.morning:i=yf.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 ml.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ml.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ml.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ml.s(e,t)},S:function(e,t){return ml.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return vL(r);case"XXXX":case"XX":return Lu(r);case"XXXXX":case"XXX":default:return Lu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return vL(r);case"xxxx":case"xx":return Lu(r);case"xxxxx":case"xxx":default:return Lu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+mL(r,":");case"OOOO":default:return"GMT"+Lu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+mL(r,":");case"zzzz":default:return"GMT"+Lu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Rt(r,t.length)},T:function(e,t,n){return Rt(+e,t.length)}};function mL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Rt(a,2)}function vL(e,t){return e%60===0?(e>0?"-":"+")+Rt(Math.abs(e)/60,2):Lu(e,t)}function Lu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Rt(Math.trunc(r/60),2),a=Rt(r%60,2);return n+i+t+a}const gL=(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"})}},xz=(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"})}},efe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return gL(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",gL(r,t)).replace("{{time}}",xz(i,t))},tfe={p:xz,P:efe},nfe=/^D+$/,rfe=/^Y+$/,ife=["D","DD","YY","YYYY"];function afe(e){return nfe.test(e)}function ofe(e){return rfe.test(e)}function sfe(e,t,n){const r=lfe(e,t,n);if(console.warn(r),ife.includes(e))throw new RangeError(r)}function lfe(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 ufe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cfe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ffe=/^'([^]*?)'?$/,dfe=/''/g,hfe=/[a-zA-Z]/;function gb(e,t,n){var h,m,g,x;const r=uv(),i=r.locale??bz,a=r.firstWeekContainsDate??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,o=r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,l=Mt(e,n==null?void 0:n.in);if(!sce(l))throw new RangeError("Invalid time value");let f=t.match(cfe).map(_=>{const w=_[0];if(w==="p"||w==="P"){const S=tfe[w];return S(_,i.formatLong)}return _}).join("").match(ufe).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:pfe(_)};if(pL[w])return{isToken:!0,value:_};if(w.match(hfe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(f=i.localize.preprocessor(l,f));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return f.map(_=>{if(!_.isToken)return _.value;const w=_.value;(ofe(w)||afe(w))&&sfe(w,t,String(e));const S=pL[w[0]];return S(l,w,i.localize,c)}).join("")}function pfe(e){const t=e.match(ffe);return t?t[1].replace(dfe,"'"):e}function mfe(e,t,n){const r=uv(),i=(n==null?void 0:n.locale)??r.locale??bz,a=2520,o=Py(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[f,c]=vc(n==null?void 0:n.in,...o>0?[t,e]:[e,t]),h=pce(c,f),m=(Jf(c)-Jf(f))/1e3,g=Math.round((h-m)/60);let x;if(g<2)return g===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",g,l);if(g<45)return i.formatDistance("xMinutes",g,l);if(g<90)return i.formatDistance("aboutXHours",1,l);if(g<fL){const _=Math.round(g/60);return i.formatDistance("aboutXHours",_,l)}else{if(g<a)return i.formatDistance("xDays",1,l);if(g<Jg){const _=Math.round(g/fL);return i.formatDistance("xDays",_,l)}else if(g<Jg*2)return x=Math.round(g/Jg),i.formatDistance("aboutXMonths",x,l)}if(x=hce(c,f),x<12){const _=Math.round(g/Jg);return i.formatDistance("xMonths",_,l)}else{const _=x%12,w=Math.trunc(x/12);return _<3?i.formatDistance("aboutXYears",w,l):_<9?i.formatDistance("overXYears",w,l):i.formatDistance("almostXYears",w+1,l)}}function vfe(e,t){const n=Mt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const a="-",o=":";{const l=Rt(n.getDate(),2),f=Rt(n.getMonth()+1,2);r=`${Rt(n.getFullYear(),4)}${a}${f}${a}${l}`}{const l=n.getTimezoneOffset();if(l!==0){const x=Math.abs(l),_=Rt(Math.trunc(x/60),2),w=Rt(x%60,2);i=`${l<0?"+":"-"}${_}:${w}`}else i="Z";const f=Rt(n.getHours(),2),c=Rt(n.getMinutes(),2),h=Rt(n.getSeconds(),2),m=r===""?"":"T",g=[f,c,h].join(o);r=`${r}${m}${g}${i}`}return r}function gfe(e){return Math.trunc(+Mt(e)/1e3)}function yfe(e,t){return+Mt(e)>+Mt(t)}function yb(e,t){return+Mt(e)<+Mt(t)}function jT(e,t){return+Mt(e)==+Mt(t)}function bfe(e,t,n){const r=+Mt(e,n==null?void 0:n.in),[i,a]=[+Mt(t.start,n==null?void 0:n.in),+Mt(t.end,n==null?void 0:n.in)].sort((o,l)=>o-l);return r>=i&&r<=a}function bb(e,t,n){return bP(e,-t,n)}function kl(e,t){const n=()=>br(t==null?void 0:t.in,NaN),i=Sfe(e);let a;if(i.date){const c=Ofe(i.date,2);a=Efe(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let l=0,f;if(i.time&&(l=Cfe(i.time),isNaN(l)))return n();if(i.timezone){if(f=Tfe(i.timezone),isNaN(f))return n()}else{const c=new Date(o+l),h=Mt(0,t==null?void 0:t.in);return h.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),h.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),h}return Mt(o+l+f,t==null?void 0:t.in)}const ey={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_fe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,xfe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,wfe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Sfe(e){const t={},n=e.split(ey.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ey.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ey.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=ey.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ofe(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,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Efe(e,t){if(t===null)return new Date(NaN);const n=e.match(_fe);if(!n)return new Date(NaN);const r=!!n[4],i=sp(n[1]),a=sp(n[2])-1,o=sp(n[3]),l=sp(n[4]),f=sp(n[5])-1;if(r)return Mfe(t,l,f)?Afe(t,l,f):new Date(NaN);{const c=new Date(0);return!Pfe(t,a,o)||!Rfe(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function sp(e){return e?parseInt(e):1}function Cfe(e){const t=e.match(xfe);if(!t)return NaN;const n=Sw(t[1]),r=Sw(t[2]),i=Sw(t[3]);return Nfe(n,r,i)?n*yP+r*pz+i*1e3:NaN}function Sw(e){return e&&parseFloat(e.replace(",","."))||0}function Tfe(e){if(e==="Z")return 0;const t=e.match(wfe);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Lfe(r,i)?n*(r*yP+i*pz):NaN}function Afe(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const jfe=[31,null,31,30,31,30,31,31,30,31,30,31];function wz(e){return e%400===0||e%4===0&&e%100!==0}function Pfe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jfe[t]||(wz(e)?29:28))}function Rfe(e,t){return t>=1&&t<=(wz(e)?366:365)}function Mfe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Nfe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Lfe(e,t){return t>=0&&t<=59}var Ry={exports:{}},Dfe=Ry.exports,yL;function kfe(){return yL||(yL=1,function(e,t){(function(n,r){e.exports=r()})(Dfe,()=>(()=>{var n={873:(o,l)=>{var f,c,h=function(){var m=function(Q,J){var H=Q,B=O[J],z=null,F=0,M=null,k=[],te={},Z=function(X,ue){z=function(pe){for(var ye=new Array(pe),me=0;me<pe;me+=1){ye[me]=new Array(pe);for(var we=0;we<pe;we+=1)ye[me][we]=null}return ye}(F=4*H+17),oe(0,0),oe(F-7,0),oe(0,F-7),de(),he(),$(X,ue),H>=7&&be(X),M==null&&(M=ee(H,B,k)),q(M,ue)},oe=function(X,ue){for(var pe=-1;pe<=7;pe+=1)if(!(X+pe<=-1||F<=X+pe))for(var ye=-1;ye<=7;ye+=1)ue+ye<=-1||F<=ue+ye||(z[X+pe][ue+ye]=0<=pe&&pe<=6&&(ye==0||ye==6)||0<=ye&&ye<=6&&(pe==0||pe==6)||2<=pe&&pe<=4&&2<=ye&&ye<=4)},he=function(){for(var X=8;X<F-8;X+=1)z[X][6]==null&&(z[X][6]=X%2==0);for(var ue=8;ue<F-8;ue+=1)z[6][ue]==null&&(z[6][ue]=ue%2==0)},de=function(){for(var X=C.getPatternPosition(H),ue=0;ue<X.length;ue+=1)for(var pe=0;pe<X.length;pe+=1){var ye=X[ue],me=X[pe];if(z[ye][me]==null)for(var we=-2;we<=2;we+=1)for(var Te=-2;Te<=2;Te+=1)z[ye+we][me+Te]=we==-2||we==2||Te==-2||Te==2||we==0&&Te==0}},be=function(X){for(var ue=C.getBCHTypeNumber(H),pe=0;pe<18;pe+=1){var ye=!X&&(ue>>pe&1)==1;z[Math.floor(pe/3)][pe%3+F-8-3]=ye}for(pe=0;pe<18;pe+=1)ye=!X&&(ue>>pe&1)==1,z[pe%3+F-8-3][Math.floor(pe/3)]=ye},$=function(X,ue){for(var pe=B<<3|ue,ye=C.getBCHTypeInfo(pe),me=0;me<15;me+=1){var we=!X&&(ye>>me&1)==1;me<6?z[me][8]=we:me<8?z[me+1][8]=we:z[F-15+me][8]=we}for(me=0;me<15;me+=1)we=!X&&(ye>>me&1)==1,me<8?z[8][F-me-1]=we:me<9?z[8][15-me-1+1]=we:z[8][15-me-1]=we;z[F-8][8]=!X},q=function(X,ue){for(var pe=-1,ye=F-1,me=7,we=0,Te=C.getMaskFunction(ue),Le=F-1;Le>0;Le-=2)for(Le==6&&(Le-=1);;){for(var ze=0;ze<2;ze+=1)if(z[ye][Le-ze]==null){var $e=!1;we<X.length&&($e=(X[we]>>>me&1)==1),Te(ye,Le-ze)&&($e=!$e),z[ye][Le-ze]=$e,(me-=1)==-1&&(we+=1,me=7)}if((ye+=pe)<0||F<=ye){ye-=pe,pe=-pe;break}}},ee=function(X,ue,pe){for(var ye=P.getRSBlocks(X,ue),me=R(),we=0;we<pe.length;we+=1){var Te=pe[we];me.put(Te.getMode(),4),me.put(Te.getLength(),C.getLengthInBits(Te.getMode(),X)),Te.write(me)}var Le=0;for(we=0;we<ye.length;we+=1)Le+=ye[we].dataCount;if(me.getLengthInBits()>8*Le)throw"code length overflow. ("+me.getLengthInBits()+">"+8*Le+")";for(me.getLengthInBits()+4<=8*Le&&me.put(0,4);me.getLengthInBits()%8!=0;)me.putBit(!1);for(;!(me.getLengthInBits()>=8*Le||(me.put(236,8),me.getLengthInBits()>=8*Le));)me.put(17,8);return function(ze,$e){for(var Fe=0,_e=0,Se=0,De=new Array($e.length),Me=new Array($e.length),je=0;je<$e.length;je+=1){var qe=$e[je].dataCount,Ge=$e[je].totalCount-qe;_e=Math.max(_e,qe),Se=Math.max(Se,Ge),De[je]=new Array(qe);for(var Qe=0;Qe<De[je].length;Qe+=1)De[je][Qe]=255&ze.getBuffer()[Qe+Fe];Fe+=qe;var ct=C.getErrorCorrectPolynomial(Ge),ot=j(De[je],ct.getLength()-1).mod(ct);for(Me[je]=new Array(ct.getLength()-1),Qe=0;Qe<Me[je].length;Qe+=1){var _t=Qe+ot.getLength()-Me[je].length;Me[je][Qe]=_t>=0?ot.getAt(_t):0}}var It=0;for(Qe=0;Qe<$e.length;Qe+=1)It+=$e[Qe].totalCount;var Bt=new Array(It),Ut=0;for(Qe=0;Qe<_e;Qe+=1)for(je=0;je<$e.length;je+=1)Qe<De[je].length&&(Bt[Ut]=De[je][Qe],Ut+=1);for(Qe=0;Qe<Se;Qe+=1)for(je=0;je<$e.length;je+=1)Qe<Me[je].length&&(Bt[Ut]=Me[je][Qe],Ut+=1);return Bt}(me,ye)};te.addData=function(X,ue){var pe=null;switch(ue=ue||"Byte"){case"Numeric":pe=I(X);break;case"Alphanumeric":pe=V(X);break;case"Byte":pe=G(X);break;case"Kanji":pe=W(X);break;default:throw"mode:"+ue}k.push(pe),M=null},te.isDark=function(X,ue){if(X<0||F<=X||ue<0||F<=ue)throw X+","+ue;return z[X][ue]},te.getModuleCount=function(){return F},te.make=function(){if(H<1){for(var X=1;X<40;X++){for(var ue=P.getRSBlocks(X,B),pe=R(),ye=0;ye<k.length;ye++){var me=k[ye];pe.put(me.getMode(),4),pe.put(me.getLength(),C.getLengthInBits(me.getMode(),X)),me.write(pe)}var we=0;for(ye=0;ye<ue.length;ye++)we+=ue[ye].dataCount;if(pe.getLengthInBits()<=8*we)break}H=X}Z(!1,function(){for(var Te=0,Le=0,ze=0;ze<8;ze+=1){Z(!0,ze);var $e=C.getLostPoint(te);(ze==0||Te>$e)&&(Te=$e,Le=ze)}return Le}())},te.createTableTag=function(X,ue){X=X||2;var pe="";pe+='<table style="',pe+=" border-width: 0px; border-style: none;",pe+=" border-collapse: collapse;",pe+=" padding: 0px; margin: "+(ue=ue===void 0?4*X:ue)+"px;",pe+='">',pe+="<tbody>";for(var ye=0;ye<te.getModuleCount();ye+=1){pe+="<tr>";for(var me=0;me<te.getModuleCount();me+=1)pe+='<td style="',pe+=" border-width: 0px; border-style: none;",pe+=" border-collapse: collapse;",pe+=" padding: 0px; margin: 0px;",pe+=" width: "+X+"px;",pe+=" height: "+X+"px;",pe+=" background-color: ",pe+=te.isDark(ye,me)?"#000000":"#ffffff",pe+=";",pe+='"/>';pe+="</tr>"}return(pe+="</tbody>")+"</table>"},te.createSvgTag=function(X,ue,pe,ye){var me={};typeof arguments[0]=="object"&&(X=(me=arguments[0]).cellSize,ue=me.margin,pe=me.alt,ye=me.title),X=X||2,ue=ue===void 0?4*X:ue,(pe=typeof pe=="string"?{text:pe}:pe||{}).text=pe.text||null,pe.id=pe.text?pe.id||"qrcode-description":null,(ye=typeof ye=="string"?{text:ye}:ye||{}).text=ye.text||null,ye.id=ye.text?ye.id||"qrcode-title":null;var we,Te,Le,ze,$e=te.getModuleCount()*X+2*ue,Fe="";for(ze="l"+X+",0 0,"+X+" -"+X+",0 0,-"+X+"z ",Fe+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Fe+=me.scalable?"":' width="'+$e+'px" height="'+$e+'px"',Fe+=' viewBox="0 0 '+$e+" "+$e+'" ',Fe+=' preserveAspectRatio="xMinYMin meet"',Fe+=ye.text||pe.text?' role="img" aria-labelledby="'+fe([ye.id,pe.id].join(" ").trim())+'"':"",Fe+=">",Fe+=ye.text?'<title id="'+fe(ye.id)+'">'+fe(ye.text)+"</title>":"",Fe+=pe.text?'<description id="'+fe(pe.id)+'">'+fe(pe.text)+"</description>":"",Fe+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Fe+='<path d="',Te=0;Te<te.getModuleCount();Te+=1)for(Le=Te*X+ue,we=0;we<te.getModuleCount();we+=1)te.isDark(Te,we)&&(Fe+="M"+(we*X+ue)+","+Le+ze);return(Fe+='" stroke="transparent" fill="black"/>')+"</svg>"},te.createDataURL=function(X,ue){X=X||2,ue=ue===void 0?4*X:ue;var pe=te.getModuleCount()*X+2*ue,ye=ue,me=pe-ue;return le(pe,pe,function(we,Te){if(ye<=we&&we<me&&ye<=Te&&Te<me){var Le=Math.floor((we-ye)/X),ze=Math.floor((Te-ye)/X);return te.isDark(ze,Le)?0:1}return 1})},te.createImgTag=function(X,ue,pe){X=X||2,ue=ue===void 0?4*X:ue;var ye=te.getModuleCount()*X+2*ue,me="";return me+="<img",me+=' src="',me+=te.createDataURL(X,ue),me+='"',me+=' width="',me+=ye,me+='"',me+=' height="',me+=ye,me+='"',pe&&(me+=' alt="',me+=fe(pe),me+='"'),me+"/>"};var fe=function(X){for(var ue="",pe=0;pe<X.length;pe+=1){var ye=X.charAt(pe);switch(ye){case"<":ue+="<";break;case">":ue+=">";break;case"&":ue+="&";break;case'"':ue+=""";break;default:ue+=ye}}return ue};return te.createASCII=function(X,ue){if((X=X||1)<2)return function(De){De=De===void 0?2:De;var Me,je,qe,Ge,Qe,ct=1*te.getModuleCount()+2*De,ot=De,_t=ct-De,It={"██":"█","█ ":"▀"," █":"▄"," ":" "},Bt={"██":"▀","█ ":"▀"," █":" "," ":" "},Ut="";for(Me=0;Me<ct;Me+=2){for(qe=Math.floor((Me-ot)/1),Ge=Math.floor((Me+1-ot)/1),je=0;je<ct;je+=1)Qe="█",ot<=je&&je<_t&&ot<=Me&&Me<_t&&te.isDark(qe,Math.floor((je-ot)/1))&&(Qe=" "),ot<=je&&je<_t&&ot<=Me+1&&Me+1<_t&&te.isDark(Ge,Math.floor((je-ot)/1))?Qe+=" ":Qe+="█",Ut+=De<1&&Me+1>=_t?Bt[Qe]:It[Qe];Ut+=`
|
||
`}return ct%2&&De>0?Ut.substring(0,Ut.length-ct-1)+Array(ct+1).join("▀"):Ut.substring(0,Ut.length-1)}(ue);X-=1,ue=ue===void 0?2*X:ue;var pe,ye,me,we,Te=te.getModuleCount()*X+2*ue,Le=ue,ze=Te-ue,$e=Array(X+1).join("██"),Fe=Array(X+1).join(" "),_e="",Se="";for(pe=0;pe<Te;pe+=1){for(me=Math.floor((pe-Le)/X),Se="",ye=0;ye<Te;ye+=1)we=1,Le<=ye&&ye<ze&&Le<=pe&&pe<ze&&te.isDark(me,Math.floor((ye-Le)/X))&&(we=0),Se+=we?$e:Fe;for(me=0;me<X;me+=1)_e+=Se+`
|
||
`}return _e.substring(0,_e.length-1)},te.renderTo2dContext=function(X,ue){ue=ue||2;for(var pe=te.getModuleCount(),ye=0;ye<pe;ye++)for(var me=0;me<pe;me++)X.fillStyle=te.isDark(ye,me)?"black":"white",X.fillRect(ye*ue,me*ue,ue,ue)},te};m.stringToBytes=(m.stringToBytesFuncs={default:function(Q){for(var J=[],H=0;H<Q.length;H+=1){var B=Q.charCodeAt(H);J.push(255&B)}return J}}).default,m.createStringToBytes=function(Q,J){var H=function(){for(var z=ne(Q),F=function(){var he=z.read();if(he==-1)throw"eof";return he},M=0,k={};;){var te=z.read();if(te==-1)break;var Z=F(),oe=F()<<8|F();k[String.fromCharCode(te<<8|Z)]=oe,M+=1}if(M!=J)throw M+" != "+J;return k}(),B=63;return function(z){for(var F=[],M=0;M<z.length;M+=1){var k=z.charCodeAt(M);if(k<128)F.push(k);else{var te=H[z.charAt(M)];typeof te=="number"?(255&te)==te?F.push(te):(F.push(te>>>8),F.push(255&te)):F.push(B)}}return F}};var g,x,_,w,S,O={L:1,M:0,Q:3,H:2},C=(g=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],x=1335,_=7973,S=function(Q){for(var J=0;Q!=0;)J+=1,Q>>>=1;return J},(w={}).getBCHTypeInfo=function(Q){for(var J=Q<<10;S(J)-S(x)>=0;)J^=x<<S(J)-S(x);return 21522^(Q<<10|J)},w.getBCHTypeNumber=function(Q){for(var J=Q<<12;S(J)-S(_)>=0;)J^=_<<S(J)-S(_);return Q<<12|J},w.getPatternPosition=function(Q){return g[Q-1]},w.getMaskFunction=function(Q){switch(Q){case 0:return function(J,H){return(J+H)%2==0};case 1:return function(J,H){return J%2==0};case 2:return function(J,H){return H%3==0};case 3:return function(J,H){return(J+H)%3==0};case 4:return function(J,H){return(Math.floor(J/2)+Math.floor(H/3))%2==0};case 5:return function(J,H){return J*H%2+J*H%3==0};case 6:return function(J,H){return(J*H%2+J*H%3)%2==0};case 7:return function(J,H){return(J*H%3+(J+H)%2)%2==0};default:throw"bad maskPattern:"+Q}},w.getErrorCorrectPolynomial=function(Q){for(var J=j([1],0),H=0;H<Q;H+=1)J=J.multiply(j([1,T.gexp(H)],0));return J},w.getLengthInBits=function(Q,J){if(1<=J&&J<10)switch(Q){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+Q}else if(J<27)switch(Q){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+Q}else{if(!(J<41))throw"type:"+J;switch(Q){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+Q}}},w.getLostPoint=function(Q){for(var J=Q.getModuleCount(),H=0,B=0;B<J;B+=1)for(var z=0;z<J;z+=1){for(var F=0,M=Q.isDark(B,z),k=-1;k<=1;k+=1)if(!(B+k<0||J<=B+k))for(var te=-1;te<=1;te+=1)z+te<0||J<=z+te||k==0&&te==0||M==Q.isDark(B+k,z+te)&&(F+=1);F>5&&(H+=3+F-5)}for(B=0;B<J-1;B+=1)for(z=0;z<J-1;z+=1){var Z=0;Q.isDark(B,z)&&(Z+=1),Q.isDark(B+1,z)&&(Z+=1),Q.isDark(B,z+1)&&(Z+=1),Q.isDark(B+1,z+1)&&(Z+=1),Z!=0&&Z!=4||(H+=3)}for(B=0;B<J;B+=1)for(z=0;z<J-6;z+=1)Q.isDark(B,z)&&!Q.isDark(B,z+1)&&Q.isDark(B,z+2)&&Q.isDark(B,z+3)&&Q.isDark(B,z+4)&&!Q.isDark(B,z+5)&&Q.isDark(B,z+6)&&(H+=40);for(z=0;z<J;z+=1)for(B=0;B<J-6;B+=1)Q.isDark(B,z)&&!Q.isDark(B+1,z)&&Q.isDark(B+2,z)&&Q.isDark(B+3,z)&&Q.isDark(B+4,z)&&!Q.isDark(B+5,z)&&Q.isDark(B+6,z)&&(H+=40);var oe=0;for(z=0;z<J;z+=1)for(B=0;B<J;B+=1)Q.isDark(B,z)&&(oe+=1);return H+Math.abs(100*oe/J/J-50)/5*10},w),T=function(){for(var Q=new Array(256),J=new Array(256),H=0;H<8;H+=1)Q[H]=1<<H;for(H=8;H<256;H+=1)Q[H]=Q[H-4]^Q[H-5]^Q[H-6]^Q[H-8];for(H=0;H<255;H+=1)J[Q[H]]=H;return{glog:function(B){if(B<1)throw"glog("+B+")";return J[B]},gexp:function(B){for(;B<0;)B+=255;for(;B>=256;)B-=255;return Q[B]}}}();function j(Q,J){if(Q.length===void 0)throw Q.length+"/"+J;var H=function(){for(var z=0;z<Q.length&&Q[z]==0;)z+=1;for(var F=new Array(Q.length-z+J),M=0;M<Q.length-z;M+=1)F[M]=Q[M+z];return F}(),B={getAt:function(z){return H[z]},getLength:function(){return H.length},multiply:function(z){for(var F=new Array(B.getLength()+z.getLength()-1),M=0;M<B.getLength();M+=1)for(var k=0;k<z.getLength();k+=1)F[M+k]^=T.gexp(T.glog(B.getAt(M))+T.glog(z.getAt(k)));return j(F,0)},mod:function(z){if(B.getLength()-z.getLength()<0)return B;for(var F=T.glog(B.getAt(0))-T.glog(z.getAt(0)),M=new Array(B.getLength()),k=0;k<B.getLength();k+=1)M[k]=B.getAt(k);for(k=0;k<z.getLength();k+=1)M[k]^=T.gexp(T.glog(z.getAt(k))+F);return j(M,0).mod(z)}};return B}var P=function(){var Q=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],J=function(B,z){var F={};return F.totalCount=B,F.dataCount=z,F},H={getRSBlocks:function(B,z){var F=function(be,$){switch($){case O.L:return Q[4*(be-1)+0];case O.M:return Q[4*(be-1)+1];case O.Q:return Q[4*(be-1)+2];case O.H:return Q[4*(be-1)+3];default:return}}(B,z);if(F===void 0)throw"bad rs block @ typeNumber:"+B+"/errorCorrectionLevel:"+z;for(var M=F.length/3,k=[],te=0;te<M;te+=1)for(var Z=F[3*te+0],oe=F[3*te+1],he=F[3*te+2],de=0;de<Z;de+=1)k.push(J(oe,he));return k}};return H}(),R=function(){var Q=[],J=0,H={getBuffer:function(){return Q},getAt:function(B){var z=Math.floor(B/8);return(Q[z]>>>7-B%8&1)==1},put:function(B,z){for(var F=0;F<z;F+=1)H.putBit((B>>>z-F-1&1)==1)},getLengthInBits:function(){return J},putBit:function(B){var z=Math.floor(J/8);Q.length<=z&&Q.push(0),B&&(Q[z]|=128>>>J%8),J+=1}};return H},I=function(Q){var J=Q,H={getMode:function(){return 1},getLength:function(F){return J.length},write:function(F){for(var M=J,k=0;k+2<M.length;)F.put(B(M.substring(k,k+3)),10),k+=3;k<M.length&&(M.length-k==1?F.put(B(M.substring(k,k+1)),4):M.length-k==2&&F.put(B(M.substring(k,k+2)),7))}},B=function(F){for(var M=0,k=0;k<F.length;k+=1)M=10*M+z(F.charAt(k));return M},z=function(F){if("0"<=F&&F<="9")return F.charCodeAt(0)-48;throw"illegal char :"+F};return H},V=function(Q){var J=Q,H={getMode:function(){return 2},getLength:function(z){return J.length},write:function(z){for(var F=J,M=0;M+1<F.length;)z.put(45*B(F.charAt(M))+B(F.charAt(M+1)),11),M+=2;M<F.length&&z.put(B(F.charAt(M)),6)}},B=function(z){if("0"<=z&&z<="9")return z.charCodeAt(0)-48;if("A"<=z&&z<="Z")return z.charCodeAt(0)-65+10;switch(z){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+z}};return H},G=function(Q){var J=m.stringToBytes(Q);return{getMode:function(){return 4},getLength:function(H){return J.length},write:function(H){for(var B=0;B<J.length;B+=1)H.put(J[B],8)}}},W=function(Q){var J=m.stringToBytesFuncs.SJIS;if(!J)throw"sjis not supported.";(function(){var z=J("友");if(z.length!=2||(z[0]<<8|z[1])!=38726)throw"sjis not supported."})();var H=J(Q),B={getMode:function(){return 8},getLength:function(z){return~~(H.length/2)},write:function(z){for(var F=H,M=0;M+1<F.length;){var k=(255&F[M])<<8|255&F[M+1];if(33088<=k&&k<=40956)k-=33088;else{if(!(57408<=k&&k<=60351))throw"illegal char at "+(M+1)+"/"+k;k-=49472}k=192*(k>>>8&255)+(255&k),z.put(k,13),M+=2}if(M<F.length)throw"illegal char at "+(M+1)}};return B},K=function(){var Q=[],J={writeByte:function(H){Q.push(255&H)},writeShort:function(H){J.writeByte(H),J.writeByte(H>>>8)},writeBytes:function(H,B,z){B=B||0,z=z||H.length;for(var F=0;F<z;F+=1)J.writeByte(H[F+B])},writeString:function(H){for(var B=0;B<H.length;B+=1)J.writeByte(H.charCodeAt(B))},toByteArray:function(){return Q},toString:function(){var H="";H+="[";for(var B=0;B<Q.length;B+=1)B>0&&(H+=","),H+=Q[B];return H+"]"}};return J},ne=function(Q){var J=Q,H=0,B=0,z=0,F={read:function(){for(;z<8;){if(H>=J.length){if(z==0)return-1;throw"unexpected end of file./"+z}var k=J.charAt(H);if(H+=1,k=="=")return z=0,-1;k.match(/^\s$/)||(B=B<<6|M(k.charCodeAt(0)),z+=6)}var te=B>>>z-8&255;return z-=8,te}},M=function(k){if(65<=k&&k<=90)return k-65;if(97<=k&&k<=122)return k-97+26;if(48<=k&&k<=57)return k-48+52;if(k==43)return 62;if(k==47)return 63;throw"c:"+k};return F},le=function(Q,J,H){for(var B=function(oe,he){var de=oe,be=he,$=new Array(oe*he),q={setPixel:function(X,ue,pe){$[ue*de+X]=pe},write:function(X){X.writeString("GIF87a"),X.writeShort(de),X.writeShort(be),X.writeByte(128),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(255),X.writeByte(255),X.writeByte(255),X.writeString(","),X.writeShort(0),X.writeShort(0),X.writeShort(de),X.writeShort(be),X.writeByte(0);var ue=ee(2);X.writeByte(2);for(var pe=0;ue.length-pe>255;)X.writeByte(255),X.writeBytes(ue,pe,255),pe+=255;X.writeByte(ue.length-pe),X.writeBytes(ue,pe,ue.length-pe),X.writeByte(0),X.writeString(";")}},ee=function(X){for(var ue=1<<X,pe=1+(1<<X),ye=X+1,me=fe(),we=0;we<ue;we+=1)me.add(String.fromCharCode(we));me.add(String.fromCharCode(ue)),me.add(String.fromCharCode(pe));var Te,Le,ze,$e=K(),Fe=(Te=$e,Le=0,ze=0,{write:function(Me,je){if(Me>>>je)throw"length over";for(;Le+je>=8;)Te.writeByte(255&(Me<<Le|ze)),je-=8-Le,Me>>>=8-Le,ze=0,Le=0;ze|=Me<<Le,Le+=je},flush:function(){Le>0&&Te.writeByte(ze)}});Fe.write(ue,ye);var _e=0,Se=String.fromCharCode($[_e]);for(_e+=1;_e<$.length;){var De=String.fromCharCode($[_e]);_e+=1,me.contains(Se+De)?Se+=De:(Fe.write(me.indexOf(Se),ye),me.size()<4095&&(me.size()==1<<ye&&(ye+=1),me.add(Se+De)),Se=De)}return Fe.write(me.indexOf(Se),ye),Fe.write(pe,ye),Fe.flush(),$e.toByteArray()},fe=function(){var X={},ue=0,pe={add:function(ye){if(pe.contains(ye))throw"dup key:"+ye;X[ye]=ue,ue+=1},size:function(){return ue},indexOf:function(ye){return X[ye]},contains:function(ye){return X[ye]!==void 0}};return pe};return q}(Q,J),z=0;z<J;z+=1)for(var F=0;F<Q;F+=1)B.setPixel(F,z,H(F,z));var M=K();B.write(M);for(var k=function(){var oe=0,he=0,de=0,be="",$={},q=function(fe){be+=String.fromCharCode(ee(63&fe))},ee=function(fe){if(!(fe<0)){if(fe<26)return 65+fe;if(fe<52)return fe-26+97;if(fe<62)return fe-52+48;if(fe==62)return 43;if(fe==63)return 47}throw"n:"+fe};return $.writeByte=function(fe){for(oe=oe<<8|255&fe,he+=8,de+=1;he>=6;)q(oe>>>he-6),he-=6},$.flush=function(){if(he>0&&(q(oe<<6-he),oe=0,he=0),de%3!=0)for(var fe=3-de%3,X=0;X<fe;X+=1)be+="="},$.toString=function(){return be},$}(),te=M.toByteArray(),Z=0;Z<te.length;Z+=1)k.writeByte(te[Z]);return k.flush(),"data:image/gif;base64,"+k};return m}();h.stringToBytesFuncs["UTF-8"]=function(m){return function(g){for(var x=[],_=0;_<g.length;_++){var w=g.charCodeAt(_);w<128?x.push(w):w<2048?x.push(192|w>>6,128|63&w):w<55296||w>=57344?x.push(224|w>>12,128|w>>6&63,128|63&w):(_++,w=65536+((1023&w)<<10|1023&g.charCodeAt(_)),x.push(240|w>>18,128|w>>12&63,128|w>>6&63,128|63&w))}return x}(m)},(c=typeof(f=function(){return h})=="function"?f.apply(l,[]):f)===void 0||(o.exports=c)}},r={};function i(o){var l=r[o];if(l!==void 0)return l.exports;var f=r[o]={exports:{}};return n[o](f,f.exports,i),f.exports}i.n=o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return i.d(l,{a:l}),l},i.d=(o,l)=>{for(var f in l)i.o(l,f)&&!i.o(o,f)&&Object.defineProperty(o,f,{enumerable:!0,get:l[f]})},i.o=(o,l)=>Object.prototype.hasOwnProperty.call(o,l);var a={};return(()=>{i.d(a,{default:()=>J});const o=H=>!!H&&typeof H=="object"&&!Array.isArray(H);function l(H,...B){if(!B.length)return H;const z=B.shift();return z!==void 0&&o(H)&&o(z)?(H=Object.assign({},H),Object.keys(z).forEach(F=>{const M=H[F],k=z[F];Array.isArray(M)&&Array.isArray(k)?H[F]=k:o(M)&&o(k)?H[F]=l(Object.assign({},M),k):H[F]=k}),l(H,...B)):H}function f(H,B){const z=document.createElement("a");z.download=B,z.href=H,document.body.appendChild(z),z.click(),document.body.removeChild(z)}const c={L:.07,M:.15,Q:.25,H:.3};class h{constructor({svg:B,type:z,window:F}){this._svg=B,this._type=z,this._window=F}draw(B,z,F,M){let k;switch(this._type){case"dots":k=this._drawDot;break;case"classy":k=this._drawClassy;break;case"classy-rounded":k=this._drawClassyRounded;break;case"rounded":k=this._drawRounded;break;case"extra-rounded":k=this._drawExtraRounded;break;default:k=this._drawSquare}k.call(this,{x:B,y:z,size:F,getNeighbor:M})}_rotateFigure({x:B,y:z,size:F,rotation:M=0,draw:k}){var te;const Z=B+F/2,oe=z+F/2;k(),(te=this._element)===null||te===void 0||te.setAttribute("transform",`rotate(${180*M/Math.PI},${Z},${oe})`)}_basicDot(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(F+z/2)),this._element.setAttribute("cy",String(M+z/2)),this._element.setAttribute("r",String(z/2))}}))}_basicSquare(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(F)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(z)),this._element.setAttribute("height",String(z))}}))}_basicSideRounded(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${z}h `+z/2+`a ${z/2} ${z/2}, 0, 0, 0, 0 ${-z}`)}}))}_basicCornerRounded(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${z}h ${z}v `+-z/2+`a ${z/2} ${z/2}, 0, 0, 0, ${-z/2} ${-z/2}`)}}))}_basicCornerExtraRounded(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${z}h ${z}a ${z} ${z}, 0, 0, 0, ${-z} ${-z}`)}}))}_basicCornersRounded(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v `+z/2+`a ${z/2} ${z/2}, 0, 0, 0, ${z/2} ${z/2}h `+z/2+"v "+-z/2+`a ${z/2} ${z/2}, 0, 0, 0, ${-z/2} ${-z/2}`)}}))}_drawDot({x:B,y:z,size:F}){this._basicDot({x:B,y:z,size:F,rotation:0})}_drawSquare({x:B,y:z,size:F}){this._basicSquare({x:B,y:z,size:F,rotation:0})}_drawRounded({x:B,y:z,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,te=M?+M(1,0):0,Z=M?+M(0,-1):0,oe=M?+M(0,1):0,he=k+te+Z+oe;if(he!==0)if(he>2||k&&te||Z&&oe)this._basicSquare({x:B,y:z,size:F,rotation:0});else{if(he===2){let de=0;return k&&Z?de=Math.PI/2:Z&&te?de=Math.PI:te&&oe&&(de=-Math.PI/2),void this._basicCornerRounded({x:B,y:z,size:F,rotation:de})}if(he===1){let de=0;return Z?de=Math.PI/2:te?de=Math.PI:oe&&(de=-Math.PI/2),void this._basicSideRounded({x:B,y:z,size:F,rotation:de})}}else this._basicDot({x:B,y:z,size:F,rotation:0})}_drawExtraRounded({x:B,y:z,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,te=M?+M(1,0):0,Z=M?+M(0,-1):0,oe=M?+M(0,1):0,he=k+te+Z+oe;if(he!==0)if(he>2||k&&te||Z&&oe)this._basicSquare({x:B,y:z,size:F,rotation:0});else{if(he===2){let de=0;return k&&Z?de=Math.PI/2:Z&&te?de=Math.PI:te&&oe&&(de=-Math.PI/2),void this._basicCornerExtraRounded({x:B,y:z,size:F,rotation:de})}if(he===1){let de=0;return Z?de=Math.PI/2:te?de=Math.PI:oe&&(de=-Math.PI/2),void this._basicSideRounded({x:B,y:z,size:F,rotation:de})}}else this._basicDot({x:B,y:z,size:F,rotation:0})}_drawClassy({x:B,y:z,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,te=M?+M(1,0):0,Z=M?+M(0,-1):0,oe=M?+M(0,1):0;k+te+Z+oe!==0?k||Z?te||oe?this._basicSquare({x:B,y:z,size:F,rotation:0}):this._basicCornerRounded({x:B,y:z,size:F,rotation:Math.PI/2}):this._basicCornerRounded({x:B,y:z,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:B,y:z,size:F,rotation:Math.PI/2})}_drawClassyRounded({x:B,y:z,size:F,getNeighbor:M}){const k=M?+M(-1,0):0,te=M?+M(1,0):0,Z=M?+M(0,-1):0,oe=M?+M(0,1):0;k+te+Z+oe!==0?k||Z?te||oe?this._basicSquare({x:B,y:z,size:F,rotation:0}):this._basicCornerExtraRounded({x:B,y:z,size:F,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:B,y:z,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:B,y:z,size:F,rotation:Math.PI/2})}}const m={dot:"dot",square:"square",extraRounded:"extra-rounded"},g=Object.values(m);class x{constructor({svg:B,type:z,window:F}){this._svg=B,this._type=z,this._window=F}draw(B,z,F,M){let k;switch(this._type){case m.square:k=this._drawSquare;break;case m.extraRounded:k=this._drawExtraRounded;break;default:k=this._drawDot}k.call(this,{x:B,y:z,size:F,rotation:M})}_rotateFigure({x:B,y:z,size:F,rotation:M=0,draw:k}){var te;const Z=B+F/2,oe=z+F/2;k(),(te=this._element)===null||te===void 0||te.setAttribute("transform",`rotate(${180*M/Math.PI},${Z},${oe})`)}_basicDot(B){const{size:z,x:F,y:M}=B,k=z/7;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${F+z/2} ${M}a ${z/2} ${z/2} 0 1 0 0.1 0zm 0 ${k}a ${z/2-k} ${z/2-k} 0 1 1 -0.1 0Z`)}}))}_basicSquare(B){const{size:z,x:F,y:M}=B,k=z/7;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${F} ${M}v ${z}h ${z}v `+-z+`zM ${F+k} ${M+k}h `+(z-2*k)+"v "+(z-2*k)+"h "+(2*k-z)+"z")}}))}_basicExtraRounded(B){const{size:z,x:F,y:M}=B,k=z/7;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${F} ${M+2.5*k}v `+2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*k} ${2.5*k}h `+2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*k} ${2.5*-k}v `+-2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*-k} ${2.5*-k}h `+-2*k+`a ${2.5*k} ${2.5*k}, 0, 0, 0, ${2.5*-k} ${2.5*k}M ${F+2.5*k} ${M+k}h `+2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*k} ${1.5*k}v `+2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*-k} ${1.5*k}h `+-2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*-k} ${1.5*-k}v `+-2*k+`a ${1.5*k} ${1.5*k}, 0, 0, 1, ${1.5*k} ${1.5*-k}`)}}))}_drawDot({x:B,y:z,size:F,rotation:M}){this._basicDot({x:B,y:z,size:F,rotation:M})}_drawSquare({x:B,y:z,size:F,rotation:M}){this._basicSquare({x:B,y:z,size:F,rotation:M})}_drawExtraRounded({x:B,y:z,size:F,rotation:M}){this._basicExtraRounded({x:B,y:z,size:F,rotation:M})}}const _={dot:"dot",square:"square"},w=Object.values(_);class S{constructor({svg:B,type:z,window:F}){this._svg=B,this._type=z,this._window=F}draw(B,z,F,M){let k;k=this._type===_.square?this._drawSquare:this._drawDot,k.call(this,{x:B,y:z,size:F,rotation:M})}_rotateFigure({x:B,y:z,size:F,rotation:M=0,draw:k}){var te;const Z=B+F/2,oe=z+F/2;k(),(te=this._element)===null||te===void 0||te.setAttribute("transform",`rotate(${180*M/Math.PI},${Z},${oe})`)}_basicDot(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(F+z/2)),this._element.setAttribute("cy",String(M+z/2)),this._element.setAttribute("r",String(z/2))}}))}_basicSquare(B){const{size:z,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(F)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(z)),this._element.setAttribute("height",String(z))}}))}_drawDot({x:B,y:z,size:F,rotation:M}){this._basicDot({x:B,y:z,size:F,rotation:M})}_drawSquare({x:B,y:z,size:F,rotation:M}){this._basicSquare({x:B,y:z,size:F,rotation:M})}}const O="circle",C=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],T=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class j{constructor(B,z){this._roundSize=F=>this._options.dotsOptions.roundSize?Math.floor(F):F,this._window=z,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(B.width)),this._element.setAttribute("height",String(B.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),B.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${B.width} ${B.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=B.image,this._instanceId=j.instanceCount++,this._options=B}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(B){const z=B.getModuleCount(),F=Math.min(this._options.width,this._options.height)-2*this._options.margin,M=this._options.shape===O?F/Math.sqrt(2):F,k=this._roundSize(M/z);let te={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=B,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Z,qrOptions:oe}=this._options,he=Z.imageSize*c[oe.errorCorrectionLevel],de=Math.floor(he*z*z);te=function({originalHeight:be,originalWidth:$,maxHiddenDots:q,maxHiddenAxisDots:ee,dotSize:fe}){const X={x:0,y:0},ue={x:0,y:0};if(be<=0||$<=0||q<=0||fe<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const pe=be/$;return X.x=Math.floor(Math.sqrt(q/pe)),X.x<=0&&(X.x=1),ee&&ee<X.x&&(X.x=ee),X.x%2==0&&X.x--,ue.x=X.x*fe,X.y=1+2*Math.ceil((X.x*pe-1)/2),ue.y=Math.round(ue.x*pe),(X.y*X.x>q||ee&&ee<X.y)&&(ee&&ee<X.y?(X.y=ee,X.y%2==0&&X.x--):X.y-=2,ue.y=X.y*fe,X.x=1+2*Math.ceil((X.y/pe-1)/2),ue.x=Math.round(ue.y/pe)),{height:ue.y,width:ue.x,hideYDots:X.y,hideXDots:X.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:de,maxHiddenAxisDots:z-14,dotSize:k})}this.drawBackground(),this.drawDots((Z,oe)=>{var he,de,be,$,q,ee;return!(this._options.imageOptions.hideBackgroundDots&&Z>=(z-te.hideYDots)/2&&Z<(z+te.hideYDots)/2&&oe>=(z-te.hideXDots)/2&&oe<(z+te.hideXDots)/2||!((he=C[Z])===null||he===void 0)&&he[oe]||!((de=C[Z-z+7])===null||de===void 0)&&de[oe]||!((be=C[Z])===null||be===void 0)&&be[oe-z+7]||!(($=T[Z])===null||$===void 0)&&$[oe]||!((q=T[Z-z+7])===null||q===void 0)&&q[oe]||!((ee=T[Z])===null||ee===void 0)&&ee[oe-z+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:te.width,height:te.height,count:z,dotSize:k})}drawBackground(){var B,z,F;const M=this._element,k=this._options;if(M){const te=(B=k.backgroundOptions)===null||B===void 0?void 0:B.gradient,Z=(z=k.backgroundOptions)===null||z===void 0?void 0:z.color;let oe=k.height,he=k.width;if(te||Z){const de=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((F=k.backgroundOptions)===null||F===void 0)&&F.round&&(oe=he=Math.min(k.width,k.height),de.setAttribute("rx",String(oe/2*k.backgroundOptions.round))),de.setAttribute("x",String(this._roundSize((k.width-he)/2))),de.setAttribute("y",String(this._roundSize((k.height-oe)/2))),de.setAttribute("width",String(he)),de.setAttribute("height",String(oe)),this._backgroundClipPath.appendChild(de),this._createColor({options:te,color:Z,additionalRotation:0,x:0,y:0,height:k.height,width:k.width,name:`background-color-${this._instanceId}`})}}}drawDots(B){var z,F;if(!this._qr)throw"QR code is not defined";const M=this._options,k=this._qr.getModuleCount();if(k>M.width||k>M.height)throw"The canvas is too small.";const te=Math.min(M.width,M.height)-2*M.margin,Z=M.shape===O?te/Math.sqrt(2):te,oe=this._roundSize(Z/k),he=this._roundSize((M.width-k*oe)/2),de=this._roundSize((M.height-k*oe)/2),be=new h({svg:this._element,type:M.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(z=M.dotsOptions)===null||z===void 0?void 0:z.gradient,color:M.dotsOptions.color,additionalRotation:0,x:0,y:0,height:M.height,width:M.width,name:`dot-color-${this._instanceId}`});for(let $=0;$<k;$++)for(let q=0;q<k;q++)B&&!B($,q)||!((F=this._qr)===null||F===void 0)&&F.isDark($,q)&&(be.draw(he+q*oe,de+$*oe,oe,(ee,fe)=>!(q+ee<0||$+fe<0||q+ee>=k||$+fe>=k)&&!(B&&!B($+fe,q+ee))&&!!this._qr&&this._qr.isDark($+fe,q+ee)),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element));if(M.shape===O){const $=this._roundSize((te/oe-k)/2),q=k+2*$,ee=he-$*oe,fe=de-$*oe,X=[],ue=this._roundSize(q/2);for(let pe=0;pe<q;pe++){X[pe]=[];for(let ye=0;ye<q;ye++)pe>=$-1&&pe<=q-$&&ye>=$-1&&ye<=q-$||Math.sqrt((pe-ue)*(pe-ue)+(ye-ue)*(ye-ue))>ue?X[pe][ye]=0:X[pe][ye]=this._qr.isDark(ye-2*$<0?ye:ye>=k?ye-2*$:ye-$,pe-2*$<0?pe:pe>=k?pe-2*$:pe-$)?1:0}for(let pe=0;pe<q;pe++)for(let ye=0;ye<q;ye++)X[pe][ye]&&(be.draw(ee+ye*oe,fe+pe*oe,oe,(me,we)=>{var Te;return!!(!((Te=X[pe+we])===null||Te===void 0)&&Te[ye+me])}),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const B=this._element,z=this._options;if(!B)throw"Element code is not defined";const F=this._qr.getModuleCount(),M=Math.min(z.width,z.height)-2*z.margin,k=z.shape===O?M/Math.sqrt(2):M,te=this._roundSize(k/F),Z=7*te,oe=3*te,he=this._roundSize((z.width-F*te)/2),de=this._roundSize((z.height-F*te)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([be,$,q])=>{var ee,fe,X,ue,pe,ye,me,we,Te,Le,ze,$e,Fe,_e;const Se=he+be*te*(F-7),De=de+$*te*(F-7);let Me=this._dotsClipPath,je=this._dotsClipPath;if((!((ee=z.cornersSquareOptions)===null||ee===void 0)&&ee.gradient||!((fe=z.cornersSquareOptions)===null||fe===void 0)&&fe.color)&&(Me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Me.setAttribute("id",`clip-path-corners-square-color-${be}-${$}-${this._instanceId}`),this._defs.appendChild(Me),this._cornersSquareClipPath=this._cornersDotClipPath=je=Me,this._createColor({options:(X=z.cornersSquareOptions)===null||X===void 0?void 0:X.gradient,color:(ue=z.cornersSquareOptions)===null||ue===void 0?void 0:ue.color,additionalRotation:q,x:Se,y:De,height:Z,width:Z,name:`corners-square-color-${be}-${$}-${this._instanceId}`})),((pe=z.cornersSquareOptions)===null||pe===void 0?void 0:pe.type)&&g.includes(z.cornersSquareOptions.type)){const qe=new x({svg:this._element,type:z.cornersSquareOptions.type,window:this._window});qe.draw(Se,De,Z,q),qe._element&&Me&&Me.appendChild(qe._element)}else{const qe=new h({svg:this._element,type:((ye=z.cornersSquareOptions)===null||ye===void 0?void 0:ye.type)||z.dotsOptions.type,window:this._window});for(let Ge=0;Ge<C.length;Ge++)for(let Qe=0;Qe<C[Ge].length;Qe++)!((me=C[Ge])===null||me===void 0)&&me[Qe]&&(qe.draw(Se+Qe*te,De+Ge*te,te,(ct,ot)=>{var _t;return!!(!((_t=C[Ge+ot])===null||_t===void 0)&&_t[Qe+ct])}),qe._element&&Me&&Me.appendChild(qe._element))}if((!((we=z.cornersDotOptions)===null||we===void 0)&&we.gradient||!((Te=z.cornersDotOptions)===null||Te===void 0)&&Te.color)&&(je=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),je.setAttribute("id",`clip-path-corners-dot-color-${be}-${$}-${this._instanceId}`),this._defs.appendChild(je),this._cornersDotClipPath=je,this._createColor({options:(Le=z.cornersDotOptions)===null||Le===void 0?void 0:Le.gradient,color:(ze=z.cornersDotOptions)===null||ze===void 0?void 0:ze.color,additionalRotation:q,x:Se+2*te,y:De+2*te,height:oe,width:oe,name:`corners-dot-color-${be}-${$}-${this._instanceId}`})),(($e=z.cornersDotOptions)===null||$e===void 0?void 0:$e.type)&&w.includes(z.cornersDotOptions.type)){const qe=new S({svg:this._element,type:z.cornersDotOptions.type,window:this._window});qe.draw(Se+2*te,De+2*te,oe,q),qe._element&&je&&je.appendChild(qe._element)}else{const qe=new h({svg:this._element,type:((Fe=z.cornersDotOptions)===null||Fe===void 0?void 0:Fe.type)||z.dotsOptions.type,window:this._window});for(let Ge=0;Ge<T.length;Ge++)for(let Qe=0;Qe<T[Ge].length;Qe++)!((_e=T[Ge])===null||_e===void 0)&&_e[Qe]&&(qe.draw(Se+Qe*te,De+Ge*te,te,(ct,ot)=>{var _t;return!!(!((_t=T[Ge+ot])===null||_t===void 0)&&_t[Qe+ct])}),qe._element&&je&&je.appendChild(qe._element))}})}loadImage(){return new Promise((B,z)=>{var F;const M=this._options;if(!M.image)return z("Image is not defined");if(!((F=M.nodeCanvas)===null||F===void 0)&&F.loadImage)M.nodeCanvas.loadImage(M.image).then(k=>{var te,Z;if(this._image=k,this._options.imageOptions.saveAsBlob){const oe=(te=M.nodeCanvas)===null||te===void 0?void 0:te.createCanvas(this._image.width,this._image.height);(Z=oe==null?void 0:oe.getContext("2d"))===null||Z===void 0||Z.drawImage(k,0,0),this._imageUri=oe==null?void 0:oe.toDataURL()}B()}).catch(z);else{const k=new this._window.Image;typeof M.imageOptions.crossOrigin=="string"&&(k.crossOrigin=M.imageOptions.crossOrigin),this._image=k,k.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(te,Z){return new Promise(oe=>{const he=new Z.XMLHttpRequest;he.onload=function(){const de=new Z.FileReader;de.onloadend=function(){oe(de.result)},de.readAsDataURL(he.response)},he.open("GET",te),he.responseType="blob",he.send()})}(M.image||"",this._window)),B()},k.src=M.image}})}async drawImage({width:B,height:z,count:F,dotSize:M}){const k=this._options,te=this._roundSize((k.width-F*M)/2),Z=this._roundSize((k.height-F*M)/2),oe=te+this._roundSize(k.imageOptions.margin+(F*M-B)/2),he=Z+this._roundSize(k.imageOptions.margin+(F*M-z)/2),de=B-2*k.imageOptions.margin,be=z-2*k.imageOptions.margin,$=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");$.setAttribute("href",this._imageUri||""),$.setAttribute("xlink:href",this._imageUri||""),$.setAttribute("x",String(oe)),$.setAttribute("y",String(he)),$.setAttribute("width",`${de}px`),$.setAttribute("height",`${be}px`),this._element.appendChild($)}_createColor({options:B,color:z,additionalRotation:F,x:M,y:k,height:te,width:Z,name:oe}){const he=Z>te?Z:te,de=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(de.setAttribute("x",String(M)),de.setAttribute("y",String(k)),de.setAttribute("height",String(te)),de.setAttribute("width",String(Z)),de.setAttribute("clip-path",`url('#clip-path-${oe}')`),B){let be;if(B.type==="radial")be=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),be.setAttribute("id",oe),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("fx",String(M+Z/2)),be.setAttribute("fy",String(k+te/2)),be.setAttribute("cx",String(M+Z/2)),be.setAttribute("cy",String(k+te/2)),be.setAttribute("r",String(he/2));else{const $=((B.rotation||0)+F)%(2*Math.PI),q=($+2*Math.PI)%(2*Math.PI);let ee=M+Z/2,fe=k+te/2,X=M+Z/2,ue=k+te/2;q>=0&&q<=.25*Math.PI||q>1.75*Math.PI&&q<=2*Math.PI?(ee-=Z/2,fe-=te/2*Math.tan($),X+=Z/2,ue+=te/2*Math.tan($)):q>.25*Math.PI&&q<=.75*Math.PI?(fe-=te/2,ee-=Z/2/Math.tan($),ue+=te/2,X+=Z/2/Math.tan($)):q>.75*Math.PI&&q<=1.25*Math.PI?(ee+=Z/2,fe+=te/2*Math.tan($),X-=Z/2,ue-=te/2*Math.tan($)):q>1.25*Math.PI&&q<=1.75*Math.PI&&(fe+=te/2,ee+=Z/2/Math.tan($),ue-=te/2,X-=Z/2/Math.tan($)),be=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),be.setAttribute("id",oe),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("x1",String(Math.round(ee))),be.setAttribute("y1",String(Math.round(fe))),be.setAttribute("x2",String(Math.round(X))),be.setAttribute("y2",String(Math.round(ue)))}B.colorStops.forEach(({offset:$,color:q})=>{const ee=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");ee.setAttribute("offset",100*$+"%"),ee.setAttribute("stop-color",q),be.appendChild(ee)}),de.setAttribute("fill",`url('#${oe}')`),this._defs.appendChild(be)}else z&&de.setAttribute("fill",z);this._element.appendChild(de)}}j.instanceCount=0;const P=j,R="canvas",I={};for(let H=0;H<=40;H++)I[H]=H;const V={type:R,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:I[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function G(H){const B=Object.assign({},H);if(!B.colorStops||!B.colorStops.length)throw"Field 'colorStops' is required in gradient";return B.rotation?B.rotation=Number(B.rotation):B.rotation=0,B.colorStops=B.colorStops.map(z=>Object.assign(Object.assign({},z),{offset:Number(z.offset)})),B}function W(H){const B=Object.assign({},H);return B.width=Number(B.width),B.height=Number(B.height),B.margin=Number(B.margin),B.imageOptions=Object.assign(Object.assign({},B.imageOptions),{hideBackgroundDots:!!B.imageOptions.hideBackgroundDots,imageSize:Number(B.imageOptions.imageSize),margin:Number(B.imageOptions.margin)}),B.margin>Math.min(B.width,B.height)&&(B.margin=Math.min(B.width,B.height)),B.dotsOptions=Object.assign({},B.dotsOptions),B.dotsOptions.gradient&&(B.dotsOptions.gradient=G(B.dotsOptions.gradient)),B.cornersSquareOptions&&(B.cornersSquareOptions=Object.assign({},B.cornersSquareOptions),B.cornersSquareOptions.gradient&&(B.cornersSquareOptions.gradient=G(B.cornersSquareOptions.gradient))),B.cornersDotOptions&&(B.cornersDotOptions=Object.assign({},B.cornersDotOptions),B.cornersDotOptions.gradient&&(B.cornersDotOptions.gradient=G(B.cornersDotOptions.gradient))),B.backgroundOptions&&(B.backgroundOptions=Object.assign({},B.backgroundOptions),B.backgroundOptions.gradient&&(B.backgroundOptions.gradient=G(B.backgroundOptions.gradient))),B}var K=i(873),ne=i.n(K);function le(H){if(!H)throw new Error("Extension must be defined");H[0]==="."&&(H=H.substring(1));const B={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[H.toLowerCase()];if(!B)throw new Error(`Extension "${H}" is not supported`);return B}class Q{constructor(B){B!=null&&B.jsdom?this._window=new B.jsdom("",{resources:"usable"}).window:this._window=window,this._options=B?W(l(V,B)):V,this.update()}static _clearContainer(B){B&&(B.innerHTML="")}_setupSvg(){if(!this._qr)return;const B=new P(this._options,this._window);this._svg=B.getElement(),this._svgDrawingPromise=B.drawQR(this._qr).then(()=>{var z;this._svg&&((z=this._extension)===null||z===void 0||z.call(this,B.getElement(),this._options))})}_setupCanvas(){var B,z;this._qr&&(!((B=this._options.nodeCanvas)===null||B===void 0)&&B.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(z=this._svgDrawingPromise)===null||z===void 0?void 0:z.then(()=>{var F;if(!this._svg)return;const M=this._svg,k=new this._window.XMLSerializer().serializeToString(M),te=btoa(k),Z=`data:${le("svg")};base64,${te}`;if(!((F=this._options.nodeCanvas)===null||F===void 0)&&F.loadImage)return this._options.nodeCanvas.loadImage(Z).then(oe=>{var he,de;oe.width=this._options.width,oe.height=this._options.height,(de=(he=this._nodeCanvas)===null||he===void 0?void 0:he.getContext("2d"))===null||de===void 0||de.drawImage(oe,0,0)});{const oe=new this._window.Image;return new Promise(he=>{oe.onload=()=>{var de,be;(be=(de=this._domCanvas)===null||de===void 0?void 0:de.getContext("2d"))===null||be===void 0||be.drawImage(oe,0,0),he()},oe.src=Z})}}))}async _getElement(B="png"){if(!this._qr)throw"QR code is empty";return B.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(B){Q._clearContainer(this._container),this._options=B?W(l(this._options,B)):this._options,this._options.data&&(this._qr=ne()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(z){switch(!0){case/^[0-9]*$/.test(z):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(z):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===R?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(B){if(B){if(typeof B.appendChild!="function")throw"Container should be a single DOM node";this._options.type===R?this._domCanvas&&B.appendChild(this._domCanvas):this._svg&&B.appendChild(this._svg),this._container=B}}applyExtension(B){if(!B)throw"Extension function should be defined.";this._extension=B,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(B="png"){if(!this._qr)throw"QR code is empty";const z=await this._getElement(B),F=le(B);if(!z)return null;if(B.toLowerCase()==="svg"){const M=`<?xml version="1.0" standalone="no"?>\r
|
||
${new this._window.XMLSerializer().serializeToString(z)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(M):new Blob([M],{type:F})}return new Promise(M=>{const k=z;if("toBuffer"in k)if(F==="image/png")M(k.toBuffer(F));else if(F==="image/jpeg")M(k.toBuffer(F));else{if(F!=="application/pdf")throw Error("Unsupported extension");M(k.toBuffer(F))}else"toBlob"in k&&k.toBlob(M,F,1)})}async download(B){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let z="png",F="qr";typeof B=="string"?(z=B,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof B=="object"&&B!==null&&(B.name&&(F=B.name),B.extension&&(z=B.extension));const M=await this._getElement(z);if(M)if(z.toLowerCase()==="svg"){let k=new XMLSerializer().serializeToString(M);k=`<?xml version="1.0" standalone="no"?>\r
|
||
`+k,f(`data:${le(z)};charset=utf-8,${encodeURIComponent(k)}`,`${F}.svg`)}else f(M.toDataURL(le(z)),`${F}.${z}`)}}const J=Q})(),a.default})())}(Ry)),Ry.exports}var Ife=kfe();const $fe=Lt(Ife);/*!
|
||
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const Bfe={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Ufe={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"]},Du={Enter:"Enter",Escape:"Escape",Backspace:"Backspace",UpArrow:"ArrowUp",DownArrow:"ArrowDown",PageDown:"PageDown",PageUp:"PageUp"},_P=Symbol("Create new tag"),Sz=Symbol("No options"),Af=()=>{},ur=ae.createContext(void 0);function bL(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function zfe(e){return e.selectionStart===0&&e.selectionEnd===0}function Ffe(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function n_(e){return`${e}-label`}function qfe(e){return`${e}-combobox`}function Vfe(e){return`${e}-input`}function Oz(e){return`${e}-listbox`}function Ez(e,t){return`${e}-option-${Xfe(t)}`}function Hfe(e,t){if((e==null?void 0:e.value)===_P&&e.disabled===!1)return{value:t,label:t}}function Wfe(e){const t=Hfe(e.activeOption,e.value)||e.activeOption||tde(e.value,e.options);return t&&!t.disabled?t:void 0}function Gfe(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Yfe=/%value%/;function _b(e,t){return e.replace(Yfe,t)}function Kfe(e,t){const n=Tz(t),r=e.match(n);if(r){const i=r[0],a=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,a),e.slice(a)]}}const Zfe=/\s+/g;function PT(e){return`${String(e.value)}-${e.label}`}function Xfe(e){return PT(e).replace(Zfe,"_")}function RT(e,t){return t.findIndex(({value:n})=>n===e.value)}const Qfe=/[-\\^$*+?.()|[\]{}]/g;function Cz(e){return e.replace(Qfe,"\\$&")}function Tz(e){return new RegExp(Cz(e),"i")}function Jfe(e){return new RegExp(`^${Cz(e)}$`,"i")}function ede(e,t){if(e){const n=Tz(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function tde(e,t){const n=Jfe(e);return t.find(r=>n.test(r.label))||null}const nde={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function rde({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:a,inputRef:o,isDisabled:l,isInvalid:f,managerRef:c}=U.useContext(ur),h=U.useMemo(()=>{const _=W=>{const K=W.currentTarget.value;c.current.updateInputValue(K),document.activeElement===o.current&&c.current.listBoxExpand(K)},w=()=>{c.current.listBoxExpand()},S=W=>{var K;((K=a.current)==null?void 0:K.contains(W.relatedTarget))===!1&&c.current.listBoxCollapse()},O=()=>{c.current.listBoxExpand()},C=W=>{const{activeIndex:K,isExpanded:ne}=c.current.state;ne?(W.preventDefault(),c.current.updateActiveIndex(K+1)):(Ffe(W.currentTarget)||W.altKey)&&(W.preventDefault(),c.current.listBoxExpand())},T=W=>{const{activeIndex:K,isExpanded:ne}=c.current.state;ne?(W.preventDefault(),c.current.updateActiveIndex(K-1)):zfe(W.currentTarget)&&(W.preventDefault(),c.current.listBoxExpand())},j=W=>{const{isExpanded:K,options:ne}=c.current.state;K&&(W.preventDefault(),c.current.updateActiveIndex(ne.length-1))},P=W=>{c.current.state.isExpanded&&(W.preventDefault(),c.current.updateActiveIndex(0))},R=()=>{c.current.state.isExpanded?c.current.listBoxCollapse():c.current.updateInputValue("")},I=()=>{if(e){const{value:W,selected:K}=c.current.state,ne=K[K.length-1];W===""&&ne&&c.current.selectTag(ne)}},V=W=>{c.current.state.isExpanded&&(W.preventDefault(),c.current.selectTag())};return{onBlur:S,onChange:_,onClick:O,onFocus:w,onKeyDown:W=>{if(W.key===Du.UpArrow)return T(W);if(W.key===Du.DownArrow)return C(W);if(W.key===Du.PageUp)return P(W);if(W.key===Du.PageDown)return j(W);if(W.key===Du.Escape)return R();if(W.key===Du.Backspace)return I();if(r.includes(W.key))return V(W)}}},[e,a,r,o,c]),{activeOption:m,isExpanded:g,value:x}=c.current.state;return{...nde,"aria-autocomplete":"list","aria-activedescendant":m?Ez(i,m):void 0,"aria-controls":Oz(i),"aria-describedby":t||void 0,"aria-disabled":l,"aria-errormessage":f&&n||void 0,"aria-invalid":f,"aria-labelledby":n_(i),"aria-expanded":g,id:Vfe(i),onBlur:l?Af:h.onBlur,onChange:l?Af:h.onChange,onClick:l?Af:h.onClick,onFocus:l?Af:h.onFocus,onKeyDown:l?Af:h.onKeyDown,ref:o,role:"combobox",type:"text",value:x}}const ide={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},ade=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function ode({allowResize:e=!0,text:t}){const n=U.useRef(null),{inputRef:r}=U.useContext(ur),[i,a]=U.useState(null);return U.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const o=window.getComputedStyle(r.current);ade.forEach(l=>{const f=o.getPropertyValue(l);n.current.style.setProperty(l,f)})}},[e,r,n]),U.useLayoutEffect(()=>{var o;if(e){const l=Math.ceil(((o=n.current)==null?void 0:o.scrollWidth)??0)+2;i!==l&&a(l)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:ide}}}function sde(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=U.useContext(ur),i=r.current.state.activeIndex===-1,a=U.useCallback(o=>{var l;o.target!==t.current&&((l=t.current)==null||l.focus({preventScroll:!0}))},[t]);return U.useEffect(()=>{var o;i&&((o=n.current)==null||o.scrollTo({top:0}))},[n,i]),{"aria-labelledby":n_(e),id:Oz(e),onFocus:a,ref:n,role:"listbox",tabIndex:-1}}function lde({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionPosition:r,newOptionText:i,noOptionsText:a,onAdd:o,onDelete:l,onCollapse:f,onExpand:c,onInput:h,onShouldCollapse:m,onShouldExpand:g,onValidate:x,selected:_,suggestions:w,suggestionsTransform:S}){const O=U.useRef(),[C,T]=U.useState(null),[j,P]=U.useState(!1),[R,I]=U.useState(""),V=U.useMemo(()=>{const J=S(R,w);return R&&(t&&J[r==="first"?"unshift":"push"]({disabled:x?!x(R):!1,label:i,value:_P}),J.length===0&&J.push({disabled:!0,label:a,value:Sz})),J},[t,r,i,a,x,w,S,R]),G=C?RT(C,V):-1,W=e?Math.max(G,0):G,K=V[W],ne={activeIndex:W,activeOption:K,isExpanded:j,options:V,selected:_,value:R},le={tagsAdded:O.current?bL(_,O.current.state.selected):[],tagsDeleted:O.current?bL(O.current.state.selected,_):[]},Q={listBoxCollapse(J){j&&(!m||m(J??ne.value))&&(P(!1),T(null),f==null||f())},listBoxExpand(J){j||(!g||g(J??ne.value))&&(P(!0),T(V[W]),c==null||c())},updateActiveIndex(J){const H=Gfe(J,V.length,e?0:-1);T(V[H])},updateInputValue(J){R!==J&&(I(J),h==null||h(J))},selectTag(J){if(J??(J=Wfe(ne)),J){const H=RT(J,ne.selected);H>-1?l(H):o(J),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return O.current={...Q,flags:le,state:ne},O}function ude(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=U.useContext(ur),a=U.useRef(null),o=i.current.state.options[e],l=e===i.current.state.activeIndex,f=o.disabled??!1,c=RT(o,i.current.state.selected)>-1,h=U.useCallback(()=>{var g;i.current.selectTag(),(g=n.current)==null||g.focus()},[n,i]),m=U.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return dde(a,r,l),{option:{...o,active:l,disabled:f,index:e,selected:c},optionProps:{"aria-disabled":f,"aria-posinset":e+1,"aria-selected":f?void 0:c,"aria-setsize":i.current.state.options.length,id:Ez(t,o),onClick:h,onMouseDown:m,ref:a,role:"option",tabIndex:-1}}}function cde({inputRef:e,managerRef:t}){return U.useRef({input:{blur(){var r;(r=e.current)==null||r.blur()},focus(){var r;(r=e.current)==null||r.focus()},get value(){return t.current.state.value},set value(r){typeof r!="string"&&(r=String(r)),t.current.updateInputValue(r)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(r){t.current.selectTag(r)}}).current}function fde({onBlur:e,onFocus:t}){const[n,r]=U.useState(!1),{id:i,inputRef:a,rootRef:o}=U.useContext(ur),l=U.useMemo(()=>({"aria-describedby":n_(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var f;(f=o.current)!=null&&f.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var f;document.activeElement===o.current&&((f=a.current)==null||f.focus())},ref:o,tabIndex:-1}),[a,i,e,t,o]);return{isActive:n,rootProps:l}}function dde(e,t,n){U.useEffect(()=>{var r,i,a,o;if(n){const l=(r=e.current)==null?void 0:r.offsetHeight,f=(i=e.current)==null?void 0:i.offsetTop,c=(a=t.current)==null?void 0:a.offsetHeight,h=(o=t.current)==null?void 0:o.scrollTop;f<h&&t.current.scrollTo(0,f),f+l>h+c&&t.current.scrollTo(0,f+l-c)}},[n,t,e])}function hde(e,t){const{isDisabled:n,managerRef:r}=U.useContext(ur),i=r.current.state.selected[e],a=U.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:_b(t,i.label),onClick:n?Af:a}}}function pde({label:e}){var t;const{rootRef:n,managerRef:r}=U.useContext(ur),i=U.useRef(),a=r.current.flags.tagsDeleted[0],o=(t=i.current)==null?void 0:t.contains(document.activeElement);return U.useLayoutEffect(()=>{var l,f;if(a){const c=(l=i.current)==null?void 0:l.contains(document.activeElement);o&&!c&&((f=n.current)==null||f.focus({preventScroll:!0}))}},[o,i,n,a]),{ref:i,"aria-label":e}}const mde={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function vde({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=U.useContext(ur),r=U.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(_b(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(_b(t,i.label))}),ae.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:mde},r.current.join(`
|
||
`))}function gde({children:e}){const{classNames:t,comboBoxRef:n,id:r}=U.useContext(ur);return ae.createElement("div",{className:t.comboBox,id:qfe(r),ref:n},e)}const yde=({classNames:e,text:t})=>ae.createElement("mark",{className:e.highlight},t);function bde({option:e,query:t,render:n=yde}){const{classNames:r}=U.useContext(ur);if(e.value===_P||e.value===Sz)return ae.createElement(ae.Fragment,null,_b(e.label,t));if(t){const i=Kfe(e.label,t);if(i){const a=n({text:i[1],classNames:r});return ae.createElement(ae.Fragment,null,i[0],a,i[2])}}return ae.createElement(ae.Fragment,null,e.label)}const _de=ae.memo(bde),xde=({classNames:e,inputWidth:t,...n})=>ae.createElement("input",{className:e.input,style:{width:t},...n});function wde({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:a,render:o=xde}){const{classNames:l}=U.useContext(ur),{value:f,...c}=rde({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),h=f.length<a.length?a:f,{width:m,sizerProps:g}=ode({allowResize:t,text:h});return ae.createElement(ae.Fragment,null,o({classNames:l,inputWidth:m,placeholder:a,value:f,...c}),t?ae.createElement("div",{...g},h):null)}const Sde=({children:e,classNames:t,id:n})=>ae.createElement("div",{className:t.label,id:n},e);function Ode({children:e,render:t=Sde}){const{classNames:n,id:r}=U.useContext(ur);return t({children:e,classNames:n,id:n_(r)})}const Ede=({children:e,classNames:t,...n})=>ae.createElement("div",{className:t.listBox,...n},e);function Cde({children:e,render:t=Ede}){const{classNames:n,managerRef:r}=U.useContext(ur),i=sde();return!r.current.state.isExpanded||ae.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Tde=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),ae.createElement("div",{className:i.join(" "),...r},e)};function Ade({children:e,index:t,render:n=Tde}){const{classNames:r}=U.useContext(ur),{option:i,optionProps:a}=ude(t);return n({classNames:r,children:e,option:i,...a})}const jde=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...a})=>{const o=[t.root];return n&&o.push(t.rootIsActive),r&&o.push(t.rootIsDisabled),i&&o.push(t.rootIsInvalid),ae.createElement("div",{className:o.join(" "),...a},e)};function Pde({children:e,onBlur:t,onFocus:n,render:r=jde}){const{classNames:i,isDisabled:a,isInvalid:o}=U.useContext(ur),{isActive:l,rootProps:f}=fde({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:l,isDisabled:a,isInvalid:o,...f})}const Rde=({classNames:e,tag:t,...n})=>ae.createElement("button",{type:"button",className:e.tag,...n},ae.createElement("span",{className:e.tagName},t.label));function Mde({render:e=Rde,index:t,title:n}){const{classNames:r}=U.useContext(ur),{tag:i,tagProps:a}=hde(t,n);return e({classNames:r,tag:i,...a})}const Nde=({children:e,classNames:t,...n})=>ae.createElement("ul",{className:t.tagList,...n,role:"list"},ae.Children.map(e,r=>{if(ae.isValidElement(r))return ae.createElement("li",{className:t.tagListItem,key:r.key,role:"listitem"},r)}));function Lde({children:e,label:t,render:n=Nde}){const{classNames:r}=U.useContext(ur),i=pde({label:t});return n({classNames:r,children:e,...i})}const Dde={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"},kde=[Du.Enter];function Ide({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:a,ariaErrorMessage:o,ariaDeletedText:l="Removed tag %value%",classNames:f=Dde,collapseOnSelect:c=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:m=kde,id:g="react-tags",isDisabled:x=!1,isInvalid:_=!1,labelText:w="Select tags",newOptionPosition:S="last",newOptionText:O="Add %value%",noOptionsText:C="No options found for %value%",onAdd:T,onBlur:j,onCollapse:P,onDelete:R,onExpand:I,onFocus:V,onInput:G,onShouldCollapse:W,onShouldExpand:K,onValidate:ne,placeholderText:le="Add a tag",renderHighlight:Q,renderInput:J,renderLabel:H,renderListBox:B,renderOption:z,renderRoot:F,renderTag:M,renderTagList:k,selected:te=[],suggestions:Z=[],suggestionsTransform:oe=ede,tagListLabelText:he="Selected tags"},de){const be=U.useRef(null),$=U.useRef(null),q=U.useRef(null),ee=U.useRef(null),fe=lde({activateFirstOption:e,allowNew:n,collapseOnSelect:c,newOptionPosition:S,newOptionText:O,noOptionsText:C,onAdd:T,onDelete:R,onCollapse:P,onExpand:I,onInput:G,onShouldCollapse:W,onShouldExpand:K,onValidate:ne,selected:te,suggestions:Z,suggestionsTransform:oe}),X=cde({inputRef:$,managerRef:fe});return de&&(typeof de=="function"?de(X):de.current=X),ae.createElement(ur.Provider,{value:{classNames:f,comboBoxRef:be,id:g,inputRef:$,isDisabled:x,isInvalid:_,listBoxRef:q,managerRef:fe,rootRef:ee}},ae.createElement(Pde,{onBlur:j,onFocus:V,render:F},ae.createElement(Ode,{render:H},w),ae.createElement(Lde,{render:k,label:he},fe.current.state.selected.map((ue,pe)=>ae.createElement(Mde,{key:PT(ue),index:pe,render:M,title:h}))),ae.createElement(gde,null,ae.createElement(wde,{allowBackspace:t,allowResize:r,ariaDescribedBy:a,ariaErrorMessage:o,delimiterKeys:m,placeholderText:le,render:J}),ae.createElement(Cde,{render:B},fe.current.state.options.map((ue,pe)=>ae.createElement(Ade,{key:PT(ue),index:pe,render:z},ae.createElement(_de,{option:ue,query:fe.current.state.value,render:Q}))))),ae.createElement(vde,{ariaAddedText:i,ariaDeletedText:l})))}const $de=ae.forwardRef(Ide);function Ow(e){return e==null?"":`${e}`}function Bde(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 xP(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 Ude(e={stringFormatter:xP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function zde(e={stringFormatter:xP()}){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 Fde=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function qde(e){var t,n,r;const i=[];let a;for(;a=Fde.exec(e);)i.push((r=(t=a[3])!==null&&t!==void 0?t:(n=a[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:a[0]);return i}function _L(e,t,n){if(t in e){const a=e[t];return a===void 0?n:a}const r=Array.isArray(t)?t:qde(t);let i=e;for(const a of r)if(i=i==null?void 0:i[a],i===void 0)return n;return i}function Az(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function MT(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var xL;(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"})(xL||(xL={}));class Vde{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||xP(),i=zde({stringFormatter:r}),a={header:r,undefined:Ow,boolean:Ow,number:Bde(),bigint:Ow,string:r,symbol:Ude({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},a),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=>_L(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const a=r.value;return{label:r.label||r.value,value:o=>_L(o,a,i)}}if(typeof r.value=="function"){const a=r.label||r.value.name||"",o={label:a,default:i},l=r.value;return{label:a,value(f){const c=l(f,o);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return MT(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(Az,[]),[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 MT(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 jz extends Vde{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,l)=>(Object.keys(l).forEach(f=>{o.includes(f)||o.push(f)}),o),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(Az,[])}processData(t){return MT(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var ar;(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"})(ar||(ar={}));ar.QUOTATION_MARK+"",ar.QUOTATION_MARK,ar.REVERSE_SOLIDUS+"",ar.REVERSE_SOLIDUS,ar.SOLIDUS+"",ar.SOLIDUS,ar.LATIN_SMALL_LETTER_B+"",ar.BACKSPACE,ar.LATIN_SMALL_LETTER_F+"",ar.FORM_FEED,ar.LATIN_SMALL_LETTER_N+"",ar.NEWLINE,ar.LATIN_SMALL_LETTER_R+"",ar.CARRIAGE_RETURN,ar.LATIN_SMALL_LETTER_T+"",ar.TAB;var wL;(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"})(wL||(wL={}));var SL;(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"})(SL||(SL={}));var OL;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(OL||(OL={}));var EL;(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"})(EL||(EL={}));var Ew,CL;function ti(){if(CL)return Ew;CL=1;var e=Array.isArray;return Ew=e,Ew}var Cw,TL;function Pz(){if(TL)return Cw;TL=1;var e=typeof Wg=="object"&&Wg&&Wg.Object===Object&&Wg;return Cw=e,Cw}var Tw,AL;function vo(){if(AL)return Tw;AL=1;var e=Pz(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Tw=n,Tw}var Aw,jL;function cv(){if(jL)return Aw;jL=1;var e=vo(),t=e.Symbol;return Aw=t,Aw}var jw,PL;function Hde(){if(PL)return jw;PL=1;var e=cv(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var l=n.call(o,i),f=o[i];try{o[i]=void 0;var c=!0}catch{}var h=r.call(o);return c&&(l?o[i]=f:delete o[i]),h}return jw=a,jw}var Pw,RL;function Wde(){if(RL)return Pw;RL=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Pw=n,Pw}var Rw,ML;function gs(){if(ML)return Rw;ML=1;var e=cv(),t=Hde(),n=Wde(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?i:r:a&&a in Object(l)?t(l):n(l)}return Rw=o,Rw}var Mw,NL;function ys(){if(NL)return Mw;NL=1;function e(t){return t!=null&&typeof t=="object"}return Mw=e,Mw}var Nw,LL;function zd(){if(LL)return Nw;LL=1;var e=gs(),t=ys(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Nw=r,Nw}var Lw,DL;function wP(){if(DL)return Lw;DL=1;var e=ti(),t=zd(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return Lw=i,Lw}var Dw,kL;function Wl(){if(kL)return Dw;kL=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Dw=e,Dw}var kw,IL;function SP(){if(IL)return kw;IL=1;var e=gs(),t=Wl(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!t(l))return!1;var f=e(l);return f==r||f==i||f==n||f==a}return kw=o,kw}var Iw,$L;function Gde(){if($L)return Iw;$L=1;var e=vo(),t=e["__core-js_shared__"];return Iw=t,Iw}var $w,BL;function Yde(){if(BL)return $w;BL=1;var e=Gde(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return $w=n,$w}var Bw,UL;function Rz(){if(UL)return Bw;UL=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Bw=n,Bw}var Uw,zL;function Kde(){if(zL)return Uw;zL=1;var e=SP(),t=Yde(),n=Wl(),r=Rz(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,f=o.toString,c=l.hasOwnProperty,h=RegExp("^"+f.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var x=e(g)?h:a;return x.test(r(g))}return Uw=m,Uw}var zw,FL;function Zde(){if(FL)return zw;FL=1;function e(t,n){return t==null?void 0:t[n]}return zw=e,zw}var Fw,qL;function gc(){if(qL)return Fw;qL=1;var e=Kde(),t=Zde();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return Fw=n,Fw}var qw,VL;function r_(){if(VL)return qw;VL=1;var e=gc(),t=e(Object,"create");return qw=t,qw}var Vw,HL;function Xde(){if(HL)return Vw;HL=1;var e=r_();function t(){this.__data__=e?e(null):{},this.size=0}return Vw=t,Vw}var Hw,WL;function Qde(){if(WL)return Hw;WL=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Hw=e,Hw}var Ww,GL;function Jde(){if(GL)return Ww;GL=1;var e=r_(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var l=o[a];return l===t?void 0:l}return r.call(o,a)?o[a]:void 0}return Ww=i,Ww}var Gw,YL;function ehe(){if(YL)return Gw;YL=1;var e=r_(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return Gw=r,Gw}var Yw,KL;function the(){if(KL)return Yw;KL=1;var e=r_(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return Yw=n,Yw}var Kw,ZL;function nhe(){if(ZL)return Kw;ZL=1;var e=Xde(),t=Qde(),n=Jde(),r=ehe(),i=the();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var c=o[l];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Kw=a,Kw}var Zw,XL;function rhe(){if(XL)return Zw;XL=1;function e(){this.__data__=[],this.size=0}return Zw=e,Zw}var Xw,QL;function OP(){if(QL)return Xw;QL=1;function e(t,n){return t===n||t!==t&&n!==n}return Xw=e,Xw}var Qw,JL;function i_(){if(JL)return Qw;JL=1;var e=OP();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Qw=t,Qw}var Jw,eD;function ihe(){if(eD)return Jw;eD=1;var e=i_(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var l=a.length-1;return o==l?a.pop():n.call(a,o,1),--this.size,!0}return Jw=r,Jw}var e2,tD;function ahe(){if(tD)return e2;tD=1;var e=i_();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return e2=t,e2}var t2,nD;function ohe(){if(nD)return t2;nD=1;var e=i_();function t(n){return e(this.__data__,n)>-1}return t2=t,t2}var n2,rD;function she(){if(rD)return n2;rD=1;var e=i_();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return n2=t,n2}var r2,iD;function a_(){if(iD)return r2;iD=1;var e=rhe(),t=ihe(),n=ahe(),r=ohe(),i=she();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var c=o[l];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,r2=a,r2}var i2,aD;function EP(){if(aD)return i2;aD=1;var e=gc(),t=vo(),n=e(t,"Map");return i2=n,i2}var a2,oD;function lhe(){if(oD)return a2;oD=1;var e=nhe(),t=a_(),n=EP();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return a2=r,a2}var o2,sD;function uhe(){if(sD)return o2;sD=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return o2=e,o2}var s2,lD;function o_(){if(lD)return s2;lD=1;var e=uhe();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return s2=t,s2}var l2,uD;function che(){if(uD)return l2;uD=1;var e=o_();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return l2=t,l2}var u2,cD;function fhe(){if(cD)return u2;cD=1;var e=o_();function t(n){return e(this,n).get(n)}return u2=t,u2}var c2,fD;function dhe(){if(fD)return c2;fD=1;var e=o_();function t(n){return e(this,n).has(n)}return c2=t,c2}var f2,dD;function hhe(){if(dD)return f2;dD=1;var e=o_();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return f2=t,f2}var d2,hD;function CP(){if(hD)return d2;hD=1;var e=lhe(),t=che(),n=fhe(),r=dhe(),i=hhe();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var c=o[l];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,d2=a,d2}var h2,pD;function Mz(){if(pD)return h2;pD=1;var e=CP(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,l=i?i.apply(this,o):o[0],f=a.cache;if(f.has(l))return f.get(l);var c=r.apply(this,o);return a.cache=f.set(l,c)||f,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,h2=n,h2}var p2,mD;function phe(){if(mD)return p2;mD=1;var e=Mz(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return p2=n,p2}var m2,vD;function mhe(){if(vD)return m2;vD=1;var e=phe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,l,f,c){a.push(f?c.replace(n,"$1"):l||o)}),a});return m2=r,m2}var v2,gD;function TP(){if(gD)return v2;gD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return v2=e,v2}var g2,yD;function vhe(){if(yD)return g2;yD=1;var e=cv(),t=TP(),n=ti(),r=zd(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(r(l))return a?a.call(l):"";var f=l+"";return f=="0"&&1/l==-1/0?"-0":f}return g2=o,g2}var y2,bD;function Nz(){if(bD)return y2;bD=1;var e=vhe();function t(n){return n==null?"":e(n)}return y2=t,y2}var b2,_D;function Lz(){if(_D)return b2;_D=1;var e=ti(),t=wP(),n=mhe(),r=Nz();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return b2=i,b2}var _2,xD;function s_(){if(xD)return _2;xD=1;var e=zd();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return _2=t,_2}var x2,wD;function AP(){if(wD)return x2;wD=1;var e=Lz(),t=s_();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return x2=n,x2}var w2,SD;function Dz(){if(SD)return w2;SD=1;var e=AP();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return w2=t,w2}var ghe=Dz();const Ci=Lt(ghe);var S2,OD;function yhe(){if(OD)return S2;OD=1;function e(t){return t==null}return S2=e,S2}var bhe=yhe();const ht=Lt(bhe);var O2,ED;function _he(){if(ED)return O2;ED=1;var e=gs(),t=ti(),n=ys(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return O2=i,O2}var xhe=_he();const fv=Lt(xhe);var whe=SP();const dt=Lt(whe);var She=Wl();const Fd=Lt(She);var E2={exports:{}},Ht={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var CD;function Ohe(){if(CD)return Ht;CD=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function w(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case e:switch(S=S.type,S){case n:case i:case r:case c:case h:return S;default:switch(S=S&&S.$$typeof,S){case l:case o:case f:case g:case m:case a:return S;default:return O}}case t:return O}}}return Ht.ContextConsumer=o,Ht.ContextProvider=a,Ht.Element=e,Ht.ForwardRef=f,Ht.Fragment=n,Ht.Lazy=g,Ht.Memo=m,Ht.Portal=t,Ht.Profiler=i,Ht.StrictMode=r,Ht.Suspense=c,Ht.SuspenseList=h,Ht.isAsyncMode=function(){return!1},Ht.isConcurrentMode=function(){return!1},Ht.isContextConsumer=function(S){return w(S)===o},Ht.isContextProvider=function(S){return w(S)===a},Ht.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Ht.isForwardRef=function(S){return w(S)===f},Ht.isFragment=function(S){return w(S)===n},Ht.isLazy=function(S){return w(S)===g},Ht.isMemo=function(S){return w(S)===m},Ht.isPortal=function(S){return w(S)===t},Ht.isProfiler=function(S){return w(S)===i},Ht.isStrictMode=function(S){return w(S)===r},Ht.isSuspense=function(S){return w(S)===c},Ht.isSuspenseList=function(S){return w(S)===h},Ht.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===c||S===h||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===m||S.$$typeof===a||S.$$typeof===o||S.$$typeof===f||S.$$typeof===_||S.getModuleId!==void 0)},Ht.typeOf=w,Ht}var TD;function Ehe(){return TD||(TD=1,E2.exports=Ohe()),E2.exports}var Che=Ehe(),C2,AD;function kz(){if(AD)return C2;AD=1;var e=gs(),t=ys(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return C2=r,C2}var T2,jD;function The(){if(jD)return T2;jD=1;var e=kz();function t(n){return e(n)&&n!=+n}return T2=t,T2}var Ahe=The();const qd=Lt(Ahe);var jhe=kz();const Phe=Lt(jhe);var Br=function(t){return t===0?0:t>0?1:-1},Fu=function(t){return fv(t)&&t.indexOf("%")===t.length-1},Ze=function(t){return Phe(t)&&!qd(t)},Kn=function(t){return Ze(t)||fv(t)},Rhe=0,Gl=function(t){var n=++Rhe;return"".concat(t||"").concat(n)},Ur=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(!Ze(t)&&!fv(t))return r;var a;if(Fu(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return qd(a)&&(a=r),i&&a>n&&(a=n),a},xl=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Mhe=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},Cn=function(t,n){return Ze(t)&&Ze(n)?function(r){return t+r*(n-t)}:function(){return n}};function xb(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Ci(r,t))===n})}var Nhe=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,a=0,o=0,l=1/0,f=-1/0,c=0,h=0,m=0;m<n;m++)c=t[m].cx||0,h=t[m].cy||0,r+=c,i+=h,a+=c*h,o+=c*c,l=Math.min(l,c),f=Math.max(f,c);var g=n*o!==r*r?(n*a-r*i)/(n*o-r*r):0;return{xmin:l,xmax:f,a:g,b:(i-g*r)/n}};function Uf(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 NT(e){"@babel/helpers - typeof";return NT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NT(e)}var Lhe=["viewBox","children"],Dhe=["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"],PD=["points","pathLength"],A2={svg:Lhe,polygon:PD,polyline:PD},jP=["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"],wb=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(U.isValidElement(t)&&(r=t.props),!Fd(r))return null;var i={};return Object.keys(r).forEach(function(a){jP.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},khe=function(t,n,r){return function(i){return t(n,r,i),null}},Il=function(t,n,r){if(!Fd(t)||NT(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];jP.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=khe(o,n,r))}),i},Ihe=["children"],$he=["children"];function RD(e,t){if(e==null)return{};var n=Bhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bhe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LT(e){"@babel/helpers - typeof";return LT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LT(e)}var MD={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},es=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ND=null,j2=null,PP=function e(t){if(t===ND&&Array.isArray(j2))return j2;var n=[];return U.Children.forEach(t,function(r){ht(r)||(Che.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),j2=n,ND=t,n};function qr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return es(i)}):r=[es(t)],PP(e).forEach(function(i){var a=Ci(i,"type.displayName")||Ci(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function _i(e,t){var n=qr(e,t);return n&&n[0]}var LD=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Ze(r)||r<=0||!Ze(i)||i<=0)},Uhe=["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"],zhe=function(t){return t&&t.type&&fv(t.type)&&Uhe.indexOf(t.type)>=0},Iz=function(t){return t&<(t)==="object"&&"clipDot"in t},Fhe=function(t,n,r,i){var a,o=(a=A2==null?void 0:A2[i])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!dt(t)&&(i&&o.includes(n)||Dhe.includes(n))||r&&jP.includes(n)},at=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(U.isValidElement(t)&&(i=t.props),!Fd(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;Fhe((l=i)===null||l===void 0?void 0:l[o],o,n,r)&&(a[o]=i[o])}),a},DT=function e(t,n){if(t===n)return!0;var r=U.Children.count(t);if(r!==U.Children.count(n))return!1;if(r===0)return!0;if(r===1)return DD(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!DD(a,o))return!1}return!0},DD=function(t,n){if(ht(t)&&ht(n))return!0;if(!ht(t)&&!ht(n)){var r=t.props||{},i=r.children,a=RD(r,Ihe),o=n.props||{},l=o.children,f=RD(o,$he);return i&&l?Uf(a,f)&&DT(i,l):!i&&!l?Uf(a,f):!1}return!1},kD=function(t,n){var r=[],i={};return PP(t).forEach(function(a,o){if(zhe(a))r.push(a);else if(a){var l=es(a.type),f=n[l]||{},c=f.handler,h=f.once;if(c&&(!h||!i[l])){var m=c(a,l,o);r.push(m),i[l]=!0}}}),r},qhe=function(t){var n=t&&t.type;return n&&MD[n]?MD[n]:null},Vhe=function(t,n){return PP(n).indexOf(t)},Hhe=["children","width","height","viewBox","className","style","title","desc"];function kT(){return kT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kT.apply(this,arguments)}function Whe(e,t){if(e==null)return{};var n=Ghe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ghe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function IT(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,f=e.desc,c=Whe(e,Hhe),h=i||{width:n,height:r,x:0,y:0},m=ke("recharts-surface",a);return ae.createElement("svg",kT({},at(c,!0,"svg"),{className:m,width:n,height:r,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),ae.createElement("title",null,l),ae.createElement("desc",null,f),t)}var Yhe=["children","className"];function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$T.apply(this,arguments)}function Khe(e,t){if(e==null)return{};var n=Zhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zhe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ot=ae.forwardRef(function(e,t){var n=e.children,r=e.className,i=Khe(e,Yhe),a=ke("recharts-layer",r);return ae.createElement("g",$T({className:a},at(i,!0),{ref:t}),n)}),xa=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]},P2,ID;function Xhe(){if(ID)return P2;ID=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+n];return o}return P2=e,P2}var R2,$D;function Qhe(){if($D)return R2;$D=1;var e=Xhe();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return R2=t,R2}var M2,BD;function $z(){if(BD)return M2;BD=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+i+a+"]");function f(c){return l.test(c)}return M2=f,M2}var N2,UD;function Jhe(){if(UD)return N2;UD=1;function e(t){return t.split("")}return N2=e,N2}var L2,zD;function epe(){if(zD)return L2;zD=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+f+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",_=c+"?",w="["+a+"]?",S="(?:"+x+"(?:"+[h,m,g].join("|")+")"+w+_+")*",O=w+_+S,C="(?:"+[h+l+"?",l,m,g,o].join("|")+")",T=RegExp(f+"(?="+f+")|"+C+O,"g");function j(P){return P.match(T)||[]}return L2=j,L2}var D2,FD;function tpe(){if(FD)return D2;FD=1;var e=Jhe(),t=$z(),n=epe();function r(i){return t(i)?n(i):e(i)}return D2=r,D2}var k2,qD;function npe(){if(qD)return k2;qD=1;var e=Qhe(),t=$z(),n=tpe(),r=Nz();function i(a){return function(o){o=r(o);var l=t(o)?n(o):void 0,f=l?l[0]:o.charAt(0),c=l?e(l,1).join(""):o.slice(1);return f[a]()+c}}return k2=i,k2}var I2,VD;function rpe(){if(VD)return I2;VD=1;var e=npe(),t=e("toUpperCase");return I2=t,I2}var ipe=rpe();const l_=Lt(ipe);function fn(e){return function(){return e}}const Bz=Math.cos,Sb=Math.sin,Ma=Math.sqrt,Ob=Math.PI,u_=2*Ob,BT=Math.PI,UT=2*BT,ku=1e-6,ape=UT-ku;function Uz(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ope(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Uz;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class spe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Uz:ope(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,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,f=r-t,c=i-n,h=o-t,m=l-n,g=h*h+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>ku)if(!(Math.abs(m*f-c*h)>ku)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-o,_=i-l,w=f*f+c*c,S=x*x+_*_,O=Math.sqrt(w),C=Math.sqrt(g),T=a*Math.tan((BT-Math.acos((w+g-S)/(2*O*C)))/2),j=T/C,P=T/O;Math.abs(j-1)>ku&&this._append`L${t+j*h},${n+j*m}`,this._append`A${a},${a},0,0,${+(m*x>h*_)},${this._x1=t+P*f},${this._y1=n+P*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),f=r*Math.sin(i),c=t+l,h=n+f,m=1^o,g=o?i-a:a-i;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>ku||Math.abs(this._y1-h)>ku)&&this._append`L${c},${h}`,r&&(g<0&&(g=g%UT+UT),g>ape?this._append`A${r},${r},0,1,${m},${t-l},${n-f}A${r},${r},0,1,${m},${this._x1=c},${this._y1=h}`:g>ku&&this._append`A${r},${r},0,${+(g>=BT)},${m},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}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 RP(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 spe(t)}function MP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zz(e){this._context=e}zz.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 c_(e){return new zz(e)}function Fz(e){return e[0]}function qz(e){return e[1]}function Vz(e,t){var n=fn(!0),r=null,i=c_,a=null,o=RP(l);e=typeof e=="function"?e:e===void 0?Fz:fn(e),t=typeof t=="function"?t:t===void 0?qz:fn(t);function l(f){var c,h=(f=MP(f)).length,m,g=!1,x;for(r==null&&(a=i(x=o())),c=0;c<=h;++c)!(c<h&&n(m=f[c],c,f))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+e(m,c,f),+t(m,c,f));if(x)return a=null,x+""||null}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:fn(+f),l):e},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:fn(+f),l):t},l.defined=function(f){return arguments.length?(n=typeof f=="function"?f:fn(!!f),l):n},l.curve=function(f){return arguments.length?(i=f,r!=null&&(a=i(r)),l):i},l.context=function(f){return arguments.length?(f==null?r=a=null:a=i(r=f),l):r},l}function ty(e,t,n){var r=null,i=fn(!0),a=null,o=c_,l=null,f=RP(c);e=typeof e=="function"?e:e===void 0?Fz:fn(+e),t=typeof t=="function"?t:fn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?qz:fn(+n);function c(m){var g,x,_,w=(m=MP(m)).length,S,O=!1,C,T=new Array(w),j=new Array(w);for(a==null&&(l=o(C=f())),g=0;g<=w;++g){if(!(g<w&&i(S=m[g],g,m))===O)if(O=!O)x=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),_=g-1;_>=x;--_)l.point(T[_],j[_]);l.lineEnd(),l.areaEnd()}O&&(T[g]=+e(S,g,m),j[g]=+t(S,g,m),l.point(r?+r(S,g,m):T[g],n?+n(S,g,m):j[g]))}if(C)return l=null,C+""||null}function h(){return Vz().defined(i).curve(o).context(a)}return c.x=function(m){return arguments.length?(e=typeof m=="function"?m:fn(+m),r=null,c):e},c.x0=function(m){return arguments.length?(e=typeof m=="function"?m:fn(+m),c):e},c.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:fn(+m),c):r},c.y=function(m){return arguments.length?(t=typeof m=="function"?m:fn(+m),n=null,c):t},c.y0=function(m){return arguments.length?(t=typeof m=="function"?m:fn(+m),c):t},c.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:fn(+m),c):n},c.lineX0=c.lineY0=function(){return h().x(e).y(t)},c.lineY1=function(){return h().x(e).y(n)},c.lineX1=function(){return h().x(r).y(t)},c.defined=function(m){return arguments.length?(i=typeof m=="function"?m:fn(!!m),c):i},c.curve=function(m){return arguments.length?(o=m,a!=null&&(l=o(a)),c):o},c.context=function(m){return arguments.length?(m==null?a=l=null:l=o(a=m),c):a},c}class Hz{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 lpe(e){return new Hz(e,!0)}function upe(e){return new Hz(e,!1)}const NP={draw(e,t){const n=Ma(t/Ob);e.moveTo(n,0),e.arc(0,0,n,0,u_)}},cpe={draw(e,t){const n=Ma(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()}},Wz=Ma(1/3),fpe=Wz*2,dpe={draw(e,t){const n=Ma(t/fpe),r=n*Wz;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},hpe={draw(e,t){const n=Ma(t),r=-n/2;e.rect(r,r,n,n)}},ppe=.8908130915292852,Gz=Sb(Ob/10)/Sb(7*Ob/10),mpe=Sb(u_/10)*Gz,vpe=-Bz(u_/10)*Gz,gpe={draw(e,t){const n=Ma(t*ppe),r=mpe*n,i=vpe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=u_*a/5,l=Bz(o),f=Sb(o);e.lineTo(f*n,-l*n),e.lineTo(l*r-f*i,f*r+l*i)}e.closePath()}},$2=Ma(3),ype={draw(e,t){const n=-Ma(t/($2*3));e.moveTo(0,n*2),e.lineTo(-$2*n,-n),e.lineTo($2*n,-n),e.closePath()}},qi=-.5,Vi=Ma(3)/2,zT=1/Ma(12),bpe=(zT/2+1)*3,_pe={draw(e,t){const n=Ma(t/bpe),r=n/2,i=n*zT,a=r,o=n*zT+n,l=-a,f=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,f),e.lineTo(qi*r-Vi*i,Vi*r+qi*i),e.lineTo(qi*a-Vi*o,Vi*a+qi*o),e.lineTo(qi*l-Vi*f,Vi*l+qi*f),e.lineTo(qi*r+Vi*i,qi*i-Vi*r),e.lineTo(qi*a+Vi*o,qi*o-Vi*a),e.lineTo(qi*l+Vi*f,qi*f-Vi*l),e.closePath()}};function xpe(e,t){let n=null,r=RP(i);e=typeof e=="function"?e:fn(e||NP),t=typeof t=="function"?t:fn(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:fn(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fn(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Eb(){}function Cb(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 Yz(e){this._context=e}Yz.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:Cb(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:Cb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wpe(e){return new Yz(e)}function Kz(e){this._context=e}Kz.prototype={areaStart:Eb,areaEnd:Eb,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:Cb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Spe(e){return new Kz(e)}function Zz(e){this._context=e}Zz.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:Cb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ope(e){return new Zz(e)}function Xz(e){this._context=e}Xz.prototype={areaStart:Eb,areaEnd:Eb,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 Epe(e){return new Xz(e)}function HD(e){return e<0?-1:1}function WD(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(HD(a)+HD(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function GD(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function B2(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Tb(e){this._context=e}Tb.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:B2(this,this._t0,GD(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,B2(this,GD(this,n=WD(this,e,t)),n);break;default:B2(this,this._t0,n=WD(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Qz(e){this._context=new Jz(e)}(Qz.prototype=Object.create(Tb.prototype)).point=function(e,t){Tb.prototype.point.call(this,t,e)};function Jz(e){this._context=e}Jz.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Cpe(e){return new Tb(e)}function Tpe(e){return new Qz(e)}function eF(e){this._context=e}eF.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=YD(e),i=YD(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 YD(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ape(e){return new eF(e)}function f_(e,t){this._context=e,this._t=t}f_.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 jpe(e){return new f_(e,.5)}function Ppe(e){return new f_(e,0)}function Rpe(e){return new f_(e,1)}function td(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function FT(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Mpe(e,t){return e[t]}function Npe(e){const t=[];return t.key=e,t}function Lpe(){var e=fn([]),t=FT,n=td,r=Mpe;function i(a){var o=Array.from(e.apply(this,arguments),Npe),l,f=o.length,c=-1,h;for(const m of a)for(l=0,++c;l<f;++l)(o[l][c]=[0,+r(m,o[l].key,c,a)]).data=m;for(l=0,h=MP(t(o));l<f;++l)o[h[l]].index=l;return n(o,h),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:fn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?FT:typeof a=="function"?a:fn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??td,i):n},i}function Dpe(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}td(e,t)}}function kpe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}td(e,t)}}function Ipe(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,f=0,c=0;l<o;++l){for(var h=e[t[l]],m=h[r][1]||0,g=h[r-1][1]||0,x=(m-g)/2,_=0;_<l;++_){var w=e[t[_]],S=w[r][1]||0,O=w[r-1][1]||0;x+=S-O}f+=m,c+=x*m}i[r-1][1]+=i[r-1][0]=n,f&&(n-=c/f)}i[r-1][1]+=i[r-1][0]=n,td(e,t)}}function cm(e){"@babel/helpers - typeof";return cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cm(e)}var $pe=["type","size","sizeType"];function qT(){return qT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qT.apply(this,arguments)}function KD(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 ZD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KD(Object(n),!0).forEach(function(r){Bpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bpe(e,t,n){return t=Upe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Upe(e){var t=zpe(e,"string");return cm(t)=="symbol"?t:t+""}function zpe(e,t){if(cm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fpe(e,t){if(e==null)return{};var n=qpe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qpe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var tF={symbolCircle:NP,symbolCross:cpe,symbolDiamond:dpe,symbolSquare:hpe,symbolStar:gpe,symbolTriangle:ype,symbolWye:_pe},Vpe=Math.PI/180,Hpe=function(t){var n="symbol".concat(l_(t));return tF[n]||NP},Wpe=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*Vpe;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}},Gpe=function(t,n){tF["symbol".concat(l_(t))]=n},d_=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,f=Fpe(t,$pe),c=ZD(ZD({},f),{},{type:r,size:a,sizeType:l}),h=function(){var S=Hpe(r),O=xpe().type(S).size(Wpe(a,l,r));return O()},m=c.className,g=c.cx,x=c.cy,_=at(c,!0);return g===+g&&x===+x&&a===+a?ae.createElement("path",qT({},_,{className:ke("recharts-symbols",m),transform:"translate(".concat(g,", ").concat(x,")"),d:h()})):null};d_.registerSymbol=Gpe;function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}function VT(){return VT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VT.apply(this,arguments)}function XD(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 Ype(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XD(Object(n),!0).forEach(function(r){fm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zpe(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,rF(r.key),r)}}function Xpe(e,t,n){return t&&Zpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qpe(e,t,n){return t=Ab(t),Jpe(e,nF()?Reflect.construct(t,n||[],Ab(e).constructor):t.apply(e,n))}function Jpe(e,t){if(t&&(nd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eme(e)}function eme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nF=function(){return!!e})()}function Ab(e){return Ab=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ab(e)}function tme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HT(e,t)}function HT(e,t){return HT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},HT(e,t)}function fm(e,t,n){return t=rF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rF(e){var t=nme(e,"string");return nd(t)=="symbol"?t:t+""}function nme(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ma=32,LP=function(e){function t(){return Kpe(this,t),Qpe(this,t,arguments)}return tme(t,e),Xpe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=ma/2,o=ma/6,l=ma/3,f=r.inactive?i:r.color;if(r.type==="plainline")return ae.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:ma,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return ae.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(a,"h").concat(l,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
|
||
H`).concat(ma,"M").concat(2*l,",").concat(a,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return ae.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(ma/8,"h").concat(ma,"v").concat(ma*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(ae.isValidElement(r.legendIcon)){var c=Ype({},r);return delete c.legendIcon,ae.cloneElement(r.legendIcon,c)}return ae.createElement(d_,{fill:f,cx:a,cy:a,size:ma,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,f=i.formatter,c=i.inactiveColor,h={x:0,y:0,width:ma,height:ma},m={display:l==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(x,_){var w=x.formatter||f,S=ke(fm(fm({"recharts-legend-item":!0},"legend-item-".concat(_),!0),"inactive",x.inactive));if(x.type==="none")return null;var O=dt(x.value)?null:x.value;xa(!dt(x.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 C=x.inactive?c:x.color;return ae.createElement("li",VT({className:S,style:m,key:"legend-item-".concat(_)},Il(r.props,x,_)),ae.createElement(IT,{width:o,height:o,viewBox:h,style:g},r.renderIcon(x)),ae.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},w?w(O,x,_):O))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return ae.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(U.PureComponent);fm(LP,"displayName","Legend");fm(LP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var U2,QD;function rme(){if(QD)return U2;QD=1;var e=a_();function t(){this.__data__=new e,this.size=0}return U2=t,U2}var z2,JD;function ime(){if(JD)return z2;JD=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return z2=e,z2}var F2,ek;function ame(){if(ek)return F2;ek=1;function e(t){return this.__data__.get(t)}return F2=e,F2}var q2,tk;function ome(){if(tk)return q2;tk=1;function e(t){return this.__data__.has(t)}return q2=e,q2}var V2,nk;function sme(){if(nk)return V2;nk=1;var e=a_(),t=EP(),n=CP(),r=200;function i(a,o){var l=this.__data__;if(l instanceof e){var f=l.__data__;if(!t||f.length<r-1)return f.push([a,o]),this.size=++l.size,this;l=this.__data__=new n(f)}return l.set(a,o),this.size=l.size,this}return V2=i,V2}var H2,rk;function iF(){if(rk)return H2;rk=1;var e=a_(),t=rme(),n=ime(),r=ame(),i=ome(),a=sme();function o(l){var f=this.__data__=new e(l);this.size=f.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,H2=o,H2}var W2,ik;function lme(){if(ik)return W2;ik=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return W2=t,W2}var G2,ak;function ume(){if(ak)return G2;ak=1;function e(t){return this.__data__.has(t)}return G2=e,G2}var Y2,ok;function aF(){if(ok)return Y2;ok=1;var e=CP(),t=lme(),n=ume();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Y2=r,Y2}var K2,sk;function oF(){if(sk)return K2;sk=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return K2=e,K2}var Z2,lk;function sF(){if(lk)return Z2;lk=1;function e(t,n){return t.has(n)}return Z2=e,Z2}var X2,uk;function lF(){if(uk)return X2;uk=1;var e=aF(),t=oF(),n=sF(),r=1,i=2;function a(o,l,f,c,h,m){var g=f&r,x=o.length,_=l.length;if(x!=_&&!(g&&_>x))return!1;var w=m.get(o),S=m.get(l);if(w&&S)return w==l&&S==o;var O=-1,C=!0,T=f&i?new e:void 0;for(m.set(o,l),m.set(l,o);++O<x;){var j=o[O],P=l[O];if(c)var R=g?c(P,j,O,l,o,m):c(j,P,O,o,l,m);if(R!==void 0){if(R)continue;C=!1;break}if(T){if(!t(l,function(I,V){if(!n(T,V)&&(j===I||h(j,I,f,c,m)))return T.push(V)})){C=!1;break}}else if(!(j===P||h(j,P,f,c,m))){C=!1;break}}return m.delete(o),m.delete(l),C}return X2=a,X2}var Q2,ck;function cme(){if(ck)return Q2;ck=1;var e=vo(),t=e.Uint8Array;return Q2=t,Q2}var J2,fk;function fme(){if(fk)return J2;fk=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return J2=e,J2}var eS,dk;function DP(){if(dk)return eS;dk=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return eS=e,eS}var tS,hk;function dme(){if(hk)return tS;hk=1;var e=cv(),t=cme(),n=OP(),r=lF(),i=fme(),a=DP(),o=1,l=2,f="[object Boolean]",c="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",x="[object RegExp]",_="[object Set]",w="[object String]",S="[object Symbol]",O="[object ArrayBuffer]",C="[object DataView]",T=e?e.prototype:void 0,j=T?T.valueOf:void 0;function P(R,I,V,G,W,K,ne){switch(V){case C:if(R.byteLength!=I.byteLength||R.byteOffset!=I.byteOffset)return!1;R=R.buffer,I=I.buffer;case O:return!(R.byteLength!=I.byteLength||!K(new t(R),new t(I)));case f:case c:case g:return n(+R,+I);case h:return R.name==I.name&&R.message==I.message;case x:case w:return R==I+"";case m:var le=i;case _:var Q=G&o;if(le||(le=a),R.size!=I.size&&!Q)return!1;var J=ne.get(R);if(J)return J==I;G|=l,ne.set(R,I);var H=r(le(R),le(I),G,W,K,ne);return ne.delete(R),H;case S:if(j)return j.call(R)==j.call(I)}return!1}return tS=P,tS}var nS,pk;function uF(){if(pk)return nS;pk=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return nS=e,nS}var rS,mk;function hme(){if(mk)return rS;mk=1;var e=uF(),t=ti();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return rS=n,rS}var iS,vk;function pme(){if(vk)return iS;vk=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var l=t[r];n(l,r,t)&&(o[a++]=l)}return o}return iS=e,iS}var aS,gk;function mme(){if(gk)return aS;gk=1;function e(){return[]}return aS=e,aS}var oS,yk;function vme(){if(yk)return oS;yk=1;var e=pme(),t=mme(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(l){return r.call(o,l)}))}:t;return oS=a,oS}var sS,bk;function gme(){if(bk)return sS;bk=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return sS=e,sS}var lS,_k;function yme(){if(_k)return lS;_k=1;var e=gs(),t=ys(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return lS=r,lS}var uS,xk;function kP(){if(xk)return uS;xk=1;var e=yme(),t=ys(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return uS=a,uS}var Cp={exports:{}},cS,wk;function bme(){if(wk)return cS;wk=1;function e(){return!1}return cS=e,cS}Cp.exports;var Sk;function cF(){return Sk||(Sk=1,function(e,t){var n=vo(),r=bme(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?n.Buffer:void 0,f=l?l.isBuffer:void 0,c=f||r;e.exports=c}(Cp,Cp.exports)),Cp.exports}var fS,Ok;function IP(){if(Ok)return fS;Ok=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return fS=n,fS}var dS,Ek;function $P(){if(Ek)return dS;Ek=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return dS=t,dS}var hS,Ck;function _me(){if(Ck)return hS;Ck=1;var e=gs(),t=$P(),n=ys(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",f="[object Function]",c="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",x="[object Set]",_="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",j="[object Int8Array]",P="[object Int16Array]",R="[object Int32Array]",I="[object Uint8Array]",V="[object Uint8ClampedArray]",G="[object Uint16Array]",W="[object Uint32Array]",K={};K[C]=K[T]=K[j]=K[P]=K[R]=K[I]=K[V]=K[G]=K[W]=!0,K[r]=K[i]=K[S]=K[a]=K[O]=K[o]=K[l]=K[f]=K[c]=K[h]=K[m]=K[g]=K[x]=K[_]=K[w]=!1;function ne(le){return n(le)&&t(le.length)&&!!K[e(le)]}return hS=ne,hS}var pS,Tk;function fF(){if(Tk)return pS;Tk=1;function e(t){return function(n){return t(n)}}return pS=e,pS}var Tp={exports:{}};Tp.exports;var Ak;function xme(){return Ak||(Ak=1,function(e,t){var n=Pz(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,l=function(){try{var f=i&&i.require&&i.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l}(Tp,Tp.exports)),Tp.exports}var mS,jk;function dF(){if(jk)return mS;jk=1;var e=_me(),t=fF(),n=xme(),r=n&&n.isTypedArray,i=r?t(r):e;return mS=i,mS}var vS,Pk;function wme(){if(Pk)return vS;Pk=1;var e=gme(),t=kP(),n=ti(),r=cF(),i=IP(),a=dF(),o=Object.prototype,l=o.hasOwnProperty;function f(c,h){var m=n(c),g=!m&&t(c),x=!m&&!g&&r(c),_=!m&&!g&&!x&&a(c),w=m||g||x||_,S=w?e(c.length,String):[],O=S.length;for(var C in c)(h||l.call(c,C))&&!(w&&(C=="length"||x&&(C=="offset"||C=="parent")||_&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,O)))&&S.push(C);return S}return vS=f,vS}var gS,Rk;function Sme(){if(Rk)return gS;Rk=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return gS=t,gS}var yS,Mk;function hF(){if(Mk)return yS;Mk=1;function e(t,n){return function(r){return t(n(r))}}return yS=e,yS}var bS,Nk;function Ome(){if(Nk)return bS;Nk=1;var e=hF(),t=e(Object.keys,Object);return bS=t,bS}var _S,Lk;function Eme(){if(Lk)return _S;Lk=1;var e=Sme(),t=Ome(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var l in Object(a))r.call(a,l)&&l!="constructor"&&o.push(l);return o}return _S=i,_S}var xS,Dk;function dv(){if(Dk)return xS;Dk=1;var e=SP(),t=$P();function n(r){return r!=null&&t(r.length)&&!e(r)}return xS=n,xS}var wS,kk;function h_(){if(kk)return wS;kk=1;var e=wme(),t=Eme(),n=dv();function r(i){return n(i)?e(i):t(i)}return wS=r,wS}var SS,Ik;function Cme(){if(Ik)return SS;Ik=1;var e=hme(),t=vme(),n=h_();function r(i){return e(i,n,t)}return SS=r,SS}var OS,$k;function Tme(){if($k)return OS;$k=1;var e=Cme(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,l,f,c,h){var m=l&t,g=e(a),x=g.length,_=e(o),w=_.length;if(x!=w&&!m)return!1;for(var S=x;S--;){var O=g[S];if(!(m?O in o:r.call(o,O)))return!1}var C=h.get(a),T=h.get(o);if(C&&T)return C==o&&T==a;var j=!0;h.set(a,o),h.set(o,a);for(var P=m;++S<x;){O=g[S];var R=a[O],I=o[O];if(f)var V=m?f(I,R,O,o,a,h):f(R,I,O,a,o,h);if(!(V===void 0?R===I||c(R,I,l,f,h):V)){j=!1;break}P||(P=O=="constructor")}if(j&&!P){var G=a.constructor,W=o.constructor;G!=W&&"constructor"in a&&"constructor"in o&&!(typeof G=="function"&&G instanceof G&&typeof W=="function"&&W instanceof W)&&(j=!1)}return h.delete(a),h.delete(o),j}return OS=i,OS}var ES,Bk;function Ame(){if(Bk)return ES;Bk=1;var e=gc(),t=vo(),n=e(t,"DataView");return ES=n,ES}var CS,Uk;function jme(){if(Uk)return CS;Uk=1;var e=gc(),t=vo(),n=e(t,"Promise");return CS=n,CS}var TS,zk;function pF(){if(zk)return TS;zk=1;var e=gc(),t=vo(),n=e(t,"Set");return TS=n,TS}var AS,Fk;function Pme(){if(Fk)return AS;Fk=1;var e=gc(),t=vo(),n=e(t,"WeakMap");return AS=n,AS}var jS,qk;function Rme(){if(qk)return jS;qk=1;var e=Ame(),t=EP(),n=jme(),r=pF(),i=Pme(),a=gs(),o=Rz(),l="[object Map]",f="[object Object]",c="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",x=o(e),_=o(t),w=o(n),S=o(r),O=o(i),C=a;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=l||n&&C(n.resolve())!=c||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(T){var j=a(T),P=j==f?T.constructor:void 0,R=P?o(P):"";if(R)switch(R){case x:return g;case _:return l;case w:return c;case S:return h;case O:return m}return j}),jS=C,jS}var PS,Vk;function Mme(){if(Vk)return PS;Vk=1;var e=iF(),t=lF(),n=dme(),r=Tme(),i=Rme(),a=ti(),o=cF(),l=dF(),f=1,c="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,x=g.hasOwnProperty;function _(w,S,O,C,T,j){var P=a(w),R=a(S),I=P?h:i(w),V=R?h:i(S);I=I==c?m:I,V=V==c?m:V;var G=I==m,W=V==m,K=I==V;if(K&&o(w)){if(!o(S))return!1;P=!0,G=!1}if(K&&!G)return j||(j=new e),P||l(w)?t(w,S,O,C,T,j):n(w,S,I,O,C,T,j);if(!(O&f)){var ne=G&&x.call(w,"__wrapped__"),le=W&&x.call(S,"__wrapped__");if(ne||le){var Q=ne?w.value():w,J=le?S.value():S;return j||(j=new e),T(Q,J,O,C,j)}}return K?(j||(j=new e),r(w,S,O,C,T,j)):!1}return PS=_,PS}var RS,Hk;function BP(){if(Hk)return RS;Hk=1;var e=Mme(),t=ys();function n(r,i,a,o,l){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,l)}return RS=n,RS}var MS,Wk;function Nme(){if(Wk)return MS;Wk=1;var e=iF(),t=BP(),n=1,r=2;function i(a,o,l,f){var c=l.length,h=c,m=!f;if(a==null)return!h;for(a=Object(a);c--;){var g=l[c];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++c<h;){g=l[c];var x=g[0],_=a[x],w=g[1];if(m&&g[2]){if(_===void 0&&!(x in a))return!1}else{var S=new e;if(f)var O=f(_,w,x,a,o,S);if(!(O===void 0?t(w,_,n|r,f,S):O))return!1}}return!0}return MS=i,MS}var NS,Gk;function mF(){if(Gk)return NS;Gk=1;var e=Wl();function t(n){return n===n&&!e(n)}return NS=t,NS}var LS,Yk;function Lme(){if(Yk)return LS;Yk=1;var e=mF(),t=h_();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],l=r[o];i[a]=[o,l,e(l)]}return i}return LS=n,LS}var DS,Kk;function vF(){if(Kk)return DS;Kk=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return DS=e,DS}var kS,Zk;function Dme(){if(Zk)return kS;Zk=1;var e=Nme(),t=Lme(),n=vF();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return kS=r,kS}var IS,Xk;function kme(){if(Xk)return IS;Xk=1;function e(t,n){return t!=null&&n in Object(t)}return IS=e,IS}var $S,Qk;function Ime(){if(Qk)return $S;Qk=1;var e=Lz(),t=kP(),n=ti(),r=IP(),i=$P(),a=s_();function o(l,f,c){f=e(f,l);for(var h=-1,m=f.length,g=!1;++h<m;){var x=a(f[h]);if(!(g=l!=null&&c(l,x)))break;l=l[x]}return g||++h!=m?g:(m=l==null?0:l.length,!!m&&i(m)&&r(x,m)&&(n(l)||t(l)))}return $S=o,$S}var BS,Jk;function $me(){if(Jk)return BS;Jk=1;var e=kme(),t=Ime();function n(r,i){return r!=null&&t(r,i,e)}return BS=n,BS}var US,e5;function Bme(){if(e5)return US;e5=1;var e=BP(),t=Dz(),n=$me(),r=wP(),i=mF(),a=vF(),o=s_(),l=1,f=2;function c(h,m){return r(h)&&i(m)?a(o(h),m):function(g){var x=t(g,h);return x===void 0&&x===m?n(g,h):e(m,x,l|f)}}return US=c,US}var zS,t5;function Vd(){if(t5)return zS;t5=1;function e(t){return t}return zS=e,zS}var FS,n5;function Ume(){if(n5)return FS;n5=1;function e(t){return function(n){return n==null?void 0:n[t]}}return FS=e,FS}var qS,r5;function zme(){if(r5)return qS;r5=1;var e=AP();function t(n){return function(r){return e(r,n)}}return qS=t,qS}var VS,i5;function Fme(){if(i5)return VS;i5=1;var e=Ume(),t=zme(),n=wP(),r=s_();function i(a){return n(a)?e(r(a)):t(a)}return VS=i,VS}var HS,a5;function go(){if(a5)return HS;a5=1;var e=Dme(),t=Bme(),n=Vd(),r=ti(),i=Fme();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return HS=a,HS}var WS,o5;function gF(){if(o5)return WS;o5=1;function e(t,n,r,i){for(var a=t.length,o=r+(i?1:-1);i?o--:++o<a;)if(n(t[o],o,t))return o;return-1}return WS=e,WS}var GS,s5;function qme(){if(s5)return GS;s5=1;function e(t){return t!==t}return GS=e,GS}var YS,l5;function Vme(){if(l5)return YS;l5=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return YS=e,YS}var KS,u5;function Hme(){if(u5)return KS;u5=1;var e=gF(),t=qme(),n=Vme();function r(i,a,o){return a===a?n(i,a,o):e(i,t,o)}return KS=r,KS}var ZS,c5;function Wme(){if(c5)return ZS;c5=1;var e=Hme();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return ZS=t,ZS}var XS,f5;function Gme(){if(f5)return XS;f5=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return XS=e,XS}var QS,d5;function Yme(){if(d5)return QS;d5=1;function e(){}return QS=e,QS}var JS,h5;function Kme(){if(h5)return JS;h5=1;var e=pF(),t=Yme(),n=DP(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return JS=i,JS}var eO,p5;function Zme(){if(p5)return eO;p5=1;var e=aF(),t=Wme(),n=Gme(),r=sF(),i=Kme(),a=DP(),o=200;function l(f,c,h){var m=-1,g=t,x=f.length,_=!0,w=[],S=w;if(h)_=!1,g=n;else if(x>=o){var O=c?null:i(f);if(O)return a(O);_=!1,g=r,S=new e}else S=c?[]:w;e:for(;++m<x;){var C=f[m],T=c?c(C):C;if(C=h||C!==0?C:0,_&&T===T){for(var j=S.length;j--;)if(S[j]===T)continue e;c&&S.push(T),w.push(C)}else g(S,T,h)||(S!==w&&S.push(T),w.push(C))}return w}return eO=l,eO}var tO,m5;function Xme(){if(m5)return tO;m5=1;var e=go(),t=Zme();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return tO=n,tO}var Qme=Xme();const v5=Lt(Qme);function yF(e,t,n){return t===!0?v5(e,n):dt(t)?v5(e,t):e}function rd(e){"@babel/helpers - typeof";return rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rd(e)}var Jme=["ref"];function g5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g5(Object(n),!0).forEach(function(r){p_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y5(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 tve(e,t,n){return t&&y5(e.prototype,t),n&&y5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nve(e,t,n){return t=jb(t),rve(e,bF()?Reflect.construct(t,n||[],jb(e).constructor):t.apply(e,n))}function rve(e,t){if(t&&(rd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ive(e)}function ive(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bF=function(){return!!e})()}function jb(e){return jb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jb(e)}function ave(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&&WT(e,t)}function WT(e,t){return WT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},WT(e,t)}function p_(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=ove(e,"string");return rd(t)=="symbol"?t:t+""}function ove(e,t){if(rd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sve(e,t){if(e==null)return{};var n=lve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lve(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function uve(e){return e.value}function cve(e,t){if(ae.isValidElement(e))return ae.cloneElement(e,t);if(typeof e=="function")return ae.createElement(e,t);t.ref;var n=sve(t,Jme);return ae.createElement(LP,n)}var b5=1,zf=function(e){function t(){var n;eve(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=nve(this,t,[].concat(i)),p_(n,"lastBoundingBox",{width:-1,height:-1}),n}return ave(t,e),tve(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)>b5||Math.abs(i.height-this.lastBoundingBox.height)>b5)&&(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?Wo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,f=i.margin,c=i.chartWidth,h=i.chartHeight,m,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var x=this.getBBoxSnapshot();m={left:((c||0)-x.width)/2}}else m=o==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var _=this.getBBoxSnapshot();g={top:((h||0)-_.height)/2}}else g=l==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Wo(Wo({},m),g)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,l=i.height,f=i.wrapperStyle,c=i.payloadUniqBy,h=i.payload,m=Wo(Wo({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(f)),f);return ae.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(x){r.wrapperNode=x}},cve(a,Wo(Wo({},this.props),{},{payload:yF(h,c,uve)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Wo(Wo({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&Ze(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])}(U.PureComponent);p_(zf,"displayName","Legend");p_(zf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var nO,_5;function fve(){if(_5)return nO;_5=1;var e=cv(),t=kP(),n=ti(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return nO=i,nO}var rO,x5;function xF(){if(x5)return rO;x5=1;var e=uF(),t=fve();function n(r,i,a,o,l){var f=-1,c=r.length;for(a||(a=t),l||(l=[]);++f<c;){var h=r[f];i>0&&a(h)?i>1?n(h,i-1,a,o,l):e(l,h):o||(l[l.length]=h)}return l}return rO=n,rO}var iO,w5;function dve(){if(w5)return iO;w5=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),l=i(n),f=l.length;f--;){var c=l[t?f:++a];if(r(o[c],c,o)===!1)break}return n}}return iO=e,iO}var aO,S5;function hve(){if(S5)return aO;S5=1;var e=dve(),t=e();return aO=t,aO}var oO,O5;function wF(){if(O5)return oO;O5=1;var e=hve(),t=h_();function n(r,i){return r&&e(r,i,t)}return oO=n,oO}var sO,E5;function pve(){if(E5)return sO;E5=1;var e=dv();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,l=r?o:-1,f=Object(i);(r?l--:++l<o)&&a(f[l],l,f)!==!1;);return i}}return sO=t,sO}var lO,C5;function UP(){if(C5)return lO;C5=1;var e=wF(),t=pve(),n=t(e);return lO=n,lO}var uO,T5;function SF(){if(T5)return uO;T5=1;var e=UP(),t=dv();function n(r,i){var a=-1,o=t(r)?Array(r.length):[];return e(r,function(l,f,c){o[++a]=i(l,f,c)}),o}return uO=n,uO}var cO,A5;function mve(){if(A5)return cO;A5=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return cO=e,cO}var fO,j5;function vve(){if(j5)return fO;j5=1;var e=zd();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,o=n===n,l=e(n),f=r!==void 0,c=r===null,h=r===r,m=e(r);if(!c&&!m&&!l&&n>r||l&&f&&h&&!c&&!m||a&&f&&h||!i&&h||!o)return 1;if(!a&&!l&&!m&&n<r||m&&i&&o&&!a&&!l||c&&i&&o||!f&&o||!h)return-1}return 0}return fO=t,fO}var dO,P5;function gve(){if(P5)return dO;P5=1;var e=vve();function t(n,r,i){for(var a=-1,o=n.criteria,l=r.criteria,f=o.length,c=i.length;++a<f;){var h=e(o[a],l[a]);if(h){if(a>=c)return h;var m=i[a];return h*(m=="desc"?-1:1)}}return n.index-r.index}return dO=t,dO}var hO,R5;function yve(){if(R5)return hO;R5=1;var e=TP(),t=AP(),n=go(),r=SF(),i=mve(),a=fF(),o=gve(),l=Vd(),f=ti();function c(h,m,g){m.length?m=e(m,function(w){return f(w)?function(S){return t(S,w.length===1?w[0]:w)}:w}):m=[l];var x=-1;m=e(m,a(n));var _=r(h,function(w,S,O){var C=e(m,function(T){return T(w)});return{criteria:C,index:++x,value:w}});return i(_,function(w,S){return o(w,S,g)})}return hO=c,hO}var pO,M5;function bve(){if(M5)return pO;M5=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return pO=e,pO}var mO,N5;function _ve(){if(N5)return mO;N5=1;var e=bve(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,l=-1,f=t(o.length-i,0),c=Array(f);++l<f;)c[l]=o[i+l];l=-1;for(var h=Array(i+1);++l<i;)h[l]=o[l];return h[i]=a(c),e(r,this,h)}}return mO=n,mO}var vO,L5;function xve(){if(L5)return vO;L5=1;function e(t){return function(){return t}}return vO=e,vO}var gO,D5;function OF(){if(D5)return gO;D5=1;var e=gc(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return gO=t,gO}var yO,k5;function wve(){if(k5)return yO;k5=1;var e=xve(),t=OF(),n=Vd(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return yO=r,yO}var bO,I5;function Sve(){if(I5)return bO;I5=1;var e=800,t=16,n=Date.now;function r(i){var a=0,o=0;return function(){var l=n(),f=t-(l-o);if(o=l,f>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return bO=r,bO}var _O,$5;function Ove(){if($5)return _O;$5=1;var e=wve(),t=Sve(),n=t(e);return _O=n,_O}var xO,B5;function Eve(){if(B5)return xO;B5=1;var e=Vd(),t=_ve(),n=Ove();function r(i,a){return n(t(i,a,e),i+"")}return xO=r,xO}var wO,U5;function m_(){if(U5)return wO;U5=1;var e=OP(),t=dv(),n=IP(),r=Wl();function i(a,o,l){if(!r(l))return!1;var f=typeof o;return(f=="number"?t(l)&&n(o,l.length):f=="string"&&o in l)?e(l[o],a):!1}return wO=i,wO}var SO,z5;function Cve(){if(z5)return SO;z5=1;var e=xF(),t=yve(),n=Eve(),r=m_(),i=n(function(a,o){if(a==null)return[];var l=o.length;return l>1&&r(a,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return SO=i,SO}var Tve=Cve();const zP=Lt(Tve);function dm(e){"@babel/helpers - typeof";return dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dm(e)}function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}function Ave(e,t){return Mve(e)||Rve(e,t)||Pve(e,t)||jve()}function jve(){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 Pve(e,t){if(e){if(typeof e=="string")return F5(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 F5(e,t)}}function F5(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 Rve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Mve(e){if(Array.isArray(e))return e}function q5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q5(Object(n),!0).forEach(function(r){Nve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nve(e,t,n){return t=Lve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lve(e){var t=Dve(e,"string");return dm(t)=="symbol"?t:t+""}function Dve(e,t){if(dm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kve(e){return Array.isArray(e)&&Kn(e[0])&&Kn(e[1])?e.join(" ~ "):e}var Ive=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,f=t.labelStyle,c=f===void 0?{}:f,h=t.payload,m=t.formatter,g=t.itemSorter,x=t.wrapperClassName,_=t.labelClassName,w=t.label,S=t.labelFormatter,O=t.accessibilityLayer,C=O===void 0?!1:O,T=function(){if(h&&h.length){var ne={padding:0,margin:0},le=(g?zP(h,g):h).map(function(Q,J){if(Q.type==="none")return null;var H=OO({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},l),B=Q.formatter||m||kve,z=Q.value,F=Q.name,M=z,k=F;if(B&&M!=null&&k!=null){var te=B(z,F,Q,J,h);if(Array.isArray(te)){var Z=Ave(te,2);M=Z[0],k=Z[1]}else M=te}return ae.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:H},Kn(k)?ae.createElement("span",{className:"recharts-tooltip-item-name"},k):null,Kn(k)?ae.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,ae.createElement("span",{className:"recharts-tooltip-item-value"},M),ae.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return ae.createElement("ul",{className:"recharts-tooltip-item-list",style:ne},le)}return null},j=OO({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),P=OO({margin:0},c),R=!ht(w),I=R?w:"",V=ke("recharts-default-tooltip",x),G=ke("recharts-tooltip-label",_);R&&S&&h!==void 0&&h!==null&&(I=S(w,h));var W=C?{role:"status","aria-live":"assertive"}:{};return ae.createElement("div",GT({className:V,style:j},W),ae.createElement("p",{className:G,style:P},ae.isValidElement(I)?I:"".concat(I)),T())};function hm(e){"@babel/helpers - typeof";return hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hm(e)}function ny(e,t,n){return t=$ve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ve(e){var t=Bve(e,"string");return hm(t)=="symbol"?t:t+""}function Bve(e,t){if(hm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lp="recharts-tooltip-wrapper",Uve={visibility:"hidden"};function zve(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ke(lp,ny(ny(ny(ny({},"".concat(lp,"-right"),Ze(n)&&t&&Ze(t.x)&&n>=t.x),"".concat(lp,"-left"),Ze(n)&&t&&Ze(t.x)&&n<t.x),"".concat(lp,"-bottom"),Ze(r)&&t&&Ze(t.y)&&r>=t.y),"".concat(lp,"-top"),Ze(r)&&t&&Ze(t.y)&&r<t.y))}function V5(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,f=e.viewBox,c=e.viewBoxDimension;if(a&&Ze(a[r]))return a[r];var h=n[r]-l-i,m=n[r]+i;if(t[r])return o[r]?h:m;if(o[r]){var g=h,x=f[r];return g<x?Math.max(m,f[r]):Math.max(h,f[r])}var _=m+l,w=f[r]+c;return _>w?Math.max(h,f[r]):Math.max(m,f[r])}function Fve(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 qve(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,f=e.viewBox,c,h,m;return o.height>0&&o.width>0&&n?(h=V5({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:f,viewBoxDimension:f.width}),m=V5({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:f,viewBoxDimension:f.height}),c=Fve({translateX:h,translateY:m,useTranslate3d:l})):c=Uve,{cssProperties:c,cssClasses:zve({translateX:h,translateY:m,coordinate:n})}}function id(e){"@babel/helpers - typeof";return id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(e)}function H5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function W5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H5(Object(n),!0).forEach(function(r){KT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hve(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,CF(r.key),r)}}function Wve(e,t,n){return t&&Hve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gve(e,t,n){return t=Pb(t),Yve(e,EF()?Reflect.construct(t,n||[],Pb(e).constructor):t.apply(e,n))}function Yve(e,t){if(t&&(id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kve(e)}function Kve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EF=function(){return!!e})()}function Pb(e){return Pb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pb(e)}function Zve(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&&YT(e,t)}function YT(e,t){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YT(e,t)}function KT(e,t,n){return t=CF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CF(e){var t=Xve(e,"string");return id(t)=="symbol"?t:t+""}function Xve(e,t){if(id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var G5=1,Qve=function(e){function t(){var n;Vve(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Gve(this,t,[].concat(i)),KT(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),KT(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,f,c,h;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&l!==void 0?l:0,y:(c=(h=n.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&c!==void 0?c:0}})}}),n}return Zve(t,e),Wve(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>G5||Math.abs(r.height-this.state.lastBoundingBox.height)>G5)&&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,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,f=i.animationEasing,c=i.children,h=i.coordinate,m=i.hasPayload,g=i.isAnimationActive,x=i.offset,_=i.position,w=i.reverseDirection,S=i.useTranslate3d,O=i.viewBox,C=i.wrapperStyle,T=qve({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:x,position:_,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:O}),j=T.cssClasses,P=T.cssProperties,R=W5(W5({transition:g&&a?"transform ".concat(l,"ms ").concat(f):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&m?"visible":"hidden",position:"absolute",top:0,left:0},C);return ae.createElement("div",{tabIndex:-1,className:j,style:R,ref:function(V){r.wrapperNode=V}},c)}}])}(U.PureComponent),Jve=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},bs={isSsr:Jve()};function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}function Y5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function K5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y5(Object(n),!0).forEach(function(r){FP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ege(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tge(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,AF(r.key),r)}}function nge(e,t,n){return t&&tge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rge(e,t,n){return t=Rb(t),ige(e,TF()?Reflect.construct(t,n||[],Rb(e).constructor):t.apply(e,n))}function ige(e,t){if(t&&(ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return age(e)}function age(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TF=function(){return!!e})()}function Rb(e){return Rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rb(e)}function oge(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&&ZT(e,t)}function ZT(e,t){return ZT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZT(e,t)}function FP(e,t,n){return t=AF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AF(e){var t=sge(e,"string");return ad(t)=="symbol"?t:t+""}function sge(e,t){if(ad(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ad(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lge(e){return e.dataKey}function uge(e,t){return ae.isValidElement(e)?ae.cloneElement(e,t):typeof e=="function"?ae.createElement(e,t):ae.createElement(Ive,t)}var Gi=function(e){function t(){return ege(this,t),rge(this,t,arguments)}return oge(t,e),nge(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,f=i.animationEasing,c=i.content,h=i.coordinate,m=i.filterNull,g=i.isAnimationActive,x=i.offset,_=i.payload,w=i.payloadUniqBy,S=i.position,O=i.reverseDirection,C=i.useTranslate3d,T=i.viewBox,j=i.wrapperStyle,P=_??[];m&&P.length&&(P=yF(_.filter(function(I){return I.value!=null&&(I.hide!==!0||r.props.includeHidden)}),w,lge));var R=P.length>0;return ae.createElement(Qve,{allowEscapeViewBox:o,animationDuration:l,animationEasing:f,isAnimationActive:g,active:a,coordinate:h,hasPayload:R,offset:x,position:S,reverseDirection:O,useTranslate3d:C,viewBox:T,wrapperStyle:j},uge(c,K5(K5({},this.props),{},{payload:P})))}}])}(U.PureComponent);FP(Gi,"displayName","Tooltip");FP(Gi,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!bs.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 EO,Z5;function cge(){if(Z5)return EO;Z5=1;var e=vo(),t=function(){return e.Date.now()};return EO=t,EO}var CO,X5;function fge(){if(X5)return CO;X5=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return CO=t,CO}var TO,Q5;function dge(){if(Q5)return TO;Q5=1;var e=fge(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return TO=n,TO}var AO,J5;function jF(){if(J5)return AO;J5=1;var e=dge(),t=Wl(),n=zd(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function f(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=t(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=e(c);var m=a.test(c);return m||o.test(c)?l(c.slice(2),m?2:8):i.test(c)?r:+c}return AO=f,AO}var jO,e8;function hge(){if(e8)return jO;e8=1;var e=Wl(),t=cge(),n=jF(),r="Expected a function",i=Math.max,a=Math.min;function o(l,f,c){var h,m,g,x,_,w,S=0,O=!1,C=!1,T=!0;if(typeof l!="function")throw new TypeError(r);f=n(f)||0,e(c)&&(O=!!c.leading,C="maxWait"in c,g=C?i(n(c.maxWait)||0,f):g,T="trailing"in c?!!c.trailing:T);function j(le){var Q=h,J=m;return h=m=void 0,S=le,x=l.apply(J,Q),x}function P(le){return S=le,_=setTimeout(V,f),O?j(le):x}function R(le){var Q=le-w,J=le-S,H=f-Q;return C?a(H,g-J):H}function I(le){var Q=le-w,J=le-S;return w===void 0||Q>=f||Q<0||C&&J>=g}function V(){var le=t();if(I(le))return G(le);_=setTimeout(V,R(le))}function G(le){return _=void 0,T&&h?j(le):(h=m=void 0,x)}function W(){_!==void 0&&clearTimeout(_),S=0,h=w=m=_=void 0}function K(){return _===void 0?x:G(t())}function ne(){var le=t(),Q=I(le);if(h=arguments,m=this,w=le,Q){if(_===void 0)return P(w);if(C)return clearTimeout(_),_=setTimeout(V,f),j(w)}return _===void 0&&(_=setTimeout(V,f)),x}return ne.cancel=W,ne.flush=K,ne}return jO=o,jO}var PO,t8;function pge(){if(t8)return PO;t8=1;var e=hge(),t=Wl(),n="Expected a function";function r(i,a,o){var l=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(o)&&(l="leading"in o?!!o.leading:l,f="trailing"in o?!!o.trailing:f),e(i,a,{leading:l,maxWait:a,trailing:f})}return PO=r,PO}var mge=pge();const PF=Lt(mge);function pm(e){"@babel/helpers - typeof";return pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pm(e)}function n8(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 ry(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n8(Object(n),!0).forEach(function(r){vge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vge(e,t,n){return t=gge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gge(e){var t=yge(e,"string");return pm(t)=="symbol"?t:t+""}function yge(e,t){if(pm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bge(e,t){return Sge(e)||wge(e,t)||xge(e,t)||_ge()}function _ge(){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 xge(e,t){if(e){if(typeof e=="string")return r8(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 r8(e,t)}}function r8(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 wge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Sge(e){if(Array.isArray(e))return e}var Oge=U.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?"100%":a,l=e.height,f=l===void 0?"100%":l,c=e.minWidth,h=c===void 0?0:c,m=e.minHeight,g=e.maxHeight,x=e.children,_=e.debounce,w=_===void 0?0:_,S=e.id,O=e.className,C=e.onResize,T=e.style,j=T===void 0?{}:T,P=U.useRef(null),R=U.useRef();R.current=C,U.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var I=U.useState({containerWidth:i.width,containerHeight:i.height}),V=bge(I,2),G=V[0],W=V[1],K=U.useCallback(function(le,Q){W(function(J){var H=Math.round(le),B=Math.round(Q);return J.containerWidth===H&&J.containerHeight===B?J:{containerWidth:H,containerHeight:B}})},[]);U.useEffect(function(){var le=function(F){var M,k=F[0].contentRect,te=k.width,Z=k.height;K(te,Z),(M=R.current)===null||M===void 0||M.call(R,te,Z)};w>0&&(le=PF(le,w,{trailing:!0,leading:!1}));var Q=new ResizeObserver(le),J=P.current.getBoundingClientRect(),H=J.width,B=J.height;return K(H,B),Q.observe(P.current),function(){Q.disconnect()}},[K,w]);var ne=U.useMemo(function(){var le=G.containerWidth,Q=G.containerHeight;if(le<0||Q<0)return null;xa(Fu(o)||Fu(f),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,o,f),xa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var J=Fu(o)?le:o,H=Fu(f)?Q:f;n&&n>0&&(J?H=J/n:H&&(J=H*n),g&&H>g&&(H=g)),xa(J>0||H>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.`,J,H,o,f,h,m,n);var B=!Array.isArray(x)&&es(x.type).endsWith("Chart");return ae.Children.map(x,function(z){return ae.isValidElement(z)?U.cloneElement(z,ry({width:J,height:H},B?{style:ry({height:"100%",width:"100%",maxHeight:H,maxWidth:J},z.props.style)}:{})):z})},[n,x,f,g,m,h,G,o]);return ae.createElement("div",{id:S?"".concat(S):void 0,className:ke("recharts-responsive-container",O),style:ry(ry({},j),{},{width:o,height:f,minWidth:h,minHeight:m,maxHeight:g}),ref:P},ne)}),Tl=function(t){return null};Tl.displayName="Cell";function mm(e){"@babel/helpers - typeof";return mm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mm(e)}function i8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function XT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i8(Object(n),!0).forEach(function(r){Ege(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ege(e,t,n){return t=Cge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cge(e){var t=Tge(e,"string");return mm(t)=="symbol"?t:t+""}function Tge(e,t){if(mm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bf={widthCache:{},cacheCount:0},Age=2e3,jge={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},a8="recharts_measurement_span";function Pge(e){var t=XT({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var $p=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||bs.isSsr)return{width:0,height:0};var r=Pge(n),i=JSON.stringify({text:t,copyStyle:r});if(bf.widthCache[i])return bf.widthCache[i];try{var a=document.getElementById(a8);a||(a=document.createElement("span"),a.setAttribute("id",a8),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=XT(XT({},jge),r);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),f={width:l.width,height:l.height};return bf.widthCache[i]=f,++bf.cacheCount>Age&&(bf.cacheCount=0,bf.widthCache={}),f}catch{return{width:0,height:0}}},Rge=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function vm(e){"@babel/helpers - typeof";return vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vm(e)}function Mb(e,t){return Dge(e)||Lge(e,t)||Nge(e,t)||Mge()}function Mge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nge(e,t){if(e){if(typeof e=="string")return o8(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 o8(e,t)}}function o8(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 Lge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Dge(e){if(Array.isArray(e))return e}function kge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s8(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,$ge(r.key),r)}}function Ige(e,t,n){return t&&s8(e.prototype,t),n&&s8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ge(e){var t=Bge(e,"string");return vm(t)=="symbol"?t:t+""}function Bge(e,t){if(vm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var l8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,u8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Uge=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,zge=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,RF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Fge=Object.keys(RF),Nf="NaN";function qge(e,t){return e*RF[t]}var iy=function(){function e(t,n){kge(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Uge.test(n)&&(this.num=NaN,this.unit=""),Fge.includes(n)&&(this.num=qge(t,n),this.unit="px")}return Ige(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=zge.exec(n))!==null&&r!==void 0?r:[],a=Mb(i,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])}();function MF(e){if(e.includes(Nf))return Nf;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=l8.exec(t))!==null&&n!==void 0?n:[],i=Mb(r,4),a=i[1],o=i[2],l=i[3],f=iy.parse(a??""),c=iy.parse(l??""),h=o==="*"?f.multiply(c):f.divide(c);if(h.isNaN())return Nf;t=t.replace(l8,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,g=(m=u8.exec(t))!==null&&m!==void 0?m:[],x=Mb(g,4),_=x[1],w=x[2],S=x[3],O=iy.parse(_??""),C=iy.parse(S??""),T=w==="+"?O.add(C):O.subtract(C);if(T.isNaN())return Nf;t=t.replace(u8,T.toString())}return t}var c8=/\(([^()]*)\)/;function Vge(e){for(var t=e;t.includes("(");){var n=c8.exec(t),r=Mb(n,2),i=r[1];t=t.replace(c8,MF(i))}return t}function Hge(e){var t=e.replace(/\s+/g,"");return t=Vge(t),t=MF(t),t}function Wge(e){try{return Hge(e)}catch{return Nf}}function RO(e){var t=Wge(e.slice(5,-1));return t===Nf?"":t}var Gge=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Yge=["dx","dy","angle","className","breakAll"];function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QT.apply(this,arguments)}function f8(e,t){if(e==null)return{};var n=Kge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function d8(e,t){return Jge(e)||Qge(e,t)||Xge(e,t)||Zge()}function Zge(){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 Xge(e,t){if(e){if(typeof e=="string")return h8(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 h8(e,t)}}function h8(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 Qge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Jge(e){if(Array.isArray(e))return e}var NF=/[ \f\n\r\t\v\u2028\u2029]+/,LF=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];ht(n)||(r?a=n.toString().split(""):a=n.toString().split(NF));var o=a.map(function(f){return{word:f,width:$p(f,i).width}}),l=r?0:$p(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},eye=function(t,n,r,i,a){var o=t.maxLines,l=t.children,f=t.style,c=t.breakAll,h=Ze(o),m=l,g=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(H,B){var z=B.word,F=B.width,M=H[H.length-1];if(M&&(i==null||a||M.width+F+r<Number(i)))M.words.push(z),M.width+=F+r;else{var k={words:[z],width:F};H.push(k)}return H},[])},x=g(n),_=function(J){return J.reduce(function(H,B){return H.width>B.width?H:B})};if(!h)return x;for(var w="…",S=function(J){var H=m.slice(0,J),B=LF({breakAll:c,style:f,children:H+w}).wordsWithComputedWidth,z=g(B),F=z.length>o||_(z).width>Number(i);return[F,z]},O=0,C=m.length-1,T=0,j;O<=C&&T<=m.length-1;){var P=Math.floor((O+C)/2),R=P-1,I=S(R),V=d8(I,2),G=V[0],W=V[1],K=S(P),ne=d8(K,1),le=ne[0];if(!G&&!le&&(O=P+1),G&&le&&(C=P-1),!G&&le){j=W;break}T++}return j||x},p8=function(t){var n=ht(t)?[]:t.toString().split(NF);return[{words:n}]},tye=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!bs.isSsr){var f,c,h=LF({breakAll:o,children:i,style:a});if(h){var m=h.wordsWithComputedWidth,g=h.spaceWidth;f=m,c=g}else return p8(i);return eye({breakAll:o,children:i,maxLines:l,style:a},f,c,n,r)}return p8(i)},m8="#808080",cc=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,f=t.capHeight,c=f===void 0?"0.71em":f,h=t.scaleToFit,m=h===void 0?!1:h,g=t.textAnchor,x=g===void 0?"start":g,_=t.verticalAnchor,w=_===void 0?"end":_,S=t.fill,O=S===void 0?m8:S,C=f8(t,Gge),T=U.useMemo(function(){return tye({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:m,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,m,C.style,C.width]),j=C.dx,P=C.dy,R=C.angle,I=C.className,V=C.breakAll,G=f8(C,Yge);if(!Kn(r)||!Kn(a))return null;var W=r+(Ze(j)?j:0),K=a+(Ze(P)?P:0),ne;switch(w){case"start":ne=RO("calc(".concat(c,")"));break;case"middle":ne=RO("calc(".concat((T.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:ne=RO("calc(".concat(T.length-1," * -").concat(l,")"));break}var le=[];if(m){var Q=T[0].width,J=C.width;le.push("scale(".concat((Ze(J)?J/Q:1)/Q,")"))}return R&&le.push("rotate(".concat(R,", ").concat(W,", ").concat(K,")")),le.length&&(G.transform=le.join(" ")),ae.createElement("text",QT({},at(G,!0),{x:W,y:K,className:ke("recharts-text",I),textAnchor:x,fill:O.includes("url")?m8:O}),T.map(function(H,B){var z=H.words.join(V?"":" ");return ae.createElement("tspan",{x:W,dy:B===0?ne:l,key:"".concat(z,"-").concat(B)},z)}))};function Al(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nye(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qP(e){let t,n,r;e.length!==2?(t=Al,n=(l,f)=>Al(e(l),f),r=(l,f)=>e(l)-f):(t=e===Al||e===nye?e:rye,n=e,r=e);function i(l,f,c=0,h=l.length){if(c<h){if(t(f,f)!==0)return h;do{const m=c+h>>>1;n(l[m],f)<0?c=m+1:h=m}while(c<h)}return c}function a(l,f,c=0,h=l.length){if(c<h){if(t(f,f)!==0)return h;do{const m=c+h>>>1;n(l[m],f)<=0?c=m+1:h=m}while(c<h)}return c}function o(l,f,c=0,h=l.length){const m=i(l,f,c,h-1);return m>c&&r(l[m-1],f)>-r(l[m],f)?m-1:m}return{left:i,center:o,right:a}}function rye(){return 0}function DF(e){return e===null?NaN:+e}function*iye(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const aye=qP(Al),hv=aye.right;qP(DF).center;class v8 extends Map{constructor(t,n=lye){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(g8(this,t))}has(t){return super.has(g8(this,t))}set(t,n){return super.set(oye(this,t),n)}delete(t){return super.delete(sye(this,t))}}function g8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function oye({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function sye({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function lye(e){return e!==null&&typeof e=="object"?e.valueOf():e}function uye(e=Al){if(e===Al)return kF;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 kF(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const cye=Math.sqrt(50),fye=Math.sqrt(10),dye=Math.sqrt(2);function Nb(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=cye?10:a>=fye?5:a>=dye?2:1;let l,f,c;return i<0?(c=Math.pow(10,-i)/o,l=Math.round(e*c),f=Math.round(t*c),l/c<e&&++l,f/c>t&&--f,c=-c):(c=Math.pow(10,i)*o,l=Math.round(e/c),f=Math.round(t/c),l*c<e&&++l,f*c>t&&--f),f<l&&.5<=n&&n<2?Nb(e,t,n*2):[l,f,c]}function JT(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Nb(t,e,n):Nb(e,t,n);if(!(a>=i))return[];const l=a-i+1,f=new Array(l);if(r)if(o<0)for(let c=0;c<l;++c)f[c]=(a-c)/-o;else for(let c=0;c<l;++c)f[c]=(a-c)*o;else if(o<0)for(let c=0;c<l;++c)f[c]=(i+c)/-o;else for(let c=0;c<l;++c)f[c]=(i+c)*o;return f}function eA(e,t,n){return t=+t,e=+e,n=+n,Nb(e,t,n)[2]}function tA(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?eA(t,e,n):eA(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function y8(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function b8(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function IF(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?kF:uye(i);r>n;){if(r-n>600){const f=r-n+1,c=t-n+1,h=Math.log(f),m=.5*Math.exp(2*h/3),g=.5*Math.sqrt(h*m*(f-m)/f)*(c-f/2<0?-1:1),x=Math.max(n,Math.floor(t-c*m/f+g)),_=Math.min(r,Math.floor(t+(f-c)*m/f+g));IF(e,t,x,_,i)}const a=e[t];let o=n,l=r;for(up(e,n,t),i(e[r],a)>0&&up(e,n,r);o<l;){for(up(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?up(e,n,l):(++l,up(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function up(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function hye(e,t,n){if(e=Float64Array.from(iye(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return b8(e);if(t>=1)return y8(e);var r,i=(r-1)*t,a=Math.floor(i),o=y8(IF(e,a).subarray(0,a+1)),l=b8(e.subarray(a+1));return o+(l-o)*(i-a)}}function pye(e,t,n=DF){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,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function mye(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,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function oa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function _s(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 nA=Symbol("implicit");function VP(){var e=new v8,t=[],n=[],r=nA;function i(a){let o=e.get(a);if(o===void 0){if(r!==nA)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new v8;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return VP(t,n).unknown(r)},oa.apply(i,arguments),i}function gm(){var e=VP().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,f=0,c=0,h=.5;delete e.unknown;function m(){var g=t().length,x=i<r,_=x?i:r,w=x?r:i;a=(w-_)/Math.max(1,g-f+c*2),l&&(a=Math.floor(a)),_+=(w-_-a*(g-f))*h,o=a*(1-f),l&&(_=Math.round(_),o=Math.round(o));var S=mye(g).map(function(O){return _+a*O});return n(x?S.reverse():S)}return e.domain=function(g){return arguments.length?(t(g),m()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,l=!0,m()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(g){return arguments.length?(l=!!g,m()):l},e.padding=function(g){return arguments.length?(f=Math.min(1,c=+g),m()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),m()):f},e.paddingOuter=function(g){return arguments.length?(c=+g,m()):c},e.align=function(g){return arguments.length?(h=Math.max(0,Math.min(1,g)),m()):h},e.copy=function(){return gm(t(),[r,i]).round(l).paddingInner(f).paddingOuter(c).align(h)},oa.apply(m(),arguments)}function $F(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return $F(t())},e}function Bp(){return $F(gm.apply(null,arguments).paddingInner(1))}function HP(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function BF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pv(){}var ym=.7,Lb=1/ym,Ff="\\s*([+-]?\\d+)\\s*",bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vye=/^#([0-9a-f]{3,8})$/,gye=new RegExp(`^rgb\\(${Ff},${Ff},${Ff}\\)$`),yye=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),bye=new RegExp(`^rgba\\(${Ff},${Ff},${Ff},${bm}\\)$`),_ye=new RegExp(`^rgba\\(${io},${io},${io},${bm}\\)$`),xye=new RegExp(`^hsl\\(${bm},${io},${io}\\)$`),wye=new RegExp(`^hsla\\(${bm},${io},${io},${bm}\\)$`),_8={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};HP(pv,_m,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:x8,formatHex:x8,formatHex8:Sye,formatHsl:Oye,formatRgb:w8,toString:w8});function x8(){return this.rgb().formatHex()}function Sye(){return this.rgb().formatHex8()}function Oye(){return UF(this).formatHsl()}function w8(){return this.rgb().formatRgb()}function _m(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vye.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?S8(t):n===3?new Xr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ay(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ay(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=gye.exec(e))?new Xr(t[1],t[2],t[3],1):(t=yye.exec(e))?new Xr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bye.exec(e))?ay(t[1],t[2],t[3],t[4]):(t=_ye.exec(e))?ay(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xye.exec(e))?C8(t[1],t[2]/100,t[3]/100,1):(t=wye.exec(e))?C8(t[1],t[2]/100,t[3]/100,t[4]):_8.hasOwnProperty(e)?S8(_8[e]):e==="transparent"?new Xr(NaN,NaN,NaN,0):null}function S8(e){return new Xr(e>>16&255,e>>8&255,e&255,1)}function ay(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xr(e,t,n,r)}function Eye(e){return e instanceof pv||(e=_m(e)),e?(e=e.rgb(),new Xr(e.r,e.g,e.b,e.opacity)):new Xr}function rA(e,t,n,r){return arguments.length===1?Eye(e):new Xr(e,t,n,r??1)}function Xr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}HP(Xr,rA,BF(pv,{brighter(e){return e=e==null?Lb:Math.pow(Lb,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ym:Math.pow(ym,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xr(Xu(this.r),Xu(this.g),Xu(this.b),Db(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:O8,formatHex:O8,formatHex8:Cye,formatRgb:E8,toString:E8}));function O8(){return`#${qu(this.r)}${qu(this.g)}${qu(this.b)}`}function Cye(){return`#${qu(this.r)}${qu(this.g)}${qu(this.b)}${qu((isNaN(this.opacity)?1:this.opacity)*255)}`}function E8(){const e=Db(this.opacity);return`${e===1?"rgb(":"rgba("}${Xu(this.r)}, ${Xu(this.g)}, ${Xu(this.b)}${e===1?")":`, ${e})`}`}function Db(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qu(e){return e=Xu(e),(e<16?"0":"")+e.toString(16)}function C8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _a(e,t,n,r)}function UF(e){if(e instanceof _a)return new _a(e.h,e.s,e.l,e.opacity);if(e instanceof pv||(e=_m(e)),!e)return new _a;if(e instanceof _a)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,f=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=f<.5?a+i:2-a-i,o*=60):l=f>0&&f<1?0:o,new _a(o,l,f,e.opacity)}function Tye(e,t,n,r){return arguments.length===1?UF(e):new _a(e,t,n,r??1)}function _a(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}HP(_a,Tye,BF(pv,{brighter(e){return e=e==null?Lb:Math.pow(Lb,e),new _a(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ym:Math.pow(ym,e),new _a(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 Xr(MO(e>=240?e-240:e+120,i,r),MO(e,i,r),MO(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _a(T8(this.h),oy(this.s),oy(this.l),Db(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=Db(this.opacity);return`${e===1?"hsl(":"hsla("}${T8(this.h)}, ${oy(this.s)*100}%, ${oy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function T8(e){return e=(e||0)%360,e<0?e+360:e}function oy(e){return Math.max(0,Math.min(1,e||0))}function MO(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 WP=e=>()=>e;function Aye(e,t){return function(n){return e+n*t}}function jye(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 Pye(e){return(e=+e)==1?zF:function(t,n){return n-t?jye(t,n,e):WP(isNaN(t)?n:t)}}function zF(e,t){var n=t-e;return n?Aye(e,n):WP(isNaN(e)?t:e)}const A8=function e(t){var n=Pye(t);function r(i,a){var o=n((i=rA(i)).r,(a=rA(a)).r),l=n(i.g,a.g),f=n(i.b,a.b),c=zF(i.opacity,a.opacity);return function(h){return i.r=o(h),i.g=l(h),i.b=f(h),i.opacity=c(h),i+""}}return r.gamma=e,r}(1);function Rye(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Mye(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Nye(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Hd(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function Lye(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function kb(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Dye(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]=Hd(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var iA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,NO=new RegExp(iA.source,"g");function kye(e){return function(){return e}}function Iye(e){return function(t){return e(t)+""}}function $ye(e,t){var n=iA.lastIndex=NO.lastIndex=0,r,i,a,o=-1,l=[],f=[];for(e=e+"",t=t+"";(r=iA.exec(e))&&(i=NO.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,f.push({i:o,x:kb(r,i)})),n=NO.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?f[0]?Iye(f[0].x):kye(t):(t=f.length,function(c){for(var h=0,m;h<t;++h)l[(m=f[h]).i]=m.x(c);return l.join("")})}function Hd(e,t){var n=typeof t,r;return t==null||n==="boolean"?WP(t):(n==="number"?kb:n==="string"?(r=_m(t))?(t=r,A8):$ye:t instanceof _m?A8:t instanceof Date?Lye:Mye(t)?Rye:Array.isArray(t)?Nye:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Dye:kb)(e,t)}function GP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Bye(e,t){t===void 0&&(t=e,e=Hd);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}function Uye(e){return function(){return e}}function Ib(e){return+e}var j8=[0,1];function zr(e){return e}function aA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Uye(isNaN(t)?NaN:.5)}function zye(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Fye(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=aA(i,r),a=n(o,a)):(r=aA(r,i),a=n(a,o)),function(l){return a(r(l))}}function qye(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=aA(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var f=hv(e,l,1,r)-1;return a[f](i[f](l))}}function mv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function v_(){var e=j8,t=j8,n=Hd,r,i,a,o=zr,l,f,c;function h(){var g=Math.min(e.length,t.length);return o!==zr&&(o=zye(e[0],e[g-1])),l=g>2?qye:Fye,f=c=null,m}function m(g){return g==null||isNaN(g=+g)?a:(f||(f=l(e.map(r),t,n)))(r(o(g)))}return m.invert=function(g){return o(i((c||(c=l(t,e.map(r),kb)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,Ib),h()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),h()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),n=GP,h()},m.clamp=function(g){return arguments.length?(o=g?!0:zr,h()):o!==zr},m.interpolate=function(g){return arguments.length?(n=g,h()):n},m.unknown=function(g){return arguments.length?(a=g,m):a},function(g,x){return r=g,i=x,h()}}function YP(){return v_()(zr,zr)}function Vye(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $b(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 od(e){return e=$b(Math.abs(e)),e?e[1]:NaN}function Hye(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>r&&(l=Math.max(1,r-f)),a.push(n.substring(i-=l,i+l)),!((f+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Wye(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Gye=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xm(e){if(!(t=Gye.exec(e)))throw new Error("invalid format: "+e);var t;return new KP({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]})}xm.prototype=KP.prototype;function KP(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+""}KP.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 Yye(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 FF;function Kye(e,t){var n=$b(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(FF=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+$b(e,Math.max(0,t+a-1))[0]}function P8(e,t){var n=$b(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 R8={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Vye,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)=>P8(e*100,t),r:P8,s:Kye,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function M8(e){return e}var N8=Array.prototype.map,L8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Zye(e){var t=e.grouping===void 0||e.thousands===void 0?M8:Hye(N8.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+"",a=e.numerals===void 0?M8:Wye(N8.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function c(m){m=xm(m);var g=m.fill,x=m.align,_=m.sign,w=m.symbol,S=m.zero,O=m.width,C=m.comma,T=m.precision,j=m.trim,P=m.type;P==="n"?(C=!0,P="g"):R8[P]||(T===void 0&&(T=12),j=!0,P="g"),(S||g==="0"&&x==="=")&&(S=!0,g="0",x="=");var R=w==="$"?n:w==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",I=w==="$"?r:/[%p]/.test(P)?o:"",V=R8[P],G=/[defgprs%]/.test(P);T=T===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function W(K){var ne=R,le=I,Q,J,H;if(P==="c")le=V(K)+le,K="";else{K=+K;var B=K<0||1/K<0;if(K=isNaN(K)?f:V(Math.abs(K),T),j&&(K=Yye(K)),B&&+K==0&&_!=="+"&&(B=!1),ne=(B?_==="("?_:l:_==="-"||_==="("?"":_)+ne,le=(P==="s"?L8[8+FF/3]:"")+le+(B&&_==="("?")":""),G){for(Q=-1,J=K.length;++Q<J;)if(H=K.charCodeAt(Q),48>H||H>57){le=(H===46?i+K.slice(Q+1):K.slice(Q))+le,K=K.slice(0,Q);break}}}C&&!S&&(K=t(K,1/0));var z=ne.length+K.length+le.length,F=z<O?new Array(O-z+1).join(g):"";switch(C&&S&&(K=t(F+K,F.length?O-le.length:1/0),F=""),x){case"<":K=ne+K+le+F;break;case"=":K=ne+F+K+le;break;case"^":K=F.slice(0,z=F.length>>1)+ne+K+le+F.slice(z);break;default:K=F+ne+K+le;break}return a(K)}return W.toString=function(){return m+""},W}function h(m,g){var x=c((m=xm(m),m.type="f",m)),_=Math.max(-8,Math.min(8,Math.floor(od(g)/3)))*3,w=Math.pow(10,-_),S=L8[8+_/3];return function(O){return x(w*O)+S}}return{format:c,formatPrefix:h}}var sy,ZP,qF;Xye({thousands:",",grouping:[3],currency:["$",""]});function Xye(e){return sy=Zye(e),ZP=sy.format,qF=sy.formatPrefix,sy}function Qye(e){return Math.max(0,-od(Math.abs(e)))}function Jye(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(od(t)/3)))*3-od(Math.abs(e)))}function ebe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,od(t)-od(e))+1}function VF(e,t,n,r){var i=tA(e,t,n),a;switch(r=xm(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Jye(i,o))&&(r.precision=a),qF(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=ebe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Qye(i))&&(r.precision=a-(r.type==="%")*2);break}}return ZP(r)}function Yl(e){var t=e.domain;return e.ticks=function(n){var r=t();return JT(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return VF(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],f,c,h=10;for(l<o&&(c=o,o=l,l=c,c=i,i=a,a=c);h-- >0;){if(c=eA(o,l,n),c===f)return r[i]=o,r[a]=l,t(r);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else if(c<0)o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c;else break;f=c}return e},e}function Bb(){var e=YP();return e.copy=function(){return mv(e,Bb())},oa.apply(e,arguments),Yl(e)}function HF(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,Ib),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return HF(e).unknown(t)},e=arguments.length?Array.from(e,Ib):[0,1],Yl(n)}function WF(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function D8(e){return Math.log(e)}function k8(e){return Math.exp(e)}function tbe(e){return-Math.log(-e)}function nbe(e){return-Math.exp(-e)}function rbe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ibe(e){return e===10?rbe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function abe(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 I8(e){return(t,n)=>-e(-t,n)}function XP(e){const t=e(D8,k8),n=t.domain;let r=10,i,a;function o(){return i=abe(r),a=ibe(r),n()[0]<0?(i=I8(i),a=I8(a),e(tbe,nbe)):e(D8,k8),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const f=n();let c=f[0],h=f[f.length-1];const m=h<c;m&&([c,h]=[h,c]);let g=i(c),x=i(h),_,w;const S=l==null?10:+l;let O=[];if(!(r%1)&&x-g<S){if(g=Math.floor(g),x=Math.ceil(x),c>0){for(;g<=x;++g)for(_=1;_<r;++_)if(w=g<0?_/a(-g):_*a(g),!(w<c)){if(w>h)break;O.push(w)}}else for(;g<=x;++g)for(_=r-1;_>=1;--_)if(w=g>0?_/a(-g):_*a(g),!(w<c)){if(w>h)break;O.push(w)}O.length*2<S&&(O=JT(c,h,S))}else O=JT(g,x,Math.min(x-g,S)).map(a);return m?O.reverse():O},t.tickFormat=(l,f)=>{if(l==null&&(l=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=xm(f)).precision==null&&(f.trim=!0),f=ZP(f)),l===1/0)return f;const c=Math.max(1,r*l/t.ticks().length);return h=>{let m=h/a(Math.round(i(h)));return m*r<r-.5&&(m*=r),m<=c?f(h):""}},t.nice=()=>n(WF(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function GF(){const e=XP(v_()).domain([1,10]);return e.copy=()=>mv(e,GF()).base(e.base()),oa.apply(e,arguments),e}function $8(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function B8(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function QP(e){var t=1,n=e($8(t),B8(t));return n.constant=function(r){return arguments.length?e($8(t=+r),B8(t)):t},Yl(n)}function YF(){var e=QP(v_());return e.copy=function(){return mv(e,YF()).constant(e.constant())},oa.apply(e,arguments)}function U8(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function obe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function sbe(e){return e<0?-e*e:e*e}function JP(e){var t=e(zr,zr),n=1;function r(){return n===1?e(zr,zr):n===.5?e(obe,sbe):e(U8(n),U8(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Yl(t)}function e3(){var e=JP(v_());return e.copy=function(){return mv(e,e3()).exponent(e.exponent())},oa.apply(e,arguments),e}function lbe(){return e3.apply(null,arguments).exponent(.5)}function z8(e){return Math.sign(e)*e*e}function ube(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function KF(){var e=YP(),t=[0,1],n=!1,r;function i(a){var o=ube(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(z8(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ib)).map(z8)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return KF(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},oa.apply(i,arguments),Yl(i)}function ZF(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=pye(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[hv(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Al),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return ZF().domain(e).range(t).unknown(r)},oa.apply(a,arguments)}function XF(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(f){return f!=null&&f<=f?i[hv(r,f,0,n)]:a}function l(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return o}return o.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,l()):[e,t]},o.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,l()):i.slice()},o.invertExtent=function(f){var c=i.indexOf(f);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},o.unknown=function(f){return arguments.length&&(a=f),o},o.thresholds=function(){return r.slice()},o.copy=function(){return XF().domain([e,t]).range(i).unknown(a)},oa.apply(Yl(o),arguments)}function QF(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[hv(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return QF().domain(e).range(t).unknown(n)},oa.apply(i,arguments)}const LO=new Date,DO=new Date;function Xn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const f=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return f;let c;do f.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return f},i.filter=a=>Xn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(LO.setTime(+a),DO.setTime(+o),e(LO),e(DO),Math.floor(n(LO,DO))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ub=Xn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ub.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ub);Ub.range;const Ko=1e3,Zi=Ko*60,Zo=Zi*60,us=Zo*24,t3=us*7,F8=us*30,kO=us*365,Vu=Xn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ko)},(e,t)=>(t-e)/Ko,e=>e.getUTCSeconds());Vu.range;const n3=Xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ko)},(e,t)=>{e.setTime(+e+t*Zi)},(e,t)=>(t-e)/Zi,e=>e.getMinutes());n3.range;const r3=Xn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Zi)},(e,t)=>(t-e)/Zi,e=>e.getUTCMinutes());r3.range;const i3=Xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ko-e.getMinutes()*Zi)},(e,t)=>{e.setTime(+e+t*Zo)},(e,t)=>(t-e)/Zo,e=>e.getHours());i3.range;const a3=Xn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zo)},(e,t)=>(t-e)/Zo,e=>e.getUTCHours());a3.range;const vv=Xn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Zi)/us,e=>e.getDate()-1);vv.range;const g_=Xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/us,e=>e.getUTCDate()-1);g_.range;const JF=Xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/us,e=>Math.floor(e/us));JF.range;function yc(e){return Xn(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())*Zi)/t3)}const y_=yc(0),zb=yc(1),cbe=yc(2),fbe=yc(3),sd=yc(4),dbe=yc(5),hbe=yc(6);y_.range;zb.range;cbe.range;fbe.range;sd.range;dbe.range;hbe.range;function bc(e){return Xn(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)/t3)}const b_=bc(0),Fb=bc(1),pbe=bc(2),mbe=bc(3),ld=bc(4),vbe=bc(5),gbe=bc(6);b_.range;Fb.range;pbe.range;mbe.range;ld.range;vbe.range;gbe.range;const o3=Xn(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());o3.range;const s3=Xn(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());s3.range;const cs=Xn(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());cs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xn(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)});cs.range;const fs=Xn(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());fs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xn(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)});fs.range;function eq(e,t,n,r,i,a){const o=[[Vu,1,Ko],[Vu,5,5*Ko],[Vu,15,15*Ko],[Vu,30,30*Ko],[a,1,Zi],[a,5,5*Zi],[a,15,15*Zi],[a,30,30*Zi],[i,1,Zo],[i,3,3*Zo],[i,6,6*Zo],[i,12,12*Zo],[r,1,us],[r,2,2*us],[n,1,t3],[t,1,F8],[t,3,3*F8],[e,1,kO]];function l(c,h,m){const g=h<c;g&&([c,h]=[h,c]);const x=m&&typeof m.range=="function"?m:f(c,h,m),_=x?x.range(c,+h+1):[];return g?_.reverse():_}function f(c,h,m){const g=Math.abs(h-c)/m,x=qP(([,,S])=>S).right(o,g);if(x===o.length)return e.every(tA(c/kO,h/kO,m));if(x===0)return Ub.every(Math.max(tA(c,h,m),1));const[_,w]=o[g/o[x-1][2]<o[x][2]/g?x-1:x];return _.every(w)}return[l,f]}const[ybe,bbe]=eq(fs,s3,b_,JF,a3,r3),[_be,xbe]=eq(cs,o3,y_,vv,i3,n3);function IO(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 $O(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 cp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function wbe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,f=e.shortMonths,c=fp(i),h=dp(i),m=fp(a),g=dp(a),x=fp(o),_=dp(o),w=fp(l),S=dp(l),O=fp(f),C=dp(f),T={a:B,A:z,b:F,B:M,c:null,d:Y8,e:Y8,f:Hbe,g:t0e,G:r0e,H:Fbe,I:qbe,j:Vbe,L:tq,m:Wbe,M:Gbe,p:k,q:te,Q:X8,s:Q8,S:Ybe,u:Kbe,U:Zbe,V:Xbe,w:Qbe,W:Jbe,x:null,X:null,y:e0e,Y:n0e,Z:i0e,"%":Z8},j={a:Z,A:oe,b:he,B:de,c:null,d:K8,e:K8,f:l0e,g:y0e,G:_0e,H:a0e,I:o0e,j:s0e,L:rq,m:u0e,M:c0e,p:be,q:$,Q:X8,s:Q8,S:f0e,u:d0e,U:h0e,V:p0e,w:m0e,W:v0e,x:null,X:null,y:g0e,Y:b0e,Z:x0e,"%":Z8},P={a:W,A:K,b:ne,B:le,c:Q,d:W8,e:W8,f:$be,g:H8,G:V8,H:G8,I:G8,j:Lbe,L:Ibe,m:Nbe,M:Dbe,p:G,q:Mbe,Q:Ube,s:zbe,S:kbe,u:Tbe,U:Abe,V:jbe,w:Cbe,W:Pbe,x:J,X:H,y:H8,Y:V8,Z:Rbe,"%":Bbe};T.x=R(n,T),T.X=R(r,T),T.c=R(t,T),j.x=R(n,j),j.X=R(r,j),j.c=R(t,j);function R(q,ee){return function(fe){var X=[],ue=-1,pe=0,ye=q.length,me,we,Te;for(fe instanceof Date||(fe=new Date(+fe));++ue<ye;)q.charCodeAt(ue)===37&&(X.push(q.slice(pe,ue)),(we=q8[me=q.charAt(++ue)])!=null?me=q.charAt(++ue):we=me==="e"?" ":"0",(Te=ee[me])&&(me=Te(fe,we)),X.push(me),pe=ue+1);return X.push(q.slice(pe,ue)),X.join("")}}function I(q,ee){return function(fe){var X=cp(1900,void 0,1),ue=V(X,q,fe+="",0),pe,ye;if(ue!=fe.length)return null;if("Q"in X)return new Date(X.Q);if("s"in X)return new Date(X.s*1e3+("L"in X?X.L:0));if(ee&&!("Z"in X)&&(X.Z=0),"p"in X&&(X.H=X.H%12+X.p*12),X.m===void 0&&(X.m="q"in X?X.q:0),"V"in X){if(X.V<1||X.V>53)return null;"w"in X||(X.w=1),"Z"in X?(pe=$O(cp(X.y,0,1)),ye=pe.getUTCDay(),pe=ye>4||ye===0?Fb.ceil(pe):Fb(pe),pe=g_.offset(pe,(X.V-1)*7),X.y=pe.getUTCFullYear(),X.m=pe.getUTCMonth(),X.d=pe.getUTCDate()+(X.w+6)%7):(pe=IO(cp(X.y,0,1)),ye=pe.getDay(),pe=ye>4||ye===0?zb.ceil(pe):zb(pe),pe=vv.offset(pe,(X.V-1)*7),X.y=pe.getFullYear(),X.m=pe.getMonth(),X.d=pe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),ye="Z"in X?$O(cp(X.y,0,1)).getUTCDay():IO(cp(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(ye+5)%7:X.w+X.U*7-(ye+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,$O(X)):IO(X)}}function V(q,ee,fe,X){for(var ue=0,pe=ee.length,ye=fe.length,me,we;ue<pe;){if(X>=ye)return-1;if(me=ee.charCodeAt(ue++),me===37){if(me=ee.charAt(ue++),we=P[me in q8?ee.charAt(ue++):me],!we||(X=we(q,fe,X))<0)return-1}else if(me!=fe.charCodeAt(X++))return-1}return X}function G(q,ee,fe){var X=c.exec(ee.slice(fe));return X?(q.p=h.get(X[0].toLowerCase()),fe+X[0].length):-1}function W(q,ee,fe){var X=x.exec(ee.slice(fe));return X?(q.w=_.get(X[0].toLowerCase()),fe+X[0].length):-1}function K(q,ee,fe){var X=m.exec(ee.slice(fe));return X?(q.w=g.get(X[0].toLowerCase()),fe+X[0].length):-1}function ne(q,ee,fe){var X=O.exec(ee.slice(fe));return X?(q.m=C.get(X[0].toLowerCase()),fe+X[0].length):-1}function le(q,ee,fe){var X=w.exec(ee.slice(fe));return X?(q.m=S.get(X[0].toLowerCase()),fe+X[0].length):-1}function Q(q,ee,fe){return V(q,t,ee,fe)}function J(q,ee,fe){return V(q,n,ee,fe)}function H(q,ee,fe){return V(q,r,ee,fe)}function B(q){return o[q.getDay()]}function z(q){return a[q.getDay()]}function F(q){return f[q.getMonth()]}function M(q){return l[q.getMonth()]}function k(q){return i[+(q.getHours()>=12)]}function te(q){return 1+~~(q.getMonth()/3)}function Z(q){return o[q.getUTCDay()]}function oe(q){return a[q.getUTCDay()]}function he(q){return f[q.getUTCMonth()]}function de(q){return l[q.getUTCMonth()]}function be(q){return i[+(q.getUTCHours()>=12)]}function $(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var ee=R(q+="",T);return ee.toString=function(){return q},ee},parse:function(q){var ee=I(q+="",!1);return ee.toString=function(){return q},ee},utcFormat:function(q){var ee=R(q+="",j);return ee.toString=function(){return q},ee},utcParse:function(q){var ee=I(q+="",!0);return ee.toString=function(){return q},ee}}}var q8={"-":"",_:" ",0:"0"},cr=/^\s*\d+/,Sbe=/^%/,Obe=/[\\^$*+?|[\]().{}]/g;function Vt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Ebe(e){return e.replace(Obe,"\\$&")}function fp(e){return new RegExp("^(?:"+e.map(Ebe).join("|")+")","i")}function dp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Cbe(e,t,n){var r=cr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Tbe(e,t,n){var r=cr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Abe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Pbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function V8(e,t,n){var r=cr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function H8(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Rbe(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 Mbe(e,t,n){var r=cr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Nbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function W8(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Lbe(e,t,n){var r=cr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function G8(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Dbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ibe(e,t,n){var r=cr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $be(e,t,n){var r=cr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Bbe(e,t,n){var r=Sbe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ube(e,t,n){var r=cr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zbe(e,t,n){var r=cr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Y8(e,t){return Vt(e.getDate(),t,2)}function Fbe(e,t){return Vt(e.getHours(),t,2)}function qbe(e,t){return Vt(e.getHours()%12||12,t,2)}function Vbe(e,t){return Vt(1+vv.count(cs(e),e),t,3)}function tq(e,t){return Vt(e.getMilliseconds(),t,3)}function Hbe(e,t){return tq(e,t)+"000"}function Wbe(e,t){return Vt(e.getMonth()+1,t,2)}function Gbe(e,t){return Vt(e.getMinutes(),t,2)}function Ybe(e,t){return Vt(e.getSeconds(),t,2)}function Kbe(e){var t=e.getDay();return t===0?7:t}function Zbe(e,t){return Vt(y_.count(cs(e)-1,e),t,2)}function nq(e){var t=e.getDay();return t>=4||t===0?sd(e):sd.ceil(e)}function Xbe(e,t){return e=nq(e),Vt(sd.count(cs(e),e)+(cs(e).getDay()===4),t,2)}function Qbe(e){return e.getDay()}function Jbe(e,t){return Vt(zb.count(cs(e)-1,e),t,2)}function e0e(e,t){return Vt(e.getFullYear()%100,t,2)}function t0e(e,t){return e=nq(e),Vt(e.getFullYear()%100,t,2)}function n0e(e,t){return Vt(e.getFullYear()%1e4,t,4)}function r0e(e,t){var n=e.getDay();return e=n>=4||n===0?sd(e):sd.ceil(e),Vt(e.getFullYear()%1e4,t,4)}function i0e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Vt(t/60|0,"0",2)+Vt(t%60,"0",2)}function K8(e,t){return Vt(e.getUTCDate(),t,2)}function a0e(e,t){return Vt(e.getUTCHours(),t,2)}function o0e(e,t){return Vt(e.getUTCHours()%12||12,t,2)}function s0e(e,t){return Vt(1+g_.count(fs(e),e),t,3)}function rq(e,t){return Vt(e.getUTCMilliseconds(),t,3)}function l0e(e,t){return rq(e,t)+"000"}function u0e(e,t){return Vt(e.getUTCMonth()+1,t,2)}function c0e(e,t){return Vt(e.getUTCMinutes(),t,2)}function f0e(e,t){return Vt(e.getUTCSeconds(),t,2)}function d0e(e){var t=e.getUTCDay();return t===0?7:t}function h0e(e,t){return Vt(b_.count(fs(e)-1,e),t,2)}function iq(e){var t=e.getUTCDay();return t>=4||t===0?ld(e):ld.ceil(e)}function p0e(e,t){return e=iq(e),Vt(ld.count(fs(e),e)+(fs(e).getUTCDay()===4),t,2)}function m0e(e){return e.getUTCDay()}function v0e(e,t){return Vt(Fb.count(fs(e)-1,e),t,2)}function g0e(e,t){return Vt(e.getUTCFullYear()%100,t,2)}function y0e(e,t){return e=iq(e),Vt(e.getUTCFullYear()%100,t,2)}function b0e(e,t){return Vt(e.getUTCFullYear()%1e4,t,4)}function _0e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ld(e):ld.ceil(e),Vt(e.getUTCFullYear()%1e4,t,4)}function x0e(){return"+0000"}function Z8(){return"%"}function X8(e){return+e}function Q8(e){return Math.floor(+e/1e3)}var _f,aq,oq;w0e({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 w0e(e){return _f=wbe(e),aq=_f.format,_f.parse,oq=_f.utcFormat,_f.utcParse,_f}function S0e(e){return new Date(e)}function O0e(e){return e instanceof Date?+e:+new Date(+e)}function l3(e,t,n,r,i,a,o,l,f,c){var h=YP(),m=h.invert,g=h.domain,x=c(".%L"),_=c(":%S"),w=c("%I:%M"),S=c("%I %p"),O=c("%a %d"),C=c("%b %d"),T=c("%B"),j=c("%Y");function P(R){return(f(R)<R?x:l(R)<R?_:o(R)<R?w:a(R)<R?S:r(R)<R?i(R)<R?O:C:n(R)<R?T:j)(R)}return h.invert=function(R){return new Date(m(R))},h.domain=function(R){return arguments.length?g(Array.from(R,O0e)):g().map(S0e)},h.ticks=function(R){var I=g();return e(I[0],I[I.length-1],R??10)},h.tickFormat=function(R,I){return I==null?P:c(I)},h.nice=function(R){var I=g();return(!R||typeof R.range!="function")&&(R=t(I[0],I[I.length-1],R??10)),R?g(WF(I,R)):h},h.copy=function(){return mv(h,l3(e,t,n,r,i,a,o,l,f,c))},h}function E0e(){return oa.apply(l3(_be,xbe,cs,o3,y_,vv,i3,n3,Vu,aq).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function C0e(){return oa.apply(l3(ybe,bbe,fs,s3,b_,g_,a3,r3,Vu,oq).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function __(){var e=0,t=1,n,r,i,a,o=zr,l=!1,f;function c(m){return m==null||isNaN(m=+m)?f:o(i===0?.5:(m=(a(m)-n)*i,l?Math.max(0,Math.min(1,m)):m))}c.domain=function(m){return arguments.length?([e,t]=m,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(m){return arguments.length?(l=!!m,c):l},c.interpolator=function(m){return arguments.length?(o=m,c):o};function h(m){return function(g){var x,_;return arguments.length?([x,_]=g,o=m(x,_),c):[o(0),o(1)]}}return c.range=h(Hd),c.rangeRound=h(GP),c.unknown=function(m){return arguments.length?(f=m,c):f},function(m){return a=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),c}}function Kl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sq(){var e=Yl(__()(zr));return e.copy=function(){return Kl(e,sq())},_s.apply(e,arguments)}function lq(){var e=XP(__()).domain([1,10]);return e.copy=function(){return Kl(e,lq()).base(e.base())},_s.apply(e,arguments)}function uq(){var e=QP(__());return e.copy=function(){return Kl(e,uq()).constant(e.constant())},_s.apply(e,arguments)}function u3(){var e=JP(__());return e.copy=function(){return Kl(e,u3()).exponent(e.exponent())},_s.apply(e,arguments)}function T0e(){return u3.apply(null,arguments).exponent(.5)}function cq(){var e=[],t=zr;function n(r){if(r!=null&&!isNaN(r=+r))return t((hv(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(Al),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,a)=>hye(e,a/r))},n.copy=function(){return cq(t).domain(e)},_s.apply(n,arguments)}function x_(){var e=0,t=.5,n=1,r=1,i,a,o,l,f,c=zr,h,m=!1,g;function x(w){return isNaN(w=+w)?g:(w=.5+((w=+h(w))-a)*(r*w<r*a?l:f),c(m?Math.max(0,Math.min(1,w)):w))}x.domain=function(w){return arguments.length?([e,t,n]=w,i=h(e=+e),a=h(t=+t),o=h(n=+n),l=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,x):[e,t,n]},x.clamp=function(w){return arguments.length?(m=!!w,x):m},x.interpolator=function(w){return arguments.length?(c=w,x):c};function _(w){return function(S){var O,C,T;return arguments.length?([O,C,T]=S,c=Bye(w,[O,C,T]),x):[c(0),c(.5),c(1)]}}return x.range=_(Hd),x.rangeRound=_(GP),x.unknown=function(w){return arguments.length?(g=w,x):g},function(w){return h=w,i=w(e),a=w(t),o=w(n),l=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,x}}function fq(){var e=Yl(x_()(zr));return e.copy=function(){return Kl(e,fq())},_s.apply(e,arguments)}function dq(){var e=XP(x_()).domain([.1,1,10]);return e.copy=function(){return Kl(e,dq()).base(e.base())},_s.apply(e,arguments)}function hq(){var e=QP(x_());return e.copy=function(){return Kl(e,hq()).constant(e.constant())},_s.apply(e,arguments)}function c3(){var e=JP(x_());return e.copy=function(){return Kl(e,c3()).exponent(e.exponent())},_s.apply(e,arguments)}function A0e(){return c3.apply(null,arguments).exponent(.5)}const J8=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gm,scaleDiverging:fq,scaleDivergingLog:dq,scaleDivergingPow:c3,scaleDivergingSqrt:A0e,scaleDivergingSymlog:hq,scaleIdentity:HF,scaleImplicit:nA,scaleLinear:Bb,scaleLog:GF,scaleOrdinal:VP,scalePoint:Bp,scalePow:e3,scaleQuantile:ZF,scaleQuantize:XF,scaleRadial:KF,scaleSequential:sq,scaleSequentialLog:lq,scaleSequentialPow:u3,scaleSequentialQuantile:cq,scaleSequentialSqrt:T0e,scaleSequentialSymlog:uq,scaleSqrt:lbe,scaleSymlog:YF,scaleThreshold:QF,scaleTime:E0e,scaleUtc:C0e,tickFormat:VF},Symbol.toStringTag,{value:"Module"}));var BO,eI;function w_(){if(eI)return BO;eI=1;var e=zd();function t(n,r,i){for(var a=-1,o=n.length;++a<o;){var l=n[a],f=r(l);if(f!=null&&(c===void 0?f===f&&!e(f):i(f,c)))var c=f,h=l}return h}return BO=t,BO}var UO,tI;function pq(){if(tI)return UO;tI=1;function e(t,n){return t>n}return UO=e,UO}var zO,nI;function j0e(){if(nI)return zO;nI=1;var e=w_(),t=pq(),n=Vd();function r(i){return i&&i.length?e(i,n,t):void 0}return zO=r,zO}var P0e=j0e();const wl=Lt(P0e);var FO,rI;function mq(){if(rI)return FO;rI=1;function e(t,n){return t<n}return FO=e,FO}var qO,iI;function R0e(){if(iI)return qO;iI=1;var e=w_(),t=mq(),n=Vd();function r(i){return i&&i.length?e(i,n,t):void 0}return qO=r,qO}var M0e=R0e();const S_=Lt(M0e);var VO,aI;function N0e(){if(aI)return VO;aI=1;var e=TP(),t=go(),n=SF(),r=ti();function i(a,o){var l=r(a)?e:n;return l(a,t(o,3))}return VO=i,VO}var HO,oI;function L0e(){if(oI)return HO;oI=1;var e=xF(),t=N0e();function n(r,i){return e(t(r,i),1)}return HO=n,HO}var D0e=L0e();const k0e=Lt(D0e);var WO,sI;function I0e(){if(sI)return WO;sI=1;var e=BP();function t(n,r){return e(n,r)}return WO=t,WO}var $0e=I0e();const $l=Lt($0e);var Wd=1e9,B0e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},d3,xn=!0,ta="[DecimalError] ",Qu=ta+"Invalid argument: ",f3=ta+"Exponent out of range: ",Gd=Math.floor,Iu=Math.pow,U0e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xi,or=1e7,mn=7,vq=9007199254740991,qb=Gd(vq/mn),tt={};tt.absoluteValue=tt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};tt.comparedTo=tt.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};tt.decimalPlaces=tt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*mn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};tt.dividedBy=tt.div=function(e){return ts(this,new this.constructor(e))};tt.dividedToIntegerBy=tt.idiv=function(e){var t=this,n=t.constructor;return nn(ts(t,new n(e),0,1),n.precision)};tt.equals=tt.eq=function(e){return!this.cmp(e)};tt.exponent=function(){return qn(this)};tt.greaterThan=tt.gt=function(e){return this.cmp(e)>0};tt.greaterThanOrEqualTo=tt.gte=function(e){return this.cmp(e)>=0};tt.isInteger=tt.isint=function(){return this.e>this.d.length-2};tt.isNegative=tt.isneg=function(){return this.s<0};tt.isPositive=tt.ispos=function(){return this.s>0};tt.isZero=function(){return this.s===0};tt.lessThan=tt.lt=function(e){return this.cmp(e)<0};tt.lessThanOrEqualTo=tt.lte=function(e){return this.cmp(e)<1};tt.logarithm=tt.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(xi))throw Error(ta+"NaN");if(n.s<1)throw Error(ta+(n.s?"NaN":"-Infinity"));return n.eq(xi)?new r(0):(xn=!1,t=ts(wm(n,a),wm(e,a),a),xn=!0,nn(t,i))};tt.minus=tt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bq(t,e):gq(t,(e.s=-e.s,e))};tt.modulo=tt.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ta+"NaN");return n.s?(xn=!1,t=ts(n,e,0,1).times(e),xn=!0,n.minus(t)):nn(new r(n),i)};tt.naturalExponential=tt.exp=function(){return yq(this)};tt.naturalLogarithm=tt.ln=function(){return wm(this)};tt.negated=tt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};tt.plus=tt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?gq(t,e):bq(t,(e.s=-e.s,e))};tt.precision=tt.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qu+e);if(t=qn(i)+1,r=i.d.length-1,n=r*mn+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};tt.squareRoot=tt.sqrt=function(){var e,t,n,r,i,a,o,l=this,f=l.constructor;if(l.s<1){if(!l.s)return new f(0);throw Error(ta+"NaN")}for(e=qn(l),xn=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=to(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Gd((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 f(t)):r=new f(i.toString()),n=f.precision,i=o=n+3;;)if(a=r,r=a.plus(ts(l,a,o+2)).times(.5),to(a.d).slice(0,o)===(t=to(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(nn(a,n+1,0),a.times(a).eq(l)){r=a;break}}else if(t!="9999")break;o+=4}return xn=!0,nn(r,n)};tt.times=tt.mul=function(e){var t,n,r,i,a,o,l,f,c,h=this,m=h.constructor,g=h.d,x=(e=new m(e)).d;if(!h.s||!e.s)return new m(0);for(e.s*=h.s,n=h.e+e.e,f=g.length,c=x.length,f<c&&(a=g,g=x,x=a,o=f,f=c,c=o),a=[],o=f+c,r=o;r--;)a.push(0);for(r=c;--r>=0;){for(t=0,i=f+r;i>r;)l=a[i]+x[r]*g[i-r-1]+t,a[i--]=l%or|0,t=l/or|0;a[i]=(a[i]+t)%or|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,xn?nn(e,m.precision):e};tt.toDecimalPlaces=tt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(co(e,0,Wd),t===void 0?t=r.rounding:co(t,0,8),nn(n,e+qn(n)+1,t))};tt.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=fc(r,!0):(co(e,0,Wd),t===void 0?t=i.rounding:co(t,0,8),r=nn(new i(r),e+1,t),n=fc(r,!0,e+1)),n};tt.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?fc(i):(co(e,0,Wd),t===void 0?t=a.rounding:co(t,0,8),r=nn(new a(i),e+qn(i)+1,t),n=fc(r.abs(),!1,e+qn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};tt.toInteger=tt.toint=function(){var e=this,t=e.constructor;return nn(new t(e),qn(e)+1,t.rounding)};tt.toNumber=function(){return+this};tt.toPower=tt.pow=function(e){var t,n,r,i,a,o,l=this,f=l.constructor,c=12,h=+(e=new f(e));if(!e.s)return new f(xi);if(l=new f(l),!l.s){if(e.s<1)throw Error(ta+"Infinity");return l}if(l.eq(xi))return l;if(r=f.precision,e.eq(xi))return nn(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=l.s,o){if((n=h<0?-h:h)<=vq){for(i=new f(xi),t=Math.ceil(r/mn+4),xn=!1;n%2&&(i=i.times(l),uI(i.d,t)),n=Gd(n/2),n!==0;)l=l.times(l),uI(l.d,t);return xn=!0,e.s<0?new f(xi).div(i):nn(i,r)}}else if(a<0)throw Error(ta+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,xn=!1,i=e.times(wm(l,r+c)),xn=!0,i=yq(i),i.s=a,i};tt.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=qn(i),r=fc(i,n<=a.toExpNeg||n>=a.toExpPos)):(co(e,1,Wd),t===void 0?t=a.rounding:co(t,0,8),i=nn(new a(i),e,t),n=qn(i),r=fc(i,e<=n||n<=a.toExpNeg,e)),r};tt.toSignificantDigits=tt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(co(e,1,Wd),t===void 0?t=r.rounding:co(t,0,8)),nn(new r(n),e,t)};tt.toString=tt.valueOf=tt.val=tt.toJSON=tt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=qn(e),n=e.constructor;return fc(e,t<=n.toExpNeg||t>=n.toExpPos)};function gq(e,t){var n,r,i,a,o,l,f,c,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),xn?nn(t,m):t;if(f=e.d,c=t.d,o=e.e,i=t.e,f=f.slice(),a=o-i,a){for(a<0?(r=f,a=-a,l=c.length):(r=c,i=o,l=f.length),o=Math.ceil(m/mn),l=o>l?o+1:l+1,a>l&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(l=f.length,a=c.length,l-a<0&&(a=l,r=c,c=f,f=r),n=0;a;)n=(f[--a]=f[a]+c[a]+n)/or|0,f[a]%=or;for(n&&(f.unshift(n),++i),l=f.length;f[--l]==0;)f.pop();return t.d=f,t.e=i,xn?nn(t,m):t}function co(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Qu+e)}function to(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=mn-r.length,n&&(a+=_l(n)),a+=r;o=e[t],r=o+"",n=mn-r.length,n&&(a+=_l(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ts=function(){function e(r,i){var a,o=0,l=r.length;for(r=r.slice();l--;)a=r[l]*i+o,r[l]=a%or|0,o=a/or|0;return o&&r.unshift(o),r}function t(r,i,a,o){var l,f;if(a!=o)f=a>o?1:-1;else for(l=f=0;l<a;l++)if(r[l]!=i[l]){f=r[l]>i[l]?1:-1;break}return f}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*or+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var l,f,c,h,m,g,x,_,w,S,O,C,T,j,P,R,I,V,G=r.constructor,W=r.s==i.s?1:-1,K=r.d,ne=i.d;if(!r.s)return new G(r);if(!i.s)throw Error(ta+"Division by zero");for(f=r.e-i.e,I=ne.length,P=K.length,x=new G(W),_=x.d=[],c=0;ne[c]==(K[c]||0);)++c;if(ne[c]>(K[c]||0)&&--f,a==null?C=a=G.precision:o?C=a+(qn(r)-qn(i))+1:C=a,C<0)return new G(0);if(C=C/mn+2|0,c=0,I==1)for(h=0,ne=ne[0],C++;(c<P||h)&&C--;c++)T=h*or+(K[c]||0),_[c]=T/ne|0,h=T%ne|0;else{for(h=or/(ne[0]+1)|0,h>1&&(ne=e(ne,h),K=e(K,h),I=ne.length,P=K.length),j=I,w=K.slice(0,I),S=w.length;S<I;)w[S++]=0;V=ne.slice(),V.unshift(0),R=ne[0],ne[1]>=or/2&&++R;do h=0,l=t(ne,w,I,S),l<0?(O=w[0],I!=S&&(O=O*or+(w[1]||0)),h=O/R|0,h>1?(h>=or&&(h=or-1),m=e(ne,h),g=m.length,S=w.length,l=t(m,w,g,S),l==1&&(h--,n(m,I<g?V:ne,g))):(h==0&&(l=h=1),m=ne.slice()),g=m.length,g<S&&m.unshift(0),n(w,m,S),l==-1&&(S=w.length,l=t(ne,w,I,S),l<1&&(h++,n(w,I<S?V:ne,S))),S=w.length):l===0&&(h++,w=[0]),_[c++]=h,l&&w[0]?w[S++]=K[j]||0:(w=[K[j]],S=1);while((j++<P||w[0]!==void 0)&&C--)}return _[0]||_.shift(),x.e=f,nn(x,o?a+qn(x)+1:a)}}();function yq(e,t){var n,r,i,a,o,l,f=0,c=0,h=e.constructor,m=h.precision;if(qn(e)>16)throw Error(f3+qn(e));if(!e.s)return new h(xi);for(xn=!1,l=m,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(r=Math.log(Iu(2,c))/Math.LN10*2+5|0,l+=r,n=i=a=new h(xi),h.precision=l;;){if(i=nn(i.times(e),l),n=n.times(++f),o=a.plus(ts(i,n,l)),to(o.d).slice(0,l)===to(a.d).slice(0,l)){for(;c--;)a=nn(a.times(a),l);return h.precision=m,t==null?(xn=!0,nn(a,m)):a}a=o}}function qn(e){for(var t=e.e*mn,n=e.d[0];n>=10;n/=10)t++;return t}function GO(e,t,n){if(t>e.LN10.sd())throw xn=!0,n&&(e.precision=n),Error(ta+"LN10 precision limit exceeded");return nn(new e(e.LN10),t)}function _l(e){for(var t="";e--;)t+="0";return t}function wm(e,t){var n,r,i,a,o,l,f,c,h,m=1,g=10,x=e,_=x.d,w=x.constructor,S=w.precision;if(x.s<1)throw Error(ta+(x.s?"NaN":"-Infinity"));if(x.eq(xi))return new w(0);if(t==null?(xn=!1,c=S):c=t,x.eq(10))return t==null&&(xn=!0),GO(w,c);if(c+=g,w.precision=c,n=to(_),r=n.charAt(0),a=qn(x),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=to(x.d),r=n.charAt(0),m++;a=qn(x),r>1?(x=new w("0."+n),a++):x=new w(r+"."+n.slice(1))}else return f=GO(w,c+2,S).times(a+""),x=wm(new w(r+"."+n.slice(1)),c-g).plus(f),w.precision=S,t==null?(xn=!0,nn(x,S)):x;for(l=o=x=ts(x.minus(xi),x.plus(xi),c),h=nn(x.times(x),c),i=3;;){if(o=nn(o.times(h),c),f=l.plus(ts(o,new w(i),c)),to(f.d).slice(0,c)===to(l.d).slice(0,c))return l=l.times(2),a!==0&&(l=l.plus(GO(w,c+2,S).times(a+""))),l=ts(l,new w(m),c),w.precision=S,t==null?(xn=!0,nn(l,S)):l;l=f,i+=2}}function lI(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=Gd(n/mn),e.d=[],r=(n+1)%mn,n<0&&(r+=mn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=mn;r<i;)e.d.push(+t.slice(r,r+=mn));t=t.slice(r),r=mn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),xn&&(e.e>qb||e.e<-qb))throw Error(f3+n)}else e.s=0,e.e=0,e.d=[0];return e}function nn(e,t,n){var r,i,a,o,l,f,c,h,m=e.d;for(o=1,a=m[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=mn,i=t,c=m[h=0];else{if(h=Math.ceil((r+1)/mn),a=m.length,h>=a)return e;for(c=a=m[h],o=1;a>=10;a/=10)o++;r%=mn,i=r-mn+o}if(n!==void 0&&(a=Iu(10,o-i-1),l=c/a%10|0,f=t<0||m[h+1]!==void 0||c%a,f=n<4?(l||f)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||f||n==6&&(r>0?i>0?c/Iu(10,o-i):0:m[h-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return f?(a=qn(e),m.length=1,t=t-a-1,m[0]=Iu(10,(mn-t%mn)%mn),e.e=Gd(-t/mn)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=h,a=1,h--):(m.length=h+1,a=Iu(10,mn-r),m[h]=i>0?(c/Iu(10,o-i)%Iu(10,i)|0)*a:0),f)for(;;)if(h==0){(m[0]+=a)==or&&(m[0]=1,++e.e);break}else{if(m[h]+=a,m[h]!=or)break;m[h--]=0,a=1}for(r=m.length;m[--r]===0;)m.pop();if(xn&&(e.e>qb||e.e<-qb))throw Error(f3+qn(e));return e}function bq(e,t){var n,r,i,a,o,l,f,c,h,m,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),xn?nn(t,x):t;if(f=e.d,m=t.d,r=t.e,c=e.e,f=f.slice(),o=c-r,o){for(h=o<0,h?(n=f,o=-o,l=m.length):(n=m,r=c,l=f.length),i=Math.max(Math.ceil(x/mn),l)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=f.length,l=m.length,h=i<l,h&&(l=i),i=0;i<l;i++)if(f[i]!=m[i]){h=f[i]<m[i];break}o=0}for(h&&(n=f,f=m,m=n,t.s=-t.s),l=f.length,i=m.length-l;i>0;--i)f[l++]=0;for(i=m.length;i>o;){if(f[--i]<m[i]){for(a=i;a&&f[--a]===0;)f[a]=or-1;--f[a],f[i]+=or}f[i]-=m[i]}for(;f[--l]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,xn?nn(t,x):t):new g(0)}function fc(e,t,n){var r,i=qn(e),a=to(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+_l(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+_l(-i-1)+a,n&&(r=n-o)>0&&(a+=_l(r))):i>=o?(a+=_l(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+_l(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=_l(r))),e.s<0?"-"+a:a}function uI(e,t){if(e.length>t)return e.length=t,!0}function _q(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Qu+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return lI(o,a.toString())}else if(typeof a!="string")throw Error(Qu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,U0e.test(a))lI(o,a);else throw Error(Qu+a)}if(i.prototype=tt,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=_q,i.config=i.set=z0e,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 z0e(e){if(!e||typeof e!="object")throw Error(ta+"Object expected");var t,n,r,i=["precision",1,Wd,"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(Gd(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Qu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Qu+n+": "+r);return this}var d3=_q(B0e);xi=new d3(1);const Qt=d3;function F0e(e){return W0e(e)||H0e(e)||V0e(e)||q0e()}function q0e(){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 V0e(e,t){if(e){if(typeof e=="string")return oA(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 oA(e,t)}}function H0e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function W0e(e){if(Array.isArray(e))return oA(e)}function oA(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 G0e=function(t){return t},xq={},wq=function(t){return t===xq},cI=function(t){return function n(){return arguments.length===0||arguments.length===1&&wq(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Y0e=function e(t,n){return t===1?n:cI(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==xq}).length;return o>=t?n.apply(void 0,i):e(t-o,cI(function(){for(var l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];var h=i.map(function(m){return wq(m)?f.shift():m});return n.apply(void 0,F0e(h).concat(f))}))})},O_=function(t){return Y0e(t.length,t)},sA=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},K0e=O_(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Z0e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return G0e;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,f){return f(l)},a.apply(void 0,arguments))}},lA=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Sq=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n&&a.every(function(l,f){return l===n[f]})||(n=a,r=t.apply(void 0,a)),r}};function X0e(e){var t;return e===0?t=1:t=Math.floor(new Qt(e).abs().log(10).toNumber())+1,t}function Q0e(e,t,n){for(var r=new Qt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var J0e=O_(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),e_e=O_(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),t_e=O_(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const E_={rangeStep:Q0e,getDigitCount:X0e,interpolateNumber:J0e,uninterpolateNumber:e_e,uninterpolateTruncation:t_e};function uA(e){return i_e(e)||r_e(e)||Oq(e)||n_e()}function n_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r_e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function i_e(e){if(Array.isArray(e))return cA(e)}function Sm(e,t){return s_e(e)||o_e(e,t)||Oq(e,t)||a_e()}function a_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 Oq(e,t){if(e){if(typeof e=="string")return cA(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 cA(e,t)}}function cA(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){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,a=f}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function s_e(e){if(Array.isArray(e))return e}function Eq(e){var t=Sm(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function Cq(e,t,n){if(e.lte(0))return new Qt(0);var r=E_.getDigitCount(e.toNumber()),i=new Qt(10).pow(r),a=e.div(i),o=r!==1?.05:.1,l=new Qt(Math.ceil(a.div(o).toNumber())).add(n).mul(o),f=l.mul(i);return t?f:new Qt(Math.ceil(f))}function l_e(e,t,n){var r=1,i=new Qt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Qt(10).pow(E_.getDigitCount(e)-1),i=new Qt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Qt(Math.floor(e)))}else e===0?i=new Qt(Math.floor((t-1)/2)):n||(i=new Qt(Math.floor(e)));var o=Math.floor((t-1)/2),l=Z0e(K0e(function(f){return i.add(new Qt(f-o).mul(r)).toNumber()}),sA);return l(0,t)}function Tq(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 Qt(0),tickMin:new Qt(0),tickMax:new Qt(0)};var a=Cq(new Qt(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Qt(0):(o=new Qt(e).add(t).div(2),o=o.sub(new Qt(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),f=Math.ceil(new Qt(t).sub(o).div(a).toNumber()),c=l+f+1;return c>n?Tq(e,t,n,r,i+1):(c<n&&(f=t>0?f+(n-c):f,l=t>0?l:l+(n-c)),{step:a,tickMin:o.sub(new Qt(l).mul(a)),tickMax:o.add(new Qt(f).mul(a))})}function u_e(e){var t=Sm(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=Eq([n,r]),f=Sm(l,2),c=f[0],h=f[1];if(c===-1/0||h===1/0){var m=h===1/0?[c].concat(uA(sA(0,i-1).map(function(){return 1/0}))):[].concat(uA(sA(0,i-1).map(function(){return-1/0})),[h]);return n>r?lA(m):m}if(c===h)return l_e(c,i,a);var g=Tq(c,h,o,a),x=g.step,_=g.tickMin,w=g.tickMax,S=E_.rangeStep(_,w.add(new Qt(.1).mul(x)),x);return n>r?lA(S):S}function c_e(e,t){var n=Sm(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Eq([r,i]),l=Sm(o,2),f=l[0],c=l[1];if(f===-1/0||c===1/0)return[r,i];if(f===c)return[f];var h=Math.max(t,2),m=Cq(new Qt(c).sub(f).div(h-1),a,0),g=[].concat(uA(E_.rangeStep(new Qt(f),new Qt(c).sub(new Qt(.99).mul(m)),m)),[c]);return r>i?lA(g):g}var f_e=Sq(u_e),d_e=Sq(c_e),h_e="Invariant failed";function dc(e,t){throw new Error(h_e)}var p_e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ud(e){"@babel/helpers - typeof";return ud=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ud(e)}function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vb.apply(this,arguments)}function m_e(e,t){return b_e(e)||y_e(e,t)||g_e(e,t)||v_e()}function v_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 g_e(e,t){if(e){if(typeof e=="string")return fI(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 fI(e,t)}}function fI(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 y_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function b_e(e){if(Array.isArray(e))return e}function __e(e,t){if(e==null)return{};var n=x_e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x_e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function w_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S_e(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,Pq(r.key),r)}}function O_e(e,t,n){return t&&S_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E_e(e,t,n){return t=Hb(t),C_e(e,Aq()?Reflect.construct(t,n||[],Hb(e).constructor):t.apply(e,n))}function C_e(e,t){if(t&&(ud(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T_e(e)}function T_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aq=function(){return!!e})()}function Hb(e){return Hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hb(e)}function A_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fA(e,t)}function fA(e,t){return fA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fA(e,t)}function jq(e,t,n){return t=Pq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pq(e){var t=j_e(e,"string");return ud(t)=="symbol"?t:t+""}function j_e(e,t){if(ud(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ud(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yd=function(e){function t(){return w_e(this,t),E_e(this,t,arguments)}return A_e(t,e),O_e(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,o=r.width,l=r.dataKey,f=r.data,c=r.dataPointFormatter,h=r.xAxis,m=r.yAxis,g=__e(r,p_e),x=at(g,!1);this.props.direction==="x"&&h.type!=="number"&&dc();var _=f.map(function(w){var S=c(w,l),O=S.x,C=S.y,T=S.value,j=S.errorVal;if(!j)return null;var P=[],R,I;if(Array.isArray(j)){var V=m_e(j,2);R=V[0],I=V[1]}else R=I=j;if(a==="vertical"){var G=h.scale,W=C+i,K=W+o,ne=W-o,le=G(T-R),Q=G(T+I);P.push({x1:Q,y1:K,x2:Q,y2:ne}),P.push({x1:le,y1:W,x2:Q,y2:W}),P.push({x1:le,y1:K,x2:le,y2:ne})}else if(a==="horizontal"){var J=m.scale,H=O+i,B=H-o,z=H+o,F=J(T-R),M=J(T+I);P.push({x1:B,y1:M,x2:z,y2:M}),P.push({x1:H,y1:F,x2:H,y2:M}),P.push({x1:B,y1:F,x2:z,y2:F})}return ae.createElement(Ot,Vb({className:"recharts-errorBar",key:"bar-".concat(P.map(function(k){return"".concat(k.x1,"-").concat(k.x2,"-").concat(k.y1,"-").concat(k.y2)}))},x),P.map(function(k){return ae.createElement("line",Vb({},k,{key:"line-".concat(k.x1,"-").concat(k.x2,"-").concat(k.y1,"-").concat(k.y2)}))}))});return ae.createElement(Ot,{className:"recharts-errorBars"},_)}}])}(ae.Component);jq(Yd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});jq(Yd,"displayName","ErrorBar");function Om(e){"@babel/helpers - typeof";return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Om(e)}function dI(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 Tu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dI(Object(n),!0).forEach(function(r){P_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P_e(e,t,n){return t=R_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R_e(e){var t=M_e(e,"string");return Om(t)=="symbol"?t:t+""}function M_e(e,t){if(Om(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Om(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rq=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=_i(n,zf);if(!o)return null;var l=zf.defaultProps,f=l!==void 0?Tu(Tu({},l),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(r||[]).reduce(function(h,m){var g=m.item,x=m.props,_=x.sectors||x.data||[];return h.concat(_.map(function(w){return{type:o.props.iconType||g.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):c=(r||[]).map(function(h){var m=h.item,g=m.type.defaultProps,x=g!==void 0?Tu(Tu({},g),m.props):{},_=x.dataKey,w=x.name,S=x.legendType,O=x.hide;return{inactive:O,dataKey:_,type:f.iconType||S||"square",color:h3(m),value:w||_,payload:x}}),Tu(Tu(Tu({},f),zf.getWithHeight(o,i)),{},{payload:c,item:o})};function Em(e){"@babel/helpers - typeof";return Em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Em(e)}function hI(e){return k_e(e)||D_e(e)||L_e(e)||N_e()}function N_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L_e(e,t){if(e){if(typeof e=="string")return dA(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 dA(e,t)}}function D_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k_e(e){if(Array.isArray(e))return dA(e)}function dA(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 pI(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 Rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pI(Object(n),!0).forEach(function(r){qf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qf(e,t,n){return t=I_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I_e(e){var t=$_e(e,"string");return Em(t)=="symbol"?t:t+""}function $_e(e,t){if(Em(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Em(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vn(e,t,n){return ht(e)||ht(t)?n:Kn(t)?Ci(e,t,n):dt(t)?t(e):n}function Up(e,t,n,r){var i=k0e(e,function(l){return vn(l,t)});if(n==="number"){var a=i.filter(function(l){return Ze(l)||parseFloat(l)});return a.length?[S_(a),wl(a)]:[1/0,-1/0]}var o=r?i.filter(function(l){return!ht(l)}):i;return o.map(function(l){return Kn(l)||l instanceof Date?l:""})}var B_e=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var f=a.range,c=0;c<l;c++){var h=c>0?i[c-1].coordinate:i[l-1].coordinate,m=i[c].coordinate,g=c>=l-1?i[0].coordinate:i[c+1].coordinate,x=void 0;if(Br(m-h)!==Br(g-m)){var _=[];if(Br(g-m)===Br(f[1]-f[0])){x=g;var w=m+f[1]-f[0];_[0]=Math.min(w,(w+h)/2),_[1]=Math.max(w,(w+h)/2)}else{x=h;var S=g+f[1]-f[0];_[0]=Math.min(m,(S+m)/2),_[1]=Math.max(m,(S+m)/2)}var O=[Math.min(m,(x+m)/2),Math.max(m,(x+m)/2)];if(t>O[0]&&t<=O[1]||t>=_[0]&&t<=_[1]){o=i[c].index;break}}else{var C=Math.min(h,g),T=Math.max(h,g);if(t>(C+m)/2&&t<=(T+m)/2){o=i[c].index;break}}}else for(var j=0;j<l;j++)if(j===0&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j>0&&j<l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j===l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2){o=r[j].index;break}return o},h3=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Rn(Rn({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,f;switch(i){case"Line":f=o;break;case"Area":case"Radar":f=o&&o!=="none"?o:l;break;default:f=l;break}return f},U_e=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),f=0,c=l.length;f<c;f++)for(var h=a[l[f]].stackGroups,m=Object.keys(h),g=0,x=m.length;g<x;g++){var _=h[m[g]],w=_.items,S=_.cateAxisId,O=w.filter(function(I){return es(I.type).indexOf("Bar")>=0});if(O&&O.length){var C=O[0].type.defaultProps,T=C!==void 0?Rn(Rn({},C),O[0].props):O[0].props,j=T.barSize,P=T[S];o[P]||(o[P]=[]);var R=ht(j)?n:j;o[P].push({item:O[0],stackList:O.slice(1),barSize:ht(R)?void 0:Ur(R,r,0)})}}return o},z_e=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,f=o.length;if(f<1)return null;var c=Ur(n,i,0,!0),h,m=[];if(o[0].barSize===+o[0].barSize){var g=!1,x=i/f,_=o.reduce(function(j,P){return j+P.barSize||0},0);_+=(f-1)*c,_>=i&&(_-=(f-1)*c,c=0),_>=i&&x>0&&(g=!0,x*=.9,_=f*x);var w=(i-_)/2>>0,S={offset:w-c,size:0};h=o.reduce(function(j,P){var R={item:P.item,position:{offset:S.offset+S.size+c,size:g?x:P.barSize}},I=[].concat(hI(j),[R]);return S=I[I.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(V){I.push({item:V,position:S})}),I},m)}else{var O=Ur(r,i,0,!0);i-2*O-(f-1)*c<=0&&(c=0);var C=(i-2*O-(f-1)*c)/f;C>1&&(C>>=0);var T=l===+l?Math.min(C,l):C;h=o.reduce(function(j,P,R){var I=[].concat(hI(j),[{item:P.item,position:{offset:O+(C+c)*R+(C-T)/2,size:T}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(V){I.push({item:V,position:I[I.length-1].position})}),I},m)}return h},F_e=function(t,n,r,i){var a=r.children,o=r.width,l=r.margin,f=o-(l.left||0)-(l.right||0),c=Rq({children:a,legendWidth:f});if(c){var h=i||{},m=h.width,g=h.height,x=c.align,_=c.verticalAlign,w=c.layout;if((w==="vertical"||w==="horizontal"&&_==="middle")&&x!=="center"&&Ze(t[x]))return Rn(Rn({},t),{},qf({},x,t[x]+(m||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&_!=="middle"&&Ze(t[_]))return Rn(Rn({},t),{},qf({},_,t[_]+(g||0)))}return t},q_e=function(t,n,r){return ht(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Mq=function(t,n,r,i,a){var o=n.props.children,l=qr(o,Yd).filter(function(c){return q_e(i,a,c.props.direction)});if(l&&l.length){var f=l.map(function(c){return c.props.dataKey});return t.reduce(function(c,h){var m=vn(h,r);if(ht(m))return c;var g=Array.isArray(m)?[S_(m),wl(m)]:[m,m],x=f.reduce(function(_,w){var S=vn(h,w,0),O=g[0]-Math.abs(Array.isArray(S)?S[0]:S),C=g[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(O,_[0]),Math.max(C,_[1])]},[1/0,-1/0]);return[Math.min(x[0],c[0]),Math.max(x[1],c[1])]},[1/0,-1/0])}return null},V_e=function(t,n,r,i,a){var o=n.map(function(l){return Mq(t,l,r,a,i)}).filter(function(l){return!ht(l)});return o&&o.length?o.reduce(function(l,f){return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]):null},Nq=function(t,n,r,i,a){var o=n.map(function(f){var c=f.props.dataKey;return r==="number"&&c&&Mq(t,f,c,i)||Up(t,c,r,a)});if(r==="number")return o.reduce(function(f,c){return[Math.min(f[0],c[0]),Math.max(f[1],c[1])]},[1/0,-1/0]);var l={};return o.reduce(function(f,c){for(var h=0,m=c.length;h<m;h++)l[c[h]]||(l[c[h]]=!0,f.push(c[h]));return f},[])},Lq=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Dq=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var a,o,l=t.map(function(f){return f.coordinate===n&&(a=!0),f.coordinate===r&&(o=!0),f.coordinate});return a||l.push(n),o||l.push(r),l},Xo=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/f:0;if(c=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Br(l[0]-l[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(m){var g=a?a.indexOf(m):m;return{coordinate:i(g)+c,value:m,offset:c}});return h.filter(function(m){return!qd(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,g){return{coordinate:i(m)+c,value:m,index:g,offset:c}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(m){return{coordinate:i(m)+c,value:m,offset:c}}):i.domain().map(function(m,g){return{coordinate:i(m)+c,value:a?a[m]:m,index:g,offset:c}})},YO=new WeakMap,ly=function(t,n){if(typeof n!="function")return t;YO.has(t)||YO.set(t,new WeakMap);var r=YO.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},kq=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:gm(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:Bb(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Bp(),realScaleType:"point"}:a==="category"?{scale:gm(),realScaleType:"band"}:{scale:Bb(),realScaleType:"linear"};if(fv(i)){var f="scale".concat(l_(i));return{scale:(J8[f]||Bp)(),realScaleType:J8[f]?f:"point"}}return dt(i)?{scale:i}:{scale:Bp(),realScaleType:"point"}},mI=1e-4,Iq=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-mI,o=Math.max(i[0],i[1])+mI,l=t(n[0]),f=t(n[r-1]);(l<a||l>o||f<a||f>o)&&t.domain([n[0],n[r-1]])}},H_e=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},W_e=function(t,n){if(!n||n.length!==2||!Ze(n[0])||!Ze(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!Ze(t[0])||t[0]<r)&&(a[0]=r),(!Ze(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<r&&(a[1]=r),a},G_e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,l=0;l<n;++l){var f=qd(t[l][r][1])?t[l][r][0]:t[l][r][1];f>=0?(t[l][r][0]=a,t[l][r][1]=a+f,a=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+f,o=t[l][r][1])}},Y_e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var l=qd(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=a,t[o][r][1]=a+l,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},K_e={sign:G_e,expand:Dpe,none:td,silhouette:kpe,wiggle:Ipe,positive:Y_e},Z_e=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),a=K_e[r],o=Lpe().keys(i).value(function(l,f){return+vn(l,f,0)}).order(FT).offset(a);return o(t)},X_e=function(t,n,r,i,a,o){if(!t)return null;var l=o?n.reverse():n,f={},c=l.reduce(function(m,g){var x,_=(x=g.type)!==null&&x!==void 0&&x.defaultProps?Rn(Rn({},g.type.defaultProps),g.props):g.props,w=_.stackId,S=_.hide;if(S)return m;var O=_[r],C=m[O]||{hasStack:!1,stackGroups:{}};if(Kn(w)){var T=C.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};T.items.push(g),C.hasStack=!0,C.stackGroups[w]=T}else C.stackGroups[Gl("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[g]};return Rn(Rn({},m),{},qf({},O,C))},f),h={};return Object.keys(c).reduce(function(m,g){var x=c[g];if(x.hasStack){var _={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,S){var O=x.stackGroups[S];return Rn(Rn({},w),{},qf({},S,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:Z_e(t,O.items,a)}))},_)}return Rn(Rn({},m),{},qf({},g,x))},h)},$q=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,l=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var h=f_e(c,a,l);return t.domain([S_(h),wl(h)]),{niceTicks:h}}if(a&&i==="number"){var m=t.domain(),g=d_e(m,a,l);return{niceTicks:g}}return null};function cd(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ht(i[t.dataKey])){var l=xb(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var f=vn(i,ht(o)?t.dataKey:o);return ht(f)?null:t.scale(f)}var vI=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var f=vn(o,n.dataKey,n.domain[l]);return ht(f)?null:n.scale(f)-a/2+i},Q_e=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},J_e=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Rn(Rn({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Kn(a)){var o=n[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},e1e=function(t){return t.reduce(function(n,r){return[S_(r.concat([n[0]]).filter(Ze)),wl(r.concat([n[1]]).filter(Ze))]},[1/0,-1/0])},Bq=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,f=l.reduce(function(c,h){var m=e1e(h.slice(n,r+1));return[Math.min(c[0],m[0]),Math.max(c[1],m[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},gI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hA=function(t,n,r){if(dt(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Ze(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(gI.test(t[0])){var a=+gI.exec(t[0])[1];i[0]=n[0]-a}else dt(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Ze(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(yI.test(t[1])){var o=+yI.exec(t[1])[1];i[1]=n[1]+o}else dt(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Wb=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 a=zP(n,function(m){return m.coordinate}),o=1/0,l=1,f=a.length;l<f;l++){var c=a[l],h=a[l-1];o=Math.min((c.coordinate||0)-(h.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},bI=function(t,n,r){return!t||!t.length||$l(t,Ci(r,"type.defaultProps.domain"))?n:t},Uq=function(t,n){var r=t.type.defaultProps?Rn(Rn({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,l=r.formatter,f=r.tooltipType,c=r.chartType,h=r.hide;return Rn(Rn({},at(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:h3(t),value:vn(n,i),type:f,payload:n,chartType:c,hide:h})};function Cm(e){"@babel/helpers - typeof";return Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cm(e)}function _I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_I(Object(n),!0).forEach(function(r){zq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zq(e,t,n){return t=t1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t1e(e){var t=n1e(e,"string");return Cm(t)=="symbol"?t:t+""}function n1e(e,t){if(Cm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r1e(e,t){return s1e(e)||o1e(e,t)||a1e(e,t)||i1e()}function i1e(){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 a1e(e,t){if(e){if(typeof e=="string")return xI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xI(e,t)}}function xI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function s1e(e){if(Array.isArray(e))return e}var Gb=Math.PI/180,l1e=function(t){return t*180/Math.PI},dn=function(t,n,r,i){return{x:t+Math.cos(-Gb*i)*r,y:n+Math.sin(-Gb*i)*r}},Fq=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},u1e=function(t,n,r,i,a){var o=t.width,l=t.height,f=t.startAngle,c=t.endAngle,h=Ur(t.cx,o,o/2),m=Ur(t.cy,l,l/2),g=Fq(o,l,r),x=Ur(t.innerRadius,g,0),_=Ur(t.outerRadius,g,g*.8),w=Object.keys(n);return w.reduce(function(S,O){var C=n[O],T=C.domain,j=C.reversed,P;if(ht(C.range))i==="angleAxis"?P=[f,c]:i==="radiusAxis"&&(P=[x,_]),j&&(P=[P[1],P[0]]);else{P=C.range;var R=P,I=r1e(R,2);f=I[0],c=I[1]}var V=kq(C,a),G=V.realScaleType,W=V.scale;W.domain(T).range(P),Iq(W);var K=$q(W,Yo(Yo({},C),{},{realScaleType:G})),ne=Yo(Yo(Yo({},C),K),{},{range:P,radius:_,realScaleType:G,scale:W,cx:h,cy:m,innerRadius:x,outerRadius:_,startAngle:f,endAngle:c});return Yo(Yo({},S),{},zq({},O,ne))},{})},c1e=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-o,2))},f1e=function(t,n){var r=t.x,i=t.y,a=n.cx,o=n.cy,l=c1e({x:r,y:i},{x:a,y:o});if(l<=0)return{radius:l};var f=(r-a)/l,c=Math.acos(f);return i>o&&(c=2*Math.PI-c),{radius:l,angle:l1e(c),angleInRadian:c}},d1e=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},h1e=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},wI=function(t,n){var r=t.x,i=t.y,a=f1e({x:r,y:i},n),o=a.radius,l=a.angle,f=n.innerRadius,c=n.outerRadius;if(o<f||o>c)return!1;if(o===0)return!0;var h=d1e(n),m=h.startAngle,g=h.endAngle,x=l,_;if(m<=g){for(;x>g;)x-=360;for(;x<m;)x+=360;_=x>=m&&x<=g}else{for(;x>m;)x-=360;for(;x<g;)x+=360;_=x>=g&&x<=m}return _?Yo(Yo({},n),{},{radius:o,angle:h1e(x,n)}):null},qq=function(t){return!U.isValidElement(t)&&!dt(t)&&typeof t!="boolean"?t.className:""};function Tm(e){"@babel/helpers - typeof";return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tm(e)}var p1e=["offset"];function m1e(e){return b1e(e)||y1e(e)||g1e(e)||v1e()}function v1e(){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 g1e(e,t){if(e){if(typeof e=="string")return pA(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 pA(e,t)}}function y1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function b1e(e){if(Array.isArray(e))return pA(e)}function pA(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 _1e(e,t){if(e==null)return{};var n=x1e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function SI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SI(Object(n),!0).forEach(function(r){w1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w1e(e,t,n){return t=S1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S1e(e){var t=O1e(e,"string");return Tm(t)=="symbol"?t:t+""}function O1e(e,t){if(Tm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Am(){return Am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Am.apply(this,arguments)}var E1e=function(t){var n=t.value,r=t.formatter,i=ht(t.children)?n:t.children;return dt(r)?r(i):i},C1e=function(t,n){var r=Br(n-t),i=Math.min(Math.abs(n-t),360);return r*i},T1e=function(t,n,r){var i=t.position,a=t.viewBox,o=t.offset,l=t.className,f=a,c=f.cx,h=f.cy,m=f.innerRadius,g=f.outerRadius,x=f.startAngle,_=f.endAngle,w=f.clockWise,S=(m+g)/2,O=C1e(x,_),C=O>=0?1:-1,T,j;i==="insideStart"?(T=x+C*o,j=w):i==="insideEnd"?(T=_-C*o,j=!w):i==="end"&&(T=_+C*o,j=w),j=O<=0?j:!j;var P=dn(c,h,S,T),R=dn(c,h,S,T+(j?1:-1)*359),I="M".concat(P.x,",").concat(P.y,`
|
||
A`).concat(S,",").concat(S,",0,1,").concat(j?0:1,`,
|
||
`).concat(R.x,",").concat(R.y),V=ht(t.id)?Gl("recharts-radial-line-"):t.id;return ae.createElement("text",Am({},r,{dominantBaseline:"central",className:ke("recharts-radial-bar-label",l)}),ae.createElement("defs",null,ae.createElement("path",{id:V,d:I})),ae.createElement("textPath",{xlinkHref:"#".concat(V)},n))},A1e=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,l=a.cy,f=a.innerRadius,c=a.outerRadius,h=a.startAngle,m=a.endAngle,g=(h+m)/2;if(i==="outside"){var x=dn(o,l,c+r,g),_=x.x,w=x.y;return{x:_,y:w,textAnchor:_>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var S=(f+c)/2,O=dn(o,l,S,g),C=O.x,T=O.y;return{x:C,y:T,textAnchor:"middle",verticalAnchor:"middle"}},j1e=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,l=o.x,f=o.y,c=o.width,h=o.height,m=h>=0?1:-1,g=m*i,x=m>0?"end":"start",_=m>0?"start":"end",w=c>=0?1:-1,S=w*i,O=w>0?"end":"start",C=w>0?"start":"end";if(a==="top"){var T={x:l+c/2,y:f-m*i,textAnchor:"middle",verticalAnchor:x};return Yn(Yn({},T),r?{height:Math.max(f-r.y,0),width:c}:{})}if(a==="bottom"){var j={x:l+c/2,y:f+h+g,textAnchor:"middle",verticalAnchor:_};return Yn(Yn({},j),r?{height:Math.max(r.y+r.height-(f+h),0),width:c}:{})}if(a==="left"){var P={x:l-S,y:f+h/2,textAnchor:O,verticalAnchor:"middle"};return Yn(Yn({},P),r?{width:Math.max(P.x-r.x,0),height:h}:{})}if(a==="right"){var R={x:l+c+S,y:f+h/2,textAnchor:C,verticalAnchor:"middle"};return Yn(Yn({},R),r?{width:Math.max(r.x+r.width-R.x,0),height:h}:{})}var I=r?{width:c,height:h}:{};return a==="insideLeft"?Yn({x:l+S,y:f+h/2,textAnchor:C,verticalAnchor:"middle"},I):a==="insideRight"?Yn({x:l+c-S,y:f+h/2,textAnchor:O,verticalAnchor:"middle"},I):a==="insideTop"?Yn({x:l+c/2,y:f+g,textAnchor:"middle",verticalAnchor:_},I):a==="insideBottom"?Yn({x:l+c/2,y:f+h-g,textAnchor:"middle",verticalAnchor:x},I):a==="insideTopLeft"?Yn({x:l+S,y:f+g,textAnchor:C,verticalAnchor:_},I):a==="insideTopRight"?Yn({x:l+c-S,y:f+g,textAnchor:O,verticalAnchor:_},I):a==="insideBottomLeft"?Yn({x:l+S,y:f+h-g,textAnchor:C,verticalAnchor:x},I):a==="insideBottomRight"?Yn({x:l+c-S,y:f+h-g,textAnchor:O,verticalAnchor:x},I):Fd(a)&&(Ze(a.x)||Fu(a.x))&&(Ze(a.y)||Fu(a.y))?Yn({x:l+Ur(a.x,c),y:f+Ur(a.y,h),textAnchor:"end",verticalAnchor:"end"},I):Yn({x:l+c/2,y:f+h/2,textAnchor:"middle",verticalAnchor:"middle"},I)},P1e=function(t){return"cx"in t&&Ze(t.cx)};function lr(e){var t=e.offset,n=t===void 0?5:t,r=_1e(e,p1e),i=Yn({offset:n},r),a=i.viewBox,o=i.position,l=i.value,f=i.children,c=i.content,h=i.className,m=h===void 0?"":h,g=i.textBreakAll;if(!a||ht(l)&&ht(f)&&!U.isValidElement(c)&&!dt(c))return null;if(U.isValidElement(c))return U.cloneElement(c,i);var x;if(dt(c)){if(x=U.createElement(c,i),U.isValidElement(x))return x}else x=E1e(i);var _=P1e(a),w=at(i,!0);if(_&&(o==="insideStart"||o==="insideEnd"||o==="end"))return T1e(i,x,w);var S=_?A1e(i):j1e(i);return ae.createElement(cc,Am({className:ke("recharts-label",m)},w,S,{breakAll:g}),x)}lr.displayName="Label";var Vq=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,f=t.radius,c=t.innerRadius,h=t.outerRadius,m=t.x,g=t.y,x=t.top,_=t.left,w=t.width,S=t.height,O=t.clockWise,C=t.labelViewBox;if(C)return C;if(Ze(w)&&Ze(S)){if(Ze(m)&&Ze(g))return{x:m,y:g,width:w,height:S};if(Ze(x)&&Ze(_))return{x,y:_,width:w,height:S}}return Ze(m)&&Ze(g)?{x:m,y:g,width:0,height:0}:Ze(n)&&Ze(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:h||f||l||0,clockWise:O}:t.viewBox?t.viewBox:{}},R1e=function(t,n){return t?t===!0?ae.createElement(lr,{key:"label-implicit",viewBox:n}):Kn(t)?ae.createElement(lr,{key:"label-implicit",viewBox:n,value:t}):U.isValidElement(t)?t.type===lr?U.cloneElement(t,{key:"label-implicit",viewBox:n}):ae.createElement(lr,{key:"label-implicit",content:t,viewBox:n}):dt(t)?ae.createElement(lr,{key:"label-implicit",content:t,viewBox:n}):Fd(t)?ae.createElement(lr,Am({viewBox:n},t,{key:"label-implicit"})):null:null},M1e=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,a=Vq(t),o=qr(i,lr).map(function(f,c){return U.cloneElement(f,{viewBox:n||a,key:"label-".concat(c)})});if(!r)return o;var l=R1e(t.label,n||a);return[l].concat(m1e(o))};lr.parseViewBox=Vq;lr.renderCallByParent=M1e;var KO,OI;function N1e(){if(OI)return KO;OI=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return KO=e,KO}var L1e=N1e();const D1e=Lt(L1e);function jm(e){"@babel/helpers - typeof";return jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jm(e)}var k1e=["valueAccessor"],I1e=["data","dataKey","clockWise","id","textBreakAll"];function $1e(e){return F1e(e)||z1e(e)||U1e(e)||B1e()}function B1e(){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 U1e(e,t){if(e){if(typeof e=="string")return mA(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 mA(e,t)}}function z1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function F1e(e){if(Array.isArray(e))return mA(e)}function mA(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 Yb(){return Yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yb.apply(this,arguments)}function EI(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 CI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EI(Object(n),!0).forEach(function(r){q1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q1e(e,t,n){return t=V1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V1e(e){var t=H1e(e,"string");return jm(t)=="symbol"?t:t+""}function H1e(e,t){if(jm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TI(e,t){if(e==null)return{};var n=W1e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function W1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var G1e=function(t){return Array.isArray(t.value)?D1e(t.value):t.value};function wa(e){var t=e.valueAccessor,n=t===void 0?G1e:t,r=TI(e,k1e),i=r.data,a=r.dataKey,o=r.clockWise,l=r.id,f=r.textBreakAll,c=TI(r,I1e);return!i||!i.length?null:ae.createElement(Ot,{className:"recharts-label-list"},i.map(function(h,m){var g=ht(a)?n(h,m):vn(h&&h.payload,a),x=ht(l)?{}:{id:"".concat(l,"-").concat(m)};return ae.createElement(lr,Yb({},at(h,!0),c,x,{parentViewBox:h.parentViewBox,value:g,textBreakAll:f,viewBox:lr.parseViewBox(ht(o)?h:CI(CI({},h),{},{clockWise:o})),key:"label-".concat(m),index:m}))}))}wa.displayName="LabelList";function Y1e(e,t){return e?e===!0?ae.createElement(wa,{key:"labelList-implicit",data:t}):ae.isValidElement(e)||dt(e)?ae.createElement(wa,{key:"labelList-implicit",data:t,content:e}):Fd(e)?ae.createElement(wa,Yb({data:t},e,{key:"labelList-implicit"})):null:null}function K1e(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=qr(r,wa).map(function(o,l){return U.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var a=Y1e(e.label,t);return[a].concat($1e(i))}wa.renderCallByParent=K1e;function Pm(e){"@babel/helpers - typeof";return Pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pm(e)}function vA(){return vA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vA.apply(this,arguments)}function AI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AI(Object(n),!0).forEach(function(r){Z1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z1e(e,t,n){return t=X1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X1e(e){var t=Q1e(e,"string");return Pm(t)=="symbol"?t:t+""}function Q1e(e,t){if(Pm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J1e=function(t,n){var r=Br(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},uy=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,o=t.sign,l=t.isExternal,f=t.cornerRadius,c=t.cornerIsExternal,h=f*(l?1:-1)+i,m=Math.asin(f/h)/Gb,g=c?a:a+o*m,x=dn(n,r,h,g),_=dn(n,r,i,g),w=c?a-o*m:a,S=dn(n,r,h*Math.cos(m*Gb),w);return{center:x,circleTangency:_,lineTangency:S,theta:m}},Hq=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,f=J1e(o,l),c=o+f,h=dn(n,r,a,o),m=dn(n,r,a,c),g="M ".concat(h.x,",").concat(h.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(o>c),`,
|
||
`).concat(m.x,",").concat(m.y,`
|
||
`);if(i>0){var x=dn(n,r,i,o),_=dn(n,r,i,c);g+="L ".concat(_.x,",").concat(_.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(o<=c),`,
|
||
`).concat(x.x,",").concat(x.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},exe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,f=t.cornerIsExternal,c=t.startAngle,h=t.endAngle,m=Br(h-c),g=uy({cx:n,cy:r,radius:a,angle:c,sign:m,cornerRadius:o,cornerIsExternal:f}),x=g.circleTangency,_=g.lineTangency,w=g.theta,S=uy({cx:n,cy:r,radius:a,angle:h,sign:-m,cornerRadius:o,cornerIsExternal:f}),O=S.circleTangency,C=S.lineTangency,T=S.theta,j=f?Math.abs(c-h):Math.abs(c-h)-w-T;if(j<0)return l?"M ".concat(_.x,",").concat(_.y,`
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
||
`):Hq({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:h});var P="M ".concat(_.x,",").concat(_.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(j>180),",").concat(+(m<0),",").concat(O.x,",").concat(O.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(C.x,",").concat(C.y,`
|
||
`);if(i>0){var R=uy({cx:n,cy:r,radius:i,angle:c,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),I=R.circleTangency,V=R.lineTangency,G=R.theta,W=uy({cx:n,cy:r,radius:i,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),K=W.circleTangency,ne=W.lineTangency,le=W.theta,Q=f?Math.abs(c-h):Math.abs(c-h)-G-le;if(Q<0&&o===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(ne.x,",").concat(ne.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(K.x,",").concat(K.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(m>0),",").concat(I.x,",").concat(I.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(V.x,",").concat(V.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},txe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Wq=function(t){var n=jI(jI({},txe),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,f=n.forceCornerRadius,c=n.cornerIsExternal,h=n.startAngle,m=n.endAngle,g=n.className;if(o<a||h===m)return null;var x=ke("recharts-sector",g),_=o-a,w=Ur(l,_,0,!0),S;return w>0&&Math.abs(h-m)<360?S=exe({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(w,_/2),forceCornerRadius:f,cornerIsExternal:c,startAngle:h,endAngle:m}):S=Hq({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m}),ae.createElement("path",vA({},at(n,!0),{className:x,d:S,role:"img"}))};function Rm(e){"@babel/helpers - typeof";return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rm(e)}function gA(){return gA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gA.apply(this,arguments)}function PI(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 RI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PI(Object(n),!0).forEach(function(r){nxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nxe(e,t,n){return t=rxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rxe(e){var t=ixe(e,"string");return Rm(t)=="symbol"?t:t+""}function ixe(e,t){if(Rm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MI={curveBasisClosed:Spe,curveBasisOpen:Ope,curveBasis:wpe,curveBumpX:lpe,curveBumpY:upe,curveLinearClosed:Epe,curveLinear:c_,curveMonotoneX:Cpe,curveMonotoneY:Tpe,curveNatural:Ape,curveStep:jpe,curveStepAfter:Rpe,curveStepBefore:Ppe},cy=function(t){return t.x===+t.x&&t.y===+t.y},hp=function(t){return t.x},pp=function(t){return t.y},axe=function(t,n){if(dt(t))return t;var r="curve".concat(l_(t));return(r==="curveMonotone"||r==="curveBump")&&n?MI["".concat(r).concat(n==="vertical"?"Y":"X")]:MI[r]||c_},oxe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,o=t.baseLine,l=t.layout,f=t.connectNulls,c=f===void 0?!1:f,h=axe(r,l),m=c?a.filter(function(w){return cy(w)}):a,g;if(Array.isArray(o)){var x=c?o.filter(function(w){return cy(w)}):o,_=m.map(function(w,S){return RI(RI({},w),{},{base:x[S]})});return l==="vertical"?g=ty().y(pp).x1(hp).x0(function(w){return w.base.x}):g=ty().x(hp).y1(pp).y0(function(w){return w.base.y}),g.defined(cy).curve(h),g(_)}return l==="vertical"&&Ze(o)?g=ty().y(pp).x1(hp).x0(o):Ze(o)?g=ty().x(hp).y1(pp).y0(o):g=Vz().x(hp).y(pp),g.defined(cy).curve(h),g(m)},jl=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?oxe(t):i;return ae.createElement("path",gA({},at(t,!1),wb(t),{className:ke("recharts-curve",n),d:o,ref:a}))},sxe=Object.getOwnPropertyNames,lxe=Object.getOwnPropertySymbols,uxe=Object.prototype.hasOwnProperty;function NI(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function fy(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var a=i.cache,o=a.get(n),l=a.get(r);if(o&&l)return o===r&&l===n;a.set(n,r),a.set(r,n);var f=e(n,r,i);return a.delete(n),a.delete(r),f}}function LI(e){return sxe(e).concat(lxe(e))}var cxe=Object.hasOwn||function(e,t){return uxe.call(e,t)};function _c(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var fxe="__v",dxe="__o",hxe="_owner",DI=Object.getOwnPropertyDescriptor,kI=Object.keys;function pxe(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 mxe(e,t){return _c(e.getTime(),t.getTime())}function vxe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function gxe(e,t){return e===t}function II(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.entries(),o,l,f=0;(o=a.next())&&!o.done;){for(var c=t.entries(),h=!1,m=0;(l=c.next())&&!l.done;){if(i[m]){m++;continue}var g=o.value,x=l.value;if(n.equals(g[0],x[0],f,m,e,t,n)&&n.equals(g[1],x[1],g[0],x[0],e,t,n)){h=i[m]=!0;break}m++}if(!h)return!1;f++}return!0}var yxe=_c;function bxe(e,t,n){var r=kI(e),i=r.length;if(kI(t).length!==i)return!1;for(;i-- >0;)if(!Gq(e,t,n,r[i]))return!1;return!0}function mp(e,t,n){var r=LI(e),i=r.length;if(LI(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=r[i],!Gq(e,t,n,a)||(o=DI(e,a),l=DI(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function _xe(e,t){return _c(e.valueOf(),t.valueOf())}function xxe(e,t){return e.source===t.source&&e.flags===t.flags}function $I(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.values(),o,l;(o=a.next())&&!o.done;){for(var f=t.values(),c=!1,h=0;(l=f.next())&&!l.done;){if(!i[h]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){c=i[h]=!0;break}h++}if(!c)return!1}return!0}function wxe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Sxe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Gq(e,t,n,r){return(r===hxe||r===dxe||r===fxe)&&(e.$$typeof||t.$$typeof)?!0:cxe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Oxe="[object Arguments]",Exe="[object Boolean]",Cxe="[object Date]",Txe="[object Error]",Axe="[object Map]",jxe="[object Number]",Pxe="[object Object]",Rxe="[object RegExp]",Mxe="[object Set]",Nxe="[object String]",Lxe="[object URL]",Dxe=Array.isArray,BI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,UI=Object.assign,kxe=Object.prototype.toString.call.bind(Object.prototype.toString);function Ixe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,h=e.areSetsEqual,m=e.areTypedArraysEqual,g=e.areUrlsEqual;return function(_,w,S){if(_===w)return!0;if(_==null||w==null)return!1;var O=typeof _;if(O!==typeof w)return!1;if(O!=="object")return O==="number"?o(_,w,S):O==="function"?i(_,w,S):!1;var C=_.constructor;if(C!==w.constructor)return!1;if(C===Object)return l(_,w,S);if(Dxe(_))return t(_,w,S);if(BI!=null&&BI(_))return m(_,w,S);if(C===Date)return n(_,w,S);if(C===RegExp)return c(_,w,S);if(C===Map)return a(_,w,S);if(C===Set)return h(_,w,S);var T=kxe(_);return T===Cxe?n(_,w,S):T===Rxe?c(_,w,S):T===Axe?a(_,w,S):T===Mxe?h(_,w,S):T===Pxe?typeof _.then!="function"&&typeof w.then!="function"&&l(_,w,S):T===Lxe?g(_,w,S):T===Txe?r(_,w,S):T===Oxe?l(_,w,S):T===Exe||T===jxe||T===Nxe?f(_,w,S):!1}}function $xe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?mp:pxe,areDatesEqual:mxe,areErrorsEqual:vxe,areFunctionsEqual:gxe,areMapsEqual:r?NI(II,mp):II,areNumbersEqual:yxe,areObjectsEqual:r?mp:bxe,arePrimitiveWrappersEqual:_xe,areRegExpsEqual:xxe,areSetsEqual:r?NI($I,mp):$I,areTypedArraysEqual:r?mp:wxe,areUrlsEqual:Sxe};if(n&&(i=UI({},i,n(i))),t){var a=fy(i.areArraysEqual),o=fy(i.areMapsEqual),l=fy(i.areObjectsEqual),f=fy(i.areSetsEqual);i=UI({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:f})}return i}function Bxe(e){return function(t,n,r,i,a,o,l){return e(t,n,l)}}function Uxe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(f,c){var h=r(),m=h.cache,g=m===void 0?t?new WeakMap:void 0:m,x=h.meta;return n(f,c,{cache:g,equals:i,meta:x,strict:a})};if(t)return function(f,c){return n(f,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(f,c){return n(f,c,o)}}var zxe=Zl();Zl({strict:!0});Zl({circular:!0});Zl({circular:!0,strict:!0});Zl({createInternalComparator:function(){return _c}});Zl({strict:!0,createInternalComparator:function(){return _c}});Zl({circular:!0,createInternalComparator:function(){return _c}});Zl({circular:!0,createInternalComparator:function(){return _c},strict:!0});function Zl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=$xe(e),f=Ixe(l),c=r?r(f):Bxe(f);return Uxe({circular:n,comparator:f,createState:i,equals:c,strict:o})}function Fxe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):Fxe(i)};requestAnimationFrame(r)}function yA(e){"@babel/helpers - typeof";return yA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yA(e)}function qxe(e){return Gxe(e)||Wxe(e)||Hxe(e)||Vxe()}function Vxe(){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 Hxe(e,t){if(e){if(typeof e=="string")return FI(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 FI(e,t)}}function FI(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 Wxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gxe(e){if(Array.isArray(e))return e}function Yxe(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,l=qxe(o),f=l[0],c=l.slice(1);if(typeof f=="number"){zI(i.bind(null,c),f);return}i(f),zI(i.bind(null,c));return}yA(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Mm(e){"@babel/helpers - typeof";return Mm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mm(e)}function qI(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 VI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qI(Object(n),!0).forEach(function(r){Yq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yq(e,t,n){return t=Kxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kxe(e){var t=Zxe(e,"string");return Mm(t)==="symbol"?t:String(t)}function Zxe(e,t){if(Mm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xxe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},Qxe=function(t){return t},Jxe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},zp=function(t,n){return Object.keys(n).reduce(function(r,i){return VI(VI({},r),{},Yq({},i,t(i,n[i])))},{})},HI=function(t,n,r){return t.map(function(i){return"".concat(Jxe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function ewe(e,t){return rwe(e)||nwe(e,t)||Kq(e,t)||twe()}function twe(){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 nwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function rwe(e){if(Array.isArray(e))return e}function iwe(e){return swe(e)||owe(e)||Kq(e)||awe()}function awe(){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 Kq(e,t){if(e){if(typeof e=="string")return bA(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 bA(e,t)}}function owe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function swe(e){if(Array.isArray(e))return bA(e)}function bA(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 Kb=1e-4,Zq=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Xq=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},WI=function(t,n){return function(r){var i=Zq(t,n);return Xq(i,r)}},lwe=function(t,n){return function(r){var i=Zq(t,n),a=[].concat(iwe(i.map(function(o,l){return o*l}).slice(1)),[0]);return Xq(a,r)}},GI=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var c=f[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),h=ewe(c,4);i=h[0],a=h[1],o=h[2],l=h[3]}}}var m=WI(i,o),g=WI(a,l),x=lwe(i,o),_=function(O){return O>1?1:O<0?0:O},w=function(O){for(var C=O>1?1:O,T=C,j=0;j<8;++j){var P=m(T)-C,R=x(T);if(Math.abs(P-C)<Kb||R<Kb)return g(T);T=_(T-P/R)}return g(T)};return w.isStepper=!1,w},uwe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,f=function(h,m,g){var x=-(h-m)*r,_=g*a,w=g+(x-_)*l/1e3,S=g*l/1e3+h;return Math.abs(S-m)<Kb&&Math.abs(w)<Kb?[m,0]:[S,w]};return f.isStepper=!0,f.dt=l,f},cwe=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 GI(i);case"spring":return uwe();default:if(i.split("(")[0]==="cubic-bezier")return GI(i)}return typeof i=="function"?i:null};function Nm(e){"@babel/helpers - typeof";return Nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nm(e)}function YI(e){return hwe(e)||dwe(e)||Qq(e)||fwe()}function fwe(){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 dwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hwe(e){if(Array.isArray(e))return xA(e)}function KI(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 yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KI(Object(n),!0).forEach(function(r){_A(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _A(e,t,n){return t=pwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pwe(e){var t=mwe(e,"string");return Nm(t)==="symbol"?t:String(t)}function mwe(e,t){if(Nm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vwe(e,t){return bwe(e)||ywe(e,t)||Qq(e,t)||gwe()}function gwe(){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 Qq(e,t){if(e){if(typeof e=="string")return xA(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 xA(e,t)}}function xA(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 ywe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function bwe(e){if(Array.isArray(e))return e}var Zb=function(t,n,r){return t+(n-t)*r},wA=function(t){var n=t.from,r=t.to;return n!==r},_we=function e(t,n,r){var i=zp(function(a,o){if(wA(o)){var l=t(o.from,o.to,o.velocity),f=vwe(l,2),c=f[0],h=f[1];return yr(yr({},o),{},{from:c,velocity:h})}return o},n);return r<1?zp(function(a,o){return wA(o)?yr(yr({},o),{},{velocity:Zb(o.velocity,i[a].velocity,r),from:Zb(o.from,i[a].from,r)}):o},n):e(t,i,r-1)};const xwe=function(e,t,n,r,i){var a=Xxe(e,t),o=a.reduce(function(S,O){return yr(yr({},S),{},_A({},O,[e[O],t[O]]))},{}),l=a.reduce(function(S,O){return yr(yr({},S),{},_A({},O,{from:e[O],velocity:0,to:t[O]}))},{}),f=-1,c,h,m=function(){return null},g=function(){return zp(function(O,C){return C.from},l)},x=function(){return!Object.values(l).filter(wA).length},_=function(O){c||(c=O);var C=O-c,T=C/n.dt;l=_we(n,l,T),i(yr(yr(yr({},e),t),g())),c=O,x()||(f=requestAnimationFrame(m))},w=function(O){h||(h=O);var C=(O-h)/r,T=zp(function(P,R){return Zb.apply(void 0,YI(R).concat([n(C)]))},o);if(i(yr(yr(yr({},e),t),T)),C<1)f=requestAnimationFrame(m);else{var j=zp(function(P,R){return Zb.apply(void 0,YI(R).concat([n(1)]))},o);i(yr(yr(yr({},e),t),j))}};return m=n.isStepper?_:w,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(f)}}};function fd(e){"@babel/helpers - typeof";return fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fd(e)}var wwe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Swe(e,t){if(e==null)return{};var n=Owe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Owe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ZO(e){return Awe(e)||Twe(e)||Cwe(e)||Ewe()}function Ewe(){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 Cwe(e,t){if(e){if(typeof e=="string")return SA(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 SA(e,t)}}function Twe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Awe(e){if(Array.isArray(e))return SA(e)}function SA(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 ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZI(Object(n),!0).forEach(function(r){Ap(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ap(e,t,n){return t=Jq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pwe(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,Jq(r.key),r)}}function Rwe(e,t,n){return t&&Pwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jq(e){var t=Mwe(e,"string");return fd(t)==="symbol"?t:String(t)}function Mwe(e,t){if(fd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nwe(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&&OA(e,t)}function OA(e,t){return OA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},OA(e,t)}function Lwe(e){var t=Dwe();return function(){var r=Xb(e),i;if(t){var a=Xb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return EA(this,i)}}function EA(e,t){if(t&&(fd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CA(e)}function CA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dwe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xb(e)}var na=function(e){Nwe(n,e);var t=Lwe(n);function n(r,i){var a;jwe(this,n),a=t.call(this,r,i);var o=a.props,l=o.isActive,f=o.attributeName,c=o.from,h=o.to,m=o.steps,g=o.children,x=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(CA(a)),a.changeStyle=a.changeStyle.bind(CA(a)),!l||x<=0)return a.state={style:{}},typeof g=="function"&&(a.state={style:h}),EA(a);if(m&&m.length)a.state={style:m[0].style};else if(c){if(typeof g=="function")return a.state={style:c},EA(a);a.state={style:f?Ap({},f,c):c}}else a.state={style:{}};return a}return Rwe(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,f=a.attributeName,c=a.shouldReAnimate,h=a.to,m=a.from,g=this.state.style;if(l){if(!o){var x={style:f?Ap({},f,h):h};this.state&&g&&(f&&g[f]!==h||!f&&g!==h)&&this.setState(x);return}if(!(zxe(i.to,h)&&i.canBegin&&i.isActive)){var _=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=_||c?m:i.to;if(this.state&&g){var S={style:f?Ap({},f,w):w};(f&&g[f]!==w||!f&&g!==w)&&this.setState(S)}this.runAnimation(va(va({},this.props),{},{from:w,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 a=this,o=i.from,l=i.to,f=i.duration,c=i.easing,h=i.begin,m=i.onAnimationEnd,g=i.onAnimationStart,x=xwe(o,l,cwe(c),f,this.changeStyle),_=function(){a.stopJSAnimation=x()};this.manager.start([g,h,_,f,m])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,f=i.onAnimationStart,c=o[0],h=c.style,m=c.duration,g=m===void 0?0:m,x=function(w,S,O){if(O===0)return w;var C=S.duration,T=S.easing,j=T===void 0?"ease":T,P=S.style,R=S.properties,I=S.onAnimationEnd,V=O>0?o[O-1]:S,G=R||Object.keys(P);if(typeof j=="function"||j==="spring")return[].concat(ZO(w),[a.runJSAnimation.bind(a,{from:V.style,to:P,duration:C,easing:j}),C]);var W=HI(G,C,j),K=va(va(va({},V.style),P),{},{transition:W});return[].concat(ZO(w),[K,C,I]).filter(Qxe)};return this.manager.start([f].concat(ZO(o.reduce(x,[h,Math.max(g,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Yxe());var a=i.begin,o=i.duration,l=i.attributeName,f=i.to,c=i.easing,h=i.onAnimationStart,m=i.onAnimationEnd,g=i.steps,x=i.children,_=this.manager;if(this.unSubscribe=_.subscribe(this.handleStyleChange),typeof c=="function"||typeof x=="function"||c==="spring"){this.runJSAnimation(i);return}if(g.length>1){this.runStepAnimation(i);return}var w=l?Ap({},l,f):f,S=HI(Object.keys(w),o,c);_.start([h,a,va(va({},w),{},{transition:S}),o,m])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=Swe(i,wwe),c=U.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||c===0||o<=0)return a;var m=function(x){var _=x.props,w=_.style,S=w===void 0?{}:w,O=_.className,C=U.cloneElement(x,va(va({},f),{},{style:va(va({},S),h),className:O}));return C};return c===1?m(U.Children.only(a)):ae.createElement("div",null,U.Children.map(a,function(g){return m(g)}))}}]),n}(U.PureComponent);na.displayName="Animate";na.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};na.propTypes={from:ie.oneOfType([ie.object,ie.string]),to:ie.oneOfType([ie.object,ie.string]),attributeName:ie.string,duration:ie.number,begin:ie.number,easing:ie.oneOfType([ie.string,ie.func]),steps:ie.arrayOf(ie.shape({duration:ie.number.isRequired,style:ie.object.isRequired,easing:ie.oneOfType([ie.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ie.func]),properties:ie.arrayOf("string"),onAnimationEnd:ie.func})),children:ie.oneOfType([ie.node,ie.func]),isActive:ie.bool,canBegin:ie.bool,onAnimationEnd:ie.func,shouldReAnimate:ie.bool,onAnimationStart:ie.func,onAnimationReStart:ie.func};function Lm(e){"@babel/helpers - typeof";return Lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lm(e)}function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qb.apply(this,arguments)}function kwe(e,t){return Uwe(e)||Bwe(e,t)||$we(e,t)||Iwe()}function Iwe(){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 $we(e,t){if(e){if(typeof e=="string")return XI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XI(e,t)}}function XI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Uwe(e){if(Array.isArray(e))return e}function QI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QI(Object(n),!0).forEach(function(r){zwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zwe(e,t,n){return t=Fwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fwe(e){var t=qwe(e,"string");return Lm(t)=="symbol"?t:t+""}function qwe(e,t){if(Lm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var e7=function(t,n,r,i,a){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,f=r>=0?1:-1,c=i>=0&&r>=0||i<0&&r<0?1:0,h;if(o>0&&a instanceof Array){for(var m=[0,0,0,0],g=0,x=4;g<x;g++)m[g]=a[g]>o?o:a[g];h="M".concat(t,",").concat(n+l*m[0]),m[0]>0&&(h+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(c,",").concat(t+f*m[0],",").concat(n)),h+="L ".concat(t+r-f*m[1],",").concat(n),m[1]>0&&(h+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(c,`,
|
||
`).concat(t+r,",").concat(n+l*m[1])),h+="L ".concat(t+r,",").concat(n+i-l*m[2]),m[2]>0&&(h+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(c,`,
|
||
`).concat(t+r-f*m[2],",").concat(n+i)),h+="L ".concat(t+f*m[3],",").concat(n+i),m[3]>0&&(h+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(c,`,
|
||
`).concat(t,",").concat(n+i-l*m[3])),h+="Z"}else if(o>0&&a===+a&&a>0){var _=Math.min(o,a);h="M ".concat(t,",").concat(n+l*_,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t+f*_,",").concat(n,`
|
||
L `).concat(t+r-f*_,",").concat(n,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t+r,",").concat(n+l*_,`
|
||
L `).concat(t+r,",").concat(n+i-l*_,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t+r-f*_,",").concat(n+i,`
|
||
L `).concat(t+f*_,",").concat(n+i,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t,",").concat(n+i-l*_," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},Vwe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,l=n.width,f=n.height;if(Math.abs(l)>0&&Math.abs(f)>0){var c=Math.min(a,a+l),h=Math.max(a,a+l),m=Math.min(o,o+f),g=Math.max(o,o+f);return r>=c&&r<=h&&i>=m&&i<=g}return!1},Hwe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},p3=function(t){var n=JI(JI({},Hwe),t),r=U.useRef(),i=U.useState(-1),a=kwe(i,2),o=a[0],l=a[1];U.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&l(j)}catch{}},[]);var f=n.x,c=n.y,h=n.width,m=n.height,g=n.radius,x=n.className,_=n.animationEasing,w=n.animationDuration,S=n.animationBegin,O=n.isAnimationActive,C=n.isUpdateAnimationActive;if(f!==+f||c!==+c||h!==+h||m!==+m||h===0||m===0)return null;var T=ke("recharts-rectangle",x);return C?ae.createElement(na,{canBegin:o>0,from:{width:h,height:m,x:f,y:c},to:{width:h,height:m,x:f,y:c},duration:w,animationEasing:_,isActive:C},function(j){var P=j.width,R=j.height,I=j.x,V=j.y;return ae.createElement(na,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,isActive:O,easing:_},ae.createElement("path",Qb({},at(n,!0),{className:T,d:e7(I,V,P,R,g),ref:r})))}):ae.createElement("path",Qb({},at(n,!0),{className:T,d:e7(f,c,h,m,g)}))},Wwe=["points","className","baseLinePoints","connectNulls"];function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lf.apply(this,arguments)}function Gwe(e,t){if(e==null)return{};var n=Ywe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ywe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function t7(e){return Qwe(e)||Xwe(e)||Zwe(e)||Kwe()}function Kwe(){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 Zwe(e,t){if(e){if(typeof e=="string")return TA(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 TA(e,t)}}function Xwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qwe(e){if(Array.isArray(e))return TA(e)}function TA(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 n7=function(t){return t&&t.x===+t.x&&t.y===+t.y},Jwe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){n7(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),n7(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Fp=function(t,n){var r=Jwe(t);n&&(r=[r.reduce(function(a,o){return[].concat(t7(a),t7(o))},[])]);var i=r.map(function(a){return a.reduce(function(o,l,f){return"".concat(o).concat(f===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},e2e=function(t,n,r){var i=Fp(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Fp(n.reverse(),r).slice(1))},t2e=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,o=Gwe(t,Wwe);if(!n||!n.length)return null;var l=ke("recharts-polygon",r);if(i&&i.length){var f=o.stroke&&o.stroke!=="none",c=e2e(n,i,a);return ae.createElement("g",{className:l},ae.createElement("path",Lf({},at(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),f?ae.createElement("path",Lf({},at(o,!0),{fill:"none",d:Fp(n,a)})):null,f?ae.createElement("path",Lf({},at(o,!0),{fill:"none",d:Fp(i,a)})):null)}var h=Fp(n,a);return ae.createElement("path",Lf({},at(o,!0),{fill:h.slice(-1)==="Z"?o.fill:"none",className:l,d:h}))};function AA(){return AA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AA.apply(this,arguments)}var gv=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=ke("recharts-dot",a);return n===+n&&r===+r&&i===+i?ae.createElement("circle",AA({},at(t,!1),wb(t),{className:o,cx:n,cy:r,r:i})):null};function Dm(e){"@babel/helpers - typeof";return Dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dm(e)}var n2e=["x","y","top","left","width","height","className"];function jA(){return jA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jA.apply(this,arguments)}function r7(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 r2e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r7(Object(n),!0).forEach(function(r){i2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i2e(e,t,n){return t=a2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a2e(e){var t=o2e(e,"string");return Dm(t)=="symbol"?t:t+""}function o2e(e,t){if(Dm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s2e(e,t){if(e==null)return{};var n=l2e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function l2e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var u2e=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},c2e=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,f=t.left,c=f===void 0?0:f,h=t.width,m=h===void 0?0:h,g=t.height,x=g===void 0?0:g,_=t.className,w=s2e(t,n2e),S=r2e({x:r,y:a,top:l,left:c,width:m,height:x},w);return!Ze(r)||!Ze(a)||!Ze(m)||!Ze(x)||!Ze(l)||!Ze(c)?null:ae.createElement("path",jA({},at(S,!0),{className:ke("recharts-cross",_),d:u2e(r,a,m,x,l,c)}))},XO,i7;function f2e(){if(i7)return XO;i7=1;var e=w_(),t=pq(),n=go();function r(i,a){return i&&i.length?e(i,n(a,2),t):void 0}return XO=r,XO}var d2e=f2e();const h2e=Lt(d2e);var QO,a7;function p2e(){if(a7)return QO;a7=1;var e=w_(),t=go(),n=mq();function r(i,a){return i&&i.length?e(i,t(a,2),n):void 0}return QO=r,QO}var m2e=p2e();const v2e=Lt(m2e);var g2e=["cx","cy","angle","ticks","axisLine"],y2e=["ticks","tick","angle","tickFormatter","stroke"];function dd(e){"@babel/helpers - typeof";return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qp.apply(this,arguments)}function o7(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 Au(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o7(Object(n),!0).forEach(function(r){C_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s7(e,t){if(e==null)return{};var n=b2e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b2e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l7(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,tV(r.key),r)}}function x2e(e,t,n){return t&&l7(e.prototype,t),n&&l7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w2e(e,t,n){return t=Jb(t),S2e(e,eV()?Reflect.construct(t,n||[],Jb(e).constructor):t.apply(e,n))}function S2e(e,t){if(t&&(dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O2e(e)}function O2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eV=function(){return!!e})()}function Jb(e){return Jb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jb(e)}function E2e(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&&PA(e,t)}function PA(e,t){return PA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PA(e,t)}function C_(e,t,n){return t=tV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tV(e){var t=C2e(e,"string");return dd(t)=="symbol"?t:t+""}function C2e(e,t){if(dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T_=function(e){function t(){return _2e(this,t),w2e(this,t,arguments)}return E2e(t,e),x2e(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,o=a.angle,l=a.cx,f=a.cy;return dn(l,f,i,o)}},{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,a=r.cy,o=r.angle,l=r.ticks,f=h2e(l,function(h){return h.coordinate||0}),c=v2e(l,function(h){return h.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,f=r.axisLine,c=s7(r,g2e),h=l.reduce(function(_,w){return[Math.min(_[0],w.coordinate),Math.max(_[1],w.coordinate)]},[1/0,-1/0]),m=dn(i,a,h[0],o),g=dn(i,a,h[1],o),x=Au(Au(Au({},at(c,!1)),{},{fill:"none"},at(f,!1)),{},{x1:m.x,y1:m.y,x2:g.x,y2:g.y});return ae.createElement("line",qp({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,f=i.tickFormatter,c=i.stroke,h=s7(i,y2e),m=this.getTickTextAnchor(),g=at(h,!1),x=at(o,!1),_=a.map(function(w,S){var O=r.getTickValueCoord(w),C=Au(Au(Au(Au({textAnchor:m,transform:"rotate(".concat(90-l,", ").concat(O.x,", ").concat(O.y,")")},g),{},{stroke:"none",fill:c},x),{},{index:S},O),{},{payload:w});return ae.createElement(Ot,qp({className:ke("recharts-polar-radius-axis-tick",qq(o)),key:"tick-".concat(w.coordinate)},Il(r.props,w,S)),t.renderTickItem(o,C,f?f(w.value,S):w.value))});return ae.createElement(Ot,{className:"recharts-polar-radius-axis-ticks"},_)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,o=r.tick;return!i||!i.length?null:ae.createElement(Ot,{className:ke("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),lr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return ae.isValidElement(r)?o=ae.cloneElement(r,i):dt(r)?o=r(i):o=ae.createElement(cc,qp({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(U.PureComponent);C_(T_,"displayName","PolarRadiusAxis");C_(T_,"axisType","radiusAxis");C_(T_,"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 hd(e){"@babel/helpers - typeof";return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hd(e)}function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$u.apply(this,arguments)}function u7(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 ju(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u7(Object(n),!0).forEach(function(r){A_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c7(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,rV(r.key),r)}}function A2e(e,t,n){return t&&c7(e.prototype,t),n&&c7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function j2e(e,t,n){return t=e0(t),P2e(e,nV()?Reflect.construct(t,n||[],e0(e).constructor):t.apply(e,n))}function P2e(e,t){if(t&&(hd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R2e(e)}function R2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nV=function(){return!!e})()}function e0(e){return e0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e0(e)}function M2e(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&&RA(e,t)}function RA(e,t){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RA(e,t)}function A_(e,t,n){return t=rV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rV(e){var t=N2e(e,"string");return hd(t)=="symbol"?t:t+""}function N2e(e,t){if(hd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var L2e=Math.PI/180,D2e=1e-5,j_=function(e){function t(){return T2e(this,t),j2e(this,t,arguments)}return M2e(t,e),A2e(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,o=i.cy,l=i.radius,f=i.orientation,c=i.tickSize,h=c||8,m=dn(a,o,l,r.coordinate),g=dn(a,o,l+(f==="inner"?-1:1)*h,r.coordinate);return{x1:m.x,y1:m.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*L2e),o;return a>D2e?o=i==="outer"?"start":"end":a<-1e-5?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.radius,l=r.axisLine,f=r.axisLineType,c=ju(ju({},at(this.props,!1)),{},{fill:"none"},at(l,!1));if(f==="circle")return ae.createElement(gv,$u({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var h=this.props.ticks,m=h.map(function(g){return dn(i,a,o,g.coordinate)});return ae.createElement(t2e,$u({className:"recharts-polar-angle-axis-line"},c,{points:m}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,f=i.tickFormatter,c=i.stroke,h=at(this.props,!1),m=at(o,!1),g=ju(ju({},h),{},{fill:"none"},at(l,!1)),x=a.map(function(_,w){var S=r.getTickLineCoord(_),O=r.getTickTextAnchor(_),C=ju(ju(ju({textAnchor:O},h),{},{stroke:"none",fill:c},m),{},{index:w,payload:_,x:S.x2,y:S.y2});return ae.createElement(Ot,$u({className:ke("recharts-polar-angle-axis-tick",qq(o)),key:"tick-".concat(_.coordinate)},Il(r.props,_,w)),l&&ae.createElement("line",$u({className:"recharts-polar-angle-axis-tick-line"},g,S)),o&&t.renderTickItem(o,C,f?f(_.value,w):_.value))});return ae.createElement(Ot,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,o=r.axisLine;return a<=0||!i||!i.length?null:ae.createElement(Ot,{className:ke("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var o;return ae.isValidElement(r)?o=ae.cloneElement(r,i):dt(r)?o=r(i):o=ae.createElement(cc,$u({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(U.PureComponent);A_(j_,"displayName","PolarAngleAxis");A_(j_,"axisType","angleAxis");A_(j_,"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 JO,f7;function k2e(){if(f7)return JO;f7=1;var e=hF(),t=e(Object.getPrototypeOf,Object);return JO=t,JO}var eE,d7;function I2e(){if(d7)return eE;d7=1;var e=gs(),t=k2e(),n=ys(),r="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,l=a.hasOwnProperty,f=o.call(Object);function c(h){if(!n(h)||e(h)!=r)return!1;var m=t(h);if(m===null)return!0;var g=l.call(m,"constructor")&&m.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==f}return eE=c,eE}var $2e=I2e();const B2e=Lt($2e);var tE,h7;function U2e(){if(h7)return tE;h7=1;var e=gs(),t=ys(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return tE=r,tE}var z2e=U2e();const F2e=Lt(z2e);function km(e){"@babel/helpers - typeof";return km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},km(e)}function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(this,arguments)}function q2e(e,t){return G2e(e)||W2e(e,t)||H2e(e,t)||V2e()}function V2e(){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 H2e(e,t){if(e){if(typeof e=="string")return p7(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 p7(e,t)}}function p7(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 W2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function G2e(e){if(Array.isArray(e))return e}function m7(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 v7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m7(Object(n),!0).forEach(function(r){Y2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y2e(e,t,n){return t=K2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K2e(e){var t=Z2e(e,"string");return km(t)=="symbol"?t:t+""}function Z2e(e,t){if(km(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(km(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g7=function(t,n,r,i,a){var o=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+a),l+="L ".concat(t+r-o/2-i,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},X2e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Q2e=function(t){var n=v7(v7({},X2e),t),r=U.useRef(),i=U.useState(-1),a=q2e(i,2),o=a[0],l=a[1];U.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&l(T)}catch{}},[]);var f=n.x,c=n.y,h=n.upperWidth,m=n.lowerWidth,g=n.height,x=n.className,_=n.animationEasing,w=n.animationDuration,S=n.animationBegin,O=n.isUpdateAnimationActive;if(f!==+f||c!==+c||h!==+h||m!==+m||g!==+g||h===0&&m===0||g===0)return null;var C=ke("recharts-trapezoid",x);return O?ae.createElement(na,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:c},to:{upperWidth:h,lowerWidth:m,height:g,x:f,y:c},duration:w,animationEasing:_,isActive:O},function(T){var j=T.upperWidth,P=T.lowerWidth,R=T.height,I=T.x,V=T.y;return ae.createElement(na,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,easing:_},ae.createElement("path",t0({},at(n,!0),{className:C,d:g7(I,V,j,P,R),ref:r})))}):ae.createElement("g",null,ae.createElement("path",t0({},at(n,!0),{className:C,d:g7(f,c,h,m,g)})))},J2e=["option","shapeType","propTransformer","activeClassName","isActive"];function Im(e){"@babel/helpers - typeof";return Im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Im(e)}function eSe(e,t){if(e==null)return{};var n=tSe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function y7(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 n0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y7(Object(n),!0).forEach(function(r){nSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nSe(e,t,n){return t=rSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rSe(e){var t=iSe(e,"string");return Im(t)=="symbol"?t:t+""}function iSe(e,t){if(Im(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Im(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aSe(e,t){return n0(n0({},t),e)}function oSe(e,t){return e==="symbols"}function b7(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return ae.createElement(p3,n);case"trapezoid":return ae.createElement(Q2e,n);case"sector":return ae.createElement(Wq,n);case"symbols":if(oSe(t))return ae.createElement(d_,n);break;default:return null}}function sSe(e){return U.isValidElement(e)?e.props:e}function r0(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?aSe:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,f=eSe(e,J2e),c;if(U.isValidElement(t))c=U.cloneElement(t,n0(n0({},f),sSe(t)));else if(dt(t))c=t(f);else if(B2e(t)&&!F2e(t)){var h=i(t,f);c=ae.createElement(b7,{shapeType:n,elementProps:h})}else{var m=f;c=ae.createElement(b7,{shapeType:n,elementProps:m})}return l?ae.createElement(Ot,{className:o},c):c}function P_(e,t){return t!=null&&"trapezoids"in e.props}function R_(e,t){return t!=null&&"sectors"in e.props}function $m(e,t){return t!=null&&"points"in e.props}function lSe(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,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function uSe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function cSe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function fSe(e,t){var n;return P_(e,t)?n=lSe:R_(e,t)?n=uSe:$m(e,t)&&(n=cSe),n}function dSe(e,t){var n;return P_(e,t)?n="trapezoids":R_(e,t)?n="sectors":$m(e,t)&&(n="points"),n}function hSe(e,t){if(P_(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(R_(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 $m(e,t)?t.payload:{}}function pSe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=dSe(n,t),a=hSe(n,t),o=r.filter(function(f,c){var h=$l(a,f),m=n.props[i].filter(function(_){var w=fSe(n,t);return w(_,t)}),g=n.props[i].indexOf(m[m.length-1]),x=c===g;return h&&x}),l=r.indexOf(o[o.length-1]);return l}var My;function pd(e){"@babel/helpers - typeof";return pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pd(e)}function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Df.apply(this,arguments)}function _7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_7(Object(n),!0).forEach(function(r){Ki(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aV(r.key),r)}}function vSe(e,t,n){return t&&x7(e.prototype,t),n&&x7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gSe(e,t,n){return t=i0(t),ySe(e,iV()?Reflect.construct(t,n||[],i0(e).constructor):t.apply(e,n))}function ySe(e,t){if(t&&(pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bSe(e)}function bSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iV=function(){return!!e})()}function i0(e){return i0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},i0(e)}function _Se(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&&MA(e,t)}function MA(e,t){return MA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MA(e,t)}function Ki(e,t,n){return t=aV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aV(e){var t=xSe(e,"string");return pd(t)=="symbol"?t:t+""}function xSe(e,t){if(pd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fo=function(e){function t(n){var r;return mSe(this,t),r=gSe(this,t,[n]),Ki(r,"pieRef",null),Ki(r,"sectorRefs",[]),Ki(r,"id",Gl("recharts-pie-")),Ki(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),dt(i)&&i()}),Ki(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),dt(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return _Se(t,e),vSe(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 a=this.props,o=a.label,l=a.labelLine,f=a.dataKey,c=a.valueKey,h=at(this.props,!1),m=at(o,!1),g=at(l,!1),x=o&&o.offsetRadius||20,_=r.map(function(w,S){var O=(w.startAngle+w.endAngle)/2,C=dn(w.cx,w.cy,w.outerRadius+x,O),T=cn(cn(cn(cn({},h),w),{},{stroke:"none"},m),{},{index:S,textAnchor:t.getTextAnchor(C.x,w.cx)},C),j=cn(cn(cn(cn({},h),w),{},{fill:"none",stroke:w.fill},g),{},{index:S,points:[dn(w.cx,w.cy,w.outerRadius,O),C]}),P=f;return ht(f)&&ht(c)?P="value":ht(f)&&(P=c),ae.createElement(Ot,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(S)},l&&t.renderLabelLineItem(l,j,"line"),t.renderLabelItem(o,T,vn(w,P)))});return ae.createElement(Ot,{className:"recharts-pie-labels"},_)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,o=a.activeShape,l=a.blendStroke,f=a.inactiveShape;return r.map(function(c,h){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var m=i.isActiveIndex(h),g=f&&i.hasActiveIndex()?f:null,x=m?o:g,_=cn(cn({},c),{},{stroke:l?c.fill:c.stroke,tabIndex:-1});return ae.createElement(Ot,Df({ref:function(S){S&&!i.sectorRefs.includes(S)&&i.sectorRefs.push(S)},tabIndex:-1,className:"recharts-pie-sector"},Il(i.props,c,h),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(h)}),ae.createElement(r0,Df({option:x,isActive:m,shapeType:"sector"},_)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,o=i.isAnimationActive,l=i.animationBegin,f=i.animationDuration,c=i.animationEasing,h=i.animationId,m=this.state,g=m.prevSectors,x=m.prevIsAnimationActive;return ae.createElement(na,{begin:l,duration:f,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(_){var w=_.t,S=[],O=a&&a[0],C=O.startAngle;return a.forEach(function(T,j){var P=g&&g[j],R=j>0?Ci(T,"paddingAngle",0):0;if(P){var I=Cn(P.endAngle-P.startAngle,T.endAngle-T.startAngle),V=cn(cn({},T),{},{startAngle:C+R,endAngle:C+I(w)+R});S.push(V),C=V.endAngle}else{var G=T.endAngle,W=T.startAngle,K=Cn(0,G-W),ne=K(w),le=cn(cn({},T),{},{startAngle:C+R,endAngle:C+ne+R});S.push(le),C=le.endAngle}}),ae.createElement(Ot,null,r.renderSectorsStatically(S))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});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,a=r.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!$l(o,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,a=i.hide,o=i.sectors,l=i.className,f=i.label,c=i.cx,h=i.cy,m=i.innerRadius,g=i.outerRadius,x=i.isAnimationActive,_=this.state.isAnimationFinished;if(a||!o||!o.length||!Ze(c)||!Ze(h)||!Ze(m)||!Ze(g))return null;var w=ke("recharts-pie",l);return ae.createElement(Ot,{tabIndex:this.props.rootTabIndex,className:w,ref:function(O){r.pieRef=O}},this.renderSectors(),f&&this.renderLabels(o),lr.renderCallByParent(this.props,null,!1),(!x||_)&&wa.renderCallByParent(this.props,o,!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,a){if(ae.isValidElement(r))return ae.cloneElement(r,i);if(dt(r))return r(i);var o=ke("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return ae.createElement(jl,Df({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,a){if(ae.isValidElement(r))return ae.cloneElement(r,i);var o=a;if(dt(r)&&(o=r(i),ae.isValidElement(o)))return o;var l=ke("recharts-pie-label-text",typeof r!="boolean"&&!dt(r)?r.className:"");return ae.createElement(cc,Df({},i,{alignmentBaseline:"middle",className:l}),o)}}])}(U.PureComponent);My=fo;Ki(fo,"displayName","Pie");Ki(fo,"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:!bs.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ki(fo,"parseDeltaAngle",function(e,t){var n=Br(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Ki(fo,"getRealPieData",function(e){var t=e.data,n=e.children,r=at(e,!1),i=qr(n,Tl);return t&&t.length?t.map(function(a,o){return cn(cn(cn({payload:a},r),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return cn(cn({},r),a.props)}):[]});Ki(fo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=Fq(i,a),l=r+Ur(e.cx,i,i/2),f=n+Ur(e.cy,a,a/2),c=Ur(e.innerRadius,o,0),h=Ur(e.outerRadius,o,o*.8),m=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:f,innerRadius:c,outerRadius:h,maxRadius:m}});Ki(fo,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?cn(cn({},t.type.defaultProps),t.props):t.props,i=My.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,l=r.endAngle,f=r.paddingAngle,c=r.dataKey,h=r.nameKey,m=r.valueKey,g=r.tooltipType,x=Math.abs(r.minAngle),_=My.parseCoordinateOfPie(r,n),w=My.parseDeltaAngle(o,l),S=Math.abs(w),O=c;ht(c)&&ht(m)?(xa(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),O="value"):ht(c)&&(xa(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),O=m);var C=i.filter(function(V){return vn(V,O,0)!==0}).length,T=(S>=360?C:C-1)*f,j=S-C*x-T,P=i.reduce(function(V,G){var W=vn(G,O,0);return V+(Ze(W)?W:0)},0),R;if(P>0){var I;R=i.map(function(V,G){var W=vn(V,O,0),K=vn(V,h,G),ne=(Ze(W)?W:0)/P,le;G?le=I.endAngle+Br(w)*f*(W!==0?1:0):le=o;var Q=le+Br(w)*((W!==0?x:0)+ne*j),J=(le+Q)/2,H=(_.innerRadius+_.outerRadius)/2,B=[{name:K,value:W,payload:V,dataKey:O,type:g}],z=dn(_.cx,_.cy,H,J);return I=cn(cn(cn({percent:ne,cornerRadius:a,name:K,tooltipPayload:B,midAngle:J,middleRadius:H,tooltipPosition:z},V),_),{},{value:vn(V,O),startAngle:le,endAngle:Q,payload:V,paddingAngle:Br(w)*f}),I})}return cn(cn({},_),{},{sectors:R,data:i})});var nE,w7;function wSe(){if(w7)return nE;w7=1;var e=Math.ceil,t=Math.max;function n(r,i,a,o){for(var l=-1,f=t(e((i-r)/(a||1)),0),c=Array(f);f--;)c[o?f:++l]=r,r+=a;return c}return nE=n,nE}var rE,S7;function oV(){if(S7)return rE;S7=1;var e=jF(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var a=i<0?-1:1;return a*n}return i===i?i:0}return rE=r,rE}var iE,O7;function SSe(){if(O7)return iE;O7=1;var e=wSe(),t=m_(),n=oV();function r(i){return function(a,o,l){return l&&typeof l!="number"&&t(a,o,l)&&(o=l=void 0),a=n(a),o===void 0?(o=a,a=0):o=n(o),l=l===void 0?a<o?1:-1:n(l),e(a,o,l,i)}}return iE=r,iE}var aE,E7;function OSe(){if(E7)return aE;E7=1;var e=SSe(),t=e();return aE=t,aE}var ESe=OSe();const a0=Lt(ESe);function Bm(e){"@babel/helpers - typeof";return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bm(e)}function C7(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 T7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C7(Object(n),!0).forEach(function(r){sV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sV(e,t,n){return t=CSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CSe(e){var t=TSe(e,"string");return Bm(t)=="symbol"?t:t+""}function TSe(e,t){if(Bm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ASe=["Webkit","Moz","O","ms"],jSe=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=ASe.reduce(function(a,o){return T7(T7({},a),{},sV({},o+r,n))},{});return i[t]=n,i};function md(e){"@babel/helpers - typeof";return md=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},md(e)}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function A7(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 oE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A7(Object(n),!0).forEach(function(r){yi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j7(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,uV(r.key),r)}}function RSe(e,t,n){return t&&j7(e.prototype,t),n&&j7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function MSe(e,t,n){return t=s0(t),NSe(e,lV()?Reflect.construct(t,n||[],s0(e).constructor):t.apply(e,n))}function NSe(e,t){if(t&&(md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LSe(e)}function LSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lV=function(){return!!e})()}function s0(e){return s0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},s0(e)}function DSe(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&&NA(e,t)}function NA(e,t){return NA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},NA(e,t)}function yi(e,t,n){return t=uV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uV(e){var t=kSe(e,"string");return md(t)=="symbol"?t:t+""}function kSe(e,t){if(md(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(md(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ISe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,c=Bp().domain(a0(0,f)).range([a,a+o-l]),h=c.domain().map(function(m){return c(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(i),scale:c,scaleValues:h}},P7=function(t){return t.changedTouches&&!!t.changedTouches.length},vd=function(e){function t(n){var r;return PSe(this,t),r=MSe(this,t,[n]),yi(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),yi(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),yi(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),r.detachDragEndListener()}),yi(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),yi(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),yi(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),yi(r,"handleSlideDragStart",function(i){var a=P7(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return DSe(t,e),RSe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,l=this.props,f=l.gap,c=l.data,h=c.length-1,m=Math.min(i,a),g=Math.max(i,a),x=t.getIndexInRange(o,m),_=t.getIndexInRange(o,g);return{startIndex:x-x%f,endIndex:_===h?h:_-_%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,f=vn(a[r],l,r);return dt(o)?o(f,r):f}},{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,a=i.slideMoveStartX,o=i.startX,l=i.endX,f=this.props,c=f.x,h=f.width,m=f.travellerWidth,g=f.startIndex,x=f.endIndex,_=f.onChange,w=r.pageX-a;w>0?w=Math.min(w,c+h-m-l,c+h-m-o):w<0&&(w=Math.max(w,c-o,c-l));var S=this.getIndex({startX:o+w,endX:l+w});(S.startIndex!==g||S.endIndex!==x)&&_&&_(S),this.setState({startX:o+w,endX:l+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=P7(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,f=i.startX,c=this.state[o],h=this.props,m=h.x,g=h.width,x=h.travellerWidth,_=h.onChange,w=h.gap,S=h.data,O={startX:this.state.startX,endX:this.state.endX},C=r.pageX-a;C>0?C=Math.min(C,m+g-x-c):C<0&&(C=Math.max(C,m-c)),O[o]=c+C;var T=this.getIndex(O),j=T.startIndex,P=T.endIndex,R=function(){var V=S.length-1;return o==="startX"&&(l>f?j%w===0:P%w===0)||l<f&&P===V||o==="endX"&&(l>f?P%w===0:j%w===0)||l>f&&P===V};this.setState(yi(yi({},o,c+C),"brushMoveStartX",r.pageX),function(){_&&R()&&_(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,l=o.scaleValues,f=o.startX,c=o.endX,h=this.state[i],m=l.indexOf(h);if(m!==-1){var g=m+r;if(!(g===-1||g>=l.length)){var x=l[g];i==="startX"&&x>=c||i==="endX"&&x<=f||this.setState(yi({},i,x),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.fill,c=r.stroke;return ae.createElement("rect",{stroke:c,fill:f,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.data,c=r.children,h=r.padding,m=U.Children.only(c);return m?ae.cloneElement(m,{x:i,y:a,width:o,height:l,margin:h,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,l=this,f=this.props,c=f.y,h=f.travellerWidth,m=f.height,g=f.traveller,x=f.ariaLabel,_=f.data,w=f.startIndex,S=f.endIndex,O=Math.max(r,this.props.x),C=oE(oE({},at(this.props,!1)),{},{x:O,y:c,width:h,height:m}),T=x||"Min value: ".concat((a=_[w])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=_[S])===null||o===void 0?void 0:o.name);return ae.createElement(Ot,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),l.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,C))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,l=a.height,f=a.stroke,c=a.travellerWidth,h=Math.min(r,i)+c,m=Math.max(Math.abs(i-r)-c,0);return ae.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:h,y:o,width:m,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,l=r.height,f=r.travellerWidth,c=r.stroke,h=this.state,m=h.startX,g=h.endX,x=5,_={pointerEvents:"none",fill:c};return ae.createElement(Ot,{className:"recharts-brush-texts"},ae.createElement(cc,o0({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,g)-x,y:o+l/2},_),this.getTextOfTick(i)),ae.createElement(cc,o0({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,g)+f+x,y:o+l/2},_),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,l=r.x,f=r.y,c=r.width,h=r.height,m=r.alwaysShowText,g=this.state,x=g.startX,_=g.endX,w=g.isTextActive,S=g.isSlideMoving,O=g.isTravellerMoving,C=g.isTravellerFocused;if(!i||!i.length||!Ze(l)||!Ze(f)||!Ze(c)||!Ze(h)||c<=0||h<=0)return null;var T=ke("recharts-brush",a),j=ae.Children.count(o)===1,P=jSe("userSelect","none");return ae.createElement(Ot,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),j&&this.renderPanorama(),this.renderSlide(x,_),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(_,"endX"),(w||S||O||C||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,l=r.height,f=r.stroke,c=Math.floor(a+l/2)-1;return ae.createElement(ae.Fragment,null,ae.createElement("rect",{x:i,y:a,width:o,height:l,fill:f,stroke:"none"}),ae.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),ae.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return ae.isValidElement(r)?a=ae.cloneElement(r,i):dt(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,l=r.x,f=r.travellerWidth,c=r.updateId,h=r.startIndex,m=r.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return oE({prevData:a,prevTravellerWidth:f,prevUpdateId:c,prevX:l,prevWidth:o},a&&a.length?ISe({data:a,width:o,x:l,travellerWidth:f,startIndex:h,endIndex:m}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([l,l+o-f]);var g=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:a,prevTravellerWidth:f,prevUpdateId:c,prevX:l,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,l=a-1;l-o>1;){var f=Math.floor((o+l)/2);r[f]>i?l=f:o=f}return i>=r[l]?l:o}}])}(U.PureComponent);yi(vd,"displayName","Brush");yi(vd,"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 sE,R7;function $Se(){if(R7)return sE;R7=1;var e=UP();function t(n,r){var i;return e(n,function(a,o,l){return i=r(a,o,l),!i}),!!i}return sE=t,sE}var lE,M7;function BSe(){if(M7)return lE;M7=1;var e=oF(),t=go(),n=$Se(),r=ti(),i=m_();function a(o,l,f){var c=r(o)?e:n;return f&&i(o,l,f)&&(l=void 0),c(o,t(l,3))}return lE=a,lE}var USe=BSe();const zSe=Lt(USe);var ao=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},uE,N7;function FSe(){if(N7)return uE;N7=1;var e=OF();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return uE=t,uE}var cE,L7;function qSe(){if(L7)return cE;L7=1;var e=FSe(),t=wF(),n=go();function r(i,a){var o={};return a=n(a,3),t(i,function(l,f,c){e(o,f,a(l,f,c))}),o}return cE=r,cE}var VSe=qSe();const HSe=Lt(VSe);var fE,D7;function WSe(){if(D7)return fE;D7=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return fE=e,fE}var dE,k7;function GSe(){if(k7)return dE;k7=1;var e=UP();function t(n,r){var i=!0;return e(n,function(a,o,l){return i=!!r(a,o,l),i}),i}return dE=t,dE}var hE,I7;function YSe(){if(I7)return hE;I7=1;var e=WSe(),t=GSe(),n=go(),r=ti(),i=m_();function a(o,l,f){var c=r(o)?e:t;return f&&i(o,l,f)&&(l=void 0),c(o,n(l,3))}return hE=a,hE}var KSe=YSe();const cV=Lt(KSe);var ZSe=["x","y"];function Um(e){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Um(e)}function LA(){return LA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LA.apply(this,arguments)}function $7(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 vp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$7(Object(n),!0).forEach(function(r){XSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XSe(e,t,n){return t=QSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QSe(e){var t=JSe(e,"string");return Um(t)=="symbol"?t:t+""}function JSe(e,t){if(Um(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Um(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eOe(e,t){if(e==null)return{};var n=tOe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nOe(e,t){var n=e.x,r=e.y,i=eOe(e,ZSe),a="".concat(n),o=parseInt(a,10),l="".concat(r),f=parseInt(l,10),c="".concat(t.height||i.height),h=parseInt(c,10),m="".concat(t.width||i.width),g=parseInt(m,10);return vp(vp(vp(vp(vp({},t),i),o?{x:o}:{}),f?{y:f}:{}),{},{height:h,width:g,name:t.name,radius:t.radius})}function B7(e){return ae.createElement(r0,LA({shapeType:"rectangle",propTransformer:nOe,activeClassName:"recharts-active-bar"},e))}var rOe=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 a=typeof r=="number";return a?t(r,i):(a||dc(),n)}},iOe=["value","background"],fV;function gd(e){"@babel/helpers - typeof";return gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gd(e)}function aOe(e,t){if(e==null)return{};var n=oOe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function U7(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 Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U7(Object(n),!0).forEach(function(r){Sl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z7(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,hV(r.key),r)}}function lOe(e,t,n){return t&&z7(e.prototype,t),n&&z7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uOe(e,t,n){return t=u0(t),cOe(e,dV()?Reflect.construct(t,n||[],u0(e).constructor):t.apply(e,n))}function cOe(e,t){if(t&&(gd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fOe(e)}function fOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dV=function(){return!!e})()}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},u0(e)}function dOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DA(e,t)}function DA(e,t){return DA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},DA(e,t)}function Sl(e,t,n){return t=hV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hV(e){var t=hOe(e,"string");return gd(t)=="symbol"?t:t+""}function hOe(e,t){if(gd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ns=function(e){function t(){var n;sOe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=uOe(this,t,[].concat(i)),Sl(n,"state",{isAnimationFinished:!1}),Sl(n,"id",Gl("recharts-bar-")),Sl(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Sl(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return dOe(t,e),lOe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.dataKey,f=a.activeIndex,c=a.activeBar,h=at(this.props,!1);return r&&r.map(function(m,g){var x=g===f,_=x?c:o,w=Fn(Fn(Fn({},h),m),{},{isActive:x,option:_,index:g,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return ae.createElement(Ot,l0({className:"recharts-bar-rectangle"},Il(i.props,m,g),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(g)}),ae.createElement(B7,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,a=i.data,o=i.layout,l=i.isAnimationActive,f=i.animationBegin,c=i.animationDuration,h=i.animationEasing,m=i.animationId,g=this.state.prevData;return ae.createElement(na,{begin:f,duration:c,isActive:l,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var _=x.t,w=a.map(function(S,O){var C=g&&g[O];if(C){var T=Cn(C.x,S.x),j=Cn(C.y,S.y),P=Cn(C.width,S.width),R=Cn(C.height,S.height);return Fn(Fn({},S),{},{x:T(_),y:j(_),width:P(_),height:R(_)})}if(o==="horizontal"){var I=Cn(0,S.height),V=I(_);return Fn(Fn({},S),{},{y:S.y+S.height-V,height:V})}var G=Cn(0,S.width),W=G(_);return Fn(Fn({},S),{},{width:W})});return ae.createElement(Ot,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!$l(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,a=i.data,o=i.dataKey,l=i.activeIndex,f=at(this.props.background,!1);return a.map(function(c,h){c.value;var m=c.background,g=aOe(c,iOe);if(!m)return null;var x=Fn(Fn(Fn(Fn(Fn({},g),{},{fill:"#eee"},m),f),Il(r.props,c,h)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:h,className:"recharts-bar-background-rectangle"});return ae.createElement(B7,l0({key:"background-bar-".concat(h),option:r.props.background,isActive:h===l},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,l=a.xAxis,f=a.yAxis,c=a.layout,h=a.children,m=qr(h,Yd);if(!m)return null;var g=c==="vertical"?o[0].height/2:o[0].width/2,x=function(S,O){var C=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:C,errorVal:vn(S,O)}},_={clipPath:r?"url(#clipPath-".concat(i,")"):null};return ae.createElement(Ot,_,m.map(function(w){return ae.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:o,xAxis:l,yAxis:f,layout:c,offset:g,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,o=r.className,l=r.xAxis,f=r.yAxis,c=r.left,h=r.top,m=r.width,g=r.height,x=r.isAnimationActive,_=r.background,w=r.id;if(i||!a||!a.length)return null;var S=this.state.isAnimationFinished,O=ke("recharts-bar",o),C=l&&l.allowDataOverflow,T=f&&f.allowDataOverflow,j=C||T,P=ht(w)?this.id:w;return ae.createElement(Ot,{className:O},C||T?ae.createElement("defs",null,ae.createElement("clipPath",{id:"clipPath-".concat(P)},ae.createElement("rect",{x:C?c:c-m/2,y:T?h:h-g/2,width:C?m:m*2,height:T?g:g*2}))):null,ae.createElement(Ot,{className:"recharts-bar-rectangles",clipPath:j?"url(#clipPath-".concat(P,")"):null},_?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(j,P),(!x||S)&&wa.renderCallByParent(this.props,a))}}],[{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}}])}(U.PureComponent);fV=ns;Sl(ns,"displayName","Bar");Sl(ns,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!bs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Sl(ns,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,l=e.xAxisTicks,f=e.yAxisTicks,c=e.stackedData,h=e.dataStartIndex,m=e.displayedData,g=e.offset,x=H_e(r,n);if(!x)return null;var _=t.layout,w=n.type.defaultProps,S=w!==void 0?Fn(Fn({},w),n.props):n.props,O=S.dataKey,C=S.children,T=S.minPointSize,j=_==="horizontal"?o:a,P=c?j.scale.domain():null,R=Q_e({numericAxis:j}),I=qr(C,Tl),V=m.map(function(G,W){var K,ne,le,Q,J,H;c?K=W_e(c[h+W],P):(K=vn(G,O),Array.isArray(K)||(K=[R,K]));var B=rOe(T,fV.defaultProps.minPointSize)(K[1],W);if(_==="horizontal"){var z,F=[o.scale(K[0]),o.scale(K[1])],M=F[0],k=F[1];ne=vI({axis:a,ticks:l,bandSize:i,offset:x.offset,entry:G,index:W}),le=(z=k??M)!==null&&z!==void 0?z:void 0,Q=x.size;var te=M-k;if(J=Number.isNaN(te)?0:te,H={x:ne,y:o.y,width:Q,height:o.height},Math.abs(B)>0&&Math.abs(J)<Math.abs(B)){var Z=Br(J||B)*(Math.abs(B)-Math.abs(J));le-=Z,J+=Z}}else{var oe=[a.scale(K[0]),a.scale(K[1])],he=oe[0],de=oe[1];if(ne=he,le=vI({axis:o,ticks:f,bandSize:i,offset:x.offset,entry:G,index:W}),Q=de-he,J=x.size,H={x:a.x,y:le,width:a.width,height:J},Math.abs(B)>0&&Math.abs(Q)<Math.abs(B)){var be=Br(Q||B)*(Math.abs(B)-Math.abs(Q));Q+=be}}return Fn(Fn(Fn({},G),{},{x:ne,y:le,width:Q,height:J,value:c?K:K[1],payload:G,background:H},I&&I[W]&&I[W].props),{},{tooltipPayload:[Uq(n,G)],tooltipPosition:{x:ne+Q/2,y:le+J/2}})});return Fn({data:V,layout:_},g)});function zm(e){"@babel/helpers - typeof";return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zm(e)}function pOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pV(r.key),r)}}function mOe(e,t,n){return t&&F7(e.prototype,t),n&&F7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q7(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 ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q7(Object(n),!0).forEach(function(r){M_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M_(e,t,n){return t=pV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pV(e){var t=vOe(e,"string");return zm(t)=="symbol"?t:t+""}function vOe(e,t){if(zm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mV=function(t,n,r,i,a){var o=t.width,l=t.height,f=t.layout,c=t.children,h=Object.keys(n),m={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},g=!!_i(c,ns);return h.reduce(function(x,_){var w=n[_],S=w.orientation,O=w.domain,C=w.padding,T=C===void 0?{}:C,j=w.mirror,P=w.reversed,R="".concat(S).concat(j?"Mirror":""),I,V,G,W,K;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var ne=O[1]-O[0],le=1/0,Q=w.categoricalDomain.sort();if(Q.forEach(function(oe,he){he>0&&(le=Math.min((oe||0)-(Q[he-1]||0),le))}),Number.isFinite(le)){var J=le/ne,H=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(I=J*H/2),w.padding==="no-gap"){var B=Ur(t.barCategoryGap,J*H),z=J*H/2;I=z-B-(z-B)/H*B}}}i==="xAxis"?V=[r.left+(T.left||0)+(I||0),r.left+r.width-(T.right||0)-(I||0)]:i==="yAxis"?V=f==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(I||0),r.top+r.height-(T.bottom||0)-(I||0)]:V=w.range,P&&(V=[V[1],V[0]]);var F=kq(w,a,g),M=F.scale,k=F.realScaleType;M.domain(O).range(V),Iq(M);var te=$q(M,ga(ga({},w),{},{realScaleType:k}));i==="xAxis"?(K=S==="top"&&!j||S==="bottom"&&j,G=r.left,W=m[R]-K*w.height):i==="yAxis"&&(K=S==="left"&&!j||S==="right"&&j,G=m[R]-K*w.width,W=r.top);var Z=ga(ga(ga({},w),te),{},{realScaleType:k,x:G,y:W,scale:M,width:i==="xAxis"?r.width:w.width,height:i==="yAxis"?r.height:w.height});return Z.bandSize=Wb(Z,te),!w.hide&&i==="xAxis"?m[R]+=(K?-1:1)*Z.height:w.hide||(m[R]+=(K?-1:1)*Z.width),ga(ga({},x),{},M_({},_,Z))},{})},vV=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},gOe=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return vV({x:n,y:r},{x:i,y:a})},gV=function(){function e(t){pOe(this,e),this.scale=t}return mOe(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,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();M_(gV,"EPS",1e-4);var m3=function(t){var n=Object.keys(t).reduce(function(r,i){return ga(ga({},r),{},M_({},i,gV.create(t[i])))},{});return ga(ga({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return HSe(i,function(f,c){return n[c].apply(f,{bandAware:o,position:l})})},isInRange:function(i){return cV(i,function(a,o){return n[o].isInRange(a)})}})};function yOe(e){return(e%180+180)%180}var bOe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=yOe(i),o=a*Math.PI/180,l=Math.atan(r/n),f=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(f)},pE,V7;function _Oe(){if(V7)return pE;V7=1;var e=go(),t=dv(),n=h_();function r(i){return function(a,o,l){var f=Object(a);if(!t(a)){var c=e(o,3);a=n(a),o=function(m){return c(f[m],m,f)}}var h=i(a,o,l);return h>-1?f[c?a[h]:h]:void 0}}return pE=r,pE}var mE,H7;function xOe(){if(H7)return mE;H7=1;var e=oV();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return mE=t,mE}var vE,W7;function wOe(){if(W7)return vE;W7=1;var e=gF(),t=go(),n=xOe(),r=Math.max;function i(a,o,l){var f=a==null?0:a.length;if(!f)return-1;var c=l==null?0:n(l);return c<0&&(c=r(f+c,0)),e(a,t(o,3),c)}return vE=i,vE}var gE,G7;function SOe(){if(G7)return gE;G7=1;var e=_Oe(),t=wOe(),n=e(t);return gE=n,gE}var OOe=SOe();const EOe=Lt(OOe);var COe=Mz();const TOe=Lt(COe);var AOe=TOe(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("")}),v3=U.createContext(void 0),g3=U.createContext(void 0),yV=U.createContext(void 0),bV=U.createContext({}),_V=U.createContext(void 0),xV=U.createContext(0),wV=U.createContext(0),Y7=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,l=t.children,f=t.width,c=t.height,h=AOe(a);return ae.createElement(v3.Provider,{value:r},ae.createElement(g3.Provider,{value:i},ae.createElement(bV.Provider,{value:a},ae.createElement(yV.Provider,{value:h},ae.createElement(_V.Provider,{value:o},ae.createElement(xV.Provider,{value:c},ae.createElement(wV.Provider,{value:f},l)))))))},jOe=function(){return U.useContext(_V)},SV=function(t){var n=U.useContext(v3);n==null&&dc();var r=n[t];return r==null&&dc(),r},POe=function(){var t=U.useContext(v3);return xl(t)},ROe=function(){var t=U.useContext(g3),n=EOe(t,function(r){return cV(r.domain,Number.isFinite)});return n||xl(t)},OV=function(t){var n=U.useContext(g3);n==null&&dc();var r=n[t];return r==null&&dc(),r},MOe=function(){var t=U.useContext(yV);return t},NOe=function(){return U.useContext(bV)},y3=function(){return U.useContext(wV)},b3=function(){return U.useContext(xV)};function yd(e){"@babel/helpers - typeof";return yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yd(e)}function LOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DOe(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,CV(r.key),r)}}function kOe(e,t,n){return t&&DOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IOe(e,t,n){return t=c0(t),$Oe(e,EV()?Reflect.construct(t,n||[],c0(e).constructor):t.apply(e,n))}function $Oe(e,t){if(t&&(yd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BOe(e)}function BOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EV=function(){return!!e})()}function c0(e){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c0(e)}function UOe(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&&kA(e,t)}function kA(e,t){return kA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kA(e,t)}function K7(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 Z7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K7(Object(n),!0).forEach(function(r){_3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _3(e,t,n){return t=CV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CV(e){var t=zOe(e,"string");return yd(t)=="symbol"?t:t+""}function zOe(e,t){if(yd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function FOe(e,t){return WOe(e)||HOe(e,t)||VOe(e,t)||qOe()}function qOe(){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 VOe(e,t){if(e){if(typeof e=="string")return X7(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 X7(e,t)}}function X7(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 HOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function WOe(e){if(Array.isArray(e))return e}function IA(){return IA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IA.apply(this,arguments)}var GOe=function(t,n){var r;return ae.isValidElement(t)?r=ae.cloneElement(t,n):dt(t)?r=t(n):r=ae.createElement("line",IA({},n,{className:"recharts-reference-line-line"})),r},YOe=function(t,n,r,i,a,o,l,f,c){var h=a.x,m=a.y,g=a.width,x=a.height;if(r){var _=c.y,w=t.y.apply(_,{position:o});if(ao(c,"discard")&&!t.y.isInRange(w))return null;var S=[{x:h+g,y:w},{x:h,y:w}];return f==="left"?S.reverse():S}if(n){var O=c.x,C=t.x.apply(O,{position:o});if(ao(c,"discard")&&!t.x.isInRange(C))return null;var T=[{x:C,y:m+x},{x:C,y:m}];return l==="top"?T.reverse():T}if(i){var j=c.segment,P=j.map(function(R){return t.apply(R,{position:o})});return ao(c,"discard")&&zSe(P,function(R){return!t.isInRange(R)})?null:P}return null};function KOe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,f=e.alwaysShow,c=jOe(),h=SV(i),m=OV(a),g=MOe();if(!c||!g)return null;xa(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=m3({x:h.scale,y:m.scale}),_=Kn(t),w=Kn(n),S=r&&r.length===2,O=YOe(x,_,w,S,g,e.position,h.orientation,m.orientation,e);if(!O)return null;var C=FOe(O,2),T=C[0],j=T.x,P=T.y,R=C[1],I=R.x,V=R.y,G=ao(e,"hidden")?"url(#".concat(c,")"):void 0,W=Z7(Z7({clipPath:G},at(e,!0)),{},{x1:j,y1:P,x2:I,y2:V});return ae.createElement(Ot,{className:ke("recharts-reference-line",l)},GOe(o,W),lr.renderCallByParent(e,gOe({x1:j,y1:P,x2:I,y2:V})))}var x3=function(e){function t(){return LOe(this,t),IOe(this,t,arguments)}return UOe(t,e),kOe(t,[{key:"render",value:function(){return ae.createElement(KOe,this.props)}}])}(ae.Component);_3(x3,"displayName","ReferenceLine");_3(x3,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function $A(){return $A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$A.apply(this,arguments)}function bd(e){"@babel/helpers - typeof";return bd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bd(e)}function Q7(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 J7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q7(Object(n),!0).forEach(function(r){N_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XOe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AV(r.key),r)}}function QOe(e,t,n){return t&&XOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JOe(e,t,n){return t=f0(t),eEe(e,TV()?Reflect.construct(t,n||[],f0(e).constructor):t.apply(e,n))}function eEe(e,t){if(t&&(bd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tEe(e)}function tEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TV=function(){return!!e})()}function f0(e){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},f0(e)}function nEe(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&&BA(e,t)}function BA(e,t){return BA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},BA(e,t)}function N_(e,t,n){return t=AV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AV(e){var t=rEe(e,"string");return bd(t)=="symbol"?t:t+""}function rEe(e,t){if(bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iEe=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=m3({x:i.scale,y:a.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return ao(t,"discard")&&!o.isInRange(l)?null:l},L_=function(e){function t(){return ZOe(this,t),JOe(this,t,arguments)}return nEe(t,e),QOe(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,l=r.alwaysShow,f=r.clipPathId,c=Kn(i),h=Kn(a);if(xa(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!h)return null;var m=iEe(this.props);if(!m)return null;var g=m.x,x=m.y,_=this.props,w=_.shape,S=_.className,O=ao(this.props,"hidden")?"url(#".concat(f,")"):void 0,C=J7(J7({clipPath:O},at(this.props,!0)),{},{cx:g,cy:x});return ae.createElement(Ot,{className:ke("recharts-reference-dot",S)},t.renderDot(w,C),lr.renderCallByParent(this.props,{x:g-o,y:x-o,width:2*o,height:2*o}))}}])}(ae.Component);N_(L_,"displayName","ReferenceDot");N_(L_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});N_(L_,"renderDot",function(e,t){var n;return ae.isValidElement(e)?n=ae.cloneElement(e,t):dt(e)?n=e(t):n=ae.createElement(gv,$A({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function UA(){return UA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UA.apply(this,arguments)}function _d(e){"@babel/helpers - typeof";return _d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_d(e)}function e$(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 t$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e$(Object(n),!0).forEach(function(r){D_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PV(r.key),r)}}function sEe(e,t,n){return t&&oEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lEe(e,t,n){return t=d0(t),uEe(e,jV()?Reflect.construct(t,n||[],d0(e).constructor):t.apply(e,n))}function uEe(e,t){if(t&&(_d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cEe(e)}function cEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jV=function(){return!!e})()}function d0(e){return d0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d0(e)}function fEe(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&&zA(e,t)}function zA(e,t){return zA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zA(e,t)}function D_(e,t,n){return t=PV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PV(e){var t=dEe(e,"string");return _d(t)=="symbol"?t:t+""}function dEe(e,t){if(_d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hEe=function(t,n,r,i,a){var o=a.x1,l=a.x2,f=a.y1,c=a.y2,h=a.xAxis,m=a.yAxis;if(!h||!m)return null;var g=m3({x:h.scale,y:m.scale}),x={x:t?g.x.apply(o,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},_={x:n?g.x.apply(l,{position:"end"}):g.x.rangeMax,y:i?g.y.apply(c,{position:"end"}):g.y.rangeMax};return ao(a,"discard")&&(!g.isInRange(x)||!g.isInRange(_))?null:vV(x,_)},yv=function(e){function t(){return aEe(this,t),lEe(this,t,arguments)}return fEe(t,e),sEe(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,l=r.y2,f=r.className,c=r.alwaysShow,h=r.clipPathId;xa(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Kn(i),g=Kn(a),x=Kn(o),_=Kn(l),w=this.props.shape;if(!m&&!g&&!x&&!_&&!w)return null;var S=hEe(m,g,x,_,this.props);if(!S&&!w)return null;var O=ao(this.props,"hidden")?"url(#".concat(h,")"):void 0;return ae.createElement(Ot,{className:ke("recharts-reference-area",f)},t.renderRect(w,t$(t$({clipPath:O},at(this.props,!0)),S)),lr.renderCallByParent(this.props,S))}}])}(ae.Component);D_(yv,"displayName","ReferenceArea");D_(yv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});D_(yv,"renderRect",function(e,t){var n;return ae.isValidElement(e)?n=ae.cloneElement(e,t):dt(e)?n=e(t):n=ae.createElement(p3,UA({},t,{className:"recharts-reference-area-rect"})),n});function RV(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 pEe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return bOe(r,n)}function mEe(e,t,n){var r=n==="width",i=e.x,a=e.y,o=e.width,l=e.height;return t===1?{start:r?i:a,end:r?i+o:a+l}:{start:r?i+o:a+l,end:r?i:a}}function h0(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function vEe(e,t){return RV(e,t+1)}function gEe(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,l=t.end,f=0,c=1,h=o,m=function(){var _=r==null?void 0:r[f];if(_===void 0)return{v:RV(r,c)};var w=f,S,O=function(){return S===void 0&&(S=n(_,w)),S},C=_.coordinate,T=f===0||h0(e,C,O,h,l);T||(f=0,h=o,c+=1),T&&(h=C+e*(O()/2+i),f+=c)},g;c<=a.length;)if(g=m(),g)return g.v;return[]}function Fm(e){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(e)}function n$(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 Cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n$(Object(n),!0).forEach(function(r){yEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yEe(e,t,n){return t=bEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bEe(e){var t=_Ee(e,"string");return Fm(t)=="symbol"?t:t+""}function _Ee(e,t){if(Fm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xEe(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,l=t.start,f=t.end,c=function(g){var x=a[g],_,w=function(){return _===void 0&&(_=n(x,g)),_};if(g===o-1){var S=e*(x.coordinate+e*w()/2-f);a[g]=x=Cr(Cr({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else a[g]=x=Cr(Cr({},x),{},{tickCoord:x.coordinate});var O=h0(e,x.tickCoord,w,l,f);O&&(f=x.tickCoord-e*(w()/2+i),a[g]=Cr(Cr({},x),{},{isShow:!0}))},h=o-1;h>=0;h--)c(h);return a}function wEe(e,t,n,r,i,a){var o=(r||[]).slice(),l=o.length,f=t.start,c=t.end;if(a){var h=r[l-1],m=n(h,l-1),g=e*(h.coordinate+e*m/2-c);o[l-1]=h=Cr(Cr({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate});var x=h0(e,h.tickCoord,function(){return m},f,c);x&&(c=h.tickCoord-e*(m/2+i),o[l-1]=Cr(Cr({},h),{},{isShow:!0}))}for(var _=a?l-1:l,w=function(C){var T=o[C],j,P=function(){return j===void 0&&(j=n(T,C)),j};if(C===0){var R=e*(T.coordinate-e*P()/2-f);o[C]=T=Cr(Cr({},T),{},{tickCoord:R<0?T.coordinate-R*e:T.coordinate})}else o[C]=T=Cr(Cr({},T),{},{tickCoord:T.coordinate});var I=h0(e,T.tickCoord,P,f,c);I&&(f=T.tickCoord+e*(P()/2+i),o[C]=Cr(Cr({},T),{},{isShow:!0}))},S=0;S<_;S++)w(S);return o}function w3(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,f=e.interval,c=e.tickFormatter,h=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(Ze(f)||bs.isSsr)return vEe(i,typeof f=="number"&&Ze(f)?f:0);var g=[],x=l==="top"||l==="bottom"?"width":"height",_=h&&x==="width"?$p(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(T,j){var P=dt(c)?c(T.value,j):T.value;return x==="width"?pEe($p(P,{fontSize:t,letterSpacing:n}),_,m):$p(P,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?Br(i[1].coordinate-i[0].coordinate):1,O=mEe(a,S,x);return f==="equidistantPreserveStart"?gEe(S,O,w,i,o):(f==="preserveStart"||f==="preserveStartEnd"?g=wEe(S,O,w,i,o,f==="preserveStartEnd"):g=xEe(S,O,w,i,o),g.filter(function(C){return C.isShow}))}var SEe=["viewBox"],OEe=["viewBox"],EEe=["ticks"];function xd(e){"@babel/helpers - typeof";return xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xd(e)}function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kf.apply(this,arguments)}function r$(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 Ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r$(Object(n),!0).forEach(function(r){S3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yE(e,t){if(e==null)return{};var n=CEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function TEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i$(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,NV(r.key),r)}}function AEe(e,t,n){return t&&i$(e.prototype,t),n&&i$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jEe(e,t,n){return t=p0(t),PEe(e,MV()?Reflect.construct(t,n||[],p0(e).constructor):t.apply(e,n))}function PEe(e,t){if(t&&(xd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return REe(e)}function REe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MV=function(){return!!e})()}function p0(e){return p0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},p0(e)}function MEe(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&&FA(e,t)}function FA(e,t){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},FA(e,t)}function S3(e,t,n){return t=NV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NV(e){var t=NEe(e,"string");return xd(t)=="symbol"?t:t+""}function NEe(e,t){if(xd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kd=function(e){function t(n){var r;return TEe(this,t),r=jEe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return MEe(t,e),AEe(t,[{key:"shouldComponentUpdate",value:function(r,i){var a=r.viewBox,o=yE(r,SEe),l=this.props,f=l.viewBox,c=yE(l,OEe);return!Uf(a,f)||!Uf(o,c)||!Uf(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,a=i.x,o=i.y,l=i.width,f=i.height,c=i.orientation,h=i.tickSize,m=i.mirror,g=i.tickMargin,x,_,w,S,O,C,T=m?-1:1,j=r.tickSize||h,P=Ze(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":x=_=r.coordinate,S=o+ +!m*f,w=S-T*j,C=w-T*g,O=P;break;case"left":w=S=r.coordinate,_=a+ +!m*l,x=_-T*j,O=x-T*g,C=P;break;case"right":w=S=r.coordinate,_=a+ +m*l,x=_+T*j,O=x+T*g,C=P;break;default:x=_=r.coordinate,S=o+ +m*f,w=S+T*j,C=w+T*g,O=P;break}return{line:{x1:x,y1:w,x2:_,y2:S},tick:{x:O,y:C}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.orientation,c=r.mirror,h=r.axisLine,m=Ir(Ir(Ir({},at(this.props,!1)),at(h,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!c||f==="bottom"&&c);m=Ir(Ir({},m),{},{x1:i,y1:a+g*l,x2:i+o,y2:a+g*l})}else{var x=+(f==="left"&&!c||f==="right"&&c);m=Ir(Ir({},m),{},{x1:i+x*o,y1:a,x2:i+x*o,y2:a+l})}return ae.createElement("line",kf({},m,{className:ke("recharts-cartesian-axis-line",Ci(h,"className"))}))}},{key:"renderTicks",value:function(r,i,a){var o=this,l=this.props,f=l.tickLine,c=l.stroke,h=l.tick,m=l.tickFormatter,g=l.unit,x=w3(Ir(Ir({},this.props),{},{ticks:r}),i,a),_=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),S=at(this.props,!1),O=at(h,!1),C=Ir(Ir({},S),{},{fill:"none"},at(f,!1)),T=x.map(function(j,P){var R=o.getTickLineCoord(j),I=R.line,V=R.tick,G=Ir(Ir(Ir(Ir({textAnchor:_,verticalAnchor:w},S),{},{stroke:"none",fill:c},O),V),{},{index:P,payload:j,visibleTicksCount:x.length,tickFormatter:m});return ae.createElement(Ot,kf({className:"recharts-cartesian-axis-tick",key:"tick-".concat(j.value,"-").concat(j.coordinate,"-").concat(j.tickCoord)},Il(o.props,j,P)),f&&ae.createElement("line",kf({},C,I,{className:ke("recharts-cartesian-axis-tick-line",Ci(f,"className"))})),h&&t.renderTickItem(h,G,"".concat(dt(m)?m(j.value,P):j.value).concat(g||"")))});return ae.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,i=this.props,a=i.axisLine,o=i.width,l=i.height,f=i.ticksGenerator,c=i.className,h=i.hide;if(h)return null;var m=this.props,g=m.ticks,x=yE(m,EEe),_=g;return dt(f)&&(_=g&&g.length>0?f(this.props):f(x)),o<=0||l<=0||!_||!_.length?null:ae.createElement(Ot,{className:ke("recharts-cartesian-axis",c),ref:function(S){r.layerReference=S}},a&&this.renderAxisLine(),this.renderTicks(_,this.state.fontSize,this.state.letterSpacing),lr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return ae.isValidElement(r)?o=ae.cloneElement(r,i):dt(r)?o=r(i):o=ae.createElement(cc,kf({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(U.Component);S3(Kd,"displayName","CartesianAxis");S3(Kd,"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 LEe=["x1","y1","x2","y2","key"],DEe=["offset"];function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function a$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a$(Object(n),!0).forEach(function(r){kEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kEe(e,t,n){return t=IEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IEe(e){var t=$Ee(e,"string");return hc(t)=="symbol"?t:t+""}function $Ee(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hu.apply(this,arguments)}function o$(e,t){if(e==null)return{};var n=BEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[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={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var UEe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,o=t.width,l=t.height,f=t.ry;return ae.createElement("rect",{x:i,y:a,ry:f,width:o,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function LV(e,t){var n;if(ae.isValidElement(e))n=ae.cloneElement(e,t);else if(dt(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.key,f=o$(t,LEe),c=at(f,!1);c.offset;var h=o$(c,DEe);n=ae.createElement("line",Hu({},h,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:l}))}return n}function zEe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,f){var c=Tr(Tr({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(f),index:f});return LV(i,c)});return ae.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function FEe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,f){var c=Tr(Tr({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(f),index:f});return LV(i,c)});return ae.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function qEe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,l=e.horizontalPoints,f=e.horizontal,c=f===void 0?!0:f;if(!c||!t||!t.length)return null;var h=l.map(function(g){return Math.round(g+i-i)}).sort(function(g,x){return g-x});i!==h[0]&&h.unshift(0);var m=h.map(function(g,x){var _=!h[x+1],w=_?i+o-g:h[x+1]-g;if(w<=0)return null;var S=x%t.length;return ae.createElement("rect",{key:"react-".concat(x),y:g,x:r,height:w,width:a,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return ae.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function VEe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,l=e.width,f=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var h=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,x){return g-x});a!==h[0]&&h.unshift(0);var m=h.map(function(g,x){var _=!h[x+1],w=_?a+l-g:h[x+1]-g;if(w<=0)return null;var S=x%r.length;return ae.createElement("rect",{key:"react-".concat(x),x:g,y:o,width:w,height:f,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return ae.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var HEe=function(t,n){var r=t.xAxis,i=t.width,a=t.height,o=t.offset;return Dq(w3(Tr(Tr(Tr({},Kd.defaultProps),r),{},{ticks:Xo(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,n)},WEe=function(t,n){var r=t.yAxis,i=t.width,a=t.height,o=t.offset;return Dq(w3(Tr(Tr(Tr({},Kd.defaultProps),r),{},{ticks:Xo(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,n)},xf={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function O3(e){var t,n,r,i,a,o,l=y3(),f=b3(),c=NOe(),h=Tr(Tr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:xf.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:xf.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:xf.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:xf.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:xf.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:xf.verticalFill,x:Ze(e.x)?e.x:c.left,y:Ze(e.y)?e.y:c.top,width:Ze(e.width)?e.width:c.width,height:Ze(e.height)?e.height:c.height}),m=h.x,g=h.y,x=h.width,_=h.height,w=h.syncWithTicks,S=h.horizontalValues,O=h.verticalValues,C=POe(),T=ROe();if(!Ze(x)||x<=0||!Ze(_)||_<=0||!Ze(m)||m!==+m||!Ze(g)||g!==+g)return null;var j=h.verticalCoordinatesGenerator||HEe,P=h.horizontalCoordinatesGenerator||WEe,R=h.horizontalPoints,I=h.verticalPoints;if((!R||!R.length)&&dt(P)){var V=S&&S.length,G=P({yAxis:T?Tr(Tr({},T),{},{ticks:V?S:T.ticks}):void 0,width:l,height:f,offset:c},V?!0:w);xa(Array.isArray(G),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(hc(G),"]")),Array.isArray(G)&&(R=G)}if((!I||!I.length)&&dt(j)){var W=O&&O.length,K=j({xAxis:C?Tr(Tr({},C),{},{ticks:W?O:C.ticks}):void 0,width:l,height:f,offset:c},W?!0:w);xa(Array.isArray(K),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(hc(K),"]")),Array.isArray(K)&&(I=K)}return ae.createElement("g",{className:"recharts-cartesian-grid"},ae.createElement(UEe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),ae.createElement(zEe,Hu({},h,{offset:c,horizontalPoints:R,xAxis:C,yAxis:T})),ae.createElement(FEe,Hu({},h,{offset:c,verticalPoints:I,xAxis:C,yAxis:T})),ae.createElement(qEe,Hu({},h,{horizontalPoints:R})),ae.createElement(VEe,Hu({},h,{verticalPoints:I})))}O3.displayName="CartesianGrid";var GEe=["type","layout","connectNulls","ref"],YEe=["key"];function wd(e){"@babel/helpers - typeof";return wd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wd(e)}function s$(e,t){if(e==null)return{};var n=KEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vp.apply(this,arguments)}function l$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l$(Object(n),!0).forEach(function(r){ya(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wf(e){return JEe(e)||QEe(e)||XEe(e)||ZEe()}function ZEe(){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 XEe(e,t){if(e){if(typeof e=="string")return qA(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 qA(e,t)}}function QEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JEe(e){if(Array.isArray(e))return qA(e)}function qA(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u$(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,kV(r.key),r)}}function tCe(e,t,n){return t&&u$(e.prototype,t),n&&u$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nCe(e,t,n){return t=m0(t),rCe(e,DV()?Reflect.construct(t,n||[],m0(e).constructor):t.apply(e,n))}function rCe(e,t){if(t&&(wd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iCe(e)}function iCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DV=function(){return!!e})()}function m0(e){return m0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},m0(e)}function aCe(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&&VA(e,t)}function VA(e,t){return VA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VA(e,t)}function ya(e,t,n){return t=kV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kV(e){var t=oCe(e,"string");return wd(t)=="symbol"?t:t+""}function oCe(e,t){if(wd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zd=function(e){function t(){var n;eCe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=nCe(this,t,[].concat(i)),ya(n,"state",{isAnimationFinished:!0,totalLength:0}),ya(n,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),ya(n,"getStrokeDasharray",function(o,l,f){var c=f.reduce(function(O,C){return O+C});if(!c)return n.generateSimpleStrokeDasharray(l,o);for(var h=Math.floor(o/c),m=o%c,g=l-o,x=[],_=0,w=0;_<f.length;w+=f[_],++_)if(w+f[_]>m){x=[].concat(wf(f.slice(0,_)),[m-w]);break}var S=x.length%2===0?[0,g]:[g];return[].concat(wf(t.repeat(f,h)),wf(x),S).map(function(O){return"".concat(O,"px")}).join(", ")}),ya(n,"id",Gl("recharts-line-")),ya(n,"pathRef",function(o){n.mainCurve=o}),ya(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),ya(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return aCe(t,e),tCe(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 a=this.props,o=a.points,l=a.xAxis,f=a.yAxis,c=a.layout,h=a.children,m=qr(h,Yd);if(!m)return null;var g=function(w,S){return{x:w.x,y:w.y,value:w.value,errorVal:vn(w.payload,S)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return ae.createElement(Ot,x,m.map(function(_){return ae.cloneElement(_,{key:"bar-".concat(_.props.dataKey),data:o,xAxis:l,yAxis:f,layout:c,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,f=l.dot,c=l.points,h=l.dataKey,m=at(this.props,!1),g=at(f,!0),x=c.map(function(w,S){var O=vi(vi(vi({key:"dot-".concat(S),r:3},m),g),{},{index:S,cx:w.x,cy:w.y,value:w.value,dataKey:h,payload:w.payload,points:c});return t.renderDotItem(f,O)}),_={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return ae.createElement(Ot,Vp({className:"recharts-line-dots",key:"dots"},_),x)}},{key:"renderCurveStatically",value:function(r,i,a,o){var l=this.props,f=l.type,c=l.layout,h=l.connectNulls;l.ref;var m=s$(l,GEe),g=vi(vi(vi({},at(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:r},o),{},{type:f,layout:c,connectNulls:h});return ae.createElement(jl,Vp({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var a=this,o=this.props,l=o.points,f=o.strokeDasharray,c=o.isAnimationActive,h=o.animationBegin,m=o.animationDuration,g=o.animationEasing,x=o.animationId,_=o.animateNewValues,w=o.width,S=o.height,O=this.state,C=O.prevPoints,T=O.totalLength;return ae.createElement(na,{begin:h,duration:m,isActive:c,easing:g,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var P=j.t;if(C){var R=C.length/l.length,I=l.map(function(ne,le){var Q=Math.floor(le*R);if(C[Q]){var J=C[Q],H=Cn(J.x,ne.x),B=Cn(J.y,ne.y);return vi(vi({},ne),{},{x:H(P),y:B(P)})}if(_){var z=Cn(w*2,ne.x),F=Cn(S/2,ne.y);return vi(vi({},ne),{},{x:z(P),y:F(P)})}return vi(vi({},ne),{},{x:ne.x,y:ne.y})});return a.renderCurveStatically(I,r,i)}var V=Cn(0,T),G=V(P),W;if(f){var K="".concat(f).split(/[,\s]+/gim).map(function(ne){return parseFloat(ne)});W=a.getStrokeDasharray(G,T,K)}else W=a.generateSimpleStrokeDasharray(T,G);return a.renderCurveStatically(l,r,i,{strokeDasharray:W})})}},{key:"renderCurve",value:function(r,i){var a=this.props,o=a.points,l=a.isAnimationActive,f=this.state,c=f.prevPoints,h=f.totalLength;return l&&o&&o.length&&(!c&&h>0||!$l(c,o))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(o,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,l=i.points,f=i.className,c=i.xAxis,h=i.yAxis,m=i.top,g=i.left,x=i.width,_=i.height,w=i.isAnimationActive,S=i.id;if(a||!l||!l.length)return null;var O=this.state.isAnimationFinished,C=l.length===1,T=ke("recharts-line",f),j=c&&c.allowDataOverflow,P=h&&h.allowDataOverflow,R=j||P,I=ht(S)?this.id:S,V=(r=at(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},G=V.r,W=G===void 0?3:G,K=V.strokeWidth,ne=K===void 0?2:K,le=Iz(o)?o:{},Q=le.clipDot,J=Q===void 0?!0:Q,H=W*2+ne;return ae.createElement(Ot,{className:T},j||P?ae.createElement("defs",null,ae.createElement("clipPath",{id:"clipPath-".concat(I)},ae.createElement("rect",{x:j?g:g-x/2,y:P?m:m-_/2,width:j?x:x*2,height:P?_:_*2})),!J&&ae.createElement("clipPath",{id:"clipPath-dots-".concat(I)},ae.createElement("rect",{x:g-H/2,y:m-H/2,width:x+H,height:_+H}))):null,!C&&this.renderCurve(R,I),this.renderErrorBar(R,I),(C||o)&&this.renderDots(R,J,I),(!w||O)&&wa.renderCallByParent(this.props,l))}}],[{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 a=r.length%2!==0?[].concat(wf(r),[0]):r,o=[],l=0;l<i;++l)o=[].concat(wf(o),wf(a));return o}},{key:"renderDotItem",value:function(r,i){var a;if(ae.isValidElement(r))a=ae.cloneElement(r,i);else if(dt(r))a=r(i);else{var o=i.key,l=s$(i,YEe),f=ke("recharts-line-dot",typeof r!="boolean"?r.className:"");a=ae.createElement(gv,Vp({key:o},l,{className:f}))}return a}}])}(U.PureComponent);ya(Zd,"displayName","Line");ya(Zd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!bs.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ya(Zd,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,l=e.bandSize,f=e.displayedData,c=e.offset,h=t.layout,m=f.map(function(g,x){var _=vn(g,o);return h==="horizontal"?{x:cd({axis:n,ticks:i,bandSize:l,entry:g,index:x}),y:ht(_)?null:r.scale(_),value:_,payload:g}:{x:ht(_)?null:n.scale(_),y:cd({axis:r,ticks:a,bandSize:l,entry:g,index:x}),value:_,payload:g}});return vi({points:m,layout:h},c)});var sCe=["layout","type","stroke","connectNulls","isRange","ref"],lCe=["key"],IV;function Sd(e){"@babel/helpers - typeof";return Sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sd(e)}function $V(e,t){if(e==null)return{};var n=uCe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uCe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wu.apply(this,arguments)}function c$(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?c$(Object(n),!0).forEach(function(r){no(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f$(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,UV(r.key),r)}}function fCe(e,t,n){return t&&f$(e.prototype,t),n&&f$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dCe(e,t,n){return t=v0(t),hCe(e,BV()?Reflect.construct(t,n||[],v0(e).constructor):t.apply(e,n))}function hCe(e,t){if(t&&(Sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pCe(e)}function pCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BV=function(){return!!e})()}function v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v0(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&&HA(e,t)}function HA(e,t){return HA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},HA(e,t)}function no(e,t,n){return t=UV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UV(e){var t=vCe(e,"string");return Sd(t)=="symbol"?t:t+""}function vCe(e,t){if(Sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xc=function(e){function t(){var n;cCe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=dCe(this,t,[].concat(i)),no(n,"state",{isAnimationFinished:!0}),no(n,"id",Gl("recharts-area-")),no(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),dt(o)&&o()}),no(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),dt(o)&&o()}),n}return mCe(t,e),fCe(t,[{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var f=this.props,c=f.dot,h=f.points,m=f.dataKey,g=at(this.props,!1),x=at(c,!0),_=h.map(function(S,O){var C=gl(gl(gl({key:"dot-".concat(O),r:3},g),x),{},{index:O,cx:S.x,cy:S.y,dataKey:m,value:S.value,payload:S.payload,points:h});return t.renderDotItem(c,C)}),w={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return ae.createElement(Ot,Wu({className:"recharts-area-dots"},w),_)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,f=o[0].x,c=o[o.length-1].x,h=r*Math.abs(f-c),m=wl(o.map(function(g){return g.y||0}));return Ze(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(wl(a.map(function(g){return g.y||0})),m)),Ze(m)?ae.createElement("rect",{x:f<c?f:f-h,y:0,width:h,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,f=o[0].y,c=o[o.length-1].y,h=r*Math.abs(f-c),m=wl(o.map(function(g){return g.x||0}));return Ze(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(wl(a.map(function(g){return g.x||0})),m)),Ze(m)?ae.createElement("rect",{x:0,y:f<c?f:f-h,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):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,a,o){var l=this.props,f=l.layout,c=l.type,h=l.stroke,m=l.connectNulls,g=l.isRange;l.ref;var x=$V(l,sCe);return ae.createElement(Ot,{clipPath:a?"url(#clipPath-".concat(o,")"):null},ae.createElement(jl,Wu({},at(x,!0),{points:r,connectNulls:m,type:c,baseLine:i,layout:f,stroke:"none",className:"recharts-area-area"})),h!=="none"&&ae.createElement(jl,Wu({},at(this.props,!1),{className:"recharts-area-curve",layout:f,type:c,connectNulls:m,fill:"none",points:r})),h!=="none"&&g&&ae.createElement(jl,Wu({},at(this.props,!1),{className:"recharts-area-curve",layout:f,type:c,connectNulls:m,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var a=this,o=this.props,l=o.points,f=o.baseLine,c=o.isAnimationActive,h=o.animationBegin,m=o.animationDuration,g=o.animationEasing,x=o.animationId,_=this.state,w=_.prevPoints,S=_.prevBaseLine;return ae.createElement(na,{begin:h,duration:m,isActive:c,easing:g,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var C=O.t;if(w){var T=w.length/l.length,j=l.map(function(V,G){var W=Math.floor(G*T);if(w[W]){var K=w[W],ne=Cn(K.x,V.x),le=Cn(K.y,V.y);return gl(gl({},V),{},{x:ne(C),y:le(C)})}return V}),P;if(Ze(f)&&typeof f=="number"){var R=Cn(S,f);P=R(C)}else if(ht(f)||qd(f)){var I=Cn(S,0);P=I(C)}else P=f.map(function(V,G){var W=Math.floor(G*T);if(S[W]){var K=S[W],ne=Cn(K.x,V.x),le=Cn(K.y,V.y);return gl(gl({},V),{},{x:ne(C),y:le(C)})}return V});return a.renderAreaStatically(j,P,r,i)}return ae.createElement(Ot,null,ae.createElement("defs",null,ae.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(C))),ae.createElement(Ot,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(l,f,r,i)))})}},{key:"renderArea",value:function(r,i){var a=this.props,o=a.points,l=a.baseLine,f=a.isAnimationActive,c=this.state,h=c.prevPoints,m=c.prevBaseLine,g=c.totalLength;return f&&o&&o.length&&(!h&&g>0||!$l(h,o)||!$l(m,l))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(o,l,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,l=i.points,f=i.className,c=i.top,h=i.left,m=i.xAxis,g=i.yAxis,x=i.width,_=i.height,w=i.isAnimationActive,S=i.id;if(a||!l||!l.length)return null;var O=this.state.isAnimationFinished,C=l.length===1,T=ke("recharts-area",f),j=m&&m.allowDataOverflow,P=g&&g.allowDataOverflow,R=j||P,I=ht(S)?this.id:S,V=(r=at(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},G=V.r,W=G===void 0?3:G,K=V.strokeWidth,ne=K===void 0?2:K,le=Iz(o)?o:{},Q=le.clipDot,J=Q===void 0?!0:Q,H=W*2+ne;return ae.createElement(Ot,{className:T},j||P?ae.createElement("defs",null,ae.createElement("clipPath",{id:"clipPath-".concat(I)},ae.createElement("rect",{x:j?h:h-x/2,y:P?c:c-_/2,width:j?x:x*2,height:P?_:_*2})),!J&&ae.createElement("clipPath",{id:"clipPath-dots-".concat(I)},ae.createElement("rect",{x:h-H/2,y:c-H/2,width:x+H,height:_+H}))):null,C?null:this.renderArea(R,I),(o||C)&&this.renderDots(R,J,I),(!w||O)&&wa.renderCallByParent(this.props,l))}}],[{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}}])}(U.PureComponent);IV=xc;no(xc,"displayName","Area");no(xc,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!bs.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});no(xc,"getBaseValue",function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue,l=o??a;if(Ze(l)&&typeof l=="number")return l;var f=i==="horizontal"?r:n,c=f.scale.domain();if(f.type==="number"){var h=Math.max(c[0],c[1]),m=Math.min(c[0],c[1]);return l==="dataMin"?m:l==="dataMax"||h<0?h:Math.max(Math.min(c[0],c[1]),0)}return l==="dataMin"?c[0]:l==="dataMax"?c[1]:c[0]});no(xc,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,f=e.dataKey,c=e.stackedData,h=e.dataStartIndex,m=e.displayedData,g=e.offset,x=t.layout,_=c&&c.length,w=IV.getBaseValue(t,n,r,i),S=x==="horizontal",O=!1,C=m.map(function(j,P){var R;_?R=c[h+P]:(R=vn(j,f),Array.isArray(R)?O=!0:R=[w,R]);var I=R[1]==null||_&&vn(j,f)==null;return S?{x:cd({axis:r,ticks:a,bandSize:l,entry:j,index:P}),y:I?null:i.scale(R[1]),value:R,payload:j}:{x:I?null:r.scale(R[1]),y:cd({axis:i,ticks:o,bandSize:l,entry:j,index:P}),value:R,payload:j}}),T;return _||O?T=C.map(function(j){var P=Array.isArray(j.value)?j.value[0]:null;return S?{x:j.x,y:P!=null&&j.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:j.y}}):T=S?i.scale(w):r.scale(w),gl({points:C,baseLine:T,layout:x,isRange:O},g)});no(xc,"renderDotItem",function(e,t){var n;if(ae.isValidElement(e))n=ae.cloneElement(e,t);else if(dt(e))n=e(t);else{var r=ke("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=$V(t,lCe);n=ae.createElement(gv,Wu({},a,{key:i,className:r}))}return n});function Od(e){"@babel/helpers - typeof";return Od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Od(e)}function gCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yCe(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,qV(r.key),r)}}function bCe(e,t,n){return t&&yCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ce(e,t,n){return t=g0(t),xCe(e,zV()?Reflect.construct(t,n||[],g0(e).constructor):t.apply(e,n))}function xCe(e,t){if(t&&(Od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wCe(e)}function wCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zV=function(){return!!e})()}function g0(e){return g0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},g0(e)}function SCe(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&&WA(e,t)}function WA(e,t){return WA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},WA(e,t)}function FV(e,t,n){return t=qV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qV(e){var t=OCe(e,"string");return Od(t)=="symbol"?t:t+""}function OCe(e,t){if(Od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var k_=function(e){function t(){return gCe(this,t),_Ce(this,t,arguments)}return SCe(t,e),bCe(t,[{key:"render",value:function(){return null}}])}(ae.Component);FV(k_,"displayName","ZAxis");FV(k_,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var ECe=["option","isActive"];function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}function CCe(e,t){if(e==null)return{};var n=TCe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TCe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ACe(e){var t=e.option,n=e.isActive,r=CCe(e,ECe);return typeof t=="string"?ae.createElement(r0,Hp({option:ae.createElement(d_,Hp({type:t},r)),isActive:n,shapeType:"symbols"},r)):ae.createElement(r0,Hp({option:t,isActive:n,shapeType:"symbols"},r))}function Ed(e){"@babel/helpers - typeof";return Ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ed(e)}function Wp(){return Wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wp.apply(this,arguments)}function d$(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 Wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d$(Object(n),!0).forEach(function(r){Ol(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h$(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,HV(r.key),r)}}function PCe(e,t,n){return t&&h$(e.prototype,t),n&&h$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function RCe(e,t,n){return t=y0(t),MCe(e,VV()?Reflect.construct(t,n||[],y0(e).constructor):t.apply(e,n))}function MCe(e,t){if(t&&(Ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NCe(e)}function NCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VV=function(){return!!e})()}function y0(e){return y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},y0(e)}function LCe(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&&GA(e,t)}function GA(e,t){return GA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},GA(e,t)}function Ol(e,t,n){return t=HV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HV(e){var t=DCe(e,"string");return Ed(t)=="symbol"?t:t+""}function DCe(e,t){if(Ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var I_=function(e){function t(){var n;jCe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=RCe(this,t,[].concat(i)),Ol(n,"state",{isAnimationFinished:!1}),Ol(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Ol(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Ol(n,"id",Gl("recharts-scatter-")),n}return LCe(t,e),PCe(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.activeShape,f=a.activeIndex,c=at(this.props,!1);return r.map(function(h,m){var g=f===m,x=g?l:o,_=Wi(Wi({},c),h);return ae.createElement(Ot,Wp({className:"recharts-scatter-symbol",key:"symbol-".concat(h==null?void 0:h.cx,"-").concat(h==null?void 0:h.cy,"-").concat(h==null?void 0:h.size,"-").concat(m)},Il(i.props,h,m),{role:"img"}),ae.createElement(ACe,Wp({option:x,isActive:g,key:"symbol-".concat(m)},_)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,a=i.points,o=i.isAnimationActive,l=i.animationBegin,f=i.animationDuration,c=i.animationEasing,h=i.animationId,m=this.state.prevPoints;return ae.createElement(na,{begin:l,duration:f,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t,_=a.map(function(w,S){var O=m&&m[S];if(O){var C=Cn(O.cx,w.cx),T=Cn(O.cy,w.cy),j=Cn(O.size,w.size);return Wi(Wi({},w),{},{cx:C(x),cy:T(x),size:j(x)})}var P=Cn(0,w.size);return Wi(Wi({},w),{},{size:P(x)})});return ae.createElement(Ot,null,r.renderSymbolsStatically(_))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,a=r.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!$l(o,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,a=i.points,o=i.xAxis,l=i.yAxis,f=i.children,c=qr(f,Yd);return c?c.map(function(h,m){var g=h.props,x=g.direction,_=g.dataKey;return ae.cloneElement(h,{key:"".concat(x,"-").concat(_,"-").concat(a[m]),data:a,xAxis:o,yAxis:l,layout:x==="x"?"vertical":"horizontal",dataPointFormatter:function(S,O){return{x:S.cx,y:S.cy,value:x==="x"?+S.node.x:+S.node.y,errorVal:vn(S,O)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,a=r.line,o=r.lineType,l=r.lineJointType,f=at(this.props,!1),c=at(a,!1),h,m;if(o==="joint")h=i.map(function(T){return{x:T.cx,y:T.cy}});else if(o==="fitting"){var g=Nhe(i),x=g.xmin,_=g.xmax,w=g.a,S=g.b,O=function(j){return w*j+S};h=[{x,y:O(x)},{x:_,y:O(_)}]}var C=Wi(Wi(Wi({},f),{},{fill:"none",stroke:f&&f.fill},c),{},{points:h});return ae.isValidElement(a)?m=ae.cloneElement(a,C):dt(a)?m=a(C):m=ae.createElement(jl,Wp({},C,{type:l})),ae.createElement(Ot,{className:"recharts-scatter-line",key:"recharts-scatter-line"},m)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.points,o=r.line,l=r.className,f=r.xAxis,c=r.yAxis,h=r.left,m=r.top,g=r.width,x=r.height,_=r.id,w=r.isAnimationActive;if(i||!a||!a.length)return null;var S=this.state.isAnimationFinished,O=ke("recharts-scatter",l),C=f&&f.allowDataOverflow,T=c&&c.allowDataOverflow,j=C||T,P=ht(_)?this.id:_;return ae.createElement(Ot,{className:O,clipPath:j?"url(#clipPath-".concat(P,")"):null},C||T?ae.createElement("defs",null,ae.createElement("clipPath",{id:"clipPath-".concat(P)},ae.createElement("rect",{x:C?h:h-g/2,y:T?m:m-x/2,width:C?g:g*2,height:T?x:x*2}))):null,o&&this.renderLine(),this.renderErrorBar(),ae.createElement(Ot,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!w||S)&&wa.renderCallByParent(this.props,a))}}],[{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}}])}(U.PureComponent);Ol(I_,"displayName","Scatter");Ol(I_,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!bs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Ol(I_,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,l=e.yAxisTicks,f=e.offset,c=i.props.tooltipType,h=qr(i.props.children,Tl),m=ht(t.dataKey)?i.props.dataKey:t.dataKey,g=ht(n.dataKey)?i.props.dataKey:n.dataKey,x=r&&r.dataKey,_=r?r.range:k_.defaultProps.range,w=_&&_[0],S=t.scale.bandwidth?t.scale.bandwidth():0,O=n.scale.bandwidth?n.scale.bandwidth():0,C=a.map(function(T,j){var P=vn(T,m),R=vn(T,g),I=!ht(x)&&vn(T,x)||"-",V=[{name:ht(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:P,payload:T,dataKey:m,type:c},{name:ht(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:R,payload:T,dataKey:g,type:c}];I!=="-"&&V.push({name:r.name||r.dataKey,unit:r.unit||"",value:I,payload:T,dataKey:x,type:c});var G=cd({axis:t,ticks:o,bandSize:S,entry:T,index:j,dataKey:m}),W=cd({axis:n,ticks:l,bandSize:O,entry:T,index:j,dataKey:g}),K=I!=="-"?r.scale(I):w,ne=Math.sqrt(Math.max(K,0)/Math.PI);return Wi(Wi({},T),{},{cx:G,cy:W,x:G-ne,y:W-ne,xAxis:t,yAxis:n,zAxis:r,width:2*ne,height:2*ne,size:K,node:{x:P,y:R,z:I},tooltipPayload:V,tooltipPosition:{x:G,y:W},payload:T},h&&h[j]&&h[j].props)});return Wi({points:C},f)});function Cd(e){"@babel/helpers - typeof";return Cd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cd(e)}function kCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ICe(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,YV(r.key),r)}}function $Ce(e,t,n){return t&&ICe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BCe(e,t,n){return t=b0(t),UCe(e,WV()?Reflect.construct(t,n||[],b0(e).constructor):t.apply(e,n))}function UCe(e,t){if(t&&(Cd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zCe(e)}function zCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WV=function(){return!!e})()}function b0(e){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b0(e)}function FCe(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&&YA(e,t)}function YA(e,t){return YA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YA(e,t)}function GV(e,t,n){return t=YV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YV(e){var t=qCe(e,"string");return Cd(t)=="symbol"?t:t+""}function qCe(e,t){if(Cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KA(){return KA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KA.apply(this,arguments)}function VCe(e){var t=e.xAxisId,n=y3(),r=b3(),i=SV(t);return i==null?null:ae.createElement(Kd,KA({},i,{className:ke("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Xo(o,!0)}}))}var Xd=function(e){function t(){return kCe(this,t),BCe(this,t,arguments)}return FCe(t,e),$Ce(t,[{key:"render",value:function(){return ae.createElement(VCe,this.props)}}])}(ae.Component);GV(Xd,"displayName","XAxis");GV(Xd,"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 Td(e){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Td(e)}function HCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WCe(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,XV(r.key),r)}}function GCe(e,t,n){return t&&WCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YCe(e,t,n){return t=_0(t),KCe(e,KV()?Reflect.construct(t,n||[],_0(e).constructor):t.apply(e,n))}function KCe(e,t){if(t&&(Td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZCe(e)}function ZCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KV=function(){return!!e})()}function _0(e){return _0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_0(e)}function XCe(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&&ZA(e,t)}function ZA(e,t){return ZA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZA(e,t)}function ZV(e,t,n){return t=XV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XV(e){var t=QCe(e,"string");return Td(t)=="symbol"?t:t+""}function QCe(e,t){if(Td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function XA(){return XA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XA.apply(this,arguments)}var JCe=function(t){var n=t.yAxisId,r=y3(),i=b3(),a=OV(n);return a==null?null:ae.createElement(Kd,XA({},a,{className:ke("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Xo(l,!0)}}))},Qd=function(e){function t(){return HCe(this,t),YCe(this,t,arguments)}return XCe(t,e),GCe(t,[{key:"render",value:function(){return ae.createElement(JCe,this.props)}}])}(ae.Component);ZV(Qd,"displayName","YAxis");ZV(Qd,"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 p$(e){return rTe(e)||nTe(e)||tTe(e)||eTe()}function eTe(){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 tTe(e,t){if(e){if(typeof e=="string")return QA(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 QA(e,t)}}function nTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rTe(e){if(Array.isArray(e))return QA(e)}function QA(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 JA=function(t,n,r,i,a){var o=qr(t,x3),l=qr(t,L_),f=[].concat(p$(o),p$(l)),c=qr(t,yv),h="".concat(i,"Id"),m=i[0],g=n;if(f.length&&(g=f.reduce(function(w,S){if(S.props[h]===r&&ao(S.props,"extendDomain")&&Ze(S.props[m])){var O=S.props[m];return[Math.min(w[0],O),Math.max(w[1],O)]}return w},g)),c.length){var x="".concat(m,"1"),_="".concat(m,"2");g=c.reduce(function(w,S){if(S.props[h]===r&&ao(S.props,"extendDomain")&&Ze(S.props[x])&&Ze(S.props[_])){var O=S.props[x],C=S.props[_];return[Math.min(w[0],O,C),Math.max(w[1],O,C)]}return w},g)}return a&&a.length&&(g=a.reduce(function(w,S){return Ze(S)?[Math.min(w[0],S),Math.max(w[1],S)]:w},g)),g},bE={exports:{}},m$;function iTe(){return m$||(m$=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,c,h){this.fn=f,this.context=c,this.once=h||!1}function a(f,c,h,m,g){if(typeof h!="function")throw new TypeError("The listener must be a function");var x=new i(h,m||f,g),_=n?n+c:c;return f._events[_]?f._events[_].fn?f._events[_]=[f._events[_],x]:f._events[_].push(x):(f._events[_]=x,f._eventsCount++),f}function o(f,c){--f._eventsCount===0?f._events=new r:delete f._events[c]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],h,m;if(this._eventsCount===0)return c;for(m in h=this._events)t.call(h,m)&&c.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},l.prototype.listeners=function(c){var h=n?n+c:c,m=this._events[h];if(!m)return[];if(m.fn)return[m.fn];for(var g=0,x=m.length,_=new Array(x);g<x;g++)_[g]=m[g].fn;return _},l.prototype.listenerCount=function(c){var h=n?n+c:c,m=this._events[h];return m?m.fn?1:m.length:0},l.prototype.emit=function(c,h,m,g,x,_){var w=n?n+c:c;if(!this._events[w])return!1;var S=this._events[w],O=arguments.length,C,T;if(S.fn){switch(S.once&&this.removeListener(c,S.fn,void 0,!0),O){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,h),!0;case 3:return S.fn.call(S.context,h,m),!0;case 4:return S.fn.call(S.context,h,m,g),!0;case 5:return S.fn.call(S.context,h,m,g,x),!0;case 6:return S.fn.call(S.context,h,m,g,x,_),!0}for(T=1,C=new Array(O-1);T<O;T++)C[T-1]=arguments[T];S.fn.apply(S.context,C)}else{var j=S.length,P;for(T=0;T<j;T++)switch(S[T].once&&this.removeListener(c,S[T].fn,void 0,!0),O){case 1:S[T].fn.call(S[T].context);break;case 2:S[T].fn.call(S[T].context,h);break;case 3:S[T].fn.call(S[T].context,h,m);break;case 4:S[T].fn.call(S[T].context,h,m,g);break;default:if(!C)for(P=1,C=new Array(O-1);P<O;P++)C[P-1]=arguments[P];S[T].fn.apply(S[T].context,C)}}return!0},l.prototype.on=function(c,h,m){return a(this,c,h,m,!1)},l.prototype.once=function(c,h,m){return a(this,c,h,m,!0)},l.prototype.removeListener=function(c,h,m,g){var x=n?n+c:c;if(!this._events[x])return this;if(!h)return o(this,x),this;var _=this._events[x];if(_.fn)_.fn===h&&(!g||_.once)&&(!m||_.context===m)&&o(this,x);else{for(var w=0,S=[],O=_.length;w<O;w++)(_[w].fn!==h||g&&!_[w].once||m&&_[w].context!==m)&&S.push(_[w]);S.length?this._events[x]=S.length===1?S[0]:S:o(this,x)}return this},l.prototype.removeAllListeners=function(c){var h;return c?(h=n?n+c:c,this._events[h]&&o(this,h)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(bE)),bE.exports}var aTe=iTe();const oTe=Lt(aTe);var _E=new oTe,xE="recharts.syncMouseEvents";function qm(e){"@babel/helpers - typeof";return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qm(e)}function sTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lTe(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,QV(r.key),r)}}function uTe(e,t,n){return t&&lTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wE(e,t,n){return t=QV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QV(e){var t=cTe(e,"string");return qm(t)=="symbol"?t:t+""}function cTe(e,t){if(qm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fTe=function(){function e(){sTe(this,e),wE(this,"activeIndex",0),wE(this,"coordinateList",[]),wE(this,"layout","horizontal")}return uTe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,l=o===void 0?null:o,f=n.layout,c=f===void 0?null:f,h=n.offset,m=h===void 0?null:h,g=n.mouseHandlerCallback,x=g===void 0?null:g;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=c??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=x??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(),a=i.x,o=i.y,l=i.height,f=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,h=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=a+f+c,g=o+this.offset.top+l/2+h;this.mouseHandlerCallback({pageX:m,pageY:g})}}}])}();function dTe(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&&Ze(r)&&Ze(i))return!0}return!1}function hTe(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 JV(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=dn(t,n,r,i),l=dn(t,n,r,a);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function pTe(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,f=t.cy,c=t.innerRadius,h=t.outerRadius,m=t.angle,g=dn(l,f,c,m),x=dn(l,f,h,m);r=g.x,i=g.y,a=x.x,o=x.y}else return JV(t);return[{x:r,y:i},{x:a,y:o}]}function Vm(e){"@babel/helpers - typeof";return Vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vm(e)}function v$(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 dy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v$(Object(n),!0).forEach(function(r){mTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mTe(e,t,n){return t=vTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vTe(e){var t=gTe(e,"string");return Vm(t)=="symbol"?t:t+""}function gTe(e,t){if(Vm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yTe(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,f=e.offset,c=e.activeTooltipIndex,h=e.tooltipAxisBandSize,m=e.layout,g=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!a||!o||g!=="ScatterChart"&&i!=="axis")return null;var _,w=jl;if(g==="ScatterChart")_=o,w=c2e;else if(g==="BarChart")_=hTe(m,o,f,h),w=p3;else if(m==="radial"){var S=JV(o),O=S.cx,C=S.cy,T=S.radius,j=S.startAngle,P=S.endAngle;_={cx:O,cy:C,startAngle:j,endAngle:P,innerRadius:T,outerRadius:T},w=Wq}else _={points:pTe(m,o,f)},w=jl;var R=dy(dy(dy(dy({stroke:"#ccc",pointerEvents:"none"},f),_),at(x,!1)),{},{payload:l,payloadIndex:c,className:ke("recharts-tooltip-cursor",x.className)});return U.isValidElement(x)?U.cloneElement(x,R):U.createElement(w,R)}var bTe=["item"],_Te=["children","className","width","height","style","compact","title","desc"];function Ad(e){"@babel/helpers - typeof";return Ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ad(e)}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},If.apply(this,arguments)}function g$(e,t){return STe(e)||wTe(e,t)||tH(e,t)||xTe()}function xTe(){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 wTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function STe(e){if(Array.isArray(e))return e}function y$(e,t){if(e==null)return{};var n=OTe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ETe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CTe(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,nH(r.key),r)}}function TTe(e,t,n){return t&&CTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ATe(e,t,n){return t=x0(t),jTe(e,eH()?Reflect.construct(t,n||[],x0(e).constructor):t.apply(e,n))}function jTe(e,t){if(t&&(Ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PTe(e)}function PTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eH=function(){return!!e})()}function x0(e){return x0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x0(e)}function RTe(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&&ej(e,t)}function ej(e,t){return ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ej(e,t)}function jd(e){return LTe(e)||NTe(e)||tH(e)||MTe()}function MTe(){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 tH(e,t){if(e){if(typeof e=="string")return tj(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 tj(e,t)}}function NTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LTe(e){if(Array.isArray(e))return tj(e)}function tj(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 b$(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b$(Object(n),!0).forEach(function(r){mt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mt(e,t,n){return t=nH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nH(e){var t=DTe(e,"string");return Ad(t)=="symbol"?t:t+""}function DTe(e,t){if(Ad(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ad(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kTe={xAxis:["bottom","top"],yAxis:["left","right"]},ITe={width:"100%",height:"100%"},rH={x:0,y:0};function hy(e){return e}var $Te=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},BTe=function(t,n,r,i){var a=n.find(function(h){return h&&h.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=i.radius;return Ie(Ie(Ie({},i),dn(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var f=a.coordinate,c=i.angle;return Ie(Ie(Ie({},i),dn(i.cx,i.cy,f,c)),{},{angle:c,radius:f})}return rH},$_=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(l,f){var c=f.props.data;return c&&c.length?[].concat(jd(l),jd(c)):l},[]);return o.length>0?o:t&&t.length&&Ze(i)&&Ze(a)?t.slice(i,a+1):[]};function iH(e){return e==="number"?[0,"auto"]:void 0}var nj=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,l=$_(n,t);return r<0||!a||!a.length||r>=l.length?null:a.reduce(function(f,c){var h,m=(h=c.props.data)!==null&&h!==void 0?h:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(o.dataKey&&!o.allowDuplicatedCategory){var x=m===void 0?l:m;g=xb(x,o.dataKey,i)}else g=m&&m[r]||l[r];return g?[].concat(jd(f),[Uq(c,g)]):f},[])},_$=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=$Te(a,r),l=t.orderedTooltipTicks,f=t.tooltipAxis,c=t.tooltipTicks,h=B_e(o,l,c,f);if(h>=0&&c){var m=c[h]&&c[h].value,g=nj(t,n,h,m),x=BTe(r,l,h,a);return{activeTooltipIndex:h,activeLabel:m,activePayload:g,activeCoordinate:x}}return null},UTe=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,h=t.layout,m=t.children,g=t.stackOffset,x=Lq(h,a);return r.reduce(function(_,w){var S,O=w.type.defaultProps!==void 0?Ie(Ie({},w.type.defaultProps),w.props):w.props,C=O.type,T=O.dataKey,j=O.allowDataOverflow,P=O.allowDuplicatedCategory,R=O.scale,I=O.ticks,V=O.includeHidden,G=O[o];if(_[G])return _;var W=$_(t.data,{graphicalItems:i.filter(function(te){var Z,oe=o in te.props?te.props[o]:(Z=te.type.defaultProps)===null||Z===void 0?void 0:Z[o];return oe===G}),dataStartIndex:f,dataEndIndex:c}),K=W.length,ne,le,Q;dTe(O.domain,j,C)&&(ne=hA(O.domain,null,j),x&&(C==="number"||R!=="auto")&&(Q=Up(W,T,"category")));var J=iH(C);if(!ne||ne.length===0){var H,B=(H=O.domain)!==null&&H!==void 0?H:J;if(T){if(ne=Up(W,T,C),C==="category"&&x){var z=Mhe(ne);P&&z?(le=ne,ne=a0(0,K)):P||(ne=bI(B,ne,w).reduce(function(te,Z){return te.indexOf(Z)>=0?te:[].concat(jd(te),[Z])},[]))}else if(C==="category")P?ne=ne.filter(function(te){return te!==""&&!ht(te)}):ne=bI(B,ne,w).reduce(function(te,Z){return te.indexOf(Z)>=0||Z===""||ht(Z)?te:[].concat(jd(te),[Z])},[]);else if(C==="number"){var F=V_e(W,i.filter(function(te){var Z,oe,he=o in te.props?te.props[o]:(Z=te.type.defaultProps)===null||Z===void 0?void 0:Z[o],de="hide"in te.props?te.props.hide:(oe=te.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return he===G&&(V||!de)}),T,a,h);F&&(ne=F)}x&&(C==="number"||R!=="auto")&&(Q=Up(W,T,"category"))}else x?ne=a0(0,K):l&&l[G]&&l[G].hasStack&&C==="number"?ne=g==="expand"?[0,1]:Bq(l[G].stackGroups,f,c):ne=Nq(W,i.filter(function(te){var Z=o in te.props?te.props[o]:te.type.defaultProps[o],oe="hide"in te.props?te.props.hide:te.type.defaultProps.hide;return Z===G&&(V||!oe)}),C,h,!0);if(C==="number")ne=JA(m,ne,G,a,I),B&&(ne=hA(B,ne,j));else if(C==="category"&&B){var M=B,k=ne.every(function(te){return M.indexOf(te)>=0});k&&(ne=M)}}return Ie(Ie({},_),{},mt({},G,Ie(Ie({},O),{},{axisType:a,domain:ne,categoricalDomain:Q,duplicateDomain:le,originalDomain:(S=O.domain)!==null&&S!==void 0?S:J,isCategorical:x,layout:h})))},{})},zTe=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,h=t.layout,m=t.children,g=$_(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:c}),x=g.length,_=Lq(h,a),w=-1;return r.reduce(function(S,O){var C=O.type.defaultProps!==void 0?Ie(Ie({},O.type.defaultProps),O.props):O.props,T=C[o],j=iH("number");if(!S[T]){w++;var P;return _?P=a0(0,x):l&&l[T]&&l[T].hasStack?(P=Bq(l[T].stackGroups,f,c),P=JA(m,P,T,a)):(P=hA(j,Nq(g,r.filter(function(R){var I,V,G=o in R.props?R.props[o]:(I=R.type.defaultProps)===null||I===void 0?void 0:I[o],W="hide"in R.props?R.props.hide:(V=R.type.defaultProps)===null||V===void 0?void 0:V.hide;return G===T&&!W}),"number",h),i.defaultProps.allowDataOverflow),P=JA(m,P,T,a)),Ie(Ie({},S),{},mt({},T,Ie(Ie({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ci(kTe,"".concat(a,".").concat(w%2),null),domain:P,originalDomain:j,isCategorical:_,layout:h})))}return S},{})},FTe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,h=t.children,m="".concat(i,"Id"),g=qr(h,a),x={};return g&&g.length?x=UTe(t,{axes:g,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:f,dataEndIndex:c}):o&&o.length&&(x=zTe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:f,dataEndIndex:c})),x},qTe=function(t){var n=xl(t),r=Xo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:zP(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Wb(n,r)}},x$=function(t){var n=t.children,r=t.defaultShowTooltip,i=_i(n,vd),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},VTe=function(t){return!t||!t.length?!1:t.some(function(n){var r=es(n&&n.type);return r&&r.indexOf("Bar")>=0})},w$=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"}},HTe=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,f=l===void 0?{}:l,c=r.width,h=r.height,m=r.children,g=r.margin||{},x=_i(m,vd),_=_i(m,zf),w=Object.keys(f).reduce(function(P,R){var I=f[R],V=I.orientation;return!I.mirror&&!I.hide?Ie(Ie({},P),{},mt({},V,P[V]+I.width)):P},{left:g.left||0,right:g.right||0}),S=Object.keys(o).reduce(function(P,R){var I=o[R],V=I.orientation;return!I.mirror&&!I.hide?Ie(Ie({},P),{},mt({},V,Ci(P,"".concat(V))+I.height)):P},{top:g.top||0,bottom:g.bottom||0}),O=Ie(Ie({},S),w),C=O.bottom;x&&(O.bottom+=x.props.height||vd.defaultProps.height),_&&n&&(O=F_e(O,i,r,n));var T=c-O.left-O.right,j=h-O.top-O.bottom;return Ie(Ie({brushBottom:C},O),{},{width:Math.max(T,0),height:Math.max(j,0)})},WTe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},E3=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,f=t.axisComponents,c=t.legendContent,h=t.formatAxisMap,m=t.defaultProps,g=function(O,C){var T=C.graphicalItems,j=C.stackGroups,P=C.offset,R=C.updateId,I=C.dataStartIndex,V=C.dataEndIndex,G=O.barSize,W=O.layout,K=O.barGap,ne=O.barCategoryGap,le=O.maxBarSize,Q=w$(W),J=Q.numericAxisName,H=Q.cateAxisName,B=VTe(T),z=[];return T.forEach(function(F,M){var k=$_(O.data,{graphicalItems:[F],dataStartIndex:I,dataEndIndex:V}),te=F.type.defaultProps!==void 0?Ie(Ie({},F.type.defaultProps),F.props):F.props,Z=te.dataKey,oe=te.maxBarSize,he=te["".concat(J,"Id")],de=te["".concat(H,"Id")],be={},$=f.reduce(function($e,Fe){var _e=C["".concat(Fe.axisType,"Map")],Se=te["".concat(Fe.axisType,"Id")];_e&&_e[Se]||Fe.axisType==="zAxis"||dc();var De=_e[Se];return Ie(Ie({},$e),{},mt(mt({},Fe.axisType,De),"".concat(Fe.axisType,"Ticks"),Xo(De)))},be),q=$[H],ee=$["".concat(H,"Ticks")],fe=j&&j[he]&&j[he].hasStack&&J_e(F,j[he].stackGroups),X=es(F.type).indexOf("Bar")>=0,ue=Wb(q,ee),pe=[],ye=B&&U_e({barSize:G,stackGroups:j,totalSize:WTe($,H)});if(X){var me,we,Te=ht(oe)?le:oe,Le=(me=(we=Wb(q,ee,!0))!==null&&we!==void 0?we:Te)!==null&&me!==void 0?me:0;pe=z_e({barGap:K,barCategoryGap:ne,bandSize:Le!==ue?Le:ue,sizeList:ye[de],maxBarSize:Te}),Le!==ue&&(pe=pe.map(function($e){return Ie(Ie({},$e),{},{position:Ie(Ie({},$e.position),{},{offset:$e.position.offset-Le/2})})}))}var ze=F&&F.type&&F.type.getComposedData;ze&&z.push({props:Ie(Ie({},ze(Ie(Ie({},$),{},{displayedData:k,props:O,dataKey:Z,item:F,bandSize:ue,barPosition:pe,offset:P,stackedData:fe,layout:W,dataStartIndex:I,dataEndIndex:V}))),{},mt(mt(mt({key:F.key||"item-".concat(M)},J,$[J]),H,$[H]),"animationId",R)),childIndex:Vhe(F,O.children),item:F})}),z},x=function(O,C){var T=O.props,j=O.dataStartIndex,P=O.dataEndIndex,R=O.updateId;if(!LD({props:T}))return null;var I=T.children,V=T.layout,G=T.stackOffset,W=T.data,K=T.reverseStackOrder,ne=w$(V),le=ne.numericAxisName,Q=ne.cateAxisName,J=qr(I,r),H=X_e(W,J,"".concat(le,"Id"),"".concat(Q,"Id"),G,K),B=f.reduce(function(te,Z){var oe="".concat(Z.axisType,"Map");return Ie(Ie({},te),{},mt({},oe,FTe(T,Ie(Ie({},Z),{},{graphicalItems:J,stackGroups:Z.axisType===le&&H,dataStartIndex:j,dataEndIndex:P}))))},{}),z=HTe(Ie(Ie({},B),{},{props:T,graphicalItems:J}),C==null?void 0:C.legendBBox);Object.keys(B).forEach(function(te){B[te]=h(T,B[te],z,te.replace("Map",""),n)});var F=B["".concat(Q,"Map")],M=qTe(F),k=g(T,Ie(Ie({},B),{},{dataStartIndex:j,dataEndIndex:P,updateId:R,graphicalItems:J,stackGroups:H,offset:z}));return Ie(Ie({formattedGraphicalItems:k,graphicalItems:J,offset:z,stackGroups:H},M),B)},_=function(S){function O(C){var T,j,P;return ETe(this,O),P=ATe(this,O,[C]),mt(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),mt(P,"accessibilityManager",new fTe),mt(P,"handleLegendBBoxUpdate",function(R){if(R){var I=P.state,V=I.dataStartIndex,G=I.dataEndIndex,W=I.updateId;P.setState(Ie({legendBBox:R},x({props:P.props,dataStartIndex:V,dataEndIndex:G,updateId:W},Ie(Ie({},P.state),{},{legendBBox:R}))))}}),mt(P,"handleReceiveSyncEvent",function(R,I,V){if(P.props.syncId===R){if(V===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(I)}}),mt(P,"handleBrushChange",function(R){var I=R.startIndex,V=R.endIndex;if(I!==P.state.dataStartIndex||V!==P.state.dataEndIndex){var G=P.state.updateId;P.setState(function(){return Ie({dataStartIndex:I,dataEndIndex:V},x({props:P.props,dataStartIndex:I,dataEndIndex:V,updateId:G},P.state))}),P.triggerSyncEvent({dataStartIndex:I,dataEndIndex:V})}}),mt(P,"handleMouseEnter",function(R){var I=P.getMouseInfo(R);if(I){var V=Ie(Ie({},I),{},{isTooltipActive:!0});P.setState(V),P.triggerSyncEvent(V);var G=P.props.onMouseEnter;dt(G)&&G(V,R)}}),mt(P,"triggeredAfterMouseMove",function(R){var I=P.getMouseInfo(R),V=I?Ie(Ie({},I),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(V),P.triggerSyncEvent(V);var G=P.props.onMouseMove;dt(G)&&G(V,R)}),mt(P,"handleItemMouseEnter",function(R){P.setState(function(){return{isTooltipActive:!0,activeItem:R,activePayload:R.tooltipPayload,activeCoordinate:R.tooltipPosition||{x:R.cx,y:R.cy}}})}),mt(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),mt(P,"handleMouseMove",function(R){R.persist(),P.throttleTriggeredAfterMouseMove(R)}),mt(P,"handleMouseLeave",function(R){P.throttleTriggeredAfterMouseMove.cancel();var I={isTooltipActive:!1};P.setState(I),P.triggerSyncEvent(I);var V=P.props.onMouseLeave;dt(V)&&V(I,R)}),mt(P,"handleOuterEvent",function(R){var I=qhe(R),V=Ci(P.props,"".concat(I));if(I&&dt(V)){var G,W;/.*touch.*/i.test(I)?W=P.getMouseInfo(R.changedTouches[0]):W=P.getMouseInfo(R),V((G=W)!==null&&G!==void 0?G:{},R)}}),mt(P,"handleClick",function(R){var I=P.getMouseInfo(R);if(I){var V=Ie(Ie({},I),{},{isTooltipActive:!0});P.setState(V),P.triggerSyncEvent(V);var G=P.props.onClick;dt(G)&&G(V,R)}}),mt(P,"handleMouseDown",function(R){var I=P.props.onMouseDown;if(dt(I)){var V=P.getMouseInfo(R);I(V,R)}}),mt(P,"handleMouseUp",function(R){var I=P.props.onMouseUp;if(dt(I)){var V=P.getMouseInfo(R);I(V,R)}}),mt(P,"handleTouchMove",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(R.changedTouches[0])}),mt(P,"handleTouchStart",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.handleMouseDown(R.changedTouches[0])}),mt(P,"handleTouchEnd",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.handleMouseUp(R.changedTouches[0])}),mt(P,"handleDoubleClick",function(R){var I=P.props.onDoubleClick;if(dt(I)){var V=P.getMouseInfo(R);I(V,R)}}),mt(P,"handleContextMenu",function(R){var I=P.props.onContextMenu;if(dt(I)){var V=P.getMouseInfo(R);I(V,R)}}),mt(P,"triggerSyncEvent",function(R){P.props.syncId!==void 0&&_E.emit(xE,P.props.syncId,R,P.eventEmitterSymbol)}),mt(P,"applySyncEvent",function(R){var I=P.props,V=I.layout,G=I.syncMethod,W=P.state.updateId,K=R.dataStartIndex,ne=R.dataEndIndex;if(R.dataStartIndex!==void 0||R.dataEndIndex!==void 0)P.setState(Ie({dataStartIndex:K,dataEndIndex:ne},x({props:P.props,dataStartIndex:K,dataEndIndex:ne,updateId:W},P.state)));else if(R.activeTooltipIndex!==void 0){var le=R.chartX,Q=R.chartY,J=R.activeTooltipIndex,H=P.state,B=H.offset,z=H.tooltipTicks;if(!B)return;if(typeof G=="function")J=G(z,R);else if(G==="value"){J=-1;for(var F=0;F<z.length;F++)if(z[F].value===R.activeLabel){J=F;break}}var M=Ie(Ie({},B),{},{x:B.left,y:B.top}),k=Math.min(le,M.x+M.width),te=Math.min(Q,M.y+M.height),Z=z[J]&&z[J].value,oe=nj(P.state,P.props.data,J),he=z[J]?{x:V==="horizontal"?z[J].coordinate:k,y:V==="horizontal"?te:z[J].coordinate}:rH;P.setState(Ie(Ie({},R),{},{activeLabel:Z,activeCoordinate:he,activePayload:oe,activeTooltipIndex:J}))}else P.setState(R)}),mt(P,"renderCursor",function(R){var I,V=P.state,G=V.isTooltipActive,W=V.activeCoordinate,K=V.activePayload,ne=V.offset,le=V.activeTooltipIndex,Q=V.tooltipAxisBandSize,J=P.getTooltipEventType(),H=(I=R.props.active)!==null&&I!==void 0?I:G,B=P.props.layout,z=R.key||"_recharts-cursor";return ae.createElement(yTe,{key:z,activeCoordinate:W,activePayload:K,activeTooltipIndex:le,chartName:n,element:R,isActive:H,layout:B,offset:ne,tooltipAxisBandSize:Q,tooltipEventType:J})}),mt(P,"renderPolarAxis",function(R,I,V){var G=Ci(R,"type.axisType"),W=Ci(P.state,"".concat(G,"Map")),K=R.type.defaultProps,ne=K!==void 0?Ie(Ie({},K),R.props):R.props,le=W&&W[ne["".concat(G,"Id")]];return U.cloneElement(R,Ie(Ie({},le),{},{className:ke(G,le.className),key:R.key||"".concat(I,"-").concat(V),ticks:Xo(le,!0)}))}),mt(P,"renderPolarGrid",function(R){var I=R.props,V=I.radialLines,G=I.polarAngles,W=I.polarRadius,K=P.state,ne=K.radiusAxisMap,le=K.angleAxisMap,Q=xl(ne),J=xl(le),H=J.cx,B=J.cy,z=J.innerRadius,F=J.outerRadius;return U.cloneElement(R,{polarAngles:Array.isArray(G)?G:Xo(J,!0).map(function(M){return M.coordinate}),polarRadius:Array.isArray(W)?W:Xo(Q,!0).map(function(M){return M.coordinate}),cx:H,cy:B,innerRadius:z,outerRadius:F,key:R.key||"polar-grid",radialLines:V})}),mt(P,"renderLegend",function(){var R=P.state.formattedGraphicalItems,I=P.props,V=I.children,G=I.width,W=I.height,K=P.props.margin||{},ne=G-(K.left||0)-(K.right||0),le=Rq({children:V,formattedGraphicalItems:R,legendWidth:ne,legendContent:c});if(!le)return null;var Q=le.item,J=y$(le,bTe);return U.cloneElement(Q,Ie(Ie({},J),{},{chartWidth:G,chartHeight:W,margin:K,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),mt(P,"renderTooltip",function(){var R,I=P.props,V=I.children,G=I.accessibilityLayer,W=_i(V,Gi);if(!W)return null;var K=P.state,ne=K.isTooltipActive,le=K.activeCoordinate,Q=K.activePayload,J=K.activeLabel,H=K.offset,B=(R=W.props.active)!==null&&R!==void 0?R:ne;return U.cloneElement(W,{viewBox:Ie(Ie({},H),{},{x:H.left,y:H.top}),active:B,label:J,payload:B?Q:[],coordinate:le,accessibilityLayer:G})}),mt(P,"renderBrush",function(R){var I=P.props,V=I.margin,G=I.data,W=P.state,K=W.offset,ne=W.dataStartIndex,le=W.dataEndIndex,Q=W.updateId;return U.cloneElement(R,{key:R.key||"_recharts-brush",onChange:ly(P.handleBrushChange,R.props.onChange),data:G,x:Ze(R.props.x)?R.props.x:K.left,y:Ze(R.props.y)?R.props.y:K.top+K.height+K.brushBottom-(V.bottom||0),width:Ze(R.props.width)?R.props.width:K.width,startIndex:ne,endIndex:le,updateId:"brush-".concat(Q)})}),mt(P,"renderReferenceElement",function(R,I,V){if(!R)return null;var G=P,W=G.clipPathId,K=P.state,ne=K.xAxisMap,le=K.yAxisMap,Q=K.offset,J=R.type.defaultProps||{},H=R.props,B=H.xAxisId,z=B===void 0?J.xAxisId:B,F=H.yAxisId,M=F===void 0?J.yAxisId:F;return U.cloneElement(R,{key:R.key||"".concat(I,"-").concat(V),xAxis:ne[z],yAxis:le[M],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:W})}),mt(P,"renderActivePoints",function(R){var I=R.item,V=R.activePoint,G=R.basePoint,W=R.childIndex,K=R.isRange,ne=[],le=I.props.key,Q=I.item.type.defaultProps!==void 0?Ie(Ie({},I.item.type.defaultProps),I.item.props):I.item.props,J=Q.activeDot,H=Q.dataKey,B=Ie(Ie({index:W,dataKey:H,cx:V.x,cy:V.y,r:4,fill:h3(I.item),strokeWidth:2,stroke:"#fff",payload:V.payload,value:V.value},at(J,!1)),wb(J));return ne.push(O.renderActiveDot(J,B,"".concat(le,"-activePoint-").concat(W))),G?ne.push(O.renderActiveDot(J,Ie(Ie({},B),{},{cx:G.x,cy:G.y}),"".concat(le,"-basePoint-").concat(W))):K&&ne.push(null),ne}),mt(P,"renderGraphicChild",function(R,I,V){var G=P.filterFormatItem(R,I,V);if(!G)return null;var W=P.getTooltipEventType(),K=P.state,ne=K.isTooltipActive,le=K.tooltipAxis,Q=K.activeTooltipIndex,J=K.activeLabel,H=P.props.children,B=_i(H,Gi),z=G.props,F=z.points,M=z.isRange,k=z.baseLine,te=G.item.type.defaultProps!==void 0?Ie(Ie({},G.item.type.defaultProps),G.item.props):G.item.props,Z=te.activeDot,oe=te.hide,he=te.activeBar,de=te.activeShape,be=!!(!oe&&ne&&B&&(Z||he||de)),$={};W!=="axis"&&B&&B.props.trigger==="click"?$={onClick:ly(P.handleItemMouseEnter,R.props.onClick)}:W!=="axis"&&($={onMouseLeave:ly(P.handleItemMouseLeave,R.props.onMouseLeave),onMouseEnter:ly(P.handleItemMouseEnter,R.props.onMouseEnter)});var q=U.cloneElement(R,Ie(Ie({},G.props),$));function ee(Fe){return typeof le.dataKey=="function"?le.dataKey(Fe.payload):null}if(be)if(Q>=0){var fe,X;if(le.dataKey&&!le.allowDuplicatedCategory){var ue=typeof le.dataKey=="function"?ee:"payload.".concat(le.dataKey.toString());fe=xb(F,ue,J),X=M&&k&&xb(k,ue,J)}else fe=F==null?void 0:F[Q],X=M&&k&&k[Q];if(de||he){var pe=R.props.activeIndex!==void 0?R.props.activeIndex:Q;return[U.cloneElement(R,Ie(Ie(Ie({},G.props),$),{},{activeIndex:pe})),null,null]}if(!ht(fe))return[q].concat(jd(P.renderActivePoints({item:G,activePoint:fe,basePoint:X,childIndex:Q,isRange:M})))}else{var ye,me=(ye=P.getItemByXY(P.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:q},we=me.graphicalItem,Te=we.item,Le=Te===void 0?R:Te,ze=we.childIndex,$e=Ie(Ie(Ie({},G.props),$),{},{activeIndex:ze});return[U.cloneElement(Le,$e),null,null]}return M?[q,null,null]:[q,null]}),mt(P,"renderCustomized",function(R,I,V){return U.cloneElement(R,Ie(Ie({key:"recharts-customized-".concat(V)},P.props),P.state))}),mt(P,"renderMap",{CartesianGrid:{handler:hy,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:hy},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:hy},YAxis:{handler:hy},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((T=C.id)!==null&&T!==void 0?T:Gl("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=PF(P.triggeredAfterMouseMove,(j=C.throttleDelay)!==null&&j!==void 0?j:1e3/60),P.state={},P}return RTe(O,S),TTe(O,[{key:"componentDidMount",value:function(){var T,j;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,j=T.children,P=T.data,R=T.height,I=T.layout,V=_i(j,Gi);if(V){var G=V.props.defaultIndex;if(!(typeof G!="number"||G<0||G>this.state.tooltipTicks.length-1)){var W=this.state.tooltipTicks[G]&&this.state.tooltipTicks[G].value,K=nj(this.state,P,G,W),ne=this.state.tooltipTicks[G].coordinate,le=(this.state.offset.top+R)/2,Q=I==="horizontal",J=Q?{x:ne,y:le}:{y:ne,x:le},H=this.state.formattedGraphicalItems.find(function(z){var F=z.item;return F.type.name==="Scatter"});H&&(J=Ie(Ie({},J),H.props.points[G].tooltipPosition),K=H.props.points[G].tooltipPayload);var B={activeTooltipIndex:G,isTooltipActive:!0,activeLabel:W,activePayload:K,activeCoordinate:J};this.setState(B),this.renderCursor(V),this.accessibilityManager.setIndex(G)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,j){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==j.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var P,R;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(R=this.props.margin.top)!==null&&R!==void 0?R:0}})}return null}},{key:"componentDidUpdate",value:function(T){DT([_i(T.children,Gi)],[_i(this.props.children,Gi)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=_i(this.props.children,Gi);if(T&&typeof T.props.shared=="boolean"){var j=T.props.shared?"axis":"item";return l.indexOf(j)>=0?j:a}return a}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var j=this.container,P=j.getBoundingClientRect(),R=Rge(P),I={chartX:Math.round(T.pageX-R.left),chartY:Math.round(T.pageY-R.top)},V=P.width/j.offsetWidth||1,G=this.inRange(I.chartX,I.chartY,V);if(!G)return null;var W=this.state,K=W.xAxisMap,ne=W.yAxisMap,le=this.getTooltipEventType(),Q=_$(this.state,this.props.data,this.props.layout,G);if(le!=="axis"&&K&&ne){var J=xl(K).scale,H=xl(ne).scale,B=J&&J.invert?J.invert(I.chartX):null,z=H&&H.invert?H.invert(I.chartY):null;return Ie(Ie({},I),{},{xValue:B,yValue:z},Q)}return Q?Ie(Ie({},I),Q):null}},{key:"inRange",value:function(T,j){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=this.props.layout,I=T/P,V=j/P;if(R==="horizontal"||R==="vertical"){var G=this.state.offset,W=I>=G.left&&I<=G.left+G.width&&V>=G.top&&V<=G.top+G.height;return W?{x:I,y:V}:null}var K=this.state,ne=K.angleAxisMap,le=K.radiusAxisMap;if(ne&&le){var Q=xl(ne);return wI({x:I,y:V},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,j=this.getTooltipEventType(),P=_i(T,Gi),R={};P&&j==="axis"&&(P.props.trigger==="click"?R={onClick:this.handleClick}:R={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var I=wb(this.props,this.handleOuterEvent);return Ie(Ie({},I),R)}},{key:"addListener",value:function(){_E.on(xE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){_E.removeListener(xE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,j,P){for(var R=this.state.formattedGraphicalItems,I=0,V=R.length;I<V;I++){var G=R[I];if(G.item===T||G.props.key===T.key||j===es(G.item.type)&&P===G.childIndex)return G}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,j=this.state.offset,P=j.left,R=j.top,I=j.height,V=j.width;return ae.createElement("defs",null,ae.createElement("clipPath",{id:T},ae.createElement("rect",{x:P,y:R,height:I,width:V})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(j,P){var R=g$(P,2),I=R[0],V=R[1];return Ie(Ie({},j),{},mt({},I,V.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(j,P){var R=g$(P,2),I=R[0],V=R[1];return Ie(Ie({},j),{},mt({},I,V.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var j;return(j=this.state.xAxisMap)===null||j===void 0||(j=j[T])===null||j===void 0?void 0:j.scale}},{key:"getYScaleByAxisId",value:function(T){var j;return(j=this.state.yAxisMap)===null||j===void 0||(j=j[T])===null||j===void 0?void 0:j.scale}},{key:"getItemByXY",value:function(T){var j=this.state,P=j.formattedGraphicalItems,R=j.activeItem;if(P&&P.length)for(var I=0,V=P.length;I<V;I++){var G=P[I],W=G.props,K=G.item,ne=K.type.defaultProps!==void 0?Ie(Ie({},K.type.defaultProps),K.props):K.props,le=es(K.type);if(le==="Bar"){var Q=(W.data||[]).find(function(z){return Vwe(T,z)});if(Q)return{graphicalItem:G,payload:Q}}else if(le==="RadialBar"){var J=(W.data||[]).find(function(z){return wI(T,z)});if(J)return{graphicalItem:G,payload:J}}else if(P_(G,R)||R_(G,R)||$m(G,R)){var H=pSe({graphicalItem:G,activeTooltipItem:R,itemData:ne.data}),B=ne.activeIndex===void 0?H:ne.activeIndex;return{graphicalItem:Ie(Ie({},G),{},{childIndex:B}),payload:$m(G,R)?ne.data[H]:G.props.data[H]}}}return null}},{key:"render",value:function(){var T=this;if(!LD(this))return null;var j=this.props,P=j.children,R=j.className,I=j.width,V=j.height,G=j.style,W=j.compact,K=j.title,ne=j.desc,le=y$(j,_Te),Q=at(le,!1);if(W)return ae.createElement(Y7,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ae.createElement(IT,If({},Q,{width:I,height:V,title:K,desc:ne}),this.renderClipPath(),kD(P,this.renderMap)));if(this.props.accessibilityLayer){var J,H;Q.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,Q.role=(H=this.props.role)!==null&&H!==void 0?H:"application",Q.onKeyDown=function(z){T.accessibilityManager.keyboardEvent(z)},Q.onFocus=function(){T.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return ae.createElement(Y7,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ae.createElement("div",If({className:ke("recharts-wrapper",R),style:Ie({position:"relative",cursor:"default",width:I,height:V},G)},B,{ref:function(F){T.container=F}}),ae.createElement(IT,If({},Q,{width:I,height:V,title:K,desc:ne,style:ITe}),this.renderClipPath(),kD(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(U.Component);mt(_,"displayName",n),mt(_,"defaultProps",Ie({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),mt(_,"getDerivedStateFromProps",function(S,O){var C=S.dataKey,T=S.data,j=S.children,P=S.width,R=S.height,I=S.layout,V=S.stackOffset,G=S.margin,W=O.dataStartIndex,K=O.dataEndIndex;if(O.updateId===void 0){var ne=x$(S);return Ie(Ie(Ie({},ne),{},{updateId:0},x(Ie(Ie({props:S},ne),{},{updateId:0}),O)),{},{prevDataKey:C,prevData:T,prevWidth:P,prevHeight:R,prevLayout:I,prevStackOffset:V,prevMargin:G,prevChildren:j})}if(C!==O.prevDataKey||T!==O.prevData||P!==O.prevWidth||R!==O.prevHeight||I!==O.prevLayout||V!==O.prevStackOffset||!Uf(G,O.prevMargin)){var le=x$(S),Q={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},J=Ie(Ie({},_$(O,T,I)),{},{updateId:O.updateId+1}),H=Ie(Ie(Ie({},le),Q),J);return Ie(Ie(Ie({},H),x(Ie({props:S},H),O)),{},{prevDataKey:C,prevData:T,prevWidth:P,prevHeight:R,prevLayout:I,prevStackOffset:V,prevMargin:G,prevChildren:j})}if(!DT(j,O.prevChildren)){var B,z,F,M,k=_i(j,vd),te=k&&(B=(z=k.props)===null||z===void 0?void 0:z.startIndex)!==null&&B!==void 0?B:W,Z=k&&(F=(M=k.props)===null||M===void 0?void 0:M.endIndex)!==null&&F!==void 0?F:K,oe=te!==W||Z!==K,he=!ht(T),de=he&&!oe?O.updateId:O.updateId+1;return Ie(Ie({updateId:de},x(Ie(Ie({props:S},O),{},{updateId:de,dataStartIndex:te,dataEndIndex:Z}),O)),{},{prevChildren:j,dataStartIndex:te,dataEndIndex:Z})}return null}),mt(_,"renderActiveDot",function(S,O,C){var T;return U.isValidElement(S)?T=U.cloneElement(S,O):dt(S)?T=S(O):T=ae.createElement(gv,O),ae.createElement(Ot,{className:"recharts-active-dot",key:C},T)});var w=U.forwardRef(function(O,C){return ae.createElement(_,If({},O,{ref:C}))});return w.displayName=_.displayName,w},GTe=E3({chartName:"LineChart",GraphicalChild:Zd,axisComponents:[{axisType:"xAxis",AxisComp:Xd},{axisType:"yAxis",AxisComp:Qd}],formatAxisMap:mV}),YTe=E3({chartName:"PieChart",GraphicalChild:fo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:j_},{axisType:"radiusAxis",AxisComp:T_}],formatAxisMap:u1e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),KTe=E3({chartName:"ComposedChart",GraphicalChild:[Zd,xc,ns,I_],axisComponents:[{axisType:"xAxis",AxisComp:Xd},{axisType:"yAxis",AxisComp:Qd},{axisType:"zAxis",AxisComp:k_}],formatAxisMap:mV});function aH(e,t){const n=U.useRef(t);U.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 ZTe=1;function XTe(e){return Object.freeze({__version:ZTe,map:e})}function QTe(e,t){return Object.freeze({...e,...t})}const C3=U.createContext(null);function oH(){const e=U.use(C3);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function JTe(e){function t(n,r){const{instance:i,context:a}=e(n).current;U.useImperativeHandle(r,()=>i);const{children:o}=n;return o==null?null:ae.createElement(C3,{value:a},o)}return U.forwardRef(t)}function eAe(e){function t(n,r){const[i,a]=U.useState(!1),{instance:o}=e(n,a).current;U.useImperativeHandle(r,()=>o),U.useEffect(function(){i&&o.update()},[o,i,n.children]);const l=o._contentNode;return l?q0.createPortal(n.children,l):null}return U.forwardRef(t)}function tAe(e){function t(n,r){const{instance:i}=e(n).current;return U.useImperativeHandle(r,()=>i),null}return U.forwardRef(t)}function sH(e,t){const n=U.useRef(void 0);U.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 T3(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function nAe(e,t){return function(r,i){const a=oH(),o=e(T3(r,a),a);return aH(a.map,r.attribution),sH(o.current,r.eventHandlers),t(o.current,a,r,i),o}}var jp={exports:{}};/* @preserve
|
||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/var rAe=jp.exports,S$;function iAe(){return S$||(S$=1,function(e,t){(function(n,r){r(t)})(rAe,function(n){var r="1.9.4";function i(d){var v,E,D,Y;for(E=1,D=arguments.length;E<D;E++){Y=arguments[E];for(v in Y)d[v]=Y[v]}return d}var a=Object.create||function(){function d(){}return function(v){return d.prototype=v,new d}}();function o(d,v){var E=Array.prototype.slice;if(d.bind)return d.bind.apply(d,E.call(arguments,1));var D=E.call(arguments,2);return function(){return d.apply(v,D.length?D.concat(E.call(arguments)):arguments)}}var l=0;function f(d){return"_leaflet_id"in d||(d._leaflet_id=++l),d._leaflet_id}function c(d,v,E){var D,Y,se,ve;return ve=function(){D=!1,Y&&(se.apply(E,Y),Y=!1)},se=function(){D?Y=arguments:(d.apply(E,arguments),setTimeout(ve,v),D=!0)},se}function h(d,v,E){var D=v[1],Y=v[0],se=D-Y;return d===D&&E?d:((d-Y)%se+se)%se+Y}function m(){return!1}function g(d,v){if(v===!1)return d;var E=Math.pow(10,v===void 0?6:v);return Math.round(d*E)/E}function x(d){return d.trim?d.trim():d.replace(/^\s+|\s+$/g,"")}function _(d){return x(d).split(/\s+/)}function w(d,v){Object.prototype.hasOwnProperty.call(d,"options")||(d.options=d.options?a(d.options):{});for(var E in v)d.options[E]=v[E];return d.options}function S(d,v,E){var D=[];for(var Y in d)D.push(encodeURIComponent(E?Y.toUpperCase():Y)+"="+encodeURIComponent(d[Y]));return(!v||v.indexOf("?")===-1?"?":"&")+D.join("&")}var O=/\{ *([\w_ -]+) *\}/g;function C(d,v){return d.replace(O,function(E,D){var Y=v[D];if(Y===void 0)throw new Error("No value provided for variable "+E);return typeof Y=="function"&&(Y=Y(v)),Y})}var T=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"};function j(d,v){for(var E=0;E<d.length;E++)if(d[E]===v)return E;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(d){return window["webkit"+d]||window["moz"+d]||window["ms"+d]}var I=0;function V(d){var v=+new Date,E=Math.max(0,16-(v-I));return I=v+E,window.setTimeout(d,E)}var G=window.requestAnimationFrame||R("RequestAnimationFrame")||V,W=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(d){window.clearTimeout(d)};function K(d,v,E){if(E&&G===V)d.call(v);else return G.call(window,o(d,v))}function ne(d){d&&W.call(window,d)}var le={__proto__:null,extend:i,create:a,bind:o,get lastId(){return l},stamp:f,throttle:c,wrapNum:h,falseFn:m,formatNum:g,trim:x,splitWords:_,setOptions:w,getParamString:S,template:C,isArray:T,indexOf:j,emptyImageUrl:P,requestFn:G,cancelFn:W,requestAnimFrame:K,cancelAnimFrame:ne};function Q(){}Q.extend=function(d){var v=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},E=v.__super__=this.prototype,D=a(E);D.constructor=v,v.prototype=D;for(var Y in this)Object.prototype.hasOwnProperty.call(this,Y)&&Y!=="prototype"&&Y!=="__super__"&&(v[Y]=this[Y]);return d.statics&&i(v,d.statics),d.includes&&(J(d.includes),i.apply(null,[D].concat(d.includes))),i(D,d),delete D.statics,delete D.includes,D.options&&(D.options=E.options?a(E.options):{},i(D.options,d.options)),D._initHooks=[],D.callInitHooks=function(){if(!this._initHooksCalled){E.callInitHooks&&E.callInitHooks.call(this),this._initHooksCalled=!0;for(var se=0,ve=D._initHooks.length;se<ve;se++)D._initHooks[se].call(this)}},v},Q.include=function(d){var v=this.prototype.options;return i(this.prototype,d),d.options&&(this.prototype.options=v,this.mergeOptions(d.options)),this},Q.mergeOptions=function(d){return i(this.prototype.options,d),this},Q.addInitHook=function(d){var v=Array.prototype.slice.call(arguments,1),E=typeof d=="function"?d:function(){this[d].apply(this,v)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(E),this};function J(d){if(!(typeof L>"u"||!L||!L.Mixin)){d=T(d)?d:[d];for(var v=0;v<d.length;v++)d[v]===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 H={on:function(d,v,E){if(typeof d=="object")for(var D in d)this._on(D,d[D],v);else{d=_(d);for(var Y=0,se=d.length;Y<se;Y++)this._on(d[Y],v,E)}return this},off:function(d,v,E){if(!arguments.length)delete this._events;else if(typeof d=="object")for(var D in d)this._off(D,d[D],v);else{d=_(d);for(var Y=arguments.length===1,se=0,ve=d.length;se<ve;se++)Y?this._off(d[se]):this._off(d[se],v,E)}return this},_on:function(d,v,E,D){if(typeof v!="function"){console.warn("wrong listener type: "+typeof v);return}if(this._listens(d,v,E)===!1){E===this&&(E=void 0);var Y={fn:v,ctx:E};D&&(Y.once=!0),this._events=this._events||{},this._events[d]=this._events[d]||[],this._events[d].push(Y)}},_off:function(d,v,E){var D,Y,se;if(this._events&&(D=this._events[d],!!D)){if(arguments.length===1){if(this._firingCount)for(Y=0,se=D.length;Y<se;Y++)D[Y].fn=m;delete this._events[d];return}if(typeof v!="function"){console.warn("wrong listener type: "+typeof v);return}var ve=this._listens(d,v,E);if(ve!==!1){var Ee=D[ve];this._firingCount&&(Ee.fn=m,this._events[d]=D=D.slice()),D.splice(ve,1)}}},fire:function(d,v,E){if(!this.listens(d,E))return this;var D=i({},v,{type:d,target:this,sourceTarget:v&&v.sourceTarget||this});if(this._events){var Y=this._events[d];if(Y){this._firingCount=this._firingCount+1||1;for(var se=0,ve=Y.length;se<ve;se++){var Ee=Y[se],Ne=Ee.fn;Ee.once&&this.off(d,Ne,Ee.ctx),Ne.call(Ee.ctx||this,D)}this._firingCount--}}return E&&this._propagateEvent(D),this},listens:function(d,v,E,D){typeof d!="string"&&console.warn('"string" type argument expected');var Y=v;typeof v!="function"&&(D=!!v,Y=void 0,E=void 0);var se=this._events&&this._events[d];if(se&&se.length&&this._listens(d,Y,E)!==!1)return!0;if(D){for(var ve in this._eventParents)if(this._eventParents[ve].listens(d,v,E,D))return!0}return!1},_listens:function(d,v,E){if(!this._events)return!1;var D=this._events[d]||[];if(!v)return!!D.length;E===this&&(E=void 0);for(var Y=0,se=D.length;Y<se;Y++)if(D[Y].fn===v&&D[Y].ctx===E)return Y;return!1},once:function(d,v,E){if(typeof d=="object")for(var D in d)this._on(D,d[D],v,!0);else{d=_(d);for(var Y=0,se=d.length;Y<se;Y++)this._on(d[Y],v,E,!0)}return this},addEventParent:function(d){return this._eventParents=this._eventParents||{},this._eventParents[f(d)]=d,this},removeEventParent:function(d){return this._eventParents&&delete this._eventParents[f(d)],this},_propagateEvent:function(d){for(var v in this._eventParents)this._eventParents[v].fire(d.type,i({layer:d.target,propagatedFrom:d.target},d),!0)}};H.addEventListener=H.on,H.removeEventListener=H.clearAllEventListeners=H.off,H.addOneTimeEventListener=H.once,H.fireEvent=H.fire,H.hasEventListeners=H.listens;var B=Q.extend(H);function z(d,v,E){this.x=E?Math.round(d):d,this.y=E?Math.round(v):v}var F=Math.trunc||function(d){return d>0?Math.floor(d):Math.ceil(d)};z.prototype={clone:function(){return new z(this.x,this.y)},add:function(d){return this.clone()._add(M(d))},_add:function(d){return this.x+=d.x,this.y+=d.y,this},subtract:function(d){return this.clone()._subtract(M(d))},_subtract:function(d){return this.x-=d.x,this.y-=d.y,this},divideBy:function(d){return this.clone()._divideBy(d)},_divideBy:function(d){return this.x/=d,this.y/=d,this},multiplyBy:function(d){return this.clone()._multiplyBy(d)},_multiplyBy:function(d){return this.x*=d,this.y*=d,this},scaleBy:function(d){return new z(this.x*d.x,this.y*d.y)},unscaleBy:function(d){return new z(this.x/d.x,this.y/d.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=F(this.x),this.y=F(this.y),this},distanceTo:function(d){d=M(d);var v=d.x-this.x,E=d.y-this.y;return Math.sqrt(v*v+E*E)},equals:function(d){return d=M(d),d.x===this.x&&d.y===this.y},contains:function(d){return d=M(d),Math.abs(d.x)<=Math.abs(this.x)&&Math.abs(d.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function M(d,v,E){return d instanceof z?d:T(d)?new z(d[0],d[1]):d==null?d:typeof d=="object"&&"x"in d&&"y"in d?new z(d.x,d.y):new z(d,v,E)}function k(d,v){if(d)for(var E=v?[d,v]:d,D=0,Y=E.length;D<Y;D++)this.extend(E[D])}k.prototype={extend:function(d){var v,E;if(!d)return this;if(d instanceof z||typeof d[0]=="number"||"x"in d)v=E=M(d);else if(d=te(d),v=d.min,E=d.max,!v||!E)return this;return!this.min&&!this.max?(this.min=v.clone(),this.max=E.clone()):(this.min.x=Math.min(v.x,this.min.x),this.max.x=Math.max(E.x,this.max.x),this.min.y=Math.min(v.y,this.min.y),this.max.y=Math.max(E.y,this.max.y)),this},getCenter:function(d){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,d)},getBottomLeft:function(){return M(this.min.x,this.max.y)},getTopRight:function(){return M(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(d){var v,E;return typeof d[0]=="number"||d instanceof z?d=M(d):d=te(d),d instanceof k?(v=d.min,E=d.max):v=E=d,v.x>=this.min.x&&E.x<=this.max.x&&v.y>=this.min.y&&E.y<=this.max.y},intersects:function(d){d=te(d);var v=this.min,E=this.max,D=d.min,Y=d.max,se=Y.x>=v.x&&D.x<=E.x,ve=Y.y>=v.y&&D.y<=E.y;return se&&ve},overlaps:function(d){d=te(d);var v=this.min,E=this.max,D=d.min,Y=d.max,se=Y.x>v.x&&D.x<E.x,ve=Y.y>v.y&&D.y<E.y;return se&&ve},isValid:function(){return!!(this.min&&this.max)},pad:function(d){var v=this.min,E=this.max,D=Math.abs(v.x-E.x)*d,Y=Math.abs(v.y-E.y)*d;return te(M(v.x-D,v.y-Y),M(E.x+D,E.y+Y))},equals:function(d){return d?(d=te(d),this.min.equals(d.getTopLeft())&&this.max.equals(d.getBottomRight())):!1}};function te(d,v){return!d||d instanceof k?d:new k(d,v)}function Z(d,v){if(d)for(var E=v?[d,v]:d,D=0,Y=E.length;D<Y;D++)this.extend(E[D])}Z.prototype={extend:function(d){var v=this._southWest,E=this._northEast,D,Y;if(d instanceof he)D=d,Y=d;else if(d instanceof Z){if(D=d._southWest,Y=d._northEast,!D||!Y)return this}else return d?this.extend(de(d)||oe(d)):this;return!v&&!E?(this._southWest=new he(D.lat,D.lng),this._northEast=new he(Y.lat,Y.lng)):(v.lat=Math.min(D.lat,v.lat),v.lng=Math.min(D.lng,v.lng),E.lat=Math.max(Y.lat,E.lat),E.lng=Math.max(Y.lng,E.lng)),this},pad:function(d){var v=this._southWest,E=this._northEast,D=Math.abs(v.lat-E.lat)*d,Y=Math.abs(v.lng-E.lng)*d;return new Z(new he(v.lat-D,v.lng-Y),new he(E.lat+D,E.lng+Y))},getCenter:function(){return new he((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 he(this.getNorth(),this.getWest())},getSouthEast:function(){return new he(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(d){typeof d[0]=="number"||d instanceof he||"lat"in d?d=de(d):d=oe(d);var v=this._southWest,E=this._northEast,D,Y;return d instanceof Z?(D=d.getSouthWest(),Y=d.getNorthEast()):D=Y=d,D.lat>=v.lat&&Y.lat<=E.lat&&D.lng>=v.lng&&Y.lng<=E.lng},intersects:function(d){d=oe(d);var v=this._southWest,E=this._northEast,D=d.getSouthWest(),Y=d.getNorthEast(),se=Y.lat>=v.lat&&D.lat<=E.lat,ve=Y.lng>=v.lng&&D.lng<=E.lng;return se&&ve},overlaps:function(d){d=oe(d);var v=this._southWest,E=this._northEast,D=d.getSouthWest(),Y=d.getNorthEast(),se=Y.lat>v.lat&&D.lat<E.lat,ve=Y.lng>v.lng&&D.lng<E.lng;return se&&ve},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(d,v){return d?(d=oe(d),this._southWest.equals(d.getSouthWest(),v)&&this._northEast.equals(d.getNorthEast(),v)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function oe(d,v){return d instanceof Z?d:new Z(d,v)}function he(d,v,E){if(isNaN(d)||isNaN(v))throw new Error("Invalid LatLng object: ("+d+", "+v+")");this.lat=+d,this.lng=+v,E!==void 0&&(this.alt=+E)}he.prototype={equals:function(d,v){if(!d)return!1;d=de(d);var E=Math.max(Math.abs(this.lat-d.lat),Math.abs(this.lng-d.lng));return E<=(v===void 0?1e-9:v)},toString:function(d){return"LatLng("+g(this.lat,d)+", "+g(this.lng,d)+")"},distanceTo:function(d){return $.distance(this,de(d))},wrap:function(){return $.wrapLatLng(this)},toBounds:function(d){var v=180*d/40075017,E=v/Math.cos(Math.PI/180*this.lat);return oe([this.lat-v,this.lng-E],[this.lat+v,this.lng+E])},clone:function(){return new he(this.lat,this.lng,this.alt)}};function de(d,v,E){return d instanceof he?d:T(d)&&typeof d[0]!="object"?d.length===3?new he(d[0],d[1],d[2]):d.length===2?new he(d[0],d[1]):null:d==null?d:typeof d=="object"&&"lat"in d?new he(d.lat,"lng"in d?d.lng:d.lon,d.alt):v===void 0?null:new he(d,v,E)}var be={latLngToPoint:function(d,v){var E=this.projection.project(d),D=this.scale(v);return this.transformation._transform(E,D)},pointToLatLng:function(d,v){var E=this.scale(v),D=this.transformation.untransform(d,E);return this.projection.unproject(D)},project:function(d){return this.projection.project(d)},unproject:function(d){return this.projection.unproject(d)},scale:function(d){return 256*Math.pow(2,d)},zoom:function(d){return Math.log(d/256)/Math.LN2},getProjectedBounds:function(d){if(this.infinite)return null;var v=this.projection.bounds,E=this.scale(d),D=this.transformation.transform(v.min,E),Y=this.transformation.transform(v.max,E);return new k(D,Y)},infinite:!1,wrapLatLng:function(d){var v=this.wrapLng?h(d.lng,this.wrapLng,!0):d.lng,E=this.wrapLat?h(d.lat,this.wrapLat,!0):d.lat,D=d.alt;return new he(E,v,D)},wrapLatLngBounds:function(d){var v=d.getCenter(),E=this.wrapLatLng(v),D=v.lat-E.lat,Y=v.lng-E.lng;if(D===0&&Y===0)return d;var se=d.getSouthWest(),ve=d.getNorthEast(),Ee=new he(se.lat-D,se.lng-Y),Ne=new he(ve.lat-D,ve.lng-Y);return new Z(Ee,Ne)}},$=i({},be,{wrapLng:[-180,180],R:6371e3,distance:function(d,v){var E=Math.PI/180,D=d.lat*E,Y=v.lat*E,se=Math.sin((v.lat-d.lat)*E/2),ve=Math.sin((v.lng-d.lng)*E/2),Ee=se*se+Math.cos(D)*Math.cos(Y)*ve*ve,Ne=2*Math.atan2(Math.sqrt(Ee),Math.sqrt(1-Ee));return this.R*Ne}}),q=6378137,ee={R:q,MAX_LATITUDE:85.0511287798,project:function(d){var v=Math.PI/180,E=this.MAX_LATITUDE,D=Math.max(Math.min(E,d.lat),-E),Y=Math.sin(D*v);return new z(this.R*d.lng*v,this.R*Math.log((1+Y)/(1-Y))/2)},unproject:function(d){var v=180/Math.PI;return new he((2*Math.atan(Math.exp(d.y/this.R))-Math.PI/2)*v,d.x*v/this.R)},bounds:function(){var d=q*Math.PI;return new k([-d,-d],[d,d])}()};function fe(d,v,E,D){if(T(d)){this._a=d[0],this._b=d[1],this._c=d[2],this._d=d[3];return}this._a=d,this._b=v,this._c=E,this._d=D}fe.prototype={transform:function(d,v){return this._transform(d.clone(),v)},_transform:function(d,v){return v=v||1,d.x=v*(this._a*d.x+this._b),d.y=v*(this._c*d.y+this._d),d},untransform:function(d,v){return v=v||1,new z((d.x/v-this._b)/this._a,(d.y/v-this._d)/this._c)}};function X(d,v,E,D){return new fe(d,v,E,D)}var ue=i({},$,{code:"EPSG:3857",projection:ee,transformation:function(){var d=.5/(Math.PI*ee.R);return X(d,.5,-d,.5)}()}),pe=i({},ue,{code:"EPSG:900913"});function ye(d){return document.createElementNS("http://www.w3.org/2000/svg",d)}function me(d,v){var E="",D,Y,se,ve,Ee,Ne;for(D=0,se=d.length;D<se;D++){for(Ee=d[D],Y=0,ve=Ee.length;Y<ve;Y++)Ne=Ee[Y],E+=(Y?"L":"M")+Ne.x+" "+Ne.y;E+=v?st.svg?"z":"x":""}return E||"M0 0"}var we=document.documentElement.style,Te="ActiveXObject"in window,Le=Te&&!document.addEventListener,ze="msLaunchUri"in navigator&&!("documentMode"in document),$e=Ln("webkit"),Fe=Ln("android"),_e=Ln("android 2")||Ln("android 3"),Se=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),De=Fe&&Ln("Google")&&Se<537&&!("AudioNode"in window),Me=!!window.opera,je=!ze&&Ln("chrome"),qe=Ln("gecko")&&!$e&&!Me&&!Te,Ge=!je&&Ln("safari"),Qe=Ln("phantom"),ct="OTransition"in we,ot=navigator.platform.indexOf("Win")===0,_t=Te&&"transition"in we,It="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!_e,Bt="MozPerspective"in we,Ut=!window.L_DISABLE_3D&&(_t||It||Bt)&&!ct&&!Qe,xr=typeof orientation<"u"||Ln("mobile"),Vn=xr&&$e,xs=xr&&It,ni=!window.PointerEvent&&window.MSPointerEvent,ws=!!(window.PointerEvent||ni),Da="ontouchstart"in window||!!window.TouchEvent,Sc=!window.L_NO_TOUCH&&(Da||ws),Ss=xr&&Me,ka=xr&&qe,yn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,pn=function(){var d=!1;try{var v=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassiveEventSupport",m,v),window.removeEventListener("testPassiveEventSupport",m,v)}catch{}return d}(),Qn=function(){return!!document.createElement("canvas").getContext}(),Hn=!!(document.createElementNS&&ye("svg").createSVGRect),rn=!!Hn&&function(){var d=document.createElement("div");return d.innerHTML="<svg/>",(d.firstChild&&d.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Nt=!Hn&&function(){try{var d=document.createElement("div");d.innerHTML='<v:shape adj="1"/>';var v=d.firstChild;return v.style.behavior="url(#default#VML)",v&&typeof v.adj=="object"}catch{return!1}}(),an=navigator.platform.indexOf("Mac")===0,Jn=navigator.platform.indexOf("Linux")===0;function Ln(d){return navigator.userAgent.toLowerCase().indexOf(d)>=0}var st={ie:Te,ielt9:Le,edge:ze,webkit:$e,android:Fe,android23:_e,androidStock:De,opera:Me,chrome:je,gecko:qe,safari:Ge,phantom:Qe,opera12:ct,win:ot,ie3d:_t,webkit3d:It,gecko3d:Bt,any3d:Ut,mobile:xr,mobileWebkit:Vn,mobileWebkit3d:xs,msPointer:ni,pointer:ws,touch:Sc,touchNative:Da,mobileOpera:Ss,mobileGecko:ka,retina:yn,passiveEvents:pn,canvas:Qn,svg:Hn,vml:Nt,inlineSvg:rn,mac:an,linux:Jn},Cv=st.msPointer?"MSPointerDown":"pointerdown",rh=st.msPointer?"MSPointerMove":"pointermove",Os=st.msPointer?"MSPointerUp":"pointerup",Oc=st.msPointer?"MSPointerCancel":"pointercancel",Ia={touchstart:Cv,touchmove:rh,touchend:Os,touchcancel:Oc},yo={touchstart:jv,touchmove:Jl,touchend:Jl,touchcancel:Jl},Mi={},bo=!1;function Bn(d,v,E){return v==="touchstart"&&K_(),yo[v]?(E=yo[v].bind(this,E),d.addEventListener(Ia[v],E,!1),E):(console.warn("wrong event specified:",v),m)}function Tv(d,v,E){if(!Ia[v]){console.warn("wrong event specified:",v);return}d.removeEventListener(Ia[v],E,!1)}function Av(d){Mi[d.pointerId]=d}function _o(d){Mi[d.pointerId]&&(Mi[d.pointerId]=d)}function xo(d){delete Mi[d.pointerId]}function K_(){bo||(document.addEventListener(Cv,Av,!0),document.addEventListener(rh,_o,!0),document.addEventListener(Os,xo,!0),document.addEventListener(Oc,xo,!0),bo=!0)}function Jl(d,v){if(v.pointerType!==(v.MSPOINTER_TYPE_MOUSE||"mouse")){v.touches=[];for(var E in Mi)v.touches.push(Mi[E]);v.changedTouches=[v],d(v)}}function jv(d,v){v.MSPOINTER_TYPE_TOUCH&&v.pointerType===v.MSPOINTER_TYPE_TOUCH&&jn(v),Jl(d,v)}function Z_(d){var v={},E,D;for(D in d)E=d[D],v[D]=E&&E.bind?E.bind(d):E;return d=v,v.type="dblclick",v.detail=2,v.isTrusted=!1,v._simulated=!0,v}var Ec=200;function Cc(d,v){d.addEventListener("dblclick",v);var E=0,D;function Y(se){if(se.detail!==1){D=se.detail;return}if(!(se.pointerType==="mouse"||se.sourceCapabilities&&!se.sourceCapabilities.firesTouchEvents)){var ve=oh(se);if(!(ve.some(function(Ne){return Ne instanceof HTMLLabelElement&&Ne.attributes.for})&&!ve.some(function(Ne){return Ne instanceof HTMLInputElement||Ne instanceof HTMLSelectElement}))){var Ee=Date.now();Ee-E<=Ec?(D++,D===2&&v(Z_(se))):D=1,E=Ee}}}return d.addEventListener("click",Y),{dblclick:v,simDblclick:Y}}function sa(d,v){d.removeEventListener("dblclick",v.dblclick),d.removeEventListener("click",v.simDblclick)}var eu=As(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Es=As(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),wo=Es==="webkitTransition"||Es==="OTransition"?Es+"End":"transitionend";function Tc(d){return typeof d=="string"?document.getElementById(d):d}function So(d,v){var E=d.style[v]||d.currentStyle&&d.currentStyle[v];if((!E||E==="auto")&&document.defaultView){var D=document.defaultView.getComputedStyle(d,null);E=D?D[v]:null}return E==="auto"?null:E}function Dt(d,v,E){var D=document.createElement(d);return D.className=v||"",E&&E.appendChild(D),D}function on(d){var v=d.parentNode;v&&v.removeChild(d)}function fr(d){for(;d.firstChild;)d.removeChild(d.firstChild)}function Oo(d){var v=d.parentNode;v&&v.lastChild!==d&&v.appendChild(d)}function Cs(d){var v=d.parentNode;v&&v.firstChild!==d&&v.insertBefore(d,v.firstChild)}function Ts(d,v){if(d.classList!==void 0)return d.classList.contains(v);var E=dr(d);return E.length>0&&new RegExp("(^|\\s)"+v+"(\\s|$)").test(E)}function wt(d,v){if(d.classList!==void 0)for(var E=_(v),D=0,Y=E.length;D<Y;D++)d.classList.add(E[D]);else if(!Ts(d,v)){var se=dr(d);ih(d,(se?se+" ":"")+v)}}function sn(d,v){d.classList!==void 0?d.classList.remove(v):ih(d,x((" "+dr(d)+" ").replace(" "+v+" "," ")))}function ih(d,v){d.className.baseVal===void 0?d.className=v:d.className.baseVal=v}function dr(d){return d.correspondingElement&&(d=d.correspondingElement),d.className.baseVal===void 0?d.className:d.className.baseVal}function wr(d,v){"opacity"in d.style?d.style.opacity=v:"filter"in d.style&&Pv(d,v)}function Pv(d,v){var E=!1,D="DXImageTransform.Microsoft.Alpha";try{E=d.filters.item(D)}catch{if(v===1)return}v=Math.round(v*100),E?(E.Enabled=v!==100,E.Opacity=v):d.style.filter+=" progid:"+D+"(opacity="+v+")"}function As(d){for(var v=document.documentElement.style,E=0;E<d.length;E++)if(d[E]in v)return d[E];return!1}function Wr(d,v,E){var D=v||new z(0,0);d.style[eu]=(st.ie3d?"translate("+D.x+"px,"+D.y+"px)":"translate3d("+D.x+"px,"+D.y+"px,0)")+(E?" scale("+E+")":"")}function Sn(d,v){d._leaflet_pos=v,st.any3d?Wr(d,v):(d.style.left=v.x+"px",d.style.top=v.y+"px")}function $a(d){return d._leaflet_pos||new z(0,0)}var Ni,tu,Ac;if("onselectstart"in document)Ni=function(){bt(window,"selectstart",jn)},tu=function(){zt(window,"selectstart",jn)};else{var js=As(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ni=function(){if(js){var d=document.documentElement.style;Ac=d[js],d[js]="none"}},tu=function(){js&&(document.documentElement.style[js]=Ac,Ac=void 0)}}function nu(){bt(window,"dragstart",jn)}function ah(){zt(window,"dragstart",jn)}var jc,Ps;function ru(d){for(;d.tabIndex===-1;)d=d.parentNode;d.style&&(Rs(),jc=d,Ps=d.style.outlineStyle,d.style.outlineStyle="none",bt(window,"keydown",Rs))}function Rs(){jc&&(jc.style.outlineStyle=Ps,jc=void 0,Ps=void 0,zt(window,"keydown",Rs))}function Eo(d){do d=d.parentNode;while((!d.offsetWidth||!d.offsetHeight)&&d!==document.body);return d}function Ba(d){var v=d.getBoundingClientRect();return{x:v.width/d.offsetWidth||1,y:v.height/d.offsetHeight||1,boundingClientRect:v}}var Rv={__proto__:null,TRANSFORM:eu,TRANSITION:Es,TRANSITION_END:wo,get:Tc,getStyle:So,create:Dt,remove:on,empty:fr,toFront:Oo,toBack:Cs,hasClass:Ts,addClass:wt,removeClass:sn,setClass:ih,getClass:dr,setOpacity:wr,testProp:As,setTransform:Wr,setPosition:Sn,getPosition:$a,get disableTextSelection(){return Ni},get enableTextSelection(){return tu},disableImageDrag:nu,enableImageDrag:ah,preventOutline:ru,restoreOutline:Rs,getSizedParentNode:Eo,getScale:Ba};function bt(d,v,E,D){if(v&&typeof v=="object")for(var Y in v)Co(d,Y,v[Y],E);else{v=_(v);for(var se=0,ve=v.length;se<ve;se++)Co(d,v[se],E,D)}return this}var ri="_leaflet_events";function zt(d,v,E,D){if(arguments.length===1)Li(d),delete d[ri];else if(v&&typeof v=="object")for(var Y in v)Di(d,Y,v[Y],E);else if(v=_(v),arguments.length===2)Li(d,function(Ee){return j(v,Ee)!==-1});else for(var se=0,ve=v.length;se<ve;se++)Di(d,v[se],E,D);return this}function Li(d,v){for(var E in d[ri]){var D=E.split(/\d/)[0];(!v||v(D))&&Di(d,D,null,null,E)}}var iu={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Co(d,v,E,D){var Y=v+f(E)+(D?"_"+f(D):"");if(d[ri]&&d[ri][Y])return this;var se=function(Ee){return E.call(D||d,Ee||window.event)},ve=se;!st.touchNative&&st.pointer&&v.indexOf("touch")===0?se=Bn(d,v,se):st.touch&&v==="dblclick"?se=Cc(d,se):"addEventListener"in d?v==="touchstart"||v==="touchmove"||v==="wheel"||v==="mousewheel"?d.addEventListener(iu[v]||v,se,st.passiveEvents?{passive:!1}:!1):v==="mouseenter"||v==="mouseleave"?(se=function(Ee){Ee=Ee||window.event,Ao(d,Ee)&&ve(Ee)},d.addEventListener(iu[v],se,!1)):d.addEventListener(v,ve,!1):d.attachEvent("on"+v,se),d[ri]=d[ri]||{},d[ri][Y]=se}function Di(d,v,E,D,Y){Y=Y||v+f(E)+(D?"_"+f(D):"");var se=d[ri]&&d[ri][Y];if(!se)return this;!st.touchNative&&st.pointer&&v.indexOf("touch")===0?Tv(d,v,se):st.touch&&v==="dblclick"?sa(d,se):"removeEventListener"in d?d.removeEventListener(iu[v]||v,se,!1):d.detachEvent("on"+v,se),d[ri][Y]=null}function la(d){return d.stopPropagation?d.stopPropagation():d.originalEvent?d.originalEvent._stopped=!0:d.cancelBubble=!0,this}function Ms(d){return Co(d,"wheel",la),this}function Ns(d){return bt(d,"mousedown touchstart dblclick contextmenu",la),d._leaflet_disable_click=!0,this}function jn(d){return d.preventDefault?d.preventDefault():d.returnValue=!1,this}function ki(d){return jn(d),la(d),this}function oh(d){if(d.composedPath)return d.composedPath();for(var v=[],E=d.target;E;)v.push(E),E=E.parentNode;return v}function hr(d,v){if(!v)return new z(d.clientX,d.clientY);var E=Ba(v),D=E.boundingClientRect;return new z((d.clientX-D.left)/E.x-v.clientLeft,(d.clientY-D.top)/E.y-v.clientTop)}var To=st.linux&&st.chrome?window.devicePixelRatio:st.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function au(d){return st.edge?d.wheelDeltaY/2:d.deltaY&&d.deltaMode===0?-d.deltaY/To:d.deltaY&&d.deltaMode===1?-d.deltaY*20:d.deltaY&&d.deltaMode===2?-d.deltaY*60:d.deltaX||d.deltaZ?0:d.wheelDelta?(d.wheelDeltaY||d.wheelDelta)/2:d.detail&&Math.abs(d.detail)<32765?-d.detail*20:d.detail?d.detail/-32765*60:0}function Ao(d,v){var E=v.relatedTarget;if(!E)return!0;try{for(;E&&E!==d;)E=E.parentNode}catch{return!1}return E!==d}var X_={__proto__:null,on:bt,off:zt,stopPropagation:la,disableScrollPropagation:Ms,disableClickPropagation:Ns,preventDefault:jn,stop:ki,getPropagationPath:oh,getMousePosition:hr,getWheelDelta:au,isExternalTarget:Ao,addListener:bt,removeListener:zt},Pc=B.extend({run:function(d,v,E,D){this.stop(),this._el=d,this._inProgress=!0,this._duration=E||.25,this._easeOutPower=1/Math.max(D||.5,.2),this._startPos=$a(d),this._offset=v.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=K(this._animate,this),this._step()},_step:function(d){var v=+new Date-this._startTime,E=this._duration*1e3;v<E?this._runFrame(this._easeOut(v/E),d):(this._runFrame(1),this._complete())},_runFrame:function(d,v){var E=this._startPos.add(this._offset.multiplyBy(d));v&&E._round(),Sn(this._el,E),this.fire("step")},_complete:function(){ne(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(d){return 1-Math.pow(1-d,this._easeOutPower)}}),Tt=B.extend({options:{crs:ue,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(d,v){v=w(this,v),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(d),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),v.maxBounds&&this.setMaxBounds(v.maxBounds),v.zoom!==void 0&&(this._zoom=this._limitZoom(v.zoom)),v.center&&v.zoom!==void 0&&this.setView(de(v.center),v.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Es&&st.any3d&&!st.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),bt(this._proxy,wo,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(d,v,E){if(v=v===void 0?this._zoom:this._limitZoom(v),d=this._limitCenter(de(d),v,this.options.maxBounds),E=E||{},this._stop(),this._loaded&&!E.reset&&E!==!0){E.animate!==void 0&&(E.zoom=i({animate:E.animate},E.zoom),E.pan=i({animate:E.animate,duration:E.duration},E.pan));var D=this._zoom!==v?this._tryAnimatedZoom&&this._tryAnimatedZoom(d,v,E.zoom):this._tryAnimatedPan(d,E.pan);if(D)return clearTimeout(this._sizeTimer),this}return this._resetView(d,v,E.pan&&E.pan.noMoveStart),this},setZoom:function(d,v){return this._loaded?this.setView(this.getCenter(),d,{zoom:v}):(this._zoom=d,this)},zoomIn:function(d,v){return d=d||(st.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+d,v)},zoomOut:function(d,v){return d=d||(st.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-d,v)},setZoomAround:function(d,v,E){var D=this.getZoomScale(v),Y=this.getSize().divideBy(2),se=d instanceof z?d:this.latLngToContainerPoint(d),ve=se.subtract(Y).multiplyBy(1-1/D),Ee=this.containerPointToLatLng(Y.add(ve));return this.setView(Ee,v,{zoom:E})},_getBoundsCenterZoom:function(d,v){v=v||{},d=d.getBounds?d.getBounds():oe(d);var E=M(v.paddingTopLeft||v.padding||[0,0]),D=M(v.paddingBottomRight||v.padding||[0,0]),Y=this.getBoundsZoom(d,!1,E.add(D));if(Y=typeof v.maxZoom=="number"?Math.min(v.maxZoom,Y):Y,Y===1/0)return{center:d.getCenter(),zoom:Y};var se=D.subtract(E).divideBy(2),ve=this.project(d.getSouthWest(),Y),Ee=this.project(d.getNorthEast(),Y),Ne=this.unproject(ve.add(Ee).divideBy(2).add(se),Y);return{center:Ne,zoom:Y}},fitBounds:function(d,v){if(d=oe(d),!d.isValid())throw new Error("Bounds are not valid.");var E=this._getBoundsCenterZoom(d,v);return this.setView(E.center,E.zoom,v)},fitWorld:function(d){return this.fitBounds([[-90,-180],[90,180]],d)},panTo:function(d,v){return this.setView(d,this._zoom,{pan:v})},panBy:function(d,v){if(d=M(d).round(),v=v||{},!d.x&&!d.y)return this.fire("moveend");if(v.animate!==!0&&!this.getSize().contains(d))return this._resetView(this.unproject(this.project(this.getCenter()).add(d)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Pc,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),v.noMoveStart||this.fire("movestart"),v.animate!==!1){wt(this._mapPane,"leaflet-pan-anim");var E=this._getMapPanePos().subtract(d).round();this._panAnim.run(this._mapPane,E,v.duration||.25,v.easeLinearity)}else this._rawPanBy(d),this.fire("move").fire("moveend");return this},flyTo:function(d,v,E){if(E=E||{},E.animate===!1||!st.any3d)return this.setView(d,v,E);this._stop();var D=this.project(this.getCenter()),Y=this.project(d),se=this.getSize(),ve=this._zoom;d=de(d),v=v===void 0?ve:v;var Ee=Math.max(se.x,se.y),Ne=Ee*this.getZoomScale(ve,v),He=Y.distanceTo(D)||1,et=1.42,nt=et*et;function it(bn){var Bi=bn?-1:1,fa=bn?Ne:Ee,Va=Ne*Ne-Ee*Ee+Bi*nt*nt*He*He,da=2*fa*nt*He,yu=Va/da,qc=Math.sqrt(yu*yu+1)-yu,bu=qc<1e-9?-18:Math.log(qc);return bu}function yt(bn){return(Math.exp(bn)-Math.exp(-bn))/2}function ln(bn){return(Math.exp(bn)+Math.exp(-bn))/2}function On(bn){return yt(bn)/ln(bn)}var tr=it(0);function Gr(bn){return Ee*(ln(tr)/ln(tr+et*bn))}function Zv(bn){return Ee*(ln(tr)*On(tr+et*bn)-yt(tr))/nt}function Xv(bn){return 1-Math.pow(1-bn,1.5)}var gu=Date.now(),Hs=(it(1)-tr)/et,Qv=E.duration?1e3*E.duration:1e3*Hs*.8;function Ws(){var bn=(Date.now()-gu)/Qv,Bi=Xv(bn)*Hs;bn<=1?(this._flyToFrame=K(Ws,this),this._move(this.unproject(D.add(Y.subtract(D).multiplyBy(Zv(Bi)/He)),ve),this.getScaleZoom(Ee/Gr(Bi),ve),{flyTo:!0})):this._move(d,v)._moveEnd(!0)}return this._moveStart(!0,E.noMoveStart),Ws.call(this),this},flyToBounds:function(d,v){var E=this._getBoundsCenterZoom(d,v);return this.flyTo(E.center,E.zoom,v)},setMaxBounds:function(d){return d=oe(d),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),d.isValid()?(this.options.maxBounds=d,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(d){var v=this.options.minZoom;return this.options.minZoom=d,this._loaded&&v!==d&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(d):this},setMaxZoom:function(d){var v=this.options.maxZoom;return this.options.maxZoom=d,this._loaded&&v!==d&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(d):this},panInsideBounds:function(d,v){this._enforcingBounds=!0;var E=this.getCenter(),D=this._limitCenter(E,this._zoom,oe(d));return E.equals(D)||this.panTo(D,v),this._enforcingBounds=!1,this},panInside:function(d,v){v=v||{};var E=M(v.paddingTopLeft||v.padding||[0,0]),D=M(v.paddingBottomRight||v.padding||[0,0]),Y=this.project(this.getCenter()),se=this.project(d),ve=this.getPixelBounds(),Ee=te([ve.min.add(E),ve.max.subtract(D)]),Ne=Ee.getSize();if(!Ee.contains(se)){this._enforcingBounds=!0;var He=se.subtract(Ee.getCenter()),et=Ee.extend(se).getSize().subtract(Ne);Y.x+=He.x<0?-et.x:et.x,Y.y+=He.y<0?-et.y:et.y,this.panTo(this.unproject(Y),v),this._enforcingBounds=!1}return this},invalidateSize:function(d){if(!this._loaded)return this;d=i({animate:!1,pan:!0},d===!0?{animate:!0}:d);var v=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var E=this.getSize(),D=v.divideBy(2).round(),Y=E.divideBy(2).round(),se=D.subtract(Y);return!se.x&&!se.y?this:(d.animate&&d.pan?this.panBy(se):(d.pan&&this._rawPanBy(se),this.fire("move"),d.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:v,newSize:E}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(d){if(d=this._locateOptions=i({timeout:1e4,watch:!1},d),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var v=o(this._handleGeolocationResponse,this),E=o(this._handleGeolocationError,this);return d.watch?this._locationWatchId=navigator.geolocation.watchPosition(v,E,d):navigator.geolocation.getCurrentPosition(v,E,d),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(d){if(this._container._leaflet_id){var v=d.code,E=d.message||(v===1?"permission denied":v===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:v,message:"Geolocation error: "+E+"."})}},_handleGeolocationResponse:function(d){if(this._container._leaflet_id){var v=d.coords.latitude,E=d.coords.longitude,D=new he(v,E),Y=D.toBounds(d.coords.accuracy*2),se=this._locateOptions;if(se.setView){var ve=this.getBoundsZoom(Y);this.setView(D,se.maxZoom?Math.min(ve,se.maxZoom):ve)}var Ee={latlng:D,bounds:Y,timestamp:d.timestamp};for(var Ne in d.coords)typeof d.coords[Ne]=="number"&&(Ee[Ne]=d.coords[Ne]);this.fire("locationfound",Ee)}},addHandler:function(d,v){if(!v)return this;var E=this[d]=new v(this);return this._handlers.push(E),this.options[d]&&E.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(),on(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ne(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var d;for(d in this._layers)this._layers[d].remove();for(d in this._panes)on(this._panes[d]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(d,v){var E="leaflet-pane"+(d?" leaflet-"+d.replace("Pane","")+"-pane":""),D=Dt("div",E,v||this._mapPane);return d&&(this._panes[d]=D),D},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var d=this.getPixelBounds(),v=this.unproject(d.getBottomLeft()),E=this.unproject(d.getTopRight());return new Z(v,E)},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(d,v,E){d=oe(d),E=M(E||[0,0]);var D=this.getZoom()||0,Y=this.getMinZoom(),se=this.getMaxZoom(),ve=d.getNorthWest(),Ee=d.getSouthEast(),Ne=this.getSize().subtract(E),He=te(this.project(Ee,D),this.project(ve,D)).getSize(),et=st.any3d?this.options.zoomSnap:1,nt=Ne.x/He.x,it=Ne.y/He.y,yt=v?Math.max(nt,it):Math.min(nt,it);return D=this.getScaleZoom(yt,D),et&&(D=Math.round(D/(et/100))*(et/100),D=v?Math.ceil(D/et)*et:Math.floor(D/et)*et),Math.max(Y,Math.min(se,D))},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(d,v){var E=this._getTopLeftPoint(d,v);return new k(E,E.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(d){return this.options.crs.getProjectedBounds(d===void 0?this.getZoom():d)},getPane:function(d){return typeof d=="string"?this._panes[d]:d},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(d,v){var E=this.options.crs;return v=v===void 0?this._zoom:v,E.scale(d)/E.scale(v)},getScaleZoom:function(d,v){var E=this.options.crs;v=v===void 0?this._zoom:v;var D=E.zoom(d*E.scale(v));return isNaN(D)?1/0:D},project:function(d,v){return v=v===void 0?this._zoom:v,this.options.crs.latLngToPoint(de(d),v)},unproject:function(d,v){return v=v===void 0?this._zoom:v,this.options.crs.pointToLatLng(M(d),v)},layerPointToLatLng:function(d){var v=M(d).add(this.getPixelOrigin());return this.unproject(v)},latLngToLayerPoint:function(d){var v=this.project(de(d))._round();return v._subtract(this.getPixelOrigin())},wrapLatLng:function(d){return this.options.crs.wrapLatLng(de(d))},wrapLatLngBounds:function(d){return this.options.crs.wrapLatLngBounds(oe(d))},distance:function(d,v){return this.options.crs.distance(de(d),de(v))},containerPointToLayerPoint:function(d){return M(d).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(d){return M(d).add(this._getMapPanePos())},containerPointToLatLng:function(d){var v=this.containerPointToLayerPoint(M(d));return this.layerPointToLatLng(v)},latLngToContainerPoint:function(d){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(d)))},mouseEventToContainerPoint:function(d){return hr(d,this._container)},mouseEventToLayerPoint:function(d){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(d))},mouseEventToLatLng:function(d){return this.layerPointToLatLng(this.mouseEventToLayerPoint(d))},_initContainer:function(d){var v=this._container=Tc(d);if(v){if(v._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");bt(v,"scroll",this._onScroll,this),this._containerId=f(v)},_initLayout:function(){var d=this._container;this._fadeAnimated=this.options.fadeAnimation&&st.any3d,wt(d,"leaflet-container"+(st.touch?" leaflet-touch":"")+(st.retina?" leaflet-retina":"")+(st.ielt9?" leaflet-oldie":"")+(st.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var v=So(d,"position");v!=="absolute"&&v!=="relative"&&v!=="fixed"&&v!=="sticky"&&(d.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var d=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Sn(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||(wt(d.markerPane,"leaflet-zoom-hide"),wt(d.shadowPane,"leaflet-zoom-hide"))},_resetView:function(d,v,E){Sn(this._mapPane,new z(0,0));var D=!this._loaded;this._loaded=!0,v=this._limitZoom(v),this.fire("viewprereset");var Y=this._zoom!==v;this._moveStart(Y,E)._move(d,v)._moveEnd(Y),this.fire("viewreset"),D&&this.fire("load")},_moveStart:function(d,v){return d&&this.fire("zoomstart"),v||this.fire("movestart"),this},_move:function(d,v,E,D){v===void 0&&(v=this._zoom);var Y=this._zoom!==v;return this._zoom=v,this._lastCenter=d,this._pixelOrigin=this._getNewPixelOrigin(d),D?E&&E.pinch&&this.fire("zoom",E):((Y||E&&E.pinch)&&this.fire("zoom",E),this.fire("move",E)),this},_moveEnd:function(d){return d&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ne(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(d){Sn(this._mapPane,this._getMapPanePos().subtract(d))},_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(d){this._targets={},this._targets[f(this._container)]=this;var v=d?zt:bt;v(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&v(window,"resize",this._onResize,this),st.any3d&&this.options.transform3DLimit&&(d?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ne(this._resizeRequest),this._resizeRequest=K(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var d=this._getMapPanePos();Math.max(Math.abs(d.x),Math.abs(d.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(d,v){for(var E=[],D,Y=v==="mouseout"||v==="mouseover",se=d.target||d.srcElement,ve=!1;se;){if(D=this._targets[f(se)],D&&(v==="click"||v==="preclick")&&this._draggableMoved(D)){ve=!0;break}if(D&&D.listens(v,!0)&&(Y&&!Ao(se,d)||(E.push(D),Y))||se===this._container)break;se=se.parentNode}return!E.length&&!ve&&!Y&&this.listens(v,!0)&&(E=[this]),E},_isClickDisabled:function(d){for(;d&&d!==this._container;){if(d._leaflet_disable_click)return!0;d=d.parentNode}},_handleDOMEvent:function(d){var v=d.target||d.srcElement;if(!(!this._loaded||v._leaflet_disable_events||d.type==="click"&&this._isClickDisabled(v))){var E=d.type;E==="mousedown"&&ru(v),this._fireDOMEvent(d,E)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(d,v,E){if(d.type==="click"){var D=i({},d);D.type="preclick",this._fireDOMEvent(D,D.type,E)}var Y=this._findEventTargets(d,v);if(E){for(var se=[],ve=0;ve<E.length;ve++)E[ve].listens(v,!0)&&se.push(E[ve]);Y=se.concat(Y)}if(Y.length){v==="contextmenu"&&jn(d);var Ee=Y[0],Ne={originalEvent:d};if(d.type!=="keypress"&&d.type!=="keydown"&&d.type!=="keyup"){var He=Ee.getLatLng&&(!Ee._radius||Ee._radius<=10);Ne.containerPoint=He?this.latLngToContainerPoint(Ee.getLatLng()):this.mouseEventToContainerPoint(d),Ne.layerPoint=this.containerPointToLayerPoint(Ne.containerPoint),Ne.latlng=He?Ee.getLatLng():this.layerPointToLatLng(Ne.layerPoint)}for(ve=0;ve<Y.length;ve++)if(Y[ve].fire(v,Ne,!0),Ne.originalEvent._stopped||Y[ve].options.bubblingMouseEvents===!1&&j(this._mouseEvents,v)!==-1)return}},_draggableMoved:function(d){return d=d.dragging&&d.dragging.enabled()?d:this,d.dragging&&d.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var d=0,v=this._handlers.length;d<v;d++)this._handlers[d].disable()},whenReady:function(d,v){return this._loaded?d.call(v||this,{target:this}):this.on("load",d,v),this},_getMapPanePos:function(){return $a(this._mapPane)||new z(0,0)},_moved:function(){var d=this._getMapPanePos();return d&&!d.equals([0,0])},_getTopLeftPoint:function(d,v){var E=d&&v!==void 0?this._getNewPixelOrigin(d,v):this.getPixelOrigin();return E.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(d,v){var E=this.getSize()._divideBy(2);return this.project(d,v)._subtract(E)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(d,v,E){var D=this._getNewPixelOrigin(E,v);return this.project(d,v)._subtract(D)},_latLngBoundsToNewLayerBounds:function(d,v,E){var D=this._getNewPixelOrigin(E,v);return te([this.project(d.getSouthWest(),v)._subtract(D),this.project(d.getNorthWest(),v)._subtract(D),this.project(d.getSouthEast(),v)._subtract(D),this.project(d.getNorthEast(),v)._subtract(D)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(d){return this.latLngToLayerPoint(d).subtract(this._getCenterLayerPoint())},_limitCenter:function(d,v,E){if(!E)return d;var D=this.project(d,v),Y=this.getSize().divideBy(2),se=new k(D.subtract(Y),D.add(Y)),ve=this._getBoundsOffset(se,E,v);return Math.abs(ve.x)<=1&&Math.abs(ve.y)<=1?d:this.unproject(D.add(ve),v)},_limitOffset:function(d,v){if(!v)return d;var E=this.getPixelBounds(),D=new k(E.min.add(d),E.max.add(d));return d.add(this._getBoundsOffset(D,v))},_getBoundsOffset:function(d,v,E){var D=te(this.project(v.getNorthEast(),E),this.project(v.getSouthWest(),E)),Y=D.min.subtract(d.min),se=D.max.subtract(d.max),ve=this._rebound(Y.x,-se.x),Ee=this._rebound(Y.y,-se.y);return new z(ve,Ee)},_rebound:function(d,v){return d+v>0?Math.round(d-v)/2:Math.max(0,Math.ceil(d))-Math.max(0,Math.floor(v))},_limitZoom:function(d){var v=this.getMinZoom(),E=this.getMaxZoom(),D=st.any3d?this.options.zoomSnap:1;return D&&(d=Math.round(d/D)*D),Math.max(v,Math.min(E,d))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){sn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(d,v){var E=this._getCenterOffset(d)._trunc();return(v&&v.animate)!==!0&&!this.getSize().contains(E)?!1:(this.panBy(E,v),!0)},_createAnimProxy:function(){var d=this._proxy=Dt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(d),this.on("zoomanim",function(v){var E=eu,D=this._proxy.style[E];Wr(this._proxy,this.project(v.center,v.zoom),this.getZoomScale(v.zoom,1)),D===this._proxy.style[E]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){on(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var d=this.getCenter(),v=this.getZoom();Wr(this._proxy,this.project(d,v),this.getZoomScale(v,1))},_catchTransitionEnd:function(d){this._animatingZoom&&d.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(d,v,E){if(this._animatingZoom)return!0;if(E=E||{},!this._zoomAnimated||E.animate===!1||this._nothingToAnimate()||Math.abs(v-this._zoom)>this.options.zoomAnimationThreshold)return!1;var D=this.getZoomScale(v),Y=this._getCenterOffset(d)._divideBy(1-1/D);return E.animate!==!0&&!this.getSize().contains(Y)?!1:(K(function(){this._moveStart(!0,E.noMoveStart||!1)._animateZoom(d,v,!0)},this),!0)},_animateZoom:function(d,v,E,D){this._mapPane&&(E&&(this._animatingZoom=!0,this._animateToCenter=d,this._animateToZoom=v,wt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:d,zoom:v,noUpdate:D}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&sn(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 ou(d,v){return new Tt(d,v)}var Sr=Q.extend({options:{position:"topright"},initialize:function(d){w(this,d)},getPosition:function(){return this.options.position},setPosition:function(d){var v=this._map;return v&&v.removeControl(this),this.options.position=d,v&&v.addControl(this),this},getContainer:function(){return this._container},addTo:function(d){this.remove(),this._map=d;var v=this._container=this.onAdd(d),E=this.getPosition(),D=d._controlCorners[E];return wt(v,"leaflet-control"),E.indexOf("bottom")!==-1?D.insertBefore(v,D.firstChild):D.appendChild(v),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(on(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(d){this._map&&d&&d.screenX>0&&d.screenY>0&&this._map.getContainer().focus()}}),Ls=function(d){return new Sr(d)};Tt.include({addControl:function(d){return d.addTo(this),this},removeControl:function(d){return d.remove(),this},_initControlPos:function(){var d=this._controlCorners={},v="leaflet-",E=this._controlContainer=Dt("div",v+"control-container",this._container);function D(Y,se){var ve=v+Y+" "+v+se;d[Y+se]=Dt("div",ve,E)}D("top","left"),D("top","right"),D("bottom","left"),D("bottom","right")},_clearControlPos:function(){for(var d in this._controlCorners)on(this._controlCorners[d]);on(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Mv=Sr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(d,v,E,D){return E<D?-1:D<E?1:0}},initialize:function(d,v,E){w(this,E),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var D in d)this._addLayer(d[D],D);for(D in v)this._addLayer(v[D],D,!0)},onAdd:function(d){this._initLayout(),this._update(),this._map=d,d.on("zoomend",this._checkDisabledLayers,this);for(var v=0;v<this._layers.length;v++)this._layers[v].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(d){return Sr.prototype.addTo.call(this,d),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(d,v){return this._addLayer(d,v),this._map?this._update():this},addOverlay:function(d,v){return this._addLayer(d,v,!0),this._map?this._update():this},removeLayer:function(d){d.off("add remove",this._onLayerChange,this);var v=this._getLayer(f(d));return v&&this._layers.splice(this._layers.indexOf(v),1),this._map?this._update():this},expand:function(){wt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var d=this._map.getSize().y-(this._container.offsetTop+50);return d<this._section.clientHeight?(wt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=d+"px"):sn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return sn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var d="leaflet-control-layers",v=this._container=Dt("div",d),E=this.options.collapsed;v.setAttribute("aria-haspopup",!0),Ns(v),Ms(v);var D=this._section=Dt("section",d+"-list");E&&(this._map.on("click",this.collapse,this),bt(v,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var Y=this._layersLink=Dt("a",d+"-toggle",v);Y.href="#",Y.title="Layers",Y.setAttribute("role","button"),bt(Y,{keydown:function(se){se.keyCode===13&&this._expandSafely()},click:function(se){jn(se),this._expandSafely()}},this),E||this.expand(),this._baseLayersList=Dt("div",d+"-base",D),this._separator=Dt("div",d+"-separator",D),this._overlaysList=Dt("div",d+"-overlays",D),v.appendChild(D)},_getLayer:function(d){for(var v=0;v<this._layers.length;v++)if(this._layers[v]&&f(this._layers[v].layer)===d)return this._layers[v]},_addLayer:function(d,v,E){this._map&&d.on("add remove",this._onLayerChange,this),this._layers.push({layer:d,name:v,overlay:E}),this.options.sortLayers&&this._layers.sort(o(function(D,Y){return this.options.sortFunction(D.layer,Y.layer,D.name,Y.name)},this)),this.options.autoZIndex&&d.setZIndex&&(this._lastZIndex++,d.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;fr(this._baseLayersList),fr(this._overlaysList),this._layerControlInputs=[];var d,v,E,D,Y=0;for(E=0;E<this._layers.length;E++)D=this._layers[E],this._addItem(D),v=v||D.overlay,d=d||!D.overlay,Y+=D.overlay?0:1;return this.options.hideSingleBase&&(d=d&&Y>1,this._baseLayersList.style.display=d?"":"none"),this._separator.style.display=v&&d?"":"none",this},_onLayerChange:function(d){this._handlingClick||this._update();var v=this._getLayer(f(d.target)),E=v.overlay?d.type==="add"?"overlayadd":"overlayremove":d.type==="add"?"baselayerchange":null;E&&this._map.fire(E,v)},_createRadioElement:function(d,v){var E='<input type="radio" class="leaflet-control-layers-selector" name="'+d+'"'+(v?' checked="checked"':"")+"/>",D=document.createElement("div");return D.innerHTML=E,D.firstChild},_addItem:function(d){var v=document.createElement("label"),E=this._map.hasLayer(d.layer),D;d.overlay?(D=document.createElement("input"),D.type="checkbox",D.className="leaflet-control-layers-selector",D.defaultChecked=E):D=this._createRadioElement("leaflet-base-layers_"+f(this),E),this._layerControlInputs.push(D),D.layerId=f(d.layer),bt(D,"click",this._onInputClick,this);var Y=document.createElement("span");Y.innerHTML=" "+d.name;var se=document.createElement("span");v.appendChild(se),se.appendChild(D),se.appendChild(Y);var ve=d.overlay?this._overlaysList:this._baseLayersList;return ve.appendChild(v),this._checkDisabledLayers(),v},_onInputClick:function(){if(!this._preventClick){var d=this._layerControlInputs,v,E,D=[],Y=[];this._handlingClick=!0;for(var se=d.length-1;se>=0;se--)v=d[se],E=this._getLayer(v.layerId).layer,v.checked?D.push(E):v.checked||Y.push(E);for(se=0;se<Y.length;se++)this._map.hasLayer(Y[se])&&this._map.removeLayer(Y[se]);for(se=0;se<D.length;se++)this._map.hasLayer(D[se])||this._map.addLayer(D[se]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var d=this._layerControlInputs,v,E,D=this._map.getZoom(),Y=d.length-1;Y>=0;Y--)v=d[Y],E=this._getLayer(v.layerId).layer,v.disabled=E.options.minZoom!==void 0&&D<E.options.minZoom||E.options.maxZoom!==void 0&&D>E.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var d=this._section;this._preventClick=!0,bt(d,"click",jn),this.expand();var v=this;setTimeout(function(){zt(d,"click",jn),v._preventClick=!1})}}),Q_=function(d,v,E){return new Mv(d,v,E)},sh=Sr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(d){var v="leaflet-control-zoom",E=Dt("div",v+" leaflet-bar"),D=this.options;return this._zoomInButton=this._createButton(D.zoomInText,D.zoomInTitle,v+"-in",E,this._zoomIn),this._zoomOutButton=this._createButton(D.zoomOutText,D.zoomOutTitle,v+"-out",E,this._zoomOut),this._updateDisabled(),d.on("zoomend zoomlevelschange",this._updateDisabled,this),E},onRemove:function(d){d.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(d){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(d.shiftKey?3:1))},_zoomOut:function(d){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(d.shiftKey?3:1))},_createButton:function(d,v,E,D,Y){var se=Dt("a",E,D);return se.innerHTML=d,se.href="#",se.title=v,se.setAttribute("role","button"),se.setAttribute("aria-label",v),Ns(se),bt(se,"click",ki),bt(se,"click",Y,this),bt(se,"click",this._refocusOnMap,this),se},_updateDisabled:function(){var d=this._map,v="leaflet-disabled";sn(this._zoomInButton,v),sn(this._zoomOutButton,v),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||d._zoom===d.getMinZoom())&&(wt(this._zoomOutButton,v),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||d._zoom===d.getMaxZoom())&&(wt(this._zoomInButton,v),this._zoomInButton.setAttribute("aria-disabled","true"))}});Tt.mergeOptions({zoomControl:!0}),Tt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new sh,this.addControl(this.zoomControl))});var lh=function(d){return new sh(d)},Nv=Sr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(d){var v="leaflet-control-scale",E=Dt("div",v),D=this.options;return this._addScales(D,v+"-line",E),d.on(D.updateWhenIdle?"moveend":"move",this._update,this),d.whenReady(this._update,this),E},onRemove:function(d){d.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(d,v,E){d.metric&&(this._mScale=Dt("div",v,E)),d.imperial&&(this._iScale=Dt("div",v,E))},_update:function(){var d=this._map,v=d.getSize().y/2,E=d.distance(d.containerPointToLatLng([0,v]),d.containerPointToLatLng([this.options.maxWidth,v]));this._updateScales(E)},_updateScales:function(d){this.options.metric&&d&&this._updateMetric(d),this.options.imperial&&d&&this._updateImperial(d)},_updateMetric:function(d){var v=this._getRoundNum(d),E=v<1e3?v+" m":v/1e3+" km";this._updateScale(this._mScale,E,v/d)},_updateImperial:function(d){var v=d*3.2808399,E,D,Y;v>5280?(E=v/5280,D=this._getRoundNum(E),this._updateScale(this._iScale,D+" mi",D/E)):(Y=this._getRoundNum(v),this._updateScale(this._iScale,Y+" ft",Y/v))},_updateScale:function(d,v,E){d.style.width=Math.round(this.options.maxWidth*E)+"px",d.innerHTML=v},_getRoundNum:function(d){var v=Math.pow(10,(Math.floor(d)+"").length-1),E=d/v;return E=E>=10?10:E>=5?5:E>=3?3:E>=2?2:1,v*E}}),J_=function(d){return new Nv(d)},e1='<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>',uh=Sr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(st.inlineSvg?e1+" ":"")+"Leaflet</a>"},initialize:function(d){w(this,d),this._attributions={}},onAdd:function(d){d.attributionControl=this,this._container=Dt("div","leaflet-control-attribution"),Ns(this._container);for(var v in d._layers)d._layers[v].getAttribution&&this.addAttribution(d._layers[v].getAttribution());return this._update(),d.on("layeradd",this._addAttribution,this),this._container},onRemove:function(d){d.off("layeradd",this._addAttribution,this)},_addAttribution:function(d){d.layer.getAttribution&&(this.addAttribution(d.layer.getAttribution()),d.layer.once("remove",function(){this.removeAttribution(d.layer.getAttribution())},this))},setPrefix:function(d){return this.options.prefix=d,this._update(),this},addAttribution:function(d){return d?(this._attributions[d]||(this._attributions[d]=0),this._attributions[d]++,this._update(),this):this},removeAttribution:function(d){return d?(this._attributions[d]&&(this._attributions[d]--,this._update()),this):this},_update:function(){if(this._map){var d=[];for(var v in this._attributions)this._attributions[v]&&d.push(v);var E=[];this.options.prefix&&E.push(this.options.prefix),d.length&&E.push(d.join(", ")),this._container.innerHTML=E.join(' <span aria-hidden="true">|</span> ')}}});Tt.mergeOptions({attributionControl:!0}),Tt.addInitHook(function(){this.options.attributionControl&&new uh().addTo(this)});var t1=function(d){return new uh(d)};Sr.Layers=Mv,Sr.Zoom=sh,Sr.Scale=Nv,Sr.Attribution=uh,Ls.layers=Q_,Ls.zoom=lh,Ls.scale=J_,Ls.attribution=t1;var ii=Q.extend({initialize:function(d){this._map=d},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}});ii.addTo=function(d,v){return d.addHandler(v,this),this};var n1={Events:H},Lv=st.touch?"touchstart mousedown":"mousedown",Ua=B.extend({options:{clickTolerance:3},initialize:function(d,v,E,D){w(this,D),this._element=d,this._dragStartTarget=v||d,this._preventOutline=E},enable:function(){this._enabled||(bt(this._dragStartTarget,Lv,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ua._dragging===this&&this.finishDrag(!0),zt(this._dragStartTarget,Lv,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(d){if(this._enabled&&(this._moved=!1,!Ts(this._element,"leaflet-zoom-anim"))){if(d.touches&&d.touches.length!==1){Ua._dragging===this&&this.finishDrag();return}if(!(Ua._dragging||d.shiftKey||d.which!==1&&d.button!==1&&!d.touches)&&(Ua._dragging=this,this._preventOutline&&ru(this._element),nu(),Ni(),!this._moving)){this.fire("down");var v=d.touches?d.touches[0]:d,E=Eo(this._element);this._startPoint=new z(v.clientX,v.clientY),this._startPos=$a(this._element),this._parentScale=Ba(E);var D=d.type==="mousedown";bt(document,D?"mousemove":"touchmove",this._onMove,this),bt(document,D?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(d){if(this._enabled){if(d.touches&&d.touches.length>1){this._moved=!0;return}var v=d.touches&&d.touches.length===1?d.touches[0]:d,E=new z(v.clientX,v.clientY)._subtract(this._startPoint);!E.x&&!E.y||Math.abs(E.x)+Math.abs(E.y)<this.options.clickTolerance||(E.x/=this._parentScale.x,E.y/=this._parentScale.y,jn(d),this._moved||(this.fire("dragstart"),this._moved=!0,wt(document.body,"leaflet-dragging"),this._lastTarget=d.target||d.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),wt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(E),this._moving=!0,this._lastEvent=d,this._updatePosition())}},_updatePosition:function(){var d={originalEvent:this._lastEvent};this.fire("predrag",d),Sn(this._element,this._newPos),this.fire("drag",d)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(d){sn(document.body,"leaflet-dragging"),this._lastTarget&&(sn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),zt(document,"mousemove touchmove",this._onMove,this),zt(document,"mouseup touchend touchcancel",this._onUp,this),ah(),tu();var v=this._moved&&this._moving;this._moving=!1,Ua._dragging=!1,v&&this.fire("dragend",{noInertia:d,distance:this._newPos.distanceTo(this._startPos)})}});function Dv(d,v,E){var D,Y=[1,4,2,8],se,ve,Ee,Ne,He,et,nt,it;for(se=0,et=d.length;se<et;se++)d[se]._code=jo(d[se],v);for(Ee=0;Ee<4;Ee++){for(nt=Y[Ee],D=[],se=0,et=d.length,ve=et-1;se<et;ve=se++)Ne=d[se],He=d[ve],Ne._code&nt?He._code&nt||(it=Mc(He,Ne,nt,v,E),it._code=jo(it,v),D.push(it)):(He._code&nt&&(it=Mc(He,Ne,nt,v,E),it._code=jo(it,v),D.push(it)),D.push(Ne));d=D}return d}function Rc(d,v){var E,D,Y,se,ve,Ee,Ne,He,et;if(!d||d.length===0)throw new Error("latlngs not passed");er(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var nt=de([0,0]),it=oe(d),yt=it.getNorthWest().distanceTo(it.getSouthWest())*it.getNorthEast().distanceTo(it.getNorthWest());yt<1700&&(nt=ch(d));var ln=d.length,On=[];for(E=0;E<ln;E++){var tr=de(d[E]);On.push(v.project(de([tr.lat-nt.lat,tr.lng-nt.lng])))}for(Ee=Ne=He=0,E=0,D=ln-1;E<ln;D=E++)Y=On[E],se=On[D],ve=Y.y*se.x-se.y*Y.x,Ne+=(Y.x+se.x)*ve,He+=(Y.y+se.y)*ve,Ee+=ve*3;Ee===0?et=On[0]:et=[Ne/Ee,He/Ee];var Gr=v.unproject(M(et));return de([Gr.lat+nt.lat,Gr.lng+nt.lng])}function ch(d){for(var v=0,E=0,D=0,Y=0;Y<d.length;Y++){var se=de(d[Y]);v+=se.lat,E+=se.lng,D++}return de([v/D,E/D])}var r1={__proto__:null,clipPolygon:Dv,polygonCenter:Rc,centroid:ch};function kv(d,v){if(!v||!d.length)return d.slice();var E=v*v;return d=o1(d,E),d=a1(d,E),d}function fh(d,v,E){return Math.sqrt(Po(d,v,E,!0))}function i1(d,v,E){return Po(d,v,E)}function a1(d,v){var E=d.length,D=typeof Uint8Array<"u"?Uint8Array:Array,Y=new D(E);Y[0]=Y[E-1]=1,dh(d,Y,v,0,E-1);var se,ve=[];for(se=0;se<E;se++)Y[se]&&ve.push(d[se]);return ve}function dh(d,v,E,D,Y){var se=0,ve,Ee,Ne;for(Ee=D+1;Ee<=Y-1;Ee++)Ne=Po(d[Ee],d[D],d[Y],!0),Ne>se&&(ve=Ee,se=Ne);se>E&&(v[ve]=1,dh(d,v,E,D,ve),dh(d,v,E,ve,Y))}function o1(d,v){for(var E=[d[0]],D=1,Y=0,se=d.length;D<se;D++)s1(d[D],d[Y])>v&&(E.push(d[D]),Y=D);return Y<se-1&&E.push(d[se-1]),E}var Iv;function $v(d,v,E,D,Y){var se=D?Iv:jo(d,E),ve=jo(v,E),Ee,Ne,He;for(Iv=ve;;){if(!(se|ve))return[d,v];if(se&ve)return!1;Ee=se||ve,Ne=Mc(d,v,Ee,E,Y),He=jo(Ne,E),Ee===se?(d=Ne,se=He):(v=Ne,ve=He)}}function Mc(d,v,E,D,Y){var se=v.x-d.x,ve=v.y-d.y,Ee=D.min,Ne=D.max,He,et;return E&8?(He=d.x+se*(Ne.y-d.y)/ve,et=Ne.y):E&4?(He=d.x+se*(Ee.y-d.y)/ve,et=Ee.y):E&2?(He=Ne.x,et=d.y+ve*(Ne.x-d.x)/se):E&1&&(He=Ee.x,et=d.y+ve*(Ee.x-d.x)/se),new z(He,et,Y)}function jo(d,v){var E=0;return d.x<v.min.x?E|=1:d.x>v.max.x&&(E|=2),d.y<v.min.y?E|=4:d.y>v.max.y&&(E|=8),E}function s1(d,v){var E=v.x-d.x,D=v.y-d.y;return E*E+D*D}function Po(d,v,E,D){var Y=v.x,se=v.y,ve=E.x-Y,Ee=E.y-se,Ne=ve*ve+Ee*Ee,He;return Ne>0&&(He=((d.x-Y)*ve+(d.y-se)*Ee)/Ne,He>1?(Y=E.x,se=E.y):He>0&&(Y+=ve*He,se+=Ee*He)),ve=d.x-Y,Ee=d.y-se,D?ve*ve+Ee*Ee:new z(Y,se)}function er(d){return!T(d[0])||typeof d[0][0]!="object"&&typeof d[0][0]<"u"}function Bv(d){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),er(d)}function hh(d,v){var E,D,Y,se,ve,Ee,Ne,He;if(!d||d.length===0)throw new Error("latlngs not passed");er(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var et=de([0,0]),nt=oe(d),it=nt.getNorthWest().distanceTo(nt.getSouthWest())*nt.getNorthEast().distanceTo(nt.getNorthWest());it<1700&&(et=ch(d));var yt=d.length,ln=[];for(E=0;E<yt;E++){var On=de(d[E]);ln.push(v.project(de([On.lat-et.lat,On.lng-et.lng])))}for(E=0,D=0;E<yt-1;E++)D+=ln[E].distanceTo(ln[E+1])/2;if(D===0)He=ln[0];else for(E=0,se=0;E<yt-1;E++)if(ve=ln[E],Ee=ln[E+1],Y=ve.distanceTo(Ee),se+=Y,se>D){Ne=(se-D)/Y,He=[Ee.x-Ne*(Ee.x-ve.x),Ee.y-Ne*(Ee.y-ve.y)];break}var tr=v.unproject(M(He));return de([tr.lat+et.lat,tr.lng+et.lng])}var Uv={__proto__:null,simplify:kv,pointToSegmentDistance:fh,closestPointOnSegment:i1,clipSegment:$v,_getEdgeIntersection:Mc,_getBitCode:jo,_sqClosestPointOnSegment:Po,isFlat:er,_flat:Bv,polylineCenter:hh},Nc={project:function(d){return new z(d.lng,d.lat)},unproject:function(d){return new he(d.y,d.x)},bounds:new k([-180,-90],[180,90])},Lc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new k([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(d){var v=Math.PI/180,E=this.R,D=d.lat*v,Y=this.R_MINOR/E,se=Math.sqrt(1-Y*Y),ve=se*Math.sin(D),Ee=Math.tan(Math.PI/4-D/2)/Math.pow((1-ve)/(1+ve),se/2);return D=-E*Math.log(Math.max(Ee,1e-10)),new z(d.lng*v*E,D)},unproject:function(d){for(var v=180/Math.PI,E=this.R,D=this.R_MINOR/E,Y=Math.sqrt(1-D*D),se=Math.exp(-d.y/E),ve=Math.PI/2-2*Math.atan(se),Ee=0,Ne=.1,He;Ee<15&&Math.abs(Ne)>1e-7;Ee++)He=Y*Math.sin(ve),He=Math.pow((1-He)/(1+He),Y/2),Ne=Math.PI/2-2*Math.atan(se*He)-ve,ve+=Ne;return new he(ve*v,d.x*v/E)}},zv={__proto__:null,LonLat:Nc,Mercator:Lc,SphericalMercator:ee},Ds=i({},$,{code:"EPSG:3395",projection:Lc,transformation:function(){var d=.5/(Math.PI*Lc.R);return X(d,.5,-d,.5)}()}),Fv=i({},$,{code:"EPSG:4326",projection:Nc,transformation:X(1/180,1,-1/180,.5)}),l1=i({},be,{projection:Nc,transformation:X(1,0,-1,0),scale:function(d){return Math.pow(2,d)},zoom:function(d){return Math.log(d)/Math.LN2},distance:function(d,v){var E=v.lng-d.lng,D=v.lat-d.lat;return Math.sqrt(E*E+D*D)},infinite:!0});be.Earth=$,be.EPSG3395=Ds,be.EPSG3857=ue,be.EPSG900913=pe,be.EPSG4326=Fv,be.Simple=l1;var ai=B.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(d){return d.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(d){return d&&d.removeLayer(this),this},getPane:function(d){return this._map.getPane(d?this.options[d]||d:this.options.pane)},addInteractiveTarget:function(d){return this._map._targets[f(d)]=this,this},removeInteractiveTarget:function(d){return delete this._map._targets[f(d)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(d){var v=d.target;if(v.hasLayer(this)){if(this._map=v,this._zoomAnimated=v._zoomAnimated,this.getEvents){var E=this.getEvents();v.on(E,this),this.once("remove",function(){v.off(E,this)},this)}this.onAdd(v),this.fire("add"),v.fire("layeradd",{layer:this})}}});Tt.include({addLayer:function(d){if(!d._layerAdd)throw new Error("The provided object is not a Layer.");var v=f(d);return this._layers[v]?this:(this._layers[v]=d,d._mapToAdd=this,d.beforeAdd&&d.beforeAdd(this),this.whenReady(d._layerAdd,d),this)},removeLayer:function(d){var v=f(d);return this._layers[v]?(this._loaded&&d.onRemove(this),delete this._layers[v],this._loaded&&(this.fire("layerremove",{layer:d}),d.fire("remove")),d._map=d._mapToAdd=null,this):this},hasLayer:function(d){return f(d)in this._layers},eachLayer:function(d,v){for(var E in this._layers)d.call(v,this._layers[E]);return this},_addLayers:function(d){d=d?T(d)?d:[d]:[];for(var v=0,E=d.length;v<E;v++)this.addLayer(d[v])},_addZoomLimit:function(d){(!isNaN(d.options.maxZoom)||!isNaN(d.options.minZoom))&&(this._zoomBoundLayers[f(d)]=d,this._updateZoomLevels())},_removeZoomLimit:function(d){var v=f(d);this._zoomBoundLayers[v]&&(delete this._zoomBoundLayers[v],this._updateZoomLevels())},_updateZoomLevels:function(){var d=1/0,v=-1/0,E=this._getZoomSpan();for(var D in this._zoomBoundLayers){var Y=this._zoomBoundLayers[D].options;d=Y.minZoom===void 0?d:Math.min(d,Y.minZoom),v=Y.maxZoom===void 0?v:Math.max(v,Y.maxZoom)}this._layersMaxZoom=v===-1/0?void 0:v,this._layersMinZoom=d===1/0?void 0:d,E!==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 Ro=ai.extend({initialize:function(d,v){w(this,v),this._layers={};var E,D;if(d)for(E=0,D=d.length;E<D;E++)this.addLayer(d[E])},addLayer:function(d){var v=this.getLayerId(d);return this._layers[v]=d,this._map&&this._map.addLayer(d),this},removeLayer:function(d){var v=d in this._layers?d:this.getLayerId(d);return this._map&&this._layers[v]&&this._map.removeLayer(this._layers[v]),delete this._layers[v],this},hasLayer:function(d){var v=typeof d=="number"?d:this.getLayerId(d);return v in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(d){var v=Array.prototype.slice.call(arguments,1),E,D;for(E in this._layers)D=this._layers[E],D[d]&&D[d].apply(D,v);return this},onAdd:function(d){this.eachLayer(d.addLayer,d)},onRemove:function(d){this.eachLayer(d.removeLayer,d)},eachLayer:function(d,v){for(var E in this._layers)d.call(v,this._layers[E]);return this},getLayer:function(d){return this._layers[d]},getLayers:function(){var d=[];return this.eachLayer(d.push,d),d},setZIndex:function(d){return this.invoke("setZIndex",d)},getLayerId:function(d){return f(d)}}),qv=function(d,v){return new Ro(d,v)},Rr=Ro.extend({addLayer:function(d){return this.hasLayer(d)?this:(d.addEventParent(this),Ro.prototype.addLayer.call(this,d),this.fire("layeradd",{layer:d}))},removeLayer:function(d){return this.hasLayer(d)?(d in this._layers&&(d=this._layers[d]),d.removeEventParent(this),Ro.prototype.removeLayer.call(this,d),this.fire("layerremove",{layer:d})):this},setStyle:function(d){return this.invoke("setStyle",d)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var d=new Z;for(var v in this._layers){var E=this._layers[v];d.extend(E.getBounds?E.getBounds():E.getLatLng())}return d}}),su=function(d,v){return new Rr(d,v)},ks=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(d){w(this,d)},createIcon:function(d){return this._createIcon("icon",d)},createShadow:function(d){return this._createIcon("shadow",d)},_createIcon:function(d,v){var E=this._getIconUrl(d);if(!E){if(d==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var D=this._createImg(E,v&&v.tagName==="IMG"?v:null);return this._setIconStyles(D,d),(this.options.crossOrigin||this.options.crossOrigin==="")&&(D.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),D},_setIconStyles:function(d,v){var E=this.options,D=E[v+"Size"];typeof D=="number"&&(D=[D,D]);var Y=M(D),se=M(v==="shadow"&&E.shadowAnchor||E.iconAnchor||Y&&Y.divideBy(2,!0));d.className="leaflet-marker-"+v+" "+(E.className||""),se&&(d.style.marginLeft=-se.x+"px",d.style.marginTop=-se.y+"px"),Y&&(d.style.width=Y.x+"px",d.style.height=Y.y+"px")},_createImg:function(d,v){return v=v||document.createElement("img"),v.src=d,v},_getIconUrl:function(d){return st.retina&&this.options[d+"RetinaUrl"]||this.options[d+"Url"]}});function Dc(d){return new ks(d)}var Is=ks.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(d){return typeof Is.imagePath!="string"&&(Is.imagePath=this._detectIconPath()),(this.options.imagePath||Is.imagePath)+ks.prototype._getIconUrl.call(this,d)},_stripUrl:function(d){var v=function(E,D,Y){var se=D.exec(E);return se&&se[Y]};return d=v(d,/^url\((['"])?(.+)\1\)$/,2),d&&v(d,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var d=Dt("div","leaflet-default-icon-path",document.body),v=So(d,"background-image")||So(d,"backgroundImage");if(document.body.removeChild(d),v=this._stripUrl(v),v)return v;var E=document.querySelector('link[href$="leaflet.css"]');return E?E.href.substring(0,E.href.length-11-1):""}}),ph=ii.extend({initialize:function(d){this._marker=d},addHooks:function(){var d=this._marker._icon;this._draggable||(this._draggable=new Ua(d,d,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),wt(d,"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&&sn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(d){var v=this._marker,E=v._map,D=this._marker.options.autoPanSpeed,Y=this._marker.options.autoPanPadding,se=$a(v._icon),ve=E.getPixelBounds(),Ee=E.getPixelOrigin(),Ne=te(ve.min._subtract(Ee).add(Y),ve.max._subtract(Ee).subtract(Y));if(!Ne.contains(se)){var He=M((Math.max(Ne.max.x,se.x)-Ne.max.x)/(ve.max.x-Ne.max.x)-(Math.min(Ne.min.x,se.x)-Ne.min.x)/(ve.min.x-Ne.min.x),(Math.max(Ne.max.y,se.y)-Ne.max.y)/(ve.max.y-Ne.max.y)-(Math.min(Ne.min.y,se.y)-Ne.min.y)/(ve.min.y-Ne.min.y)).multiplyBy(D);E.panBy(He,{animate:!1}),this._draggable._newPos._add(He),this._draggable._startPos._add(He),Sn(v._icon,this._draggable._newPos),this._onDrag(d),this._panRequest=K(this._adjustPan.bind(this,d))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(d){this._marker.options.autoPan&&(ne(this._panRequest),this._panRequest=K(this._adjustPan.bind(this,d)))},_onDrag:function(d){var v=this._marker,E=v._shadow,D=$a(v._icon),Y=v._map.layerPointToLatLng(D);E&&Sn(E,D),v._latlng=Y,d.latlng=Y,d.oldLatLng=this._oldLatLng,v.fire("move",d).fire("drag",d)},_onDragEnd:function(d){ne(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",d)}}),$s=ai.extend({options:{icon:new Is,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(d,v){w(this,v),this._latlng=de(d)},onAdd:function(d){this._zoomAnimated=this._zoomAnimated&&d.options.markerZoomAnimation,this._zoomAnimated&&d.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(d){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&d.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(d){var v=this._latlng;return this._latlng=de(d),this.update(),this.fire("move",{oldLatLng:v,latlng:this._latlng})},setZIndexOffset:function(d){return this.options.zIndexOffset=d,this.update()},getIcon:function(){return this.options.icon},setIcon:function(d){return this.options.icon=d,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 d=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(d)}return this},_initIcon:function(){var d=this.options,v="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),E=d.icon.createIcon(this._icon),D=!1;E!==this._icon&&(this._icon&&this._removeIcon(),D=!0,d.title&&(E.title=d.title),E.tagName==="IMG"&&(E.alt=d.alt||"")),wt(E,v),d.keyboard&&(E.tabIndex="0",E.setAttribute("role","button")),this._icon=E,d.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(E,"focus",this._panOnFocus,this);var Y=d.icon.createShadow(this._shadow),se=!1;Y!==this._shadow&&(this._removeShadow(),se=!0),Y&&(wt(Y,v),Y.alt=""),this._shadow=Y,d.opacity<1&&this._updateOpacity(),D&&this.getPane().appendChild(this._icon),this._initInteraction(),Y&&se&&this.getPane(d.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&zt(this._icon,"focus",this._panOnFocus,this),on(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&on(this._shadow),this._shadow=null},_setPos:function(d){this._icon&&Sn(this._icon,d),this._shadow&&Sn(this._shadow,d),this._zIndex=d.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(d){this._icon&&(this._icon.style.zIndex=this._zIndex+d)},_animateZoom:function(d){var v=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center).round();this._setPos(v)},_initInteraction:function(){if(this.options.interactive&&(wt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ph)){var d=this.options.draggable;this.dragging&&(d=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ph(this),d&&this.dragging.enable()}},setOpacity:function(d){return this.options.opacity=d,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var d=this.options.opacity;this._icon&&wr(this._icon,d),this._shadow&&wr(this._shadow,d)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var d=this._map;if(d){var v=this.options.icon.options,E=v.iconSize?M(v.iconSize):M(0,0),D=v.iconAnchor?M(v.iconAnchor):M(0,0);d.panInside(this._latlng,{paddingTopLeft:D,paddingBottomRight:E.subtract(D)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function mh(d,v){return new $s(d,v)}var ua=ai.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(d){this._renderer=d.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(d){return w(this,d),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&d&&Object.prototype.hasOwnProperty.call(d,"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)}}),lu=ua.extend({options:{fill:!0,radius:10},initialize:function(d,v){w(this,v),this._latlng=de(d),this._radius=this.options.radius},setLatLng:function(d){var v=this._latlng;return this._latlng=de(d),this.redraw(),this.fire("move",{oldLatLng:v,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(d){return this.options.radius=this._radius=d,this.redraw()},getRadius:function(){return this._radius},setStyle:function(d){var v=d&&d.radius||this._radius;return ua.prototype.setStyle.call(this,d),this.setRadius(v),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var d=this._radius,v=this._radiusY||d,E=this._clickTolerance(),D=[d+E,v+E];this._pxBounds=new k(this._point.subtract(D),this._point.add(D))},_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(d){return d.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Vv(d,v){return new lu(d,v)}var vh=lu.extend({initialize:function(d,v,E){if(typeof v=="number"&&(v=i({},E,{radius:v})),w(this,v),this._latlng=de(d),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(d){return this._mRadius=d,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var d=[this._radius,this._radiusY||this._radius];return new Z(this._map.layerPointToLatLng(this._point.subtract(d)),this._map.layerPointToLatLng(this._point.add(d)))},setStyle:ua.prototype.setStyle,_project:function(){var d=this._latlng.lng,v=this._latlng.lat,E=this._map,D=E.options.crs;if(D.distance===$.distance){var Y=Math.PI/180,se=this._mRadius/$.R/Y,ve=E.project([v+se,d]),Ee=E.project([v-se,d]),Ne=ve.add(Ee).divideBy(2),He=E.unproject(Ne).lat,et=Math.acos((Math.cos(se*Y)-Math.sin(v*Y)*Math.sin(He*Y))/(Math.cos(v*Y)*Math.cos(He*Y)))/Y;(isNaN(et)||et===0)&&(et=se/Math.cos(Math.PI/180*v)),this._point=Ne.subtract(E.getPixelOrigin()),this._radius=isNaN(et)?0:Ne.x-E.project([He,d-et]).x,this._radiusY=Ne.y-ve.y}else{var nt=D.unproject(D.project(this._latlng).subtract([this._mRadius,0]));this._point=E.latLngToLayerPoint(this._latlng),this._radius=this._point.x-E.latLngToLayerPoint(nt).x}this._updateBounds()}});function u1(d,v,E){return new vh(d,v,E)}var ca=ua.extend({options:{smoothFactor:1,noClip:!1},initialize:function(d,v){w(this,v),this._setLatLngs(d)},getLatLngs:function(){return this._latlngs},setLatLngs:function(d){return this._setLatLngs(d),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(d){for(var v=1/0,E=null,D=Po,Y,se,ve=0,Ee=this._parts.length;ve<Ee;ve++)for(var Ne=this._parts[ve],He=1,et=Ne.length;He<et;He++){Y=Ne[He-1],se=Ne[He];var nt=D(d,Y,se,!0);nt<v&&(v=nt,E=D(d,Y,se))}return E&&(E.distance=Math.sqrt(v)),E},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return hh(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(d,v){return v=v||this._defaultShape(),d=de(d),v.push(d),this._bounds.extend(d),this.redraw()},_setLatLngs:function(d){this._bounds=new Z,this._latlngs=this._convertLatLngs(d)},_defaultShape:function(){return er(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(d){for(var v=[],E=er(d),D=0,Y=d.length;D<Y;D++)E?(v[D]=de(d[D]),this._bounds.extend(v[D])):v[D]=this._convertLatLngs(d[D]);return v},_project:function(){var d=new k;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,d),this._bounds.isValid()&&d.isValid()&&(this._rawPxBounds=d,this._updateBounds())},_updateBounds:function(){var d=this._clickTolerance(),v=new z(d,d);this._rawPxBounds&&(this._pxBounds=new k([this._rawPxBounds.min.subtract(v),this._rawPxBounds.max.add(v)]))},_projectLatlngs:function(d,v,E){var D=d[0]instanceof he,Y=d.length,se,ve;if(D){for(ve=[],se=0;se<Y;se++)ve[se]=this._map.latLngToLayerPoint(d[se]),E.extend(ve[se]);v.push(ve)}else for(se=0;se<Y;se++)this._projectLatlngs(d[se],v,E)},_clipPoints:function(){var d=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}var v=this._parts,E,D,Y,se,ve,Ee,Ne;for(E=0,Y=0,se=this._rings.length;E<se;E++)for(Ne=this._rings[E],D=0,ve=Ne.length;D<ve-1;D++)Ee=$v(Ne[D],Ne[D+1],d,D,!0),Ee&&(v[Y]=v[Y]||[],v[Y].push(Ee[0]),(Ee[1]!==Ne[D+1]||D===ve-2)&&(v[Y].push(Ee[1]),Y++))}},_simplifyPoints:function(){for(var d=this._parts,v=this.options.smoothFactor,E=0,D=d.length;E<D;E++)d[E]=kv(d[E],v)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(d,v){var E,D,Y,se,ve,Ee,Ne=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(E=0,se=this._parts.length;E<se;E++)for(Ee=this._parts[E],D=0,ve=Ee.length,Y=ve-1;D<ve;Y=D++)if(!(!v&&D===0)&&fh(d,Ee[Y],Ee[D])<=Ne)return!0;return!1}});function c1(d,v){return new ca(d,v)}ca._flat=Bv;var Bs=ca.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 Rc(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(d){var v=ca.prototype._convertLatLngs.call(this,d),E=v.length;return E>=2&&v[0]instanceof he&&v[0].equals(v[E-1])&&v.pop(),v},_setLatLngs:function(d){ca.prototype._setLatLngs.call(this,d),er(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return er(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var d=this._renderer._bounds,v=this.options.weight,E=new z(v,v);if(d=new k(d.min.subtract(E),d.max.add(E)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}for(var D=0,Y=this._rings.length,se;D<Y;D++)se=Dv(this._rings[D],d,!0),se.length&&this._parts.push(se)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(d){var v=!1,E,D,Y,se,ve,Ee,Ne,He;if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(se=0,Ne=this._parts.length;se<Ne;se++)for(E=this._parts[se],ve=0,He=E.length,Ee=He-1;ve<He;Ee=ve++)D=E[ve],Y=E[Ee],D.y>d.y!=Y.y>d.y&&d.x<(Y.x-D.x)*(d.y-D.y)/(Y.y-D.y)+D.x&&(v=!v);return v||ca.prototype._containsPoint.call(this,d,!0)}});function Mr(d,v){return new Bs(d,v)}var Nr=Rr.extend({initialize:function(d,v){w(this,v),this._layers={},d&&this.addData(d)},addData:function(d){var v=T(d)?d:d.features,E,D,Y;if(v){for(E=0,D=v.length;E<D;E++)Y=v[E],(Y.geometries||Y.geometry||Y.features||Y.coordinates)&&this.addData(Y);return this}var se=this.options;if(se.filter&&!se.filter(d))return this;var ve=uu(d,se);return ve?(ve.feature=Us(d),ve.defaultOptions=ve.options,this.resetStyle(ve),se.onEachFeature&&se.onEachFeature(d,ve),this.addLayer(ve)):this},resetStyle:function(d){return d===void 0?this.eachLayer(this.resetStyle,this):(d.options=i({},d.defaultOptions),this._setLayerStyle(d,this.options.style),this)},setStyle:function(d){return this.eachLayer(function(v){this._setLayerStyle(v,d)},this)},_setLayerStyle:function(d,v){d.setStyle&&(typeof v=="function"&&(v=v(d.feature)),d.setStyle(v))}});function uu(d,v){var E=d.type==="Feature"?d.geometry:d,D=E?E.coordinates:null,Y=[],se=v&&v.pointToLayer,ve=v&&v.coordsToLatLng||kc,Ee,Ne,He,et;if(!D&&!E)return null;switch(E.type){case"Point":return Ee=ve(D),gh(se,d,Ee,v);case"MultiPoint":for(He=0,et=D.length;He<et;He++)Ee=ve(D[He]),Y.push(gh(se,d,Ee,v));return new Rr(Y);case"LineString":case"MultiLineString":return Ne=cu(D,E.type==="LineString"?0:1,ve),new ca(Ne,v);case"Polygon":case"MultiPolygon":return Ne=cu(D,E.type==="Polygon"?1:2,ve),new Bs(Ne,v);case"GeometryCollection":for(He=0,et=E.geometries.length;He<et;He++){var nt=uu({geometry:E.geometries[He],type:"Feature",properties:d.properties},v);nt&&Y.push(nt)}return new Rr(Y);case"FeatureCollection":for(He=0,et=E.features.length;He<et;He++){var it=uu(E.features[He],v);it&&Y.push(it)}return new Rr(Y);default:throw new Error("Invalid GeoJSON object.")}}function gh(d,v,E,D){return d?d(v,E):new $s(E,D&&D.markersInheritOptions&&D)}function kc(d){return new he(d[1],d[0],d[2])}function cu(d,v,E){for(var D=[],Y=0,se=d.length,ve;Y<se;Y++)ve=v?cu(d[Y],v-1,E):(E||kc)(d[Y]),D.push(ve);return D}function fu(d,v){return d=de(d),d.alt!==void 0?[g(d.lng,v),g(d.lat,v),g(d.alt,v)]:[g(d.lng,v),g(d.lat,v)]}function Ic(d,v,E,D){for(var Y=[],se=0,ve=d.length;se<ve;se++)Y.push(v?Ic(d[se],er(d[se])?0:v-1,E,D):fu(d[se],D));return!v&&E&&Y.length>0&&Y.push(Y[0].slice()),Y}function oi(d,v){return d.feature?i({},d.feature,{geometry:v}):Us(v)}function Us(d){return d.type==="Feature"||d.type==="FeatureCollection"?d:{type:"Feature",properties:{},geometry:d}}var Mo={toGeoJSON:function(d){return oi(this,{type:"Point",coordinates:fu(this.getLatLng(),d)})}};$s.include(Mo),vh.include(Mo),lu.include(Mo),ca.include({toGeoJSON:function(d){var v=!er(this._latlngs),E=Ic(this._latlngs,v?1:0,!1,d);return oi(this,{type:(v?"Multi":"")+"LineString",coordinates:E})}}),Bs.include({toGeoJSON:function(d){var v=!er(this._latlngs),E=v&&!er(this._latlngs[0]),D=Ic(this._latlngs,E?2:v?1:0,!0,d);return v||(D=[D]),oi(this,{type:(E?"Multi":"")+"Polygon",coordinates:D})}}),Ro.include({toMultiPoint:function(d){var v=[];return this.eachLayer(function(E){v.push(E.toGeoJSON(d).geometry.coordinates)}),oi(this,{type:"MultiPoint",coordinates:v})},toGeoJSON:function(d){var v=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(v==="MultiPoint")return this.toMultiPoint(d);var E=v==="GeometryCollection",D=[];return this.eachLayer(function(Y){if(Y.toGeoJSON){var se=Y.toGeoJSON(d);if(E)D.push(se.geometry);else{var ve=Us(se);ve.type==="FeatureCollection"?D.push.apply(D,ve.features):D.push(ve)}}}),E?oi(this,{geometries:D,type:"GeometryCollection"}):{type:"FeatureCollection",features:D}}});function $c(d,v){return new Nr(d,v)}var Hv=$c,Ii=ai.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(d,v,E){this._url=d,this._bounds=oe(v),w(this,E)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(wt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){on(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(d){return this.options.opacity=d,this._image&&this._updateOpacity(),this},setStyle:function(d){return d.opacity&&this.setOpacity(d.opacity),this},bringToFront:function(){return this._map&&Oo(this._image),this},bringToBack:function(){return this._map&&Cs(this._image),this},setUrl:function(d){return this._url=d,this._image&&(this._image.src=d),this},setBounds:function(d){return this._bounds=oe(d),this._map&&this._reset(),this},getEvents:function(){var d={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var d=this._url.tagName==="IMG",v=this._image=d?this._url:Dt("img");if(wt(v,"leaflet-image-layer"),this._zoomAnimated&&wt(v,"leaflet-zoom-animated"),this.options.className&&wt(v,this.options.className),v.onselectstart=m,v.onmousemove=m,v.onload=o(this.fire,this,"load"),v.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),d){this._url=v.src;return}v.src=this._url,v.alt=this.options.alt},_animateZoom:function(d){var v=this._map.getZoomScale(d.zoom),E=this._map._latLngBoundsToNewLayerBounds(this._bounds,d.zoom,d.center).min;Wr(this._image,E,v)},_reset:function(){var d=this._image,v=new k(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),E=v.getSize();Sn(d,v.min),d.style.width=E.x+"px",d.style.height=E.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 d=this.options.errorOverlayUrl;d&&this._url!==d&&(this._url=d,this._image.src=d)},getCenter:function(){return this._bounds.getCenter()}}),zs=function(d,v,E){return new Ii(d,v,E)},Bc=Ii.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var d=this._url.tagName==="VIDEO",v=this._image=d?this._url:Dt("video");if(wt(v,"leaflet-image-layer"),this._zoomAnimated&&wt(v,"leaflet-zoom-animated"),this.options.className&&wt(v,this.options.className),v.onselectstart=m,v.onmousemove=m,v.onloadeddata=o(this.fire,this,"load"),d){for(var E=v.getElementsByTagName("source"),D=[],Y=0;Y<E.length;Y++)D.push(E[Y].src);this._url=E.length>0?D:[v.src];return}T(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(v.style,"objectFit")&&(v.style.objectFit="fill"),v.autoplay=!!this.options.autoplay,v.loop=!!this.options.loop,v.muted=!!this.options.muted,v.playsInline=!!this.options.playsInline;for(var se=0;se<this._url.length;se++){var ve=Dt("source");ve.src=this._url[se],v.appendChild(ve)}}});function Wv(d,v,E){return new Bc(d,v,E)}var za=Ii.extend({_initImage:function(){var d=this._image=this._url;wt(d,"leaflet-image-layer"),this._zoomAnimated&&wt(d,"leaflet-zoom-animated"),this.options.className&&wt(d,this.options.className),d.onselectstart=m,d.onmousemove=m}});function Gv(d,v,E){return new za(d,v,E)}var si=ai.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(d,v){d&&(d instanceof he||T(d))?(this._latlng=de(d),w(this,v)):(w(this,d),this._source=v),this.options.content&&(this._content=this.options.content)},openOn:function(d){return d=arguments.length?d:this._source._map,d.hasLayer(this)||d.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(d){return this._map?this.close():(arguments.length?this._source=d:d=this._source,this._prepareOpen(),this.openOn(d._map)),this},onAdd:function(d){this._zoomAnimated=d._zoomAnimated,this._container||this._initLayout(),d._fadeAnimated&&wr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),d._fadeAnimated&&wr(this._container,1),this.bringToFront(),this.options.interactive&&(wt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(d){d._fadeAnimated?(wr(this._container,0),this._removeTimeout=setTimeout(o(on,void 0,this._container),200)):on(this._container),this.options.interactive&&(sn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(d){return this._latlng=de(d),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(d){return this._content=d,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 d={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Oo(this._container),this},bringToBack:function(){return this._map&&Cs(this._container),this},_prepareOpen:function(d){var v=this._source;if(!v._map)return!1;if(v instanceof Rr){v=null;var E=this._source._layers;for(var D in E)if(E[D]._map){v=E[D];break}if(!v)return!1;this._source=v}if(!d)if(v.getCenter)d=v.getCenter();else if(v.getLatLng)d=v.getLatLng();else if(v.getBounds)d=v.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(d),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var d=this._contentNode,v=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof v=="string")d.innerHTML=v;else{for(;d.hasChildNodes();)d.removeChild(d.firstChild);d.appendChild(v)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var d=this._map.latLngToLayerPoint(this._latlng),v=M(this.options.offset),E=this._getAnchor();this._zoomAnimated?Sn(this._container,d.add(E)):v=v.add(d).add(E);var D=this._containerBottom=-v.y,Y=this._containerLeft=-Math.round(this._containerWidth/2)+v.x;this._container.style.bottom=D+"px",this._container.style.left=Y+"px"}},_getAnchor:function(){return[0,0]}});Tt.include({_initOverlay:function(d,v,E,D){var Y=v;return Y instanceof d||(Y=new d(D).setContent(v)),E&&Y.setLatLng(E),Y}}),ai.include({_initOverlay:function(d,v,E,D){var Y=E;return Y instanceof d?(w(Y,D),Y._source=this):(Y=v&&!D?v:new d(D,this),Y.setContent(E)),Y}});var du=si.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(d){return d=arguments.length?d:this._source._map,!d.hasLayer(this)&&d._popup&&d._popup.options.autoClose&&d.removeLayer(d._popup),d._popup=this,si.prototype.openOn.call(this,d)},onAdd:function(d){si.prototype.onAdd.call(this,d),d.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ua||this._source.on("preclick",la))},onRemove:function(d){si.prototype.onRemove.call(this,d),d.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ua||this._source.off("preclick",la))},getEvents:function(){var d=si.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(d.preclick=this.close),this.options.keepInView&&(d.moveend=this._adjustPan),d},_initLayout:function(){var d="leaflet-popup",v=this._container=Dt("div",d+" "+(this.options.className||"")+" leaflet-zoom-animated"),E=this._wrapper=Dt("div",d+"-content-wrapper",v);if(this._contentNode=Dt("div",d+"-content",E),Ns(v),Ms(this._contentNode),bt(v,"contextmenu",la),this._tipContainer=Dt("div",d+"-tip-container",v),this._tip=Dt("div",d+"-tip",this._tipContainer),this.options.closeButton){var D=this._closeButton=Dt("a",d+"-close-button",v);D.setAttribute("role","button"),D.setAttribute("aria-label","Close popup"),D.href="#close",D.innerHTML='<span aria-hidden="true">×</span>',bt(D,"click",function(Y){jn(Y),this.close()},this)}},_updateLayout:function(){var d=this._contentNode,v=d.style;v.width="",v.whiteSpace="nowrap";var E=d.offsetWidth;E=Math.min(E,this.options.maxWidth),E=Math.max(E,this.options.minWidth),v.width=E+1+"px",v.whiteSpace="",v.height="";var D=d.offsetHeight,Y=this.options.maxHeight,se="leaflet-popup-scrolled";Y&&D>Y?(v.height=Y+"px",wt(d,se)):sn(d,se),this._containerWidth=this._container.offsetWidth},_animateZoom:function(d){var v=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center),E=this._getAnchor();Sn(this._container,v.add(E))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var d=this._map,v=parseInt(So(this._container,"marginBottom"),10)||0,E=this._container.offsetHeight+v,D=this._containerWidth,Y=new z(this._containerLeft,-E-this._containerBottom);Y._add($a(this._container));var se=d.layerPointToContainerPoint(Y),ve=M(this.options.autoPanPadding),Ee=M(this.options.autoPanPaddingTopLeft||ve),Ne=M(this.options.autoPanPaddingBottomRight||ve),He=d.getSize(),et=0,nt=0;se.x+D+Ne.x>He.x&&(et=se.x+D-He.x+Ne.x),se.x-et-Ee.x<0&&(et=se.x-Ee.x),se.y+E+Ne.y>He.y&&(nt=se.y+E-He.y+Ne.y),se.y-nt-Ee.y<0&&(nt=se.y-Ee.y),(et||nt)&&(this.options.keepInView&&(this._autopanning=!0),d.fire("autopanstart").panBy([et,nt]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),f1=function(d,v){return new du(d,v)};Tt.mergeOptions({closePopupOnClick:!0}),Tt.include({openPopup:function(d,v,E){return this._initOverlay(du,d,v,E).openOn(this),this},closePopup:function(d){return d=arguments.length?d:this._popup,d&&d.close(),this}}),ai.include({bindPopup:function(d,v){return this._popup=this._initOverlay(du,this._popup,d,v),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(d){return this._popup&&(this instanceof Rr||(this._popup._source=this),this._popup._prepareOpen(d||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(d){return this._popup&&this._popup.setContent(d),this},getPopup:function(){return this._popup},_openPopup:function(d){if(!(!this._popup||!this._map)){ki(d);var v=d.layer||d.target;if(this._popup._source===v&&!(v instanceof ua)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(d.latlng);return}this._popup._source=v,this.openPopup(d.latlng)}},_movePopup:function(d){this._popup.setLatLng(d.latlng)},_onKeyPress:function(d){d.originalEvent.keyCode===13&&this._openPopup(d)}});var Uc=si.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(d){si.prototype.onAdd.call(this,d),this.setOpacity(this.options.opacity),d.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(d){si.prototype.onRemove.call(this,d),d.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var d=si.prototype.getEvents.call(this);return this.options.permanent||(d.preclick=this.close),d},_initLayout:function(){var d="leaflet-tooltip",v=d+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Dt("div",v),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(d){var v,E,D=this._map,Y=this._container,se=D.latLngToContainerPoint(D.getCenter()),ve=D.layerPointToContainerPoint(d),Ee=this.options.direction,Ne=Y.offsetWidth,He=Y.offsetHeight,et=M(this.options.offset),nt=this._getAnchor();Ee==="top"?(v=Ne/2,E=He):Ee==="bottom"?(v=Ne/2,E=0):Ee==="center"?(v=Ne/2,E=He/2):Ee==="right"?(v=0,E=He/2):Ee==="left"?(v=Ne,E=He/2):ve.x<se.x?(Ee="right",v=0,E=He/2):(Ee="left",v=Ne+(et.x+nt.x)*2,E=He/2),d=d.subtract(M(v,E,!0)).add(et).add(nt),sn(Y,"leaflet-tooltip-right"),sn(Y,"leaflet-tooltip-left"),sn(Y,"leaflet-tooltip-top"),sn(Y,"leaflet-tooltip-bottom"),wt(Y,"leaflet-tooltip-"+Ee),Sn(Y,d)},_updatePosition:function(){var d=this._map.latLngToLayerPoint(this._latlng);this._setPosition(d)},setOpacity:function(d){this.options.opacity=d,this._container&&wr(this._container,d)},_animateZoom:function(d){var v=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center);this._setPosition(v)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),d1=function(d,v){return new Uc(d,v)};Tt.include({openTooltip:function(d,v,E){return this._initOverlay(Uc,d,v,E).openOn(this),this},closeTooltip:function(d){return d.close(),this}}),ai.include({bindTooltip:function(d,v){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Uc,this._tooltip,d,v),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(d){if(!(!d&&this._tooltipHandlersAdded)){var v=d?"off":"on",E={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?E.add=this._openTooltip:(E.mouseover=this._openTooltip,E.mouseout=this.closeTooltip,E.click=this._openTooltip,this._map?this._addFocusListeners():E.add=this._addFocusListeners),this._tooltip.options.sticky&&(E.mousemove=this._moveTooltip),this[v](E),this._tooltipHandlersAdded=!d}},openTooltip:function(d){return this._tooltip&&(this instanceof Rr||(this._tooltip._source=this),this._tooltip._prepareOpen(d)&&(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(d){return this._tooltip&&this._tooltip.setContent(d),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(d){var v=typeof d.getElement=="function"&&d.getElement();v&&(bt(v,"focus",function(){this._tooltip._source=d,this.openTooltip()},this),bt(v,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(d){var v=typeof d.getElement=="function"&&d.getElement();v&&v.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(d){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var v=this;this._map.once("moveend",function(){v._openOnceFlag=!1,v._openTooltip(d)});return}this._tooltip._source=d.layer||d.target,this.openTooltip(this._tooltip.options.sticky?d.latlng:void 0)}},_moveTooltip:function(d){var v=d.latlng,E,D;this._tooltip.options.sticky&&d.originalEvent&&(E=this._map.mouseEventToContainerPoint(d.originalEvent),D=this._map.containerPointToLayerPoint(E),v=this._map.layerPointToLatLng(D)),this._tooltip.setLatLng(v)}});var yh=ks.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(d){var v=d&&d.tagName==="DIV"?d:document.createElement("div"),E=this.options;if(E.html instanceof Element?(fr(v),v.appendChild(E.html)):v.innerHTML=E.html!==!1?E.html:"",E.bgPos){var D=M(E.bgPos);v.style.backgroundPosition=-D.x+"px "+-D.y+"px"}return this._setIconStyles(v,"icon"),v},createShadow:function(){return null}});function Yv(d){return new yh(d)}ks.Default=Is;var No=ai.extend({options:{tileSize:256,opacity:1,updateWhenIdle:st.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(d){w(this,d)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(d){d._addZoomLimit(this)},onRemove:function(d){this._removeAllTiles(),on(this._container),d._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Oo(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Cs(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(d){return this.options.opacity=d,this._updateOpacity(),this},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var d=this._clampZoom(this._map.getZoom());d!==this._tileZoom&&(this._tileZoom=d,this._updateLevels()),this._update()}return this},getEvents:function(){var d={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),d.move=this._onMove),this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},createTile:function(){return document.createElement("div")},getTileSize:function(){var d=this.options.tileSize;return d instanceof z?d:new z(d,d)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(d){for(var v=this.getPane().children,E=-d(-1/0,1/0),D=0,Y=v.length,se;D<Y;D++)se=v[D].style.zIndex,v[D]!==this._container&&se&&(E=d(E,+se));isFinite(E)&&(this.options.zIndex=E+d(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!st.ielt9){wr(this._container,this.options.opacity);var d=+new Date,v=!1,E=!1;for(var D in this._tiles){var Y=this._tiles[D];if(!(!Y.current||!Y.loaded)){var se=Math.min(1,(d-Y.loaded)/200);wr(Y.el,se),se<1?v=!0:(Y.active?E=!0:this._onOpaqueTile(Y),Y.active=!0)}}E&&!this._noPrune&&this._pruneTiles(),v&&(ne(this._fadeFrame),this._fadeFrame=K(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=Dt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var d=this._tileZoom,v=this.options.maxZoom;if(d!==void 0){for(var E in this._levels)E=Number(E),this._levels[E].el.children.length||E===d?(this._levels[E].el.style.zIndex=v-Math.abs(d-E),this._onUpdateLevel(E)):(on(this._levels[E].el),this._removeTilesAtZoom(E),this._onRemoveLevel(E),delete this._levels[E]);var D=this._levels[d],Y=this._map;return D||(D=this._levels[d]={},D.el=Dt("div","leaflet-tile-container leaflet-zoom-animated",this._container),D.el.style.zIndex=v,D.origin=Y.project(Y.unproject(Y.getPixelOrigin()),d).round(),D.zoom=d,this._setZoomTransform(D,Y.getCenter(),Y.getZoom()),m(D.el.offsetWidth),this._onCreateLevel(D)),this._level=D,D}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var d,v,E=this._map.getZoom();if(E>this.options.maxZoom||E<this.options.minZoom){this._removeAllTiles();return}for(d in this._tiles)v=this._tiles[d],v.retain=v.current;for(d in this._tiles)if(v=this._tiles[d],v.current&&!v.active){var D=v.coords;this._retainParent(D.x,D.y,D.z,D.z-5)||this._retainChildren(D.x,D.y,D.z,D.z+2)}for(d in this._tiles)this._tiles[d].retain||this._removeTile(d)}},_removeTilesAtZoom:function(d){for(var v in this._tiles)this._tiles[v].coords.z===d&&this._removeTile(v)},_removeAllTiles:function(){for(var d in this._tiles)this._removeTile(d)},_invalidateAll:function(){for(var d in this._levels)on(this._levels[d].el),this._onRemoveLevel(Number(d)),delete this._levels[d];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(d,v,E,D){var Y=Math.floor(d/2),se=Math.floor(v/2),ve=E-1,Ee=new z(+Y,+se);Ee.z=+ve;var Ne=this._tileCoordsToKey(Ee),He=this._tiles[Ne];return He&&He.active?(He.retain=!0,!0):(He&&He.loaded&&(He.retain=!0),ve>D?this._retainParent(Y,se,ve,D):!1)},_retainChildren:function(d,v,E,D){for(var Y=2*d;Y<2*d+2;Y++)for(var se=2*v;se<2*v+2;se++){var ve=new z(Y,se);ve.z=E+1;var Ee=this._tileCoordsToKey(ve),Ne=this._tiles[Ee];if(Ne&&Ne.active){Ne.retain=!0;continue}else Ne&&Ne.loaded&&(Ne.retain=!0);E+1<D&&this._retainChildren(Y,se,E+1,D)}},_resetView:function(d){var v=d&&(d.pinch||d.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),v,v)},_animateZoom:function(d){this._setView(d.center,d.zoom,!0,d.noUpdate)},_clampZoom:function(d){var v=this.options;return v.minNativeZoom!==void 0&&d<v.minNativeZoom?v.minNativeZoom:v.maxNativeZoom!==void 0&&v.maxNativeZoom<d?v.maxNativeZoom:d},_setView:function(d,v,E,D){var Y=Math.round(v);this.options.maxZoom!==void 0&&Y>this.options.maxZoom||this.options.minZoom!==void 0&&Y<this.options.minZoom?Y=void 0:Y=this._clampZoom(Y);var se=this.options.updateWhenZooming&&Y!==this._tileZoom;(!D||se)&&(this._tileZoom=Y,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),Y!==void 0&&this._update(d),E||this._pruneTiles(),this._noPrune=!!E),this._setZoomTransforms(d,v)},_setZoomTransforms:function(d,v){for(var E in this._levels)this._setZoomTransform(this._levels[E],d,v)},_setZoomTransform:function(d,v,E){var D=this._map.getZoomScale(E,d.zoom),Y=d.origin.multiplyBy(D).subtract(this._map._getNewPixelOrigin(v,E)).round();st.any3d?Wr(d.el,Y,D):Sn(d.el,Y)},_resetGrid:function(){var d=this._map,v=d.options.crs,E=this._tileSize=this.getTileSize(),D=this._tileZoom,Y=this._map.getPixelWorldBounds(this._tileZoom);Y&&(this._globalTileRange=this._pxBoundsToTileRange(Y)),this._wrapX=v.wrapLng&&!this.options.noWrap&&[Math.floor(d.project([0,v.wrapLng[0]],D).x/E.x),Math.ceil(d.project([0,v.wrapLng[1]],D).x/E.y)],this._wrapY=v.wrapLat&&!this.options.noWrap&&[Math.floor(d.project([v.wrapLat[0],0],D).y/E.x),Math.ceil(d.project([v.wrapLat[1],0],D).y/E.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(d){var v=this._map,E=v._animatingZoom?Math.max(v._animateToZoom,v.getZoom()):v.getZoom(),D=v.getZoomScale(E,this._tileZoom),Y=v.project(d,this._tileZoom).floor(),se=v.getSize().divideBy(D*2);return new k(Y.subtract(se),Y.add(se))},_update:function(d){var v=this._map;if(v){var E=this._clampZoom(v.getZoom());if(d===void 0&&(d=v.getCenter()),this._tileZoom!==void 0){var D=this._getTiledPixelBounds(d),Y=this._pxBoundsToTileRange(D),se=Y.getCenter(),ve=[],Ee=this.options.keepBuffer,Ne=new k(Y.getBottomLeft().subtract([Ee,-Ee]),Y.getTopRight().add([Ee,-Ee]));if(!(isFinite(Y.min.x)&&isFinite(Y.min.y)&&isFinite(Y.max.x)&&isFinite(Y.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var He in this._tiles){var et=this._tiles[He].coords;(et.z!==this._tileZoom||!Ne.contains(new z(et.x,et.y)))&&(this._tiles[He].current=!1)}if(Math.abs(E-this._tileZoom)>1){this._setView(d,E);return}for(var nt=Y.min.y;nt<=Y.max.y;nt++)for(var it=Y.min.x;it<=Y.max.x;it++){var yt=new z(it,nt);if(yt.z=this._tileZoom,!!this._isValidTile(yt)){var ln=this._tiles[this._tileCoordsToKey(yt)];ln?ln.current=!0:ve.push(yt)}}if(ve.sort(function(tr,Gr){return tr.distanceTo(se)-Gr.distanceTo(se)}),ve.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var On=document.createDocumentFragment();for(it=0;it<ve.length;it++)this._addTile(ve[it],On);this._level.el.appendChild(On)}}}},_isValidTile:function(d){var v=this._map.options.crs;if(!v.infinite){var E=this._globalTileRange;if(!v.wrapLng&&(d.x<E.min.x||d.x>E.max.x)||!v.wrapLat&&(d.y<E.min.y||d.y>E.max.y))return!1}if(!this.options.bounds)return!0;var D=this._tileCoordsToBounds(d);return oe(this.options.bounds).overlaps(D)},_keyToBounds:function(d){return this._tileCoordsToBounds(this._keyToTileCoords(d))},_tileCoordsToNwSe:function(d){var v=this._map,E=this.getTileSize(),D=d.scaleBy(E),Y=D.add(E),se=v.unproject(D,d.z),ve=v.unproject(Y,d.z);return[se,ve]},_tileCoordsToBounds:function(d){var v=this._tileCoordsToNwSe(d),E=new Z(v[0],v[1]);return this.options.noWrap||(E=this._map.wrapLatLngBounds(E)),E},_tileCoordsToKey:function(d){return d.x+":"+d.y+":"+d.z},_keyToTileCoords:function(d){var v=d.split(":"),E=new z(+v[0],+v[1]);return E.z=+v[2],E},_removeTile:function(d){var v=this._tiles[d];v&&(on(v.el),delete this._tiles[d],this.fire("tileunload",{tile:v.el,coords:this._keyToTileCoords(d)}))},_initTile:function(d){wt(d,"leaflet-tile");var v=this.getTileSize();d.style.width=v.x+"px",d.style.height=v.y+"px",d.onselectstart=m,d.onmousemove=m,st.ielt9&&this.options.opacity<1&&wr(d,this.options.opacity)},_addTile:function(d,v){var E=this._getTilePos(d),D=this._tileCoordsToKey(d),Y=this.createTile(this._wrapCoords(d),o(this._tileReady,this,d));this._initTile(Y),this.createTile.length<2&&K(o(this._tileReady,this,d,null,Y)),Sn(Y,E),this._tiles[D]={el:Y,coords:d,current:!0},v.appendChild(Y),this.fire("tileloadstart",{tile:Y,coords:d})},_tileReady:function(d,v,E){v&&this.fire("tileerror",{error:v,tile:E,coords:d});var D=this._tileCoordsToKey(d);E=this._tiles[D],E&&(E.loaded=+new Date,this._map._fadeAnimated?(wr(E.el,0),ne(this._fadeFrame),this._fadeFrame=K(this._updateOpacity,this)):(E.active=!0,this._pruneTiles()),v||(wt(E.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:E.el,coords:d})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),st.ielt9||!this._map._fadeAnimated?K(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(d){return d.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(d){var v=new z(this._wrapX?h(d.x,this._wrapX):d.x,this._wrapY?h(d.y,this._wrapY):d.y);return v.z=d.z,v},_pxBoundsToTileRange:function(d){var v=this.getTileSize();return new k(d.min.unscaleBy(v).floor(),d.max.unscaleBy(v).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var d in this._tiles)if(!this._tiles[d].loaded)return!1;return!0}});function li(d){return new No(d)}var Lo=No.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(d,v){this._url=d,v=w(this,v),v.detectRetina&&st.retina&&v.maxZoom>0?(v.tileSize=Math.floor(v.tileSize/2),v.zoomReverse?(v.zoomOffset--,v.minZoom=Math.min(v.maxZoom,v.minZoom+1)):(v.zoomOffset++,v.maxZoom=Math.max(v.minZoom,v.maxZoom-1)),v.minZoom=Math.max(0,v.minZoom)):v.zoomReverse?v.minZoom=Math.min(v.maxZoom,v.minZoom):v.maxZoom=Math.max(v.minZoom,v.maxZoom),typeof v.subdomains=="string"&&(v.subdomains=v.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(d,v){return this._url===d&&v===void 0&&(v=!0),this._url=d,v||this.redraw(),this},createTile:function(d,v){var E=document.createElement("img");return bt(E,"load",o(this._tileOnLoad,this,v,E)),bt(E,"error",o(this._tileOnError,this,v,E)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(E.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(E.referrerPolicy=this.options.referrerPolicy),E.alt="",E.src=this.getTileUrl(d),E},getTileUrl:function(d){var v={r:st.retina?"@2x":"",s:this._getSubdomain(d),x:d.x,y:d.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var E=this._globalTileRange.max.y-d.y;this.options.tms&&(v.y=E),v["-y"]=E}return C(this._url,i(v,this.options))},_tileOnLoad:function(d,v){st.ielt9?setTimeout(o(d,this,null,v),0):d(null,v)},_tileOnError:function(d,v,E){var D=this.options.errorTileUrl;D&&v.getAttribute("src")!==D&&(v.src=D),d(E,v)},_onTileRemove:function(d){d.tile.onload=null},_getZoomForUrl:function(){var d=this._tileZoom,v=this.options.maxZoom,E=this.options.zoomReverse,D=this.options.zoomOffset;return E&&(d=v-d),d+D},_getSubdomain:function(d){var v=Math.abs(d.x+d.y)%this.options.subdomains.length;return this.options.subdomains[v]},_abortLoading:function(){var d,v;for(d in this._tiles)if(this._tiles[d].coords.z!==this._tileZoom&&(v=this._tiles[d].el,v.onload=m,v.onerror=m,!v.complete)){v.src=P;var E=this._tiles[d].coords;on(v),delete this._tiles[d],this.fire("tileabort",{tile:v,coords:E})}},_removeTile:function(d){var v=this._tiles[d];if(v)return v.el.setAttribute("src",P),No.prototype._removeTile.call(this,d)},_tileReady:function(d,v,E){if(!(!this._map||E&&E.getAttribute("src")===P))return No.prototype._tileReady.call(this,d,v,E)}});function Lr(d,v){return new Lo(d,v)}var Dr=Lo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(d,v){this._url=d;var E=i({},this.defaultWmsParams);for(var D in v)D in this.options||(E[D]=v[D]);v=w(this,v);var Y=v.detectRetina&&st.retina?2:1,se=this.getTileSize();E.width=se.x*Y,E.height=se.y*Y,this.wmsParams=E},onAdd:function(d){this._crs=this.options.crs||d.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var v=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[v]=this._crs.code,Lo.prototype.onAdd.call(this,d)},getTileUrl:function(d){var v=this._tileCoordsToNwSe(d),E=this._crs,D=te(E.project(v[0]),E.project(v[1])),Y=D.min,se=D.max,ve=(this._wmsVersion>=1.3&&this._crs===Fv?[Y.y,Y.x,se.y,se.x]:[Y.x,Y.y,se.x,se.y]).join(","),Ee=Lo.prototype.getTileUrl.call(this,d);return Ee+S(this.wmsParams,Ee,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+ve},setParams:function(d,v){return i(this.wmsParams,d),v||this.redraw(),this}});function Fs(d,v){return new Dr(d,v)}Lo.WMS=Dr,Lr.wms=Fs;var ui=ai.extend({options:{padding:.1},initialize:function(d){w(this,d),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),wt(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 d={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(d.zoomanim=this._onAnimZoom),d},_onAnimZoom:function(d){this._updateTransform(d.center,d.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(d,v){var E=this._map.getZoomScale(v,this._zoom),D=this._map.getSize().multiplyBy(.5+this.options.padding),Y=this._map.project(this._center,v),se=D.multiplyBy(-E).add(Y).subtract(this._map._getNewPixelOrigin(d,v));st.any3d?Wr(this._container,se,E):Sn(this._container,se)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var d in this._layers)this._layers[d]._reset()},_onZoomEnd:function(){for(var d in this._layers)this._layers[d]._project()},_updatePaths:function(){for(var d in this._layers)this._layers[d]._update()},_update:function(){var d=this.options.padding,v=this._map.getSize(),E=this._map.containerPointToLayerPoint(v.multiplyBy(-d)).round();this._bounds=new k(E,E.add(v.multiplyBy(1+d*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),hu=ui.extend({options:{tolerance:0},getEvents:function(){var d=ui.prototype.getEvents.call(this);return d.viewprereset=this._onViewPreReset,d},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ui.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var d=this._container=document.createElement("canvas");bt(d,"mousemove",this._onMouseMove,this),bt(d,"click dblclick mousedown mouseup contextmenu",this._onClick,this),bt(d,"mouseout",this._handleMouseOut,this),d._leaflet_disable_events=!0,this._ctx=d.getContext("2d")},_destroyContainer:function(){ne(this._redrawRequest),delete this._ctx,on(this._container),zt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var d;this._redrawBounds=null;for(var v in this._layers)d=this._layers[v],d._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ui.prototype._update.call(this);var d=this._bounds,v=this._container,E=d.getSize(),D=st.retina?2:1;Sn(v,d.min),v.width=D*E.x,v.height=D*E.y,v.style.width=E.x+"px",v.style.height=E.y+"px",st.retina&&this._ctx.scale(2,2),this._ctx.translate(-d.min.x,-d.min.y),this.fire("update")}},_reset:function(){ui.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(d){this._updateDashArray(d),this._layers[f(d)]=d;var v=d._order={layer:d,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=v),this._drawLast=v,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(d){this._requestRedraw(d)},_removePath:function(d){var v=d._order,E=v.next,D=v.prev;E?E.prev=D:this._drawLast=D,D?D.next=E:this._drawFirst=E,delete d._order,delete this._layers[f(d)],this._requestRedraw(d)},_updatePath:function(d){this._extendRedrawBounds(d),d._project(),d._update(),this._requestRedraw(d)},_updateStyle:function(d){this._updateDashArray(d),this._requestRedraw(d)},_updateDashArray:function(d){if(typeof d.options.dashArray=="string"){var v=d.options.dashArray.split(/[, ]+/),E=[],D,Y;for(Y=0;Y<v.length;Y++){if(D=Number(v[Y]),isNaN(D))return;E.push(D)}d.options._dashArray=E}else d.options._dashArray=d.options.dashArray},_requestRedraw:function(d){this._map&&(this._extendRedrawBounds(d),this._redrawRequest=this._redrawRequest||K(this._redraw,this))},_extendRedrawBounds:function(d){if(d._pxBounds){var v=(d.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new k,this._redrawBounds.extend(d._pxBounds.min.subtract([v,v])),this._redrawBounds.extend(d._pxBounds.max.add([v,v]))}},_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 d=this._redrawBounds;if(d){var v=d.getSize();this._ctx.clearRect(d.min.x,d.min.y,v.x,v.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 d,v=this._redrawBounds;if(this._ctx.save(),v){var E=v.getSize();this._ctx.beginPath(),this._ctx.rect(v.min.x,v.min.y,E.x,E.y),this._ctx.clip()}this._drawing=!0;for(var D=this._drawFirst;D;D=D.next)d=D.layer,(!v||d._pxBounds&&d._pxBounds.intersects(v))&&d._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(d,v){if(this._drawing){var E,D,Y,se,ve=d._parts,Ee=ve.length,Ne=this._ctx;if(Ee){for(Ne.beginPath(),E=0;E<Ee;E++){for(D=0,Y=ve[E].length;D<Y;D++)se=ve[E][D],Ne[D?"lineTo":"moveTo"](se.x,se.y);v&&Ne.closePath()}this._fillStroke(Ne,d)}}},_updateCircle:function(d){if(!(!this._drawing||d._empty())){var v=d._point,E=this._ctx,D=Math.max(Math.round(d._radius),1),Y=(Math.max(Math.round(d._radiusY),1)||D)/D;Y!==1&&(E.save(),E.scale(1,Y)),E.beginPath(),E.arc(v.x,v.y/Y,D,0,Math.PI*2,!1),Y!==1&&E.restore(),this._fillStroke(E,d)}},_fillStroke:function(d,v){var E=v.options;E.fill&&(d.globalAlpha=E.fillOpacity,d.fillStyle=E.fillColor||E.color,d.fill(E.fillRule||"evenodd")),E.stroke&&E.weight!==0&&(d.setLineDash&&d.setLineDash(v.options&&v.options._dashArray||[]),d.globalAlpha=E.opacity,d.lineWidth=E.weight,d.strokeStyle=E.color,d.lineCap=E.lineCap,d.lineJoin=E.lineJoin,d.stroke())},_onClick:function(d){for(var v=this._map.mouseEventToLayerPoint(d),E,D,Y=this._drawFirst;Y;Y=Y.next)E=Y.layer,E.options.interactive&&E._containsPoint(v)&&(!(d.type==="click"||d.type==="preclick")||!this._map._draggableMoved(E))&&(D=E);this._fireEvent(D?[D]:!1,d)},_onMouseMove:function(d){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var v=this._map.mouseEventToLayerPoint(d);this._handleMouseHover(d,v)}},_handleMouseOut:function(d){var v=this._hoveredLayer;v&&(sn(this._container,"leaflet-interactive"),this._fireEvent([v],d,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(d,v){if(!this._mouseHoverThrottled){for(var E,D,Y=this._drawFirst;Y;Y=Y.next)E=Y.layer,E.options.interactive&&E._containsPoint(v)&&(D=E);D!==this._hoveredLayer&&(this._handleMouseOut(d),D&&(wt(this._container,"leaflet-interactive"),this._fireEvent([D],d,"mouseover"),this._hoveredLayer=D)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,d),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(d,v,E){this._map._fireDOMEvent(v,E||v.type,d)},_bringToFront:function(d){var v=d._order;if(v){var E=v.next,D=v.prev;if(E)E.prev=D;else return;D?D.next=E:E&&(this._drawFirst=E),v.prev=this._drawLast,this._drawLast.next=v,v.next=null,this._drawLast=v,this._requestRedraw(d)}},_bringToBack:function(d){var v=d._order;if(v){var E=v.next,D=v.prev;if(D)D.next=E;else return;E?E.prev=D:D&&(this._drawLast=D),v.prev=null,v.next=this._drawFirst,this._drawFirst.prev=v,this._drawFirst=v,this._requestRedraw(d)}}});function pu(d){return st.canvas?new hu(d):null}var Do=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(d){return document.createElement("<lvml:"+d+' class="lvml">')}}catch{}return function(d){return document.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),qs={_initContainer:function(){this._container=Dt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ui.prototype._update.call(this),this.fire("update"))},_initPath:function(d){var v=d._container=Do("shape");wt(v,"leaflet-vml-shape "+(this.options.className||"")),v.coordsize="1 1",d._path=Do("path"),v.appendChild(d._path),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){var v=d._container;this._container.appendChild(v),d.options.interactive&&d.addInteractiveTarget(v)},_removePath:function(d){var v=d._container;on(v),d.removeInteractiveTarget(v),delete this._layers[f(d)]},_updateStyle:function(d){var v=d._stroke,E=d._fill,D=d.options,Y=d._container;Y.stroked=!!D.stroke,Y.filled=!!D.fill,D.stroke?(v||(v=d._stroke=Do("stroke")),Y.appendChild(v),v.weight=D.weight+"px",v.color=D.color,v.opacity=D.opacity,D.dashArray?v.dashStyle=T(D.dashArray)?D.dashArray.join(" "):D.dashArray.replace(/( *, *)/g," "):v.dashStyle="",v.endcap=D.lineCap.replace("butt","flat"),v.joinstyle=D.lineJoin):v&&(Y.removeChild(v),d._stroke=null),D.fill?(E||(E=d._fill=Do("fill")),Y.appendChild(E),E.color=D.fillColor||D.color,E.opacity=D.fillOpacity):E&&(Y.removeChild(E),d._fill=null)},_updateCircle:function(d){var v=d._point.round(),E=Math.round(d._radius),D=Math.round(d._radiusY||E);this._setPath(d,d._empty()?"M0 0":"AL "+v.x+","+v.y+" "+E+","+D+" 0,"+65535*360)},_setPath:function(d,v){d._path.v=v},_bringToFront:function(d){Oo(d._container)},_bringToBack:function(d){Cs(d._container)}},mu=st.vml?Do:ye,Fa=ui.extend({_initContainer:function(){this._container=mu("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=mu("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){on(this._container),zt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ui.prototype._update.call(this);var d=this._bounds,v=d.getSize(),E=this._container;(!this._svgSize||!this._svgSize.equals(v))&&(this._svgSize=v,E.setAttribute("width",v.x),E.setAttribute("height",v.y)),Sn(E,d.min),E.setAttribute("viewBox",[d.min.x,d.min.y,v.x,v.y].join(" ")),this.fire("update")}},_initPath:function(d){var v=d._path=mu("path");d.options.className&&wt(v,d.options.className),d.options.interactive&&wt(v,"leaflet-interactive"),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(d._path),d.addInteractiveTarget(d._path)},_removePath:function(d){on(d._path),d.removeInteractiveTarget(d._path),delete this._layers[f(d)]},_updatePath:function(d){d._project(),d._update()},_updateStyle:function(d){var v=d._path,E=d.options;v&&(E.stroke?(v.setAttribute("stroke",E.color),v.setAttribute("stroke-opacity",E.opacity),v.setAttribute("stroke-width",E.weight),v.setAttribute("stroke-linecap",E.lineCap),v.setAttribute("stroke-linejoin",E.lineJoin),E.dashArray?v.setAttribute("stroke-dasharray",E.dashArray):v.removeAttribute("stroke-dasharray"),E.dashOffset?v.setAttribute("stroke-dashoffset",E.dashOffset):v.removeAttribute("stroke-dashoffset")):v.setAttribute("stroke","none"),E.fill?(v.setAttribute("fill",E.fillColor||E.color),v.setAttribute("fill-opacity",E.fillOpacity),v.setAttribute("fill-rule",E.fillRule||"evenodd")):v.setAttribute("fill","none"))},_updatePoly:function(d,v){this._setPath(d,me(d._parts,v))},_updateCircle:function(d){var v=d._point,E=Math.max(Math.round(d._radius),1),D=Math.max(Math.round(d._radiusY),1)||E,Y="a"+E+","+D+" 0 1,0 ",se=d._empty()?"M0 0":"M"+(v.x-E)+","+v.y+Y+E*2+",0 "+Y+-E*2+",0 ";this._setPath(d,se)},_setPath:function(d,v){d._path.setAttribute("d",v)},_bringToFront:function(d){Oo(d._path)},_bringToBack:function(d){Cs(d._path)}});st.vml&&Fa.include(qs);function ko(d){return st.svg||st.vml?new Fa(d):null}Tt.include({getRenderer:function(d){var v=d.options.renderer||this._getPaneRenderer(d.options.pane)||this.options.renderer||this._renderer;return v||(v=this._renderer=this._createRenderer()),this.hasLayer(v)||this.addLayer(v),v},_getPaneRenderer:function(d){if(d==="overlayPane"||d===void 0)return!1;var v=this._paneRenderers[d];return v===void 0&&(v=this._createRenderer({pane:d}),this._paneRenderers[d]=v),v},_createRenderer:function(d){return this.options.preferCanvas&&pu(d)||ko(d)}});var Kv=Bs.extend({initialize:function(d,v){Bs.prototype.initialize.call(this,this._boundsToLatLngs(d),v)},setBounds:function(d){return this.setLatLngs(this._boundsToLatLngs(d))},_boundsToLatLngs:function(d){return d=oe(d),[d.getSouthWest(),d.getNorthWest(),d.getNorthEast(),d.getSouthEast()]}});function kr(d,v){return new Kv(d,v)}Fa.create=mu,Fa.pointsToPath=me,Nr.geometryToLayer=uu,Nr.coordsToLatLng=kc,Nr.coordsToLatLngs=cu,Nr.latLngToCoords=fu,Nr.latLngsToCoords=Ic,Nr.getFeature=oi,Nr.asFeature=Us,Tt.mergeOptions({boxZoom:!0});var zc=ii.extend({initialize:function(d){this._map=d,this._container=d._container,this._pane=d._panes.overlayPane,this._resetStateTimeout=0,d.on("unload",this._destroy,this)},addHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){zt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){on(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(d){if(!d.shiftKey||d.which!==1&&d.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ni(),nu(),this._startPoint=this._map.mouseEventToContainerPoint(d),bt(document,{contextmenu:ki,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(d){this._moved||(this._moved=!0,this._box=Dt("div","leaflet-zoom-box",this._container),wt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(d);var v=new k(this._point,this._startPoint),E=v.getSize();Sn(this._box,v.min),this._box.style.width=E.x+"px",this._box.style.height=E.y+"px"},_finish:function(){this._moved&&(on(this._box),sn(this._container,"leaflet-crosshair")),tu(),ah(),zt(document,{contextmenu:ki,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(d){if(!(d.which!==1&&d.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var v=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(v).fire("boxzoomend",{boxZoomBounds:v})}},_onKeyDown:function(d){d.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Tt.addInitHook("addHandler","boxZoom",zc),Tt.mergeOptions({doubleClickZoom:!0});var $i=ii.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(d){var v=this._map,E=v.getZoom(),D=v.options.zoomDelta,Y=d.originalEvent.shiftKey?E-D:E+D;v.options.doubleClickZoom==="center"?v.setZoom(Y):v.setZoomAround(d.containerPoint,Y)}});Tt.addInitHook("addHandler","doubleClickZoom",$i),Tt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var bh=ii.extend({addHooks:function(){if(!this._draggable){var d=this._map;this._draggable=new Ua(d._mapPane,d._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),d.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),d.on("zoomend",this._onZoomEnd,this),d.whenReady(this._onZoomEnd,this))}wt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){sn(this._map._container,"leaflet-grab"),sn(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 d=this._map;if(d._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var v=oe(this._map.options.maxBounds);this._offsetLimit=te(this._map.latLngToContainerPoint(v.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(v.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;d.fire("movestart").fire("dragstart"),d.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(d){if(this._map.options.inertia){var v=this._lastTime=+new Date,E=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(E),this._times.push(v),this._prunePositions(v)}this._map.fire("move",d).fire("drag",d)},_prunePositions:function(d){for(;this._positions.length>1&&d-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var d=this._map.getSize().divideBy(2),v=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=v.subtract(d).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(d,v){return d-(d-v)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var d=this._draggable._newPos.subtract(this._draggable._startPos),v=this._offsetLimit;d.x<v.min.x&&(d.x=this._viscousLimit(d.x,v.min.x)),d.y<v.min.y&&(d.y=this._viscousLimit(d.y,v.min.y)),d.x>v.max.x&&(d.x=this._viscousLimit(d.x,v.max.x)),d.y>v.max.y&&(d.y=this._viscousLimit(d.y,v.max.y)),this._draggable._newPos=this._draggable._startPos.add(d)}},_onPreDragWrap:function(){var d=this._worldWidth,v=Math.round(d/2),E=this._initialWorldOffset,D=this._draggable._newPos.x,Y=(D-v+E)%d+v-E,se=(D+v+E)%d-v-E,ve=Math.abs(Y+E)<Math.abs(se+E)?Y:se;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=ve},_onDragEnd:function(d){var v=this._map,E=v.options,D=!E.inertia||d.noInertia||this._times.length<2;if(v.fire("dragend",d),D)v.fire("moveend");else{this._prunePositions(+new Date);var Y=this._lastPos.subtract(this._positions[0]),se=(this._lastTime-this._times[0])/1e3,ve=E.easeLinearity,Ee=Y.multiplyBy(ve/se),Ne=Ee.distanceTo([0,0]),He=Math.min(E.inertiaMaxSpeed,Ne),et=Ee.multiplyBy(He/Ne),nt=He/(E.inertiaDeceleration*ve),it=et.multiplyBy(-nt/2).round();!it.x&&!it.y?v.fire("moveend"):(it=v._limitOffset(it,v.options.maxBounds),K(function(){v.panBy(it,{duration:nt,easeLinearity:ve,noMoveStart:!0,animate:!0})}))}}});Tt.addInitHook("addHandler","dragging",bh),Tt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var vu=ii.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(d){this._map=d,this._setPanDelta(d.options.keyboardPanDelta),this._setZoomDelta(d.options.zoomDelta)},addHooks:function(){var d=this._map._container;d.tabIndex<=0&&(d.tabIndex="0"),bt(d,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),zt(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 d=document.body,v=document.documentElement,E=d.scrollTop||v.scrollTop,D=d.scrollLeft||v.scrollLeft;this._map._container.focus(),window.scrollTo(D,E)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(d){var v=this._panKeys={},E=this.keyCodes,D,Y;for(D=0,Y=E.left.length;D<Y;D++)v[E.left[D]]=[-1*d,0];for(D=0,Y=E.right.length;D<Y;D++)v[E.right[D]]=[d,0];for(D=0,Y=E.down.length;D<Y;D++)v[E.down[D]]=[0,d];for(D=0,Y=E.up.length;D<Y;D++)v[E.up[D]]=[0,-1*d]},_setZoomDelta:function(d){var v=this._zoomKeys={},E=this.keyCodes,D,Y;for(D=0,Y=E.zoomIn.length;D<Y;D++)v[E.zoomIn[D]]=d;for(D=0,Y=E.zoomOut.length;D<Y;D++)v[E.zoomOut[D]]=-d},_addHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){zt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(d){if(!(d.altKey||d.ctrlKey||d.metaKey)){var v=d.keyCode,E=this._map,D;if(v in this._panKeys){if(!E._panAnim||!E._panAnim._inProgress)if(D=this._panKeys[v],d.shiftKey&&(D=M(D).multiplyBy(3)),E.options.maxBounds&&(D=E._limitOffset(M(D),E.options.maxBounds)),E.options.worldCopyJump){var Y=E.wrapLatLng(E.unproject(E.project(E.getCenter()).add(D)));E.panTo(Y)}else E.panBy(D)}else if(v in this._zoomKeys)E.setZoom(E.getZoom()+(d.shiftKey?3:1)*this._zoomKeys[v]);else if(v===27&&E._popup&&E._popup.options.closeOnEscapeKey)E.closePopup();else return;ki(d)}}});Tt.addInitHook("addHandler","keyboard",vu),Tt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var qa=ii.extend({addHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){zt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(d){var v=au(d),E=this._map.options.wheelDebounceTime;this._delta+=v,this._lastMousePos=this._map.mouseEventToContainerPoint(d),this._startTime||(this._startTime=+new Date);var D=Math.max(E-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),D),ki(d)},_performZoom:function(){var d=this._map,v=d.getZoom(),E=this._map.options.zoomSnap||0;d._stop();var D=this._delta/(this._map.options.wheelPxPerZoomLevel*4),Y=4*Math.log(2/(1+Math.exp(-Math.abs(D))))/Math.LN2,se=E?Math.ceil(Y/E)*E:Y,ve=d._limitZoom(v+(this._delta>0?se:-se))-v;this._delta=0,this._startTime=null,ve&&(d.options.scrollWheelZoom==="center"?d.setZoom(v+ve):d.setZoomAround(this._lastMousePos,v+ve))}});Tt.addInitHook("addHandler","scrollWheelZoom",qa);var _h=600;Tt.mergeOptions({tapHold:st.touchNative&&st.safari&&st.mobile,tapTolerance:15});var Fc=ii.extend({addHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){zt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(d){if(clearTimeout(this._holdTimeout),d.touches.length===1){var v=d.touches[0];this._startPos=this._newPos=new z(v.clientX,v.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(bt(document,"touchend",jn),bt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",v))},this),_h),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function d(){zt(document,"touchend",jn),zt(document,"touchend touchcancel",d)},_cancel:function(){clearTimeout(this._holdTimeout),zt(document,"touchend touchcancel contextmenu",this._cancel,this),zt(document,"touchmove",this._onMove,this)},_onMove:function(d){var v=d.touches[0];this._newPos=new z(v.clientX,v.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(d,v){var E=new MouseEvent(d,{bubbles:!0,cancelable:!0,view:window,screenX:v.screenX,screenY:v.screenY,clientX:v.clientX,clientY:v.clientY});E._simulated=!0,v.target.dispatchEvent(E)}});Tt.addInitHook("addHandler","tapHold",Fc),Tt.mergeOptions({touchZoom:st.touch,bounceAtZoomLimits:!0});var Io=ii.extend({addHooks:function(){wt(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){sn(this._map._container,"leaflet-touch-zoom"),zt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(d){var v=this._map;if(!(!d.touches||d.touches.length!==2||v._animatingZoom||this._zooming)){var E=v.mouseEventToContainerPoint(d.touches[0]),D=v.mouseEventToContainerPoint(d.touches[1]);this._centerPoint=v.getSize()._divideBy(2),this._startLatLng=v.containerPointToLatLng(this._centerPoint),v.options.touchZoom!=="center"&&(this._pinchStartLatLng=v.containerPointToLatLng(E.add(D)._divideBy(2))),this._startDist=E.distanceTo(D),this._startZoom=v.getZoom(),this._moved=!1,this._zooming=!0,v._stop(),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),jn(d)}},_onTouchMove:function(d){if(!(!d.touches||d.touches.length!==2||!this._zooming)){var v=this._map,E=v.mouseEventToContainerPoint(d.touches[0]),D=v.mouseEventToContainerPoint(d.touches[1]),Y=E.distanceTo(D)/this._startDist;if(this._zoom=v.getScaleZoom(Y,this._startZoom),!v.options.bounceAtZoomLimits&&(this._zoom<v.getMinZoom()&&Y<1||this._zoom>v.getMaxZoom()&&Y>1)&&(this._zoom=v._limitZoom(this._zoom)),v.options.touchZoom==="center"){if(this._center=this._startLatLng,Y===1)return}else{var se=E._add(D)._divideBy(2)._subtract(this._centerPoint);if(Y===1&&se.x===0&&se.y===0)return;this._center=v.unproject(v.project(this._pinchStartLatLng,this._zoom).subtract(se),this._zoom)}this._moved||(v._moveStart(!0,!1),this._moved=!0),ne(this._animRequest);var ve=o(v._move,v,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=K(ve,this,!0),jn(d)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ne(this._animRequest),zt(document,"touchmove",this._onTouchMove,this),zt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Tt.addInitHook("addHandler","touchZoom",Io),Tt.BoxZoom=zc,Tt.DoubleClickZoom=$i,Tt.Drag=bh,Tt.Keyboard=vu,Tt.ScrollWheelZoom=qa,Tt.TapHold=Fc,Tt.TouchZoom=Io,n.Bounds=k,n.Browser=st,n.CRS=be,n.Canvas=hu,n.Circle=vh,n.CircleMarker=lu,n.Class=Q,n.Control=Sr,n.DivIcon=yh,n.DivOverlay=si,n.DomEvent=X_,n.DomUtil=Rv,n.Draggable=Ua,n.Evented=B,n.FeatureGroup=Rr,n.GeoJSON=Nr,n.GridLayer=No,n.Handler=ii,n.Icon=ks,n.ImageOverlay=Ii,n.LatLng=he,n.LatLngBounds=Z,n.Layer=ai,n.LayerGroup=Ro,n.LineUtil=Uv,n.Map=Tt,n.Marker=$s,n.Mixin=n1,n.Path=ua,n.Point=z,n.PolyUtil=r1,n.Polygon=Bs,n.Polyline=ca,n.Popup=du,n.PosAnimation=Pc,n.Projection=zv,n.Rectangle=Kv,n.Renderer=ui,n.SVG=Fa,n.SVGOverlay=za,n.TileLayer=Lo,n.Tooltip=Uc,n.Transformation=fe,n.Util=le,n.VideoOverlay=Bc,n.bind=o,n.bounds=te,n.canvas=pu,n.circle=u1,n.circleMarker=Vv,n.control=Ls,n.divIcon=Yv,n.extend=i,n.featureGroup=su,n.geoJSON=$c,n.geoJson=Hv,n.gridLayer=li,n.icon=Dc,n.imageOverlay=zs,n.latLng=de,n.latLngBounds=oe,n.layerGroup=qv,n.map=ou,n.marker=mh,n.point=M,n.polygon=Mr,n.polyline=c1,n.popup=f1,n.rectangle=kr,n.setOptions=w,n.stamp=f,n.svg=ko,n.svgOverlay=Gv,n.tileLayer=Lr,n.tooltip=d1,n.transformation=X,n.version=r,n.videoOverlay=Wv;var Vs=window.L;n.noConflict=function(){return window.L=Vs,this},window.L=n})}(jp,jp.exports)),jp.exports}var bv=iAe();const O$=Lt(bv);function A3(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function j3(e,t){return t==null?function(r,i){const a=U.useRef(void 0);return a.current||(a.current=e(r,i)),a}:function(r,i){const a=U.useRef(void 0);a.current||(a.current=e(r,i));const o=U.useRef(r),{instance:l}=a.current;return U.useEffect(function(){o.current!==r&&(t(l,r,o.current),o.current=r)},[l,r,t]),a}}function aAe(e,t){U.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var a;(a=t.layerContainer)==null||a.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function lH(e){return function(n){const r=oH(),i=e(T3(n,r),r);return aH(r.map,n.attribution),sH(i.current,n.eventHandlers),aAe(i.current,r),i}}function oAe(e,t){const n=j3(e,t),r=lH(n);return JTe(r)}function sAe(e,t){const n=j3(e),r=nAe(n,t);return eAe(r)}function lAe(e,t){const n=j3(e,t),r=lH(n);return tAe(r)}function uAe(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 cAe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:o,style:l,whenReady:f,zoom:c,...h},m){const[g]=U.useState({className:i,id:a,style:l}),[x,_]=U.useState(null),w=U.useRef(void 0);U.useImperativeHandle(m,()=>(x==null?void 0:x.map)??null,[x]);const S=U.useCallback(C=>{if(C!==null&&!w.current){const T=new bv.Map(C,h);w.current=T,n!=null&&c!=null?T.setView(n,c):e!=null&&T.fitBounds(e,t),f!=null&&T.whenReady(f),_(XTe(T))}},[]);U.useEffect(()=>()=>{x==null||x.map.remove()},[x]);const O=x?ae.createElement(C3,{value:x},r):o??null;return ae.createElement("div",{...g,ref:S},O)}const fAe=U.forwardRef(cAe),dAe=oAe(function({position:t,...n},r){const i=new bv.Marker(t,n);return A3(i,QTe(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())}),hAe=sAe(function(t,n){const r=new bv.Popup(t,n.overlayContainer);return A3(r,n)},function(t,n,{position:r},i){U.useEffect(function(){const{instance:o}=t;function l(c){c.popup===o&&(o.update(),i(!0))}function f(c){c.popup===o&&i(!1)}return n.map.on({popupopen:l,popupclose:f}),n.overlayContainer==null?(r!=null&&o.setLatLng(r),o.openOn(n.map)):n.overlayContainer.bindPopup(o),function(){var h;n.map.off({popupopen:l,popupclose:f}),(h=n.overlayContainer)==null||h.unbindPopup(),n.map.removeLayer(o)}},[t,n,i,r])}),pAe=lAe(function({url:t,...n},r){const i=new bv.TileLayer(t,T3(n,r));return A3(i,r)},function(t,n,r){uAe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),mAe={"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"},uH={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"},In={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},$r={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"},yl={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class We{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=We.getVersionPrecision(t),a=We.getVersionPrecision(n);let o=Math.max(i,a),l=0;const f=We.map([t,n],c=>{const h=o-We.getVersionPrecision(c),m=c+new Array(h+1).join(".0");return We.map(m.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(r&&(l=o-Math.min(i,a)),o-=1;o>=l;){if(f[0][o]>f[1][o])return 1;if(f[0][o]===f[1][o]){if(o===l)return 0;o-=1}else if(f[0][o]<f[1][o])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 a=t[r];if(n(a,r))return a}}static assign(t,...n){const r=t;let i,a;if(Object.assign)return Object.assign(t,...n);for(i=0,a=n.length;i<a;i+=1){const o=n[i];typeof o=="object"&&o!==null&&Object.keys(o).forEach(f=>{r[f]=o[f]})}return t}static getBrowserAlias(t){return mAe[t]}static getBrowserTypeByAlias(t){return uH[t]||""}}const tn=/version\/(\d+(\.?_?\d+)+)/i,vAe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=We.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=We.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=We.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=We.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=We.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=We.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=We.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=We.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=We.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=We.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=We.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=We.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=We.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=We.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=We.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=We.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=We.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=We.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=We.getFirstMatch(tn,e)||We.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=We.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=We.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=We.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=We.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=We.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=We.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=We.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=We.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=We.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=We.getFirstMatch(tn,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:We.getFirstMatch(i,e),version:We.getSecondMatch(i,e)}}}],gAe=[{test:[/Roku\/DVP/],describe(e){const t=We.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:$r.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=We.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:$r.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=We.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=We.getWindowsVersionName(t);return{name:$r.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:$r.iOS},n=We.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=We.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=We.getMacOSVersionName(t),r={name:$r.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=We.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:$r.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=We.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=We.getAndroidVersionName(t),r={name:$r.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=We.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:$r.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=We.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||We.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||We.getFirstMatch(/\bbb(\d+)/i,e);return{name:$r.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=We.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:$r.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=We.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:$r.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:$r.Linux}}},{test:[/CrOS/],describe(){return{name:$r.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=We.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:$r.PlayStation4,version:t}}}],yAe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=We.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:In.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:In.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:In.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:In.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:In.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=We.getFirstMatch(/(ipod|iphone)/i,e);return{type:In.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:In.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:In.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:In.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:In.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:In.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:In.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:In.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:In.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:In.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:In.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:In.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:In.tv}}}],bAe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:yl.Blink};const n=We.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:yl.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:yl.Trident},n=We.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:yl.Presto},n=We.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:yl.Gecko},n=We.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:yl.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:yl.WebKit},n=We.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class E${constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=We.find(vAe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=We.find(gAe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=We.find(yAe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=We.find(bAe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return We.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(l=>{const f=t[l];typeof f=="string"?(i[l]=f,a+=1):typeof f=="object"&&(n[l]=f,r+=1)}),r>0){const l=Object.keys(n),f=We.find(l,h=>this.isOS(h));if(f){const h=this.satisfies(n[f]);if(h!==void 0)return h}const c=We.find(l,h=>this.isPlatform(h));if(c){const h=this.satisfies(n[c]);if(h!==void 0)return h}}if(a>0){const l=Object.keys(i),f=We.find(l,c=>this.isBrowser(c,!0));if(f!==void 0)return this.compareVersion(i[f])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=We.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(We.compareVersions(a,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 _Ae{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new E$(t,n)}static parse(t){return new E$(t).getResult()}static get BROWSER_MAP(){return uH}static get ENGINE_MAP(){return yl}static get OS_MAP(){return $r}static get PLATFORMS_MAP(){return In}}var xAe=Object.defineProperty,wAe=(e,t,n)=>t in e?xAe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pl=(e,t,n)=>wAe(e,typeof t!="symbol"?t+"":t,n);const SAe=e=>(e==null?void 0:e.type)===hP.INVALID_ARGUMENT,OAe=e=>(e==null?void 0:e.type)===hP.INVALID_SHORT_URL_DELETION,EAe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Ri=e=>EAe(e)?e:void 0,P3=e=>"error"in e,ho=({errorData:e,fallbackMessage:t})=>y.jsxs(y.Fragment,{children:[(e==null?void 0:e.detail)??t,SAe(e)&&y.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),pc=({style:e,className:t,...n})=>y.jsx("button",{type:"button",className:ke("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),cH=U.createContext(""),CAe=cH.Provider,Xl=()=>U.useContext(cH),fH=U.createContext(void 0),{Provider:R3}=fH,B_=()=>U.useContext(fH),TAe=5,M3=()=>{const[e,t]=U.useState([]),n=U.useMemo(()=>e.length>=TAe,[e.length]),r=U.useCallback(l=>!n&&t(f=>[...f,l]),[n]),i=U.useCallback(l=>!n&&e.every(f=>f.name!==l),[e,n]),a=U.useCallback(l=>t(f=>f.filter(c=>c!==l)),[]),o=U.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:a,clearItemsToCompare:o,canAddItemWithName:i}},N3=({className:e,type:t})=>{const n=Xl(),r=B_(),i=U.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(f=>f.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:a,clearItemsToCompare:o,removeItemToCompare:l}=r;return y.jsx("div",{className:ke("top-sticky",e),children:y.jsxs(Mn,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[y.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:a.map((f,c)=>{var h;return y.jsxs("li",{className:ke("badge pe-1",{"bg-secondary":!((h=f.style)!=null&&h.backgroundColor)}),style:f.style,children:[f.name,y.jsx(pc,{"aria-label":`Remove ${f.name}`,className:"fw-bold fs-6",onClick:()=>l(f),children:"×"})]},`${f.name}_${c}`)})}),y.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[y.jsxs(qt,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:a.length<2,tag:hn,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[y.jsx(Xe,{icon:I0,fixedWidth:!0,className:"me-1"}),"Compare (",a.length,"/5) »"]}),y.jsx(qt,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:o,children:"×"})]})]})})},AAe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||TT(e,n,">=");return(!t||TT(e,t,"<="))&&r},dH={shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},deviceLongUrls:{maxVersion:"3.*.*"},shortUrlRedirectRules:{minVersion:"4.0.0"},qrCodeColors:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(dH);const Go=(e,t)=>AAe(t==="latest"?"999.99.99":t,dH[e]),hH=e=>({deviceLongUrls:Go("deviceLongUrls",e),shortUrlVisitsDeletion:Go("shortUrlVisitsDeletion",e),orphanVisitsDeletion:Go("orphanVisitsDeletion",e),shortUrlRedirectRules:Go("shortUrlRedirectRules",e),qrCodeColors:Go("qrCodeColors",e),urlValidation:Go("urlValidation",e),ipRedirectCondition:Go("ipRedirectCondition",e),geolocationRedirectCondition:Go("geolocationRedirectCondition",e),filterShortUrlsByDomain:Go("filterShortUrlsByDomain",e)}),pH=U.createContext(hH("0.0.0")),jAe=pH.Provider,PAe=e=>U.useMemo(()=>hH(e),[e]),Ca=e=>U.useContext(pH)[e],Pd="DEFAULT",Ny=({className:e="",placement:t,children:n})=>{const r=U.useRef(null);return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:e,ref:r,children:y.jsx(Xe,{icon:Aj})}),y.jsx(aa,{target:r,placement:t,children:n})]})},mH=e=>t=>{t.preventDefault(),e()},L3=(e,t,n=1)=>pP(n,e+1).map(t),RAe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,Bu=e=>e!=null&&!RAe(e),SE=e=>e||null,rj=e=>e?"true":"false",OE=e=>e===void 0?void 0:rj(e),EE=({isLast:e,...t})=>y.jsx(Vse,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),MAe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,a,o;const[l,f]=U.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[c,h]=U.useState(((a=n.redirects)==null?void 0:a.regular404Redirect)??""),[m,g]=U.useState(((o=n.redirects)==null?void 0:o.invalidShortUrlRedirect)??""),x=mH(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:SE(l),regular404Redirect:SE(c),invalidShortUrlRedirect:SE(m)}}).then(t));return y.jsx(ia,{isOpen:e,toggle:t,centered:!0,children:y.jsxs("form",{name:"domainRedirectsModal",onSubmit:x,children:[y.jsxs(Hl,{toggle:t,children:["Edit redirects for ",y.jsx("b",{children:n.domain})]}),y.jsxs(ms,{children:[y.jsxs(EE,{value:l,onChange:f,children:[y.jsxs(Ny,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",y.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),y.jsxs(EE,{value:c,onChange:h,children:[y.jsxs(Ny,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",y.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),y.jsxs(EE,{value:m,isLast:!0,onChange:g,children:[y.jsx(Ny,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),y.jsxs(Id,{children:[y.jsx(qt,{color:"link",type:"button",onClick:t,children:"Cancel"}),y.jsx(qt,{color:"primary",children:"Save"})]})]})})},NAe=({domain:e,editDomainRedirects:t})=>{const[n,r]=Jt(),i=Xl(),a=B_(),o=Ca("filterShortUrlsByDomain");return y.jsxs(y.Fragment,{children:[y.jsxs(Y0,{children:[y.jsxs(Je,{tag:hn,to:`${i}/domain/${e.domain}${e.isDefault?`_${Pd}`:""}/visits`,children:[y.jsx(Xe,{icon:Tj,fixedWidth:!0})," Visit stats"]}),y.jsxs(Je,{disabled:!a||!a.canAddItemWithName(e.domain),onClick:()=>a==null?void 0:a.addItemToCompare({name:e.domain,query:e.domain}),children:[y.jsx(Xe,{icon:I0,fixedWidth:!0})," Compare visits"]}),o&&y.jsxs(Je,{tag:hn,to:`${i}/list-short-urls/1?domain=${e.isDefault?Pd:e.domain}`,children:[y.jsx(Xe,{icon:Ej,fixedWidth:!0})," Short URLs"]}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsxs(Je,{onClick:r,children:[y.jsx(Xe,{icon:Cj,fixedWidth:!0})," Edit redirects"]})]}),y.jsx(MAe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},LAe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:a})=>a==null?void 0:a.contains("visits-table"))||document.querySelector(".modal")||r()};return Due({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},DAe=(e,t)=>{const[n,r]=U.useState(t),i=U.useCallback(a=>{const{location:o,history:l}=window,f=LU(o.search);f[e]=a,l.pushState(null,"",`${o.pathname}?${aP(f)}`),r(a)},[e]);return[n,i]},D3=e=>{const t=Bd();return U.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},kAe=()=>{const e=mo();return U.useCallback(()=>e(-1),[e])},k3=(e,t)=>{const n=U.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=U.useState(n());return U.useEffect(()=>{const a=()=>i(n());return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[n]),r},IAe=(e,t,n)=>{U.useEffect(()=>{if(!n)return()=>{};const r=i=>i.key===e&&t();return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n,t,e])},$Ae=({status:e,matchMedia:t=window.matchMedia})=>{const n=U.useRef(null),r=k3(991,t);return e==="validating"?y.jsx(Xe,{fixedWidth:!0,icon:k0,spin:!0}):y.jsxs(y.Fragment,{children:[y.jsx("span",{ref:n,children:e==="valid"?y.jsx(Xe,{fixedWidth:!0,icon:ec,className:"text-muted"}):y.jsx(Xe,{fixedWidth:!0,icon:UE,className:"text-danger"})}),y.jsx(aa,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":y.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",y.jsx("br",{}),"Check the ",y.jsx(Ei,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},CE=({fallback:e})=>y.jsxs("span",{className:"text-muted",children:[!e&&y.jsx("small",{children:"No redirect"}),e&&y.jsxs(y.Fragment,{children:[e," ",y.jsx("small",{children:"(as fallback)"})]})]}),BAe=()=>y.jsxs(y.Fragment,{children:[y.jsx(Xe,{fixedWidth:!0,icon:iQ,className:"text-primary",id:"defaultDomainIcon"}),y.jsx(aa,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),UAe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:a,redirects:o,status:l}=e;return U.useEffect(()=>{n(e.domain)},[n,e.domain]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:a&&y.jsx(BAe,{})}),y.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),y.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(o==null?void 0:o.baseUrlRedirect)??y.jsx(CE,{fallback:r==null?void 0:r.baseUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(o==null?void 0:o.regular404Redirect)??y.jsx(CE,{fallback:r==null?void 0:r.regular404Redirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(o==null?void 0:o.invalidShortUrlRedirect)??y.jsx(CE,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:y.jsx($Ae,{status:l})}),y.jsx("td",{className:"responsive-table__cell text-end",children:y.jsx(NAe,{domain:e,editDomainRedirects:t})})]})},C$=[{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}],zAe=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:a,defaultRedirects:o,loading:l,error:f,errorData:c}=e,h=o??((i=a.find(({isDefault:g})=>g))==null?void 0:i.redirects),m=M3();return l?y.jsx(ac,{loading:!0}):y.jsxs(R3,{value:m,children:[y.jsx(W0,{className:"mb-3",onChange:t}),y.jsx(N3,{type:"domains",className:"mb-3"}),f?y.jsx(Oi,{type:"error",children:y.jsx(ho,{errorData:c,fallbackMessage:"Error loading domains :("})}):y.jsx(Mn,{children:y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsx("thead",{className:"responsive-table__header",children:y.jsx("tr",{children:C$.map((g,x)=>y.jsx("th",{children:y.jsx("span",{className:g.isHidden?"sr-only":void 0,children:g.value})},x))})}),y.jsxs("tbody",{children:[a.length<1&&y.jsx("tr",{children:y.jsx("td",{colSpan:C$.length,className:"text-center",children:"No results found"})}),a.map(g=>y.jsx(UAe,{domain:g,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:h},g.domain))]})]})})]})},Zn=(e,t)=>rz(e,t,{serializeError:n=>n}),FAe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",qAe=e=>Zn(FAe,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),py="shlink/domainsList",my={domains:[],filteredDomains:[],loading:!1,error:!1},T$=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},A$=(e,t)=>n=>n.domain!==e?n:{...n,status:t},VAe=(e,t,n)=>{const r=Zn(`${py}/listDomains`,async()=>{const{data:l,defaultRedirects:f}=await e().listDomains();return{domains:l.map(c=>({...c,status:"validating"})),defaultRedirects:f}}),i=Zn(`${py}/checkDomainHealth`,async l=>{try{const{status:f}=await e().health({domain:l});return{domain:l,status:f==="pass"?"valid":"invalid"}}catch{return{domain:l,status:"invalid"}}}),a=Fr(`${py}/filterDomains`),{reducer:o}=$n({name:py,initialState:my,reducers:{},extraReducers:l=>{l.addCase(r.pending,()=>({...my,loading:!0})),l.addCase(r.rejected,(f,{error:c})=>({...my,error:!0,errorData:Ri(c)})),l.addCase(r.fulfilled,(f,{payload:c})=>({...my,...c,filteredDomains:c.domains})),l.addCase(i.fulfilled,({domains:f,filteredDomains:c,...h},{payload:m})=>({...h,domains:f.map(A$(m.domain,m.status)),filteredDomains:c.map(A$(m.domain,m.status))})),l.addCase(a,(f,{payload:c})=>({...f,filteredDomains:f.domains.filter(({domain:h})=>h.toLowerCase().match(c.toLowerCase()))})),l.addCase(t.fulfilled,(f,{payload:c})=>({...f,domains:f.domains.map(T$(c)),filteredDomains:f.filteredDomains.map(T$(c))})),l.addCase(n.fulfilled,(f,{payload:c})=>{c.domain===null||f.domains.some(h=>h.domain===c.domain)||f.domains.push({domain:c.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:o,listDomains:r,checkDomainHealth:i,filterDomains:a}},HAe=(e,t)=>{e.serviceFactory("ManageDomains",()=>zAe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",VAe,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",qAe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},j$="shlink/mercure",WAe={loading:!0,error:!1},GAe=e=>{const t=Zn(`${j$}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=$n({name:j$,initialState:WAe,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:a})=>({...a,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},YAe=e=>{e.serviceFactory("mercureInfoReducerCreator",GAe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Tn(e){return U.useMemo(()=>e,[e])}function An(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const KAe=(e,t,n,r)=>{const{mercureHubUrl:i,token:a,loading:o,error:l}=e;if(o||l||!i)return;const f=({data:m})=>n(JSON.parse(m)),c=({status:m})=>m===401&&r(),h=t.map(m=>{const g=new URL(i);g.searchParams.append("topic",m);const x=new $ue.EventSourcePolyfill(g,{headers:{Authorization:`Bearer ${a}`}});return x.onmessage=f,x.onerror=c,x});return()=>h.forEach(m=>m.close())};function Na(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:a,mercureInfo:o}=r,l=Dd();return U.useEffect(()=>{const{interval:f}=o,c=x=>f?n.add(x):i([x]),h=t(l),m=KAe(o,h,c,a);if(!f)return m;const g=setInterval(()=>{i([...n]),n.clear()},f*1e3*60);return()=>{clearInterval(g),m==null||m()}},[i,a,o,l]),y.jsx(e,{...r})}}class Vr{}Pl(Vr,"visits","https://shlink.io/new-visit"),Pl(Vr,"orphanVisits","https://shlink.io/new-orphan-visit"),Pl(Vr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const Jd=Fr("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Gp=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,ZAe=(e,t)=>!e.domain&&t===Pd?!0:e.domain===t,XAe=(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}},vH=e=>e.replaceAll("/","__"),I3=e=>e.replaceAll("__","/"),$3=({domain:e,shortCode:t})=>`${e??Pd}__${vH(t)}`,gH=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===Pd?null:t,shortCode:I3(n)}},B3="shlink/shortUrlDeletion",P$={shortCode:"",loading:!1,deleted:!1,error:!1},QAe=e=>Zn(`${B3}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl({shortCode:t,domain:n}),{shortCode:t,domain:n})),yH=Fr(`${B3}/shortUrlDeleted`),JAe=e=>{const{actions:t,reducer:n}=$n({name:B3,initialState:P$,reducers:{resetDeleteShortUrl:()=>P$},extraReducers:i=>{i.addCase(e.pending,a=>({...a,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(a,{error:o})=>({...a,errorData:Ri(o),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(a,{payload:o})=>({...a,shortCode:o.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},bH="shlink/shortUrlsList",_H=5,eje={loading:!0,error:!1},tje=e=>Zn(`${bH}/listShortUrls`,t=>e().listShortUrls(t??{})),nje=(e,t,n)=>$n({name:bH,initialState:eje,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:a})=>({loading:!1,error:!1,shortUrls:a})),r.addCase(n.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=[a,...i.shortUrls.data.slice(0,_H-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(o=>{const{shortCode:l,domain:f}=a;return Gp(o,l,f)?a:o}))}),r.addCase(yH,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(o=>!Gp(o,a.shortCode,a.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Jd,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(o=>{var l;return((l=a.createdVisits.findLast(({shortUrl:f})=>f&&Gp(o,f.shortCode,f.domain)))==null?void 0:l.shortUrl)??o}))})}}),rje=new Intl.NumberFormat("en-US"),Nn=e=>rje.format(Number(e)),R$=10,ije=e=>Math.ceil(e/R$)*R$,ij=({children:e,title:t,link:n,tooltip:r})=>{const i=Dl();return y.jsxs(y.Fragment,{children:[y.jsxs(ra,{innerRef:i,className:"highlight-card",body:!0,tag:hn,to:n,children:[y.jsx(Xe,{size:"3x",className:"highlight-card__link-icon",icon:Que}),y.jsx(wU,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),y.jsx(xU,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&y.jsx(aa,{target:i,placement:"bottom",children:r})]})},M$=({loading:e,excludeBots:t,visitsSummary:n,...r})=>y.jsx(ij,{tooltip:n.bots!==void 0?y.jsxs(y.Fragment,{children:[t?"Plus":"Including"," ",y.jsx("strong",{children:Nn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Nn(t&&n.nonBots!==void 0?n.nonBots:n.total)}),N$=({children:e,titleLinkText:t,titleLink:n,title:r})=>y.jsxs(ra,{children:[y.jsxs(rv,{className:"d-flex justify-content-between align-items-center",children:[y.jsx("span",{className:"d-sm-none",children:r}),y.jsx("h5",{className:"d-none d-sm-inline m-0",children:r}),y.jsxs(hn,{to:n,children:[t," »"]})]}),y.jsx(nv,{children:e})]}),xH=Na(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:a,CreateShortUrl:o}=Tn(xH),{loading:l,shortUrls:f}=e,{loading:c}=n,{loading:h,nonOrphanVisits:m,orphanVisits:g}=i,x=Xl(),_=mo(),w=Hr("visits");return U.useEffect(()=>{t({itemsPerPage:_H,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),y.jsxs(y.Fragment,{children:[y.jsxs(Ja,{children:[y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(M$,{title:"Visits",link:`${x}/non-orphan-visits`,excludeBots:(w==null?void 0:w.excludeBots)??!1,loading:h,visitsSummary:m})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(M$,{title:"Orphan visits",link:`${x}/orphan-visits`,excludeBots:(w==null?void 0:w.excludeBots)??!1,loading:h,visitsSummary:g})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(ij,{title:"Short URLs",link:`${x}/list-short-urls/1`,children:l?"Loading...":Nn((f==null?void 0:f.pagination.totalItems)??0)})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(ij,{title:"Tags",link:`${x}/manage-tags`,children:c?"Loading...":Nn(n.tags.length)})})]}),y.jsxs("div",{className:"d-flex flex-column gap-3",children:[y.jsx(N$,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${x}/create-short-url`,children:y.jsx(o,{basicMode:!0})}),y.jsx(N$,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${x}/list-short-urls/1`,children:y.jsx(a,{shortUrlsList:e,className:"mb-0",onTagClick:S=>_(`${x}/list-short-urls/1?tags=${encodeURIComponent(S)}`)})})]})]})},()=>[Vr.visits,Vr.orphanVisits]),aje=An(xH,["ShortUrlsTable","CreateShortUrl"]);function oje(e,t){e.factory("Overview",aje),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const wH="shlink/setShortUrlRedirectRules",L$={saving:!1,saved:!1,error:!1},sje=e=>Zn(`${wH}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules({shortCode:r,domain:i},n)}),lje=e=>{const{reducer:t,actions:n}=$n({name:wH,initialState:L$,reducers:{resetSetRules:()=>L$},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:o})=>({saving:!1,saved:!1,error:!0,errorData:Ri(o)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},SH="shlink/getShortUrlRedirectRules",uje={loading:!0,error:!1},cje=e=>Zn(`${SH}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules({shortCode:t,domain:n})),fje=e=>$n({name:SH,initialState:uje,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 _r(e){e.preventDefault()}function Ql(e){e.stopPropagation()}function OH(){const e=new Map;return[function(t,n){e.get(t)&&e.get(t).forEach(r=>{r(n)})},function(t,n){const r=e.get(t)??[];r.push(n),e.set(t,r)}]}var[EH,CH]=OH();function dje(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function Vf(e,t,n=!0,r=["__key"]){if(e===t)return!0;if(typeof t=="object"&&typeof e=="object"&&e!==null&&t!==null){if(e instanceof Map||e instanceof Set)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return dje(e,t);if(e===null||t===null)return!1;const i=e,a=t;if(Object.keys(i).length!==Object.keys(a).length)return!1;for(const o of r)if((o in i||o in a)&&i[o]!==a[o])return!1;for(const o in i)if(!(o in a)||i[o]!==a[o]&&!n||n&&!Vf(i[o],a[o],n,r))return!1;return!0}return!1}function TH(e){return e.split(" ").filter(t=>t)}function eh(e){return{x:e.clientX,y:e.clientY}}Array();var U3=typeof window<"u",Ar=new WeakMap,po=new WeakMap;function D$(){return U3?"ontouchstart"in window||navigator.maxTouchPoints>0:!1}var hje={activeDescendant:void 0,affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:CH,emit:EH,newActiveDescendant:void 0,originalZIndex:void 0,pointerSelection:!1,preventEnter:!1,rootUserSelect:void 0,nodePointerdown:void 0,longPress:!1,scrolling:!1,longPressTimeout:void 0,remapJustFinished:!1,selectedNodes:[],selectedParent:void 0,preventSynthDrag:!1,pointerDown:void 0},Ke=hje,Bl=!1,k$,I$,TE,Rd=!1,Hm=!1;function pje(){Ke={activeDescendant:void 0,affectedNodes:[],coordinates:{x:0,y:0},on:CH,emit:EH,currentTargetValue:void 0,originalZIndex:void 0,pointerId:void 0,preventEnter:!1,remapJustFinished:!1,selectedNodes:[],nodePointerdown:void 0,rootUserSelect:void 0,preventSynthDrag:!1,scrolling:!1,selectedParent:void 0,pointerSelection:!1,synthScrollDirection:void 0,draggedNodeDisplay:void 0,synthDragScrolling:!1,longPress:!1,pointerDown:void 0,longPressTimeout:void 0}}function AH(e){return Object.assign(Ke,e),e.initialParent.data.emit("dragStarted",Ke),Bl=!1,Ke.emit("dragStarted",Ke),Ke}function mje(e){Ke.activeState&&ds(Ke.activeState.parent,void 0,Ke),Ke.selectedState&&Rl(Ke.selectedState.nodes,Ke.selectedState.parent,Ke),Ke.selectedState=Ke.activeState=void 0,e.pointerType==="mouse"?Hm=!0:(e.pointerType==="touch"||e.pointerType==="pen")&&(Hm=!1)}function vje(e){if(_r(e),Ke.pointerDown&&(Ke.pointerDown.node.el.draggable=!0),Ke.pointerDown=void 0,!so(Ke))return;const t=Ke.currentParent.data.config;so(Ke)&&t.handleEnd(Ke)}function gje(e){e.key==="Escape"&&(Ke.selectedState&&Rl(Ke.selectedState.nodes,Ke.selectedState.parent,Ke),Ke.activeState&&ds(Ke.activeState.parent,void 0,Ke),Ke.selectedState=Ke.activeState=void 0)}function yje(e){if(!oo(Ke))return;Bl=!0;const t=Ke.initialParent.data.config.handleEnd;t(Ke)}function bje(e){oo(Ke)&&_r(e)}function _je(e){if(!Ke.pointerDown||!Ke.pointerDown.validated)return;const t=Ke.pointerDown.parent.data.config;if(!(Hm||e.pointerType==="mouse"))if(!so(Ke)&&(Rd||!Rd&&!t.nativeDrag)){if(_r(e),t.longPress&&!Ke.longPress){clearTimeout(Ke.longPressTimeout),Ke.longPress=!1;return}const n=t.draggedNodes(Ke.pointerDown);t.dragstartClasses(Ke.pointerDown.node,n,t,!0);const r=Zje(Ke.pointerDown.node,Ke.pointerDown.parent,e,Ke,n);Ke.rootUserSelect=window.getComputedStyle(document.documentElement).userSelect,document.body.style.userSelect="none",$$(e,r)}else so(Ke)&&$$(e,Ke)}function xje({parent:e,getValues:t,setValues:n,config:r={}}){var i,a,o;if(!U3)return;if(Rd=D$(),!k$){k$=Wm(document,{dragover:bje,pointerdown:mje,pointerup:vje,keydown:gje,drop:yje,pointermove:_je,pointercancel:gi(r.handlePointercancel),touchmove:m=>{oo(Ke)&&m.cancelable&&_r(m)}});const h=document.createElement("div");MH(h,{"aria-live":"polite","aria-atomic":"true","data-dnd-live-region":"true"}),Object.assign(h.style,{position:"absolute",top:"0px",left:"-9999px",width:"1px",height:"1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(h)}I$||(I$=Wm(window,{resize:()=>{Rd=D$()}})),RH(e);const[l,f]=OH(),c={getValues:t,setValues:n,config:{dragDropEffect:r.dragDropEffect??"move",dragEffectAllowed:r.dragEffectAllowed??"move",draggedNodes:Lje,dragstartClasses:$je,handleNodeKeydown:Uje,handleParentKeydown:zje,handleDragstart:kje,handleNodeDragover:Jje,handleParentDragover:ePe,handleNodeDrop:qje,handleNodeFocus:Vje,handleNodeBlur:Hje,handlePointercancel:Gje,handleEnd:Yje,handleDragend:Wje,handleParentFocus:Sje,handleNodePointerup:Kje,handleNodePointerover:Fje,handleParentPointerover:tPe,handleParentScroll:Dje,handleNodePointerdown:Ije,handleNodeDragenter:nPe,handleNodeDragleave:rPe,handleParentDrop:Eje,multiDrag:r.multiDrag??!1,nativeDrag:r.nativeDrag??!0,performSort:wje,performTransfer:Oje,root:r.root??document,setupNode:Tje,setupNodeRemap:NH,reapplyDragClasses:Aje,tearDownNode:Pje,tearDownNodeRemap:jje,remapFinished:Mje,threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{},privateClasses:[],on:f,emit:l};new MutationObserver(Rje).observe(e,{childList:!0}),Ar.set(e,c),(i=r.plugins)==null||i.forEach(h=>{var m,g;(g=(m=h(e))==null?void 0:m.tearDown)==null||g.call(m)}),(a=r.plugins)==null||a.forEach(h=>{var m,g;(g=(m=h(e))==null?void 0:m.tearDown)==null||g.call(m)}),(o=r.plugins)==null||o.forEach(h=>{var m,g;(g=(m=h(e))==null?void 0:m.setup)==null||g.call(m)}),Cje(e,c),U_(e,!0)}function jH(e,t,n,r,i,a){const{x:o,y:l}=eh(n),f=e.el.getBoundingClientRect();return{affectedNodes:[],ascendingDirection:!1,clonedDraggedEls:[],coordinates:{x:o,y:l},draggedNode:{el:e.el,data:e.data},draggedNodes:r,incomingDirection:void 0,initialIndex:e.data.index,initialParent:{el:t.el,data:t.data},currentParent:{el:t.el,data:t.data},longPress:t.data.config.longPress??!1,longPressTimeout:void 0,currentTargetValue:e.data.value,scrollEls:[],startLeft:i||o-f.left,startTop:a||l-f.top,targetIndex:e.data.index,transferred:!1}}function wje({parent:e,draggedNodes:t,targetNodes:n}){U_(e.el);const r=t.map(f=>f.data.value),i=Md(e.el,e.data),a=t[0].data.index,o=[...e.data.enabledNodes],l=[...i.filter(f=>!r.some(c=>Vf(f,c)))];l.splice(n[0].data.index,0,...r),"draggedNode"in Ke&&(Ke.currentTargetValue=n[0].data.value),aj(e.el,e.data,[...l]),e.data.config.onSort&&e.data.config.onSort({parent:{el:e.el,data:e.data},previousValues:[...i],previousNodes:[...o],nodes:[...e.data.enabledNodes],values:[...l],draggedNodes:t,previousPosition:a,position:n[0].data.index,targetNodes:n,state:Ke})}function ds(e,t,n){var r;const i=e.data.config.activeDescendantClass;if(n.activeState&&(Sa([n.activeState.node.el],i),n.activeState.parent.el!==e.el&&n.activeState.parent.el.setAttribute("aria-activedescendant","")),!t){(r=n.activeState)==null||r.parent.el.setAttribute("aria-activedescendant",""),n.activeState=void 0;return}n.activeState={node:t,parent:e},Ju([t.el],i),n.activeState.parent.el.setAttribute("aria-activedescendant",n.activeState.node.el.id)}function Rl(e,t,n){const r=t.data.config.selectedClass;if(!n.selectedState)return;const i=Array.from(e);Sa(e.map(a=>a.el),r);for(const a of i){a.el.setAttribute("aria-selected","false");const o=n.selectedState.nodes.findIndex(l=>l.el===a.el);o!==-1&&n.selectedState.nodes.splice(o,1)}PH(t)}function Gu(e,t,n,r,i=!1){r.pointerSelection=i;for(const o of t)o.el.setAttribute("aria-selected","true"),Ju([o.el],e.data.config.selectedClass,!0);r.selectedState={nodes:t,parent:e};const a=t.map(o=>o.el.getAttribute("aria-label"));if(a.length===0){r.selectedState=void 0,PH(e);return}ds(e,n,r),Ly(e,`${a.join(", ")} ready for dragging. Use arrow keys to navigate. Press enter to drop ${a.join(", ")}.`)}function Ly(e,t){const n=document.querySelector('[data-dnd-live-region="true"]');n&&(n.id=e.el.id+"-live-region",n.textContent=t)}function PH(e){const t=document.getElementById(e.el.id+"-live-region");t&&(t.textContent="")}function Sje(e,t){const n=e.targetData.parent.data.enabledNodes[0];n&&(t.selectedState&&t.selectedState.parent.el!==e.targetData.parent.el?ds(e.targetData.parent,n,t):t.selectedState||ds(e.targetData.parent,n,t))}function Oje({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,initialIndex:i,targetNodes:a,state:o}){U_(n.el);const l=r.map(g=>g.data.value),f=[...Md(e.el,e.data).filter(g=>!l.some(x=>Vf(g,x)))],c=Md(t.el,t.data),h=n.el===t.el&&t.data.config.sortable===!1;let m;a.length?(h?m=i:t.data.config.sortable===!1?m=t.data.enabledNodes.length:m=a[0].data.index,c.splice(m,0,...l)):(m=h?i:t.data.enabledNodes.length,c.splice(m,0,...l)),aj(e.el,e.data,f),aj(t.el,t.data,c),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:o,targetNodes:a}),e.data.config.onTransfer&&e.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:o,targetNodes:a||[]})}function Md(e,t){return[...t.getValues(e)]}function aj(e,t,n){t.setValues(n,e)}function Eje(e,t){Ql(e.e),Bl=!0;const n=t.initialParent.data.config.handleEnd;n(t)}function RH(e){const t=Ar.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function oo(e){return"draggedNode"in e&&!!e.draggedNode}function so(e){return"synthDragging"in e&&!!e.synthDragging}function Cje(e,t){t.abortControllers.mainParent=Wm(e,{keydown:gp(t.config.handleParentKeydown),dragover:gp(t.config.handleParentDragover),handleParentPointerover:t.config.handleParentPointerover,scroll:gp(t.config.handleParentScroll),drop:gp(t.config.handleParentDrop),hasNestedParent:n=>{const r=Ar.get(n.target);r&&(r.nestedParent=n.detail.parent)},focus:gp(t.config.handleParentFocus)}),t.config.externalDragHandle&&t.config.externalDragHandle.el&&t.config.externalDragHandle.callback&&(t.abortControllers.externalDragHandle=Wm(t.config.externalDragHandle.el,{pointerdown:n=>{if(!t.config.externalDragHandle||!t.config.externalDragHandle.callback)return;const r=t.config.externalDragHandle.callback();if(!F_(r)){console.warn("No draggable item found from external drag handle callback");return}const i=po.get(r);if(!i)return;const a=r.parentNode;if(!(a instanceof HTMLElement))return;const o=Ar.get(a);o&&(Ke.pointerDown={parent:{el:a,data:o},node:{el:r,data:i},validated:!0},r.draggable=!0)}})),e.id&&MH(e,{role:"listbox",tabindex:"0","aria-multiselectable":t.config.multiDrag?"true":"false","aria-activedescendant":"","aria-describedby":e.id+"-live-region"})}function MH(e,t){for(const n in t)e.setAttribute(n,t[n])}function Tje(e){var t;const n=e.parent.data.config;e.node.data.abortControllers.mainNode=Wm(e.node.el,{keydown:gi(n.handleNodeKeydown),dragstart:gi(n.handleDragstart),dragover:gi(n.handleNodeDragover),dragenter:gi(n.handleNodeDragenter),dragleave:gi(n.handleNodeDragleave),dragend:gi(n.handleDragend),drop:gi(n.handleNodeDrop),focus:gi(n.handleNodeFocus),blur:gi(n.handleNodeBlur),pointerup:gi(n.handleNodePointerup),pointercancel:gi(n.handlePointercancel),pointerdown:gi(n.handleNodePointerdown),handleNodePointerover:n.handleNodePointerover,touchmove:r=>{oo(Ke)&&r.cancelable&&_r(r)},contextmenu:r=>{Rd&&_r(r)}}),e.node.el.setAttribute("role","option"),e.node.el.setAttribute("aria-selected","false"),e.node.el.draggable=!0,n.reapplyDragClasses(e.node.el,e.parent.data),(t=e.parent.data.config.plugins)==null||t.forEach(r=>{var i,a;(a=(i=r(e.parent.el))==null?void 0:i.setupNode)==null||a.call(i,e)})}function NH(e){var t;po.set(e.node.el,e.node.data),(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function Aje(e,t){if(!oo(Ke))return;const n=so(Ke)?t.config.synthDropZoneClass:t.config.dropZoneClass;Ke.draggedNode.el===e&&Ju([e],n,!0)}function jje(e){var t;(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function Pje(e){var t,n,r,i,a;(t=e.parent.data.config.plugins)==null||t.forEach(o=>{var l,f;(f=(l=o(e.parent.el))==null?void 0:l.tearDownNode)==null||f.call(l,e)}),e.node.el.draggable=!1,(r=(n=e.node.data)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((a=(i=e.node.data)==null?void 0:i.abortControllers)==null||a.mainNode.abort())}function Rje(e){if(e.length===1&&e[0].addedNodes.length===1&&!(e[0].addedNodes[0]instanceof HTMLElement))return;const t=e[0].target;if(!(t instanceof HTMLElement))return;const n=document.querySelectorAll('[aria-selected="true"]'),r=Ar.get(t);if(r){for(let i=0;i<n.length;i++){const a=n[i];a.setAttribute("aria-selected","false"),Sa([a],r.config.selectedClass)}U_(t)}}function U_(e,t){var n;const r=Ar.get(e);if(!r)return;r.privateClasses=Array.from(e.classList);const i=[],a=r.config;for(let f=0;f<e.children.length;f++){const c=e.children[f];if(!F_(c)||c.id==="dnd-dragged-node-clone")continue;const h=po.get(c);(t||!h)&&a.tearDownNode({parent:{el:e,data:r},node:{el:c,data:h}}),!a.disabled&&(!a.draggable||a.draggable&&a.draggable(c))&&i.push(c)}if(i.length!==r.getValues(e).length&&!a.disabled){console.warn("The number of draggable items defined in the parent element does not match the number of values. This may cause unexpected behavior.");return}const o=r.getValues(e),l=[];for(let f=0;f<i.length;f++){const c=i[f],h=po.get(c);if(a.draggableValue&&!a.draggableValue(o[f]))continue;const m=Object.assign(h??{privateClasses:[],abortControllers:{}},{value:o[f],index:f});if(!oo(Ke)&&Ke.newActiveDescendant&&Vf(Ke.newActiveDescendant.data.value,m.value)&&ds({data:r,el:e},{el:c,data:m},Ke),!oo(Ke)&&Ke.activeState&&Vf(Ke.activeState.node.data.value,m.value)&&ds({data:r,el:e},{el:c,data:m},Ke),oo(Ke)&&Vf(Ke.draggedNode.data.value,m.value)){Ke.draggedNode.data=m,Ke.draggedNode.el=c;const g=Ke.draggedNodes.find(x=>x.data.value===m.value);g&&(g.el=c)}l.push({el:c,data:m}),(t||!h)&&a.setupNode({parent:{el:e,data:r},node:{el:c,data:m}}),NH({parent:{el:e,data:r},node:{el:c,data:m}})}Ar.set(e,{...r,enabledNodes:l}),a.remapFinished(r),(n=r.config.plugins)==null||n.forEach(f=>{var c,h;(h=(c=f(e))==null?void 0:c.remapFinished)==null||h.call(c)})}function Mje(){Ke.remapJustFinished=!0,"draggedNode"in Ke&&(Ke.affectedNodes=[])}function Nje(e){return!!e.targetData.parent.data.config.nativeDrag}function Lje(e){var t;if(e.parent.data.config.multiDrag){if(Ke.selectedState)return[e.node,...(t=Ke.selectedState)==null?void 0:t.nodes.filter(n=>n.el!==e.node.el)]}else return[e.node];return[]}function Dje(e){oo(Ke)&&(Ke.emit("scrollStarted",Ke),!so(Ke)&&(Ke.preventEnter=!0,TE&&clearTimeout(TE),TE=setTimeout(()=>{Ke.preventEnter=!1,Ke.emit("scrollEnded",Ke)},100)))}function kje(e,t){const n=e.targetData.parent.data.config;if(!n.nativeDrag||!Nje(e)||!LH({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:n})){_r(e.e);return}const r=n.draggedNodes({parent:e.targetData.parent,node:e.targetData.node});n.dragstartClasses(e.targetData.node,r,n);const i=Bje(e,r);n.onDragstart&&n.onDragstart({parent:e.targetData.parent,values:Md(e.targetData.parent.el,e.targetData.parent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,position:i.initialIndex,state:i})}function Ije(e,t){var n,r;if(Ql(e.e),t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!1},e.e.pointerType==="mouse"?Hm=!0:(e.e.pointerType==="touch"||e.e.pointerType==="pen")&&(Hm=!1),!LH({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:e.targetData.parent.data.config}))return;t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!0},Xje(e,t,e.targetData.node);const i=e.targetData.parent.data;let a=[e.targetData.node];const o=e.e.ctrlKey||e.e.metaKey,l=e.e.shiftKey,f=e.targetData.node;if(o&&i.config.multiDrag){t.selectedState?t.selectedState.nodes.findIndex(c=>c.el===f.el)===-1?a=[...t.selectedState.nodes,f]:a=t.selectedState.nodes.filter(c=>c.el!==f.el):a=[f],Gu(e.targetData.parent,a,e.targetData.node,t,!0);return}if(l&&i.config.multiDrag){const c=e.targetData.parent.data.enabledNodes;if(t.selectedState&&t.activeState)if(t.selectedState.parent.el!==e.targetData.parent.el){Rl(t.selectedState.nodes,t.selectedState.parent,t),t.selectedState=void 0;for(let h=0;h<=f.data.index;h++)a.push(c[h])}else{const[h,m]=t.activeState.node.data.index<e.targetData.node.data.index?[t.activeState.node.data.index,e.targetData.node.data.index]:[e.targetData.node.data.index,t.activeState.node.data.index];a=c.slice(h,m+1)}else for(let h=0;h<=f.data.index;h++)a.push(c[h]);Gu(e.targetData.parent,a,e.targetData.node,t,!0);return}(r=(n=t.selectedState)==null?void 0:n.nodes)!=null&&r.length?t.selectedState.nodes.findIndex(c=>c.el===e.targetData.node.el)===-1&&(t.selectedState.parent.el!==e.targetData.parent.el?Rl(t.selectedState.nodes,e.targetData.parent,t):i.config.multiDrag&&Rd?a.push(...t.selectedState.nodes):Rl(t.selectedState.nodes,e.targetData.parent,t),Gu(e.targetData.parent,a,e.targetData.node,t,!0)):Gu(e.targetData.parent,[e.targetData.node],e.targetData.node,t,!0)}function $je(e,t,n,r=!1){Ju(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),setTimeout(()=>{Sa(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),Ju(t.map(i=>i.el),r?n.synthDragPlaceholderClass:n.dragPlaceholderClass),Ju(t.map(i=>i.el),r?n.synthDropZoneClass:n.dropZoneClass),Sa(t.map(i=>i.el),n.activeDescendantClass),Sa(t.map(i=>i.el),n.selectedClass)})}function Bje(e,t){Ql(e.e);const n=AH(jH(e.targetData.node,e.targetData.parent,e.e,t));if(e.e.dataTransfer){const r=e.targetData.parent.data.config;e.e.dataTransfer.dropEffect=r.dragDropEffect,e.e.dataTransfer.effectAllowed=r.dragEffectAllowed;let i;if(r.dragImage)i=r.dragImage(e,t);else{if(r.multiDrag){const a=document.createElement("div");for(const l of t){const f=l.el.cloneNode(!0);f.style.pointerEvents="none",f.id=l.el.id+"-clone",a.append(f)}const{width:o}=t[0].el.getBoundingClientRect();Object.assign(a.style,{display:"flex",flexDirection:"column",width:`${o}px`,position:"absolute",pointerEvents:"none",zIndex:"9999",left:"-9999px"}),i=a}else{e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY);const a=e.targetData.node.el.style.zIndex;return n.originalZIndex=a,e.targetData.node.el.style.zIndex="9999",n}document.body.appendChild(i)}e.e.dataTransfer.setDragImage(i,e.e.offsetX,e.e.offsetY),setTimeout(()=>{i==null||i.remove()})}return n}function LH({x:e,y:t,node:n,config:r}){if(r.externalDragHandle)return!1;if(!r.dragHandle)return!0;const i=n.el.querySelectorAll(r.dragHandle);if(!i)return!1;const a=r.root.elementFromPoint(e,t);if(!a)return!1;for(const o of Array.from(i))if(a===o||o.contains(a))return!0;return!1}function Uje(e){}function zje(e,t){var n;const r=(n=t.activeState)==null?void 0:n.node;if(!r)return;const i=e.targetData.parent.data,a=i.enabledNodes;if(!(e.e.target instanceof HTMLElement))return;const o=a.findIndex(l=>l.el===r.el);if(o!==-1){if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(e.e.key)){e.e.target===e.targetData.parent.el&&_r(e.e);const l=e.e.key==="ArrowDown"||e.e.key==="ArrowRight"?o+1:o-1;if(l<0||l>=a.length)return;const f=a[l];ds(e.targetData.parent,f,t)}else if(e.e.key===" ")e.e.target===e.targetData.parent.el&&_r(e.e),t.selectedState&&t.selectedState.nodes.includes(r)?Gu(e.targetData.parent,t.selectedState.nodes.filter(l=>l.el!==r.el),r,t):Gu(e.targetData.parent,[r],r,t);else if(e.e.key==="Enter"&&t.selectedState)if(t.selectedState.parent.el===e.targetData.parent.el&&t.activeState){if(t.selectedState.nodes[0].el===t.activeState.node.el){Ly(e.targetData.parent,"Cannot drop item on itself");return}t.newActiveDescendant=t.selectedState.nodes[0],i.config.performSort({parent:e.targetData.parent,draggedNodes:t.selectedState.nodes,targetNodes:[t.activeState.node]}),Rl([],e.targetData.parent,t),Ly(e.targetData.parent,"Drop successful")}else t.activeState&&t.selectedState.parent.el!==e.targetData.parent.el&&kH({currentParent:e.targetData.parent,targetParent:t.selectedState.parent,initialParent:t.selectedState.parent,draggedNodes:t.selectedState.nodes,state:t})&&(i.config.performTransfer({currentParent:t.selectedState.parent,targetParent:e.targetData.parent,initialParent:t.selectedState.parent,draggedNodes:t.selectedState.nodes,initialIndex:t.selectedState.nodes[0].data.index,state:t,targetNodes:[t.activeState.node]}),t.newActiveDescendant=t.selectedState.nodes[0],Gu(e.targetData.parent,[],void 0,t),Ly(e.targetData.parent,"Drop successful"))}}function Fje(e){e.detail.targetData.parent.el===e.detail.state.currentParent.el?IH(e.detail,e.detail.state):z_(e.detail,e.detail.state)}function qje(e,t){const n=e.targetData.parent.data.config;n.nativeDrag&&(Ql(e.e),Bl=!0,n.handleEnd(t))}function Vje(e){e.e.target!==e.e.currentTarget&&Ke.pointerDown&&(Ke.pointerDown.node.el.draggable=!1)}function Hje(e){e.e.target!==e.e.currentTarget&&Ke.pointerDown&&(Ke.pointerDown.node.el.draggable=!0)}function Wje(e,t){const n=e.targetData.parent.data.config;if(n.nativeDrag){if(_r(e.e),Ql(e.e),Bl){Bl=!1;return}n.handleEnd(t)}}function Gje(e,t){var n;if(!so(t))return;if(_r(e.e),Bl){Bl=!1;return}const r=(n=Ar.get(t.initialParent.el))==null?void 0:n.config;r!=null&&r.onDragend&&r.onDragend({parent:t.currentParent,values:Md(t.currentParent.el,t.currentParent.data),draggedNode:t.draggedNode,draggedNodes:t.draggedNodes,state:t}),r==null||r.handleEnd(t)}function Yje(e){var t,n,r,i,a,o;e.draggedNode&&(e.draggedNode.el.draggable=!0),document.body.style.userSelect=e.rootUserSelect||"",so(e)&&(document.documentElement.style.overscrollBehavior=e.rootOverScrollBehavior||"",document.documentElement.style.touchAction=e.rootTouchAction||""),so(e)&&DH(e),"longPressTimeout"in e&&e.longPressTimeout&&clearTimeout(e.longPressTimeout);const l=(t=Ar.get(e.initialParent.el))==null?void 0:t.config,f=so(e),c=f?l==null?void 0:l.synthDropZoneClass:l==null?void 0:l.dropZoneClass;e.originalZIndex!==void 0&&(e.draggedNode.el.style.zIndex=e.originalZIndex),Sa(e.draggedNodes.map(h=>h.el),c),Sa(e.draggedNodes.map(h=>h.el),(r=(n=e.initialParent.data)==null?void 0:n.config)==null?void 0:r.longPressClass),Sa(e.draggedNodes.map(h=>h.el),f?e.initialParent.data.config.synthDragPlaceholderClass:(a=(i=e.initialParent.data)==null?void 0:i.config)==null?void 0:a.dragPlaceholderClass),f&&e.clonedDraggedNode.remove(),Rl(e.draggedNodes,e.currentParent,e),ds(e.currentParent,void 0,e),pje(),e.selectedState=void 0,(o=l==null?void 0:l.onDragend)==null||o.call(l,{parent:e.currentParent,values:Md(e.currentParent.el,e.currentParent.data),draggedNode:e.draggedNode,draggedNodes:e.draggedNodes,state:e}),e.emit("dragEnded",e)}function Kje(e,t){Ql(e.e),!t.pointerSelection&&t.selectedState&&Rl(t.selectedState.nodes,e.targetData.parent,t);const n=e.targetData.parent.data.config;t.pointerSelection=!1,"longPressTimeout"in t&&t.longPressTimeout&&clearTimeout(t.longPressTimeout),Sa(e.targetData.parent.data.enabledNodes.map(r=>r.el),n.longPressClass),oo(t)&&n.handleEnd(t)}function Zje(e,t,n,r,i){var a,o;const l=t.data.config;let f,c=e.el.style.display,h;if(l.synthDragImage)h=l.synthDragImage(e,t,n,i),f=h.dragImage,f.setAttribute("popover","manual"),f.id="dnd-dragged-node-clone",c=f.style.display,Object.assign(f.style,{position:"absolute",zIndex:9999,pointerEvents:"none",margin:0,willChange:"transform",overflow:"hidden",display:"none"});else if(!l.multiDrag||i.length===1)f=e.el.cloneNode(!0),f.id="dnd-dragged-node-clone",c=f.style.display,f.setAttribute("popover","manual"),Object.assign(f.style,{position:"absolute",height:e.el.getBoundingClientRect().height+"px",width:e.el.getBoundingClientRect().width+"px",overflow:"hidden",margin:0,willChange:"transform",pointerEvents:"none",zIndex:9999});else{const x=document.createElement("div");x.setAttribute("popover","manual");for(const _ of i){const w=_.el.cloneNode(!0);w.style.pointerEvents="none",w.style.margin="0",x.append(w)}c=x.style.display,x.id="dnd-dragged-node-clone",f=x,Object.assign(f.style,{display:"flex",flexDirection:"column",position:"absolute",overflow:"hidden",margin:0,padding:0,pointerEvents:"none",zIndex:9999})}f.style.position="absolute",t.el.appendChild(f),f.showPopover();const m={clonedDraggedEls:[],clonedDraggedNode:f,draggedNodeDisplay:c,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:(a=document.scrollingElement)==null?void 0:a.scrollWidth,rootScrollHeight:(o=document.scrollingElement)==null?void 0:o.scrollHeight,rootOverScrollBehavior:document.documentElement.style.overscrollBehavior,rootTouchAction:document.documentElement.style.touchAction};document.documentElement.style.overscrollBehavior="none",document.documentElement.style.touchAction="none";const g=AH({...jH(e,t,n,i,h==null?void 0:h.offsetX,h==null?void 0:h.offsetY),...m});return g.clonedDraggedNode.style.display=g.draggedNodeDisplay||"",g}function Xje(e,t,n){const r=e.targetData.parent.data.config;r.longPress&&(t.longPressTimeout=setTimeout(()=>{t&&(t.longPress=!0,r.longPressClass&&e.e.cancelable&&Ju([n.el],r.longPressClass),_r(e.e))},r.longPressDuration||200))}function Qje(e,t){t.longPressClass&&Sa(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longPressClass)}function DH(e,t=!0,n=!0){t&&e.animationFrameIdX!==void 0&&(cancelAnimationFrame(e.animationFrameIdX),e.animationFrameIdX=void 0),n&&e.animationFrameIdY!==void 0&&(cancelAnimationFrame(e.animationFrameIdY),e.animationFrameIdY=void 0),!e.animationFrameIdX&&!e.animationFrameIdY&&(e.preventEnter=!1)}function z3(e,t,n=0,r=0){const{x:i,y:a}=eh(e);t.coordinates.y=a,t.coordinates.x=i;const o=t.startLeft??0,l=t.startTop??0,f=i-o+window.scrollX,c=a-l+window.scrollY;t.clonedDraggedNode.style.transform=`translate(${f+n}px, ${c+r}px)`,e.cancelable&&_r(e),Qje(t,t.initialParent.data.config)}function $$(e,t){z3(e,t);const n=eh(e);cPe(n,e,t);const r=fPe(n);if(!r){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e,state:t}}));return}const i={e,targetData:r,state:t};"node"in r?r.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:i})):r.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:i}))}function Jje(e,t){var n;if(!e.targetData.parent.data.config.nativeDrag)return;const{x:r,y:i}=eh(e.e);t.coordinates.y=i,t.coordinates.x=r,_r(e.e),Ql(e.e),e.targetData.parent.el===((n=t.currentParent)==null?void 0:n.el)?IH(e,t):z_(e,t)}function ePe(e,t){e.targetData.parent.data.config.nativeDrag&&(_r(e.e),Ql(e.e),Object.assign(eh(e.e)),z_(e,t))}function tPe(e){e.detail.targetData.parent.el!==e.detail.state.currentParent.el&&z_(e.detail,e.detail.state)}function kH({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,state:i}){if(t.el===e.el)return!1;const a=t.data.config;if(r[0].el.contains(t.el)||a.dropZone===!1)return!1;const o=n.data.config;return a.accepts?a.accepts(t,n,e,i):!(!a.group||a.group!==o.group)}function nPe(e,t){_r(e.e)}function rPe(e,t){_r(e.e)}function iPe(e,t,n,r){var i;if(t.affectedNodes.map(m=>m.data.value).includes(e.targetData.node.data.value))return!1;if(t.remapJustFinished)return t.remapJustFinished=!1,(e.targetData.node.data.value===t.currentTargetValue||t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))&&(t.currentTargetValue=e.targetData.node.data.value),!1;if(t.preventEnter)return!1;if(t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))return t.currentTargetValue=void 0,!1;if(e.targetData.node.data.value===t.currentTargetValue||e.targetData.parent.el!==((i=t.currentParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1||e.targetData.node.el.contains(t.draggedNodes[0].el))return!1;const a=e.targetData.node.el.getBoundingClientRect(),o=t.draggedNode.el.getBoundingClientRect(),l=a.y-o.y,f=a.x-o.x;let c;Math.abs(l)>Math.abs(f)?c=l>0?"above":"below":c=f>0?"left":"right";const h=t.currentParent.data.config.threshold;switch(c){case"left":if(n>a.x+a.width*h.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<a.x+a.width*(1-h.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>a.y+a.height*h.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<a.y+a.height*(1-h.vertical))return t.incomingDirection="below",!0;break}return!1}function IH(e,t){const{x:n,y:r}=eh(e.e);if(!iPe(e,t,n,r))return;const i=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(a=>i[0]<=a.data.index&&a.data.index<=i[1]&&a.el!==t.draggedNode.el),e.targetData.parent.data.config.performSort({parent:e.targetData.parent,draggedNodes:t.draggedNodes,targetNodes:[e.targetData.node]})}function gi(e){function t(n){const r=po.get(n);if(!r)return;const i=Ar.get(n.parentNode);if(i)return{node:{el:n,data:r},parent:{el:n.parentNode,data:i}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r},Ke)}}function z_(e,t){e.e.preventDefault(),kH({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,state:t})&&(e.targetData.parent.data.config.performTransfer({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,initialIndex:t.initialIndex,state:t,targetNodes:"node"in e.targetData?[e.targetData.node]:[]}),t.currentParent=e.targetData.parent,t.transferred=!0)}function gp(e){function t(n){const r=Ar.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},Ke)}}function Ju(e,t,n=!1){function r(i,a){po.set(i,a)}for(const i of e){const a=po.get(i),o=aPe(i,t,a,n);o&&r(i,o)}}function aPe(e,t,n,r=!1){if(!t)return;const i=TH(t);if(!i.length||i.includes("longPress"))return;if(!n){e.classList.add(...i);return}const a=[];for(const o of i)e.classList.contains(o)?e.classList.contains(o)&&r===!1&&a.push(o):e.classList.add(o);return n.privateClasses=a,n}function Sa(e,t){if(!t)return;const n=TH(t);if(n.length)for(const r of e){if(!F_(r)){r.classList.remove(...n);continue}const i=po.get(r)||Ar.get(r);if(i)for(const a of n)i.privateClasses.includes(a)||r.classList.remove(a)}}function oPe(e,t,n,r,i){if(e===document.scrollingElement){const a=e.scrollLeft>0;return{right:e.scrollLeft+window.innerWidth<(i.rootScrollWidth||0)&&t.clientX>e.clientWidth*(1-.1),left:a&&t.clientX<e.clientWidth*.1}}if((n.overflowX==="auto"||n.overflowX==="scroll")&&e!==document.body&&e!==document.documentElement){const a=e.scrollWidth,o=e.offsetWidth,l=e.scrollLeft;return{right:t.clientX>r.left+o*(1-.1)&&l<a-o,left:t.clientX<r.left+o*.1&&l>0}}return{right:!1,left:!1}}function sPe(e,t,n,r){if(e===document.scrollingElement)return{down:t.clientY>e.clientHeight*(1-.1),up:t.clientY<e.clientHeight*.1};if((n.overflowY==="auto"||n.overflowY==="scroll")&&e!==document.body&&e!==document.documentElement){const i=e.scrollHeight,a=e.offsetHeight,o=e.scrollTop;return{down:t.clientY>r.top+a*(1-.1)&&o<i-a,up:t.clientY<r.top+a*.1&&o>0}}return{down:!1,up:!1}}function lPe(e,t,n,r=!0){n.preventEnter=!0;const i=r?5:-5;function a(o){o.scrollBy({left:i}),z3(t,n,i,0),n.animationFrameIdX=requestAnimationFrame(a.bind(null,o))}n.animationFrameIdX=requestAnimationFrame(a.bind(null,e))}function uPe(e,t,n,r=!0){n.preventEnter=!0;const i=r?-5:5;function a(){e.scrollBy({top:i}),z3(t,n,0,i),n.animationFrameIdY=requestAnimationFrame(a)}n.animationFrameIdY=requestAnimationFrame(a)}function cPe(e,t,n){DH(n);const r={x:null,y:null},i=document.elementsFromPoint(e.x,e.y);for(const a of i){if(r.x&&r.y)break;if(!(a instanceof HTMLElement))continue;const o=a.getBoundingClientRect(),l=window.getComputedStyle(a);if(!r.x){const{left:f,right:c}=oPe(a,t,l,o,n);(f||c)&&(r.x=a,lPe(a,t,n,c))}if(!r.y){const{up:f,down:c}=sPe(a,t,l,o);(f||c)&&(r.y=a,uPe(a,t,n,f))}}}function fPe(e){let t=document.elementFromPoint(e.x,e.y);if(!F_(t))return;let n,r=!0;for(;t&&r;){if(po.has(t)||Ar.has(t)){r=!1,n=Ar.has(t);break}t=t.parentNode}if(n){const i=Ar.get(t);return i?{parent:{el:t,data:i}}:void 0}else{const i=po.get(t);if(!i)return;const a=Ar.get(t.parentNode);return a?{node:{el:t,data:i},parent:{el:t.parentNode,data:a}}:void 0}}function F_(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Wm(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1,capture:r==="focus"||r==="blur"})}return n}function dPe(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 hPe(e,t){const n=dPe(e);n&&t(n)}var w0=new WeakMap;function pPe(e){const t=w0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function mPe(e,t){const n=w0.get(t);n&&n[1](e),w0.set(t,[e,n[1]])}function vPe(e,t){return n=>{w0.set(n,t),xje({parent:n,getValues:pPe,setValues:mPe,config:e})}}function B$(e){U3&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;hPe(n,vPe(i,r))}))}function gPe(e,t={}){const n=U.useRef(null),[r,i]=U.useState(e);function a(o={}){B$({parent:n,state:[r,i],...o})}return U.useEffect(()=>{B$({parent:n,state:[r,i],...t})},[r]),U.useEffect(()=>()=>{n.current&&RH(n.current)},[]),[n,r,i,a]}const q_=()=>{const e=mo(),t=Xl(),n=Bd(),r=U.useMemo(()=>{const{orderBy:a,tags:o,excludeBots:l,excludeMaxVisitsReached:f,excludePastValidUntil:c,...h}=n,m=a?Yse(a):void 0,g=(o==null?void 0:o.split(","))??[];return{...h,orderBy:m,tags:g,excludeBots:l!==void 0?l==="true":void 0,excludeMaxVisitsReached:f!==void 0?f==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}},[n]),i=U.useCallback(a=>{const o={...r,...a},{orderBy:l,tags:f,excludeBots:c,excludeMaxVisitsReached:h,excludePastValidUntil:m,...g}=o,x={...g,orderBy:l&&Gse(l),tags:f.length>0?f.join(","):void 0,excludeBots:OE(c),excludeMaxVisitsReached:OE(h),excludePastValidUntil:OE(m)},_=aP(x),w=_?`?${_}`:"";e(`${t}/list-short-urls/1${w}`)},[r,e,t]);return[r,i]},F3=()=>{const{domain:e}=Bd(),{shortCode:t=""}=Dd();return U.useMemo(()=>({shortCode:I3(t),domain:e}),[e,t])},V_=()=>{const e=kAe();return y.jsx(qt,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:y.jsx(Xe,{icon:bQ})})},yPe={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",CG:"Republic of the Congo",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},bPe={android:"Android",ios:"iOS",desktop:"Desktop"},_Pe=({deviceType:e,onDeviceTypeChange:t})=>{const n=U.useId();return y.jsxs("div",{children:[y.jsx("label",{htmlFor:n,children:"Device type:"}),y.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select type -"}),Object.entries(bPe).map(([r,i])=>y.jsx("option",{value:r,children:i},r))]})]})},q3=({value:e,onValueChange:t,label:n,placeholder:r})=>{const i=U.useId();return y.jsxs("div",{children:[y.jsxs("label",{htmlFor:i,children:[n,":"]}),y.jsx(sr,{id:i,value:e??"",onChange:a=>t(a.target.value),placeholder:r,required:!0})]})},xPe=({language:e,onLanguageChange:t})=>y.jsx(q3,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),wPe=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=U.useId(),a=U.useId();return y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:i,children:"Param name:"}),y.jsx(sr,{id:i,value:e??"",onChange:o=>n(o.target.value),placeholder:"hello",required:!0})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:a,children:"Param value:"}),y.jsx(sr,{id:a,value:t??"",onChange:o=>r(o.target.value),placeholder:"world",required:!0})]})]})},SPe=({ipAddress:e,onIpAddressChange:t})=>y.jsx(q3,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),OPe=({countryCode:e,onCountryCodeChange:t})=>{const n=U.useId();return y.jsxs("div",{children:[y.jsx("label",{htmlFor:n,children:"Country:"}),y.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select country -"}),Object.entries(yPe).map(([r,i])=>y.jsx("option",{value:r,children:i},r))]})]})},EPe=({cityName:e,onCityNameChange:t})=>y.jsx(q3,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),CPe=({condition:e,onConditionChange:t,onDelete:n})=>{const r=U.useId(),i=U.useCallback(h=>t({type:h,matchValue:"",matchKey:null}),[t]),a=U.useCallback(h=>t({...e,matchValue:h}),[e,t]),o=U.useCallback(h=>t({...e,matchKey:h}),[e,t]),l=Ca("ipRedirectCondition"),f=Ca("geolocationRedirectCondition"),c=U.useMemo(()=>{const h={device:"Device type",language:"Language","query-param":"Query param"};return l&&(h["ip-address"]="IP address"),f&&(h["geolocation-country-code"]="Country (geolocation)",h["geolocation-city-name"]="City name (geolocation)"),h},[f,l]);return y.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2 position-relative",children:[y.jsxs("div",{children:[y.jsx(qt,{outline:!0,size:"sm",type:"button","aria-label":"Remove condition",onClick:n,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:y.jsx(Xe,{icon:jj,className:"redirect-rule-modal__remove-condition-button-icon"})}),y.jsx("label",{htmlFor:r,children:"Type:"}),y.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:h=>i(h.target.value),children:Object.entries(c).map(([h,m])=>y.jsx("option",{value:h,children:m},h))})]}),e.type==="device"&&y.jsx(_Pe,{deviceType:e.matchValue,onDeviceTypeChange:a}),e.type==="language"&&y.jsx(xPe,{language:e.matchValue,onLanguageChange:a}),e.type==="query-param"&&y.jsx(wPe,{value:e.matchValue,name:e.matchKey??"",onNameChange:o,onValueChange:a}),e.type==="ip-address"&&y.jsx(SPe,{ipAddress:e.matchValue,onIpAddressChange:a}),e.type==="geolocation-country-code"&&y.jsx(OPe,{countryCode:e.matchValue,onCountryCodeChange:a}),e.type==="geolocation-city-name"&&y.jsx(EPe,{cityName:e.matchValue,onCityNameChange:a})]})},$H=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,a]=U.useState(r??{longUrl:"",conditions:[]}),o=U.useCallback(x=>{x.preventDefault(),x.stopPropagation(),i&&n(i),t()},[n,i,t]),l=U.useCallback(()=>a(({longUrl:x,conditions:_})=>({longUrl:x,conditions:[..._,{type:"device",matchValue:"",matchKey:null}]})),[]),f=U.useCallback((x,_)=>a(({longUrl:w,conditions:S})=>{const O=[...S];return O[x]=_,{longUrl:w,conditions:O}}),[]),c=U.useCallback(x=>a(({longUrl:_,conditions:w})=>{const S=[...w];return S.splice(x,1),{longUrl:_,conditions:S}}),[]),h=Dl(),m=U.useCallback(()=>{var x;return(x=h==null?void 0:h.current)==null?void 0:x.focus()},[h]),g=U.useCallback(()=>a(r??{longUrl:"",conditions:[]}),[r]);return y.jsx(ia,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:m,onClosed:g,children:y.jsxs("form",{onSubmit:o,children:[y.jsx(Hl,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),y.jsxs(ms,{children:[y.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),y.jsx(sr,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:x=>a(_=>({..._,longUrl:x.target.value})),required:!0,innerRef:h}),y.jsx("hr",{}),y.jsxs("div",{className:"d-flex justify-content-between",children:[y.jsx("b",{children:"Conditions:"}),y.jsx(qt,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:l,children:y.jsx(Xe,{icon:Xm})})]}),i.conditions.length===0&&y.jsx("div",{className:"text-center",children:y.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&y.jsx(Ja,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((x,_)=>y.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:y.jsx(CPe,{condition:x,onConditionChange:w=>f(_,w),onDelete:()=>c(_)})},`${_}_${x.type}`))})]}),y.jsxs(Id,{className:"sticky-bottom redirect-rule-modal__footer",children:[y.jsx(qt,{type:"button",color:"link",onClick:t,children:"Cancel"}),y.jsx(qt,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},TPe=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:a,onUpdate:o})=>{const[l,f]=Jt();return y.jsxs(Mn,{children:[y.jsxs("div",{className:"d-flex align-content-center gap-3",children:[y.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:y.jsx(Xe,{icon:CQ})}),y.jsxs("div",{className:"d-flex flex-column my-auto",children:[y.jsx(qt,{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:y.jsx(Xe,{icon:UQ})}),y.jsx(qt,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:a,className:"rounded-0 rounded-bottom",children:y.jsx(Xe,{icon:kQ})})]}),y.jsxs("div",{className:"flex-grow-1",children:[y.jsxs("div",{className:"mb-2",children:[y.jsx("b",{children:"Long URL:"})," ",y.jsx(Ei,{href:n.longUrl,"data-testid":"rule-long-url"})]}),y.jsxs("div",{className:"d-flex flex-column flex-lg-row gap-2",children:[y.jsx("b",{children:"Conditions:"}),n.conditions.map((c,h)=>y.jsxs("div",{className:"badge bg-secondary",children:[c.type==="device"&&y.jsxs(y.Fragment,{children:["Device is ",c.matchValue]}),c.type==="language"&&y.jsxs(y.Fragment,{children:[c.matchValue," language is accepted"]}),c.type==="query-param"&&y.jsxs(y.Fragment,{children:["Query string contains ",c.matchKey,"=",c.matchValue]}),c.type==="ip-address"&&y.jsxs(y.Fragment,{children:["IP address matches ",c.matchValue]}),c.type==="geolocation-country-code"&&y.jsxs(y.Fragment,{children:["Country code is ",c.matchValue]}),c.type==="geolocation-city-name"&&y.jsxs(y.Fragment,{children:["City name is ",c.matchValue]})]},`${c.type}_${h}`))]})]}),y.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[y.jsx(qt,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:f,children:y.jsx(Xe,{icon:i9})}),y.jsx(qt,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:y.jsx(Xe,{icon:KX})})]})]}),y.jsx($H,{onSave:o,isOpen:l,toggle:f,initialData:n})]})},APe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:a,resetSetRules:o})=>{const l=F3(),{shortUrls:f}=r,c=l&&(f==null?void 0:f.get(l)),[h,m,g]=gPe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:x,saved:_,errorData:w}=a,[S,O]=Jt(),C=U.useCallback(G=>g((W=[])=>[...W,G]),[g]),T=U.useCallback(G=>g((W=[])=>{const K=[...W];return K.splice(G,1),K}),[g]),j=U.useCallback((G,W)=>g((K=[])=>{const ne=[...K];return ne[G]=W,ne}),[g]),P=U.useCallback((G,W)=>g((K=[])=>{if(!K[W])return K;const ne=[...K],le=ne[W];return ne[W]=ne[G],ne[G]=le,ne}),[g]),R=U.useCallback(G=>P(G,G-1),[P]),I=U.useCallback(G=>P(G,G+1),[P]),V=U.useCallback(G=>{G.preventDefault(),m&&i({shortUrl:l,data:{redirectRules:m}})},[l,m,i]);return U.useEffect(()=>(t(l),n([l]),o),[t,n,l,o]),U.useEffect(()=>{e.redirectRules&&g(e.redirectRules)},[g,e.redirectRules]),y.jsxs("div",{className:"d-flex flex-column gap-3",children:[y.jsx("header",{children:y.jsxs(ra,{body:!0,children:[y.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[y.jsx(V_,{}),y.jsxs("div",{className:"text-center flex-grow-1",children:[r.loading&&y.jsx(y.Fragment,{children:"Loading..."}),!r.loading&&y.jsxs("small",{children:["Redirect rules for ",y.jsx(Ei,{href:(c==null?void 0:c.shortUrl)??""})]})]})]}),y.jsx("hr",{}),y.jsxs("div",{children:[y.jsx("p",{className:"mb-2",children:"Configure dynamic conditions that will be checked at runtime."}),"If no conditions match, visitors will be redirected to: ",y.jsx(Ei,{href:e.defaultLongUrl??""})]})]})}),y.jsx("div",{children:y.jsxs(qt,{outline:!0,color:"primary",onClick:O,children:[y.jsx(Xe,{icon:Xm,className:"me-1"})," Add rule"]})}),y.jsxs("form",{onSubmit:V,children:[e.loading&&y.jsx(ac,{loading:!0}),m.length===0&&!e.loading&&y.jsx(Mn,{className:"text-center",children:y.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),y.jsx("div",{className:"d-flex flex-column gap-2",ref:h,children:m.map((G,W)=>y.jsx(TPe,{redirectRule:G,priority:W+1,isLast:W===m.length-1,onDelete:()=>T(W),onMoveUp:()=>R(W),onMoveDown:()=>I(W),onUpdate:K=>j(W,K)},`${G.longUrl}_${W}`))}),y.jsx("div",{className:"text-center mt-3",children:y.jsx(qt,{outline:!0,color:"primary",className:"btn-sm-block",disabled:x,"data-testid":"save-button",children:x?"Saving...":"Save rules"})})]}),w&&y.jsx(Oi,{type:"error",children:y.jsx(ho,{errorData:w,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),_&&y.jsx(Oi,{type:"success",children:"Redirect rules properly saved."}),y.jsx($H,{isOpen:S,toggle:O,onSave:C})]})},jPe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>APe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",cje,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",sje,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",fje,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",lje,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},PPe=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}),BH=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:a}=Tn(BH),o=Hr("shortUrlCreation"),l=U.useMemo(()=>PPe(o),[o]);return y.jsxs(y.Fragment,{children:[y.jsx(i,{initialState:l,saving:t.saving,basicMode:r,onSave:async f=>(n(),e(f))}),y.jsx(a,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},RPe=An(BH,["ShortUrlForm","CreateShortUrlResult"]),UH=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Tn(UH),a=F3(),{loading:o,error:l,errorData:f,shortUrls:c}=e,h=a&&(c==null?void 0:c.get(a)),{saving:m,saved:g,error:x,errorData:_}=n,w=Hr("shortUrlCreation"),S=U.useMemo(()=>XAe(h,w),[h,w]);return U.useEffect(()=>{a&&t([a])},[t,a]),o?y.jsx(ac,{loading:!0}):l?y.jsx(Oi,{type:"error",children:y.jsx(ho,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):y.jsxs(y.Fragment,{children:[y.jsx("header",{className:"mb-3",children:y.jsx(ra,{body:!0,children:y.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[y.jsx(V_,{}),y.jsx("div",{className:"text-center flex-grow-1",children:y.jsxs("small",{children:["Edit ",y.jsx(Ei,{href:(h==null?void 0:h.shortUrl)??""})]})})]})})}),y.jsx(i,{initialState:S,saving:m,onSave:async O=>{h&&r({...h,data:O})}}),g&&x&&y.jsx(Oi,{type:"error",className:"mt-3",children:y.jsx(ho,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),g&&!x&&y.jsx(Oi,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},MPe=An(UH,["ShortUrlForm"]),V3=async({text:e,onCopy:t},n=navigator)=>{var r;const i=typeof e=="string"?e:await e;return(r=n.clipboard)==null?void 0:r.writeText(i).then(()=>t==null?void 0:t({text:i,copied:!0})).catch(()=>t==null?void 0:t({text:i,copied:!1}))},zH=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=Tn(zH),[i,a]=r(),{error:o,saved:l}=e;if(U.useEffect(()=>{t()},[t]),o)return y.jsxs(Oi,{type:"error",className:"mt-3",children:[n&&y.jsx(Xe,{"data-testid":"error-close-button",icon:UE,className:"float-end pointer",onClick:t}),y.jsx(ho,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!l)return null;const{shortUrl:f}=e.result;return y.jsxs(Oi,{type:"success",className:"mt-3",children:[n&&y.jsx(Xe,{"data-testid":"success-close-button",icon:UE,className:"float-end pointer",onClick:t}),y.jsxs("span",{children:[y.jsx("b",{children:"Great!"})," The short URL is ",y.jsx("b",{children:f})]}),y.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>V3({text:f,onCopy:a}),children:[y.jsx(Xe,{icon:vP})," Copy ",y.jsxs("span",{className:"sr-only",children:[f," to clipboard"]})]}),y.jsx(H0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},NPe=An(zH,["useTimeoutToggle"]),AE="delete",LPe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:a,shortUrlDeleted:o})=>{const[l,f]=U.useState("");U.useEffect(()=>i,[i]);const{loading:c,error:h,deleted:m,errorData:g}=r,x=U.useCallback(()=>{i(),t()},[i,t]),_=U.useCallback(w=>(w.preventDefault(),a(e).then(S=>!P3(S)&&t())),[a,e,t]);return y.jsx(ia,{isOpen:n,toggle:x,centered:!0,onClosed:()=>m&&o(e),children:y.jsxs("form",{onSubmit:_,children:[y.jsx(Hl,{toggle:x,children:y.jsx("span",{className:"text-danger",children:"Delete short URL"})}),y.jsxs(ms,{children:[y.jsxs("p",{children:[y.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),y.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),y.jsxs("p",{children:["Write ",y.jsx("b",{children:AE})," to confirm deletion."]}),y.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${AE}`,value:l,onChange:w=>f(w.target.value)}),h&&y.jsx(Oi,{type:OAe(g)?"warning":"error",small:!0,className:"mt-2",children:y.jsx(ho,{errorData:g,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),y.jsxs(Id,{children:[y.jsx("button",{type:"button",className:"btn btn-link",onClick:x,children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn btn-danger",disabled:l!==AE||c,children:c?"Deleting...":"Delete"})]})]})})},FH=({amount:e=0,loading:t=!1,...n})=>y.jsxs(qt,{...n,outline:!0,color:"primary",disabled:t,children:[y.jsx(Xe,{icon:eQ})," ",t?"Exporting...":y.jsxs(y.Fragment,{children:["Export (",Nn(e),")"]})]}),U$=20,qH=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Tn(qH),[{tags:r,search:i,startDate:a,endDate:o,orderBy:l,tagsMode:f}]=q_(),[c,,h,m]=Jt(),g=U.useCallback(async()=>{const x=e/U$,_=async(S=1)=>{const{data:O}=await t().listShortUrls({page:`${S}`,tags:r,searchTerm:i,startDate:a,endDate:o,orderBy:l,tagsMode:f,itemsPerPage:U$});return S>=x?O:O.concat(await _(S+1))};h();const w=await _();n.exportShortUrls(w.map(S=>{var O;const{hostname:C,pathname:T}=new URL(S.shortUrl),j=T.substring(1);return{createdAt:S.dateCreated,domain:C,shortCode:j,shortUrl:S.shortUrl,longUrl:S.longUrl,title:S.title??"",tags:S.tags.join("|"),visits:((O=S==null?void 0:S.visitsSummary)==null?void 0:O.total)??S.visitsCount??0}})),m()},[e,t,o,l,n,i,a,h,m,r,f]);return y.jsx(FH,{loading:c,className:"btn-md-block",amount:e,onClick:g})},DPe=An(qH,["apiClientFactory","ReportExporter"]),kPe=({text:e,copyToClipboard:t=V3,initialCopied:n=!1})=>{const[r,i]=G0(n);return y.jsx(pc,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>t({text:e,onCopy:i}),children:y.jsx(Xe,{icon:r?ec:vP,className:"fs-5",fixedWidth:!0})})},IPe="yyyy-MM-dd",VH="yyyy-MM-dd HH:mm",Ul=()=>new Date,H3=e=>typeof e!="string",W3=(e,t)=>!e||!H3(e)?e:t?gb(e,t):vfe(e),zl=e=>W3(e,void 0),El=e=>W3(e,IPe),Gm=e=>W3(e,VH),Si=e=>H3(e)?e:kl(e),_v=(e,t,n)=>{const r=Si(e),i=t&&Si(t),a=n&&Si(n);if(i&&a)try{return bfe(r,{start:i,end:a})}catch{return!1}return i?jT(r,i)||yfe(r,i):a?jT(r,a)||yb(r,a):!0},Pu=(e,t)=>jT(e,t)||yb(e,t),S0=({date:e,format:t=VH,relative:n=!1})=>{const r=H3(e)?e:kl(e);return y.jsx("time",{dateTime:`${gfe(r)}000`,children:n?`${mfe(Ul(),r)} ago`:gb(r,t)})},$Pe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${vH(t)}/${r}${i}`},Yp=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const a=Xl();return!n||!e?y.jsx("span",{...i,children:r}):y.jsx(hn,{to:$Pe(a,e,t),...i,children:r})},BPe=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:a,validUntil:o}=t,l=(r==null?void 0:r.total)??n??0;return i&&l>=i?{icon:KQ,className:"text-danger",description:`This short URL cannot be currently visited because it has reached the maximum amount of ${i} visit${i>1?"s":""}`}:o&&yb(Si(o),Ul())?{icon:xN,className:"text-danger",description:`This short URL cannot be visited since ${Gm(Si(o))}`}:a&&yb(Ul(),Si(a))?{icon:xN,className:"text-warning",description:`This short URL will start working on ${Gm(Si(a))}`}:{icon:ec,className:"text-primary",description:"This short URL can be visited normally"}},UPe=({shortUrl:e})=>{const{icon:t,className:n,description:r}=U.useMemo(()=>BPe(e),[e]);return y.jsx("span",{style:{cursor:r?"help":void 0},title:r,children:y.jsx(Xe,{icon:t,className:n})})},HH=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=Dl(),{maxVisits:a,validSince:o,validUntil:l}=(t==null?void 0:t.meta)??{},f=!!a||!!o||!!l,c=y.jsx(Yp,{shortUrl:t,suffix:"visits",asLink:r,children:y.jsx("strong",{className:ke("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Nn(e)})});return f?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"indivisible",children:[c,y.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[a&&y.jsxs(y.Fragment,{children:[" / ",Nn(a)]}),y.jsx("sup",{className:"ms-1",children:y.jsx(Xe,{icon:Aj})})]})]}),y.jsx(aa,{target:i,placement:"bottom",children:y.jsxs("ul",{className:"list-unstyled mb-0",children:[a&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",y.jsx("b",{children:Nn(a)})," visit",a===1?"":"s","."]}),o&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",y.jsx("b",{className:"indivisible",children:Gm(Si(o))}),"."]}),l&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",y.jsx("b",{className:"indivisible",children:Gm(Si(l))}),"."]})]})})]}):c},zPe=e=>!!e.onClose,FPe=e=>!!e.onClick,H_=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,a=FPe(e),o=a?pc:"span",l=U.useMemo(()=>i.stylesForKey(t),[t,i]);return y.jsxs(o,{className:ke("badge tag fw-bold",r,{pointer:a}),style:l,onClick:a?e.onClick:void 0,children:[n??t,zPe(e)&&y.jsx(pc,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},qPe=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?y.jsx("i",{className:"indivisible",children:y.jsx("small",{children:"No tags"})}):y.jsx(y.Fragment,{children:e.map(r=>y.jsx(H_,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),WH=({shortUrl:e,onTagClick:t})=>{var n,r,i,a;const{ShortUrlsRowMenu:o,ColorGenerator:l,useTimeoutToggle:f}=Tn(WH),[c,h]=f(!1,500),m=U.useRef(!0),[{excludeBots:g}]=q_(),x=Hr("visits"),_=g??(x==null?void 0:x.excludeBots);return U.useEffect(()=>{m.current||h(),m.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,h]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:y.jsx(S0,{date:e.dateCreated})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:y.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[y.jsx("span",{className:"short-urls-row__short-url-wrapper",children:y.jsx(Ei,{href:e.shortUrl})}),y.jsx(kPe,{text:e.shortUrl})]})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:y.jsx(Ei,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&y.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:y.jsx(Ei,{href:e.longUrl})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:y.jsx(qPe,{tags:e.tags,colorGenerator:l,onTagClick:t})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:y.jsx(HH,{visitsCount:(_?(i=e.visitsSummary)==null?void 0:i.nonBots:(a=e.visitsSummary)==null?void 0:a.total)??e.visitsCount??0,shortUrl:e,active:c,asLink:!0})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:y.jsxs("div",{className:"d-flex gap-2",children:[y.jsx(UPe,{shortUrl:e}),e.hasRedirectRules&&y.jsx(Yp,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:y.jsx(Xe,{icon:u9})})]})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:y.jsx(o,{shortUrl:e})})]})},VPe=An(WH,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),HPe=6,z$="0123456789ABCDEF",WPe=128;function GPe(){return`#${L3(HPe,()=>z$[Math.floor(Math.random()*z$.length)]).join("")}`}function YPe(e,t,n){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*n**2))}function GH(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return YPe(t,n,r)>=WPe}const YH=U.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>y.jsxs("div",{className:ke("p-0 position-relative",r),style:{backgroundColor:t,borderColor:t},children:[y.jsx(Xe,{icon:pQ,className:"position-absolute top-50 start-50 translate-middle",style:{color:GH(t.substring(1))?"#000":"fff"}}),y.jsx(sr,{className:"form-control-color opacity-0",type:"color",value:t,onChange:a=>n(a.target.value),innerRef:i,name:e,"aria-label":e.replace("-"," ")})]})),F$=({color:e,onChange:t,name:n})=>{const r=Dl();return y.jsxs(iv,{children:[y.jsx(YH,{name:`${n}-picker`,color:e,onChange:t,className:"input-group-text",ref:r}),y.jsx(sr,{readOnly:!0,value:e,onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},"aria-label":n,"data-testid":"text-input"})]})},KPe=U.forwardRef(({data:e,color:t="#000000",bgColor:n="#ffffff",margin:r=0,errorCorrection:i="L",size:a=300,drawType:o="canvas"},l)=>{const f=U.useRef(null),c=U.useRef(new $fe),h=U.useCallback((g,x)=>c.current.download({name:g,extension:x}),[]),m=U.useCallback(g=>new Promise((x,_)=>{const w=c.current.getRawData(g),S=new FileReader;S.onload=()=>{const{result:O}=S;O&&x(O.toString())},S.onerror=_,w.then(O=>{O instanceof Blob?S.readAsDataURL(O):_(new Error("QR code image blob not available"))})}),[]);return U.useImperativeHandle(l,()=>({download:h,getDataUri:m}),[h,m]),U.useEffect(()=>{const g=f.current;c.current.append(g)},[]),U.useEffect(()=>{c.current.update({type:o,data:e,width:a+r,height:a+r,margin:r,dotsOptions:{color:t},backgroundOptions:{color:n},qrOptions:{errorCorrectionLevel:i}})},[n,t,e,o,i,r,a]),y.jsx("div",{ref:f})}),q$=({name:e,value:t,step:n,min:r,max:i,onChange:a})=>{const o=U.useId();return y.jsxs("div",{className:"d-flex flex-column gap-1",children:[y.jsxs("label",{htmlFor:o,className:"text-capitalize",children:[e,": ",t,"px"]}),y.jsx("input",{id:o,type:"range",className:"form-control-range",value:t,step:n,min:r,max:i,onChange:l=>a(Number(l.target.value))})]})},ZPe=({errorCorrection:e,onChange:t})=>y.jsxs(vs,{text:e?`Error correction (${e})`:y.jsx("i",{children:"Default error correction"}),dropdownClassName:"w-100",children:[y.jsxs(Je,{active:e==="L",onClick:()=>t("L"),children:[y.jsx("b",{children:"L"}),"ow"]}),y.jsxs(Je,{active:e==="M",onClick:()=>t("M"),children:[y.jsx("b",{children:"M"}),"edium"]}),y.jsxs(Je,{active:e==="Q",onClick:()=>t("Q"),children:[y.jsx("b",{children:"Q"}),"uartile"]}),y.jsxs(Je,{active:e==="H",onClick:()=>t("H"),children:[y.jsx("b",{children:"H"}),"igh"]})]}),XPe=["png","svg","webp","jpeg"],QPe=({format:e,onChange:t})=>y.jsx(vs,{text:`Format (${e})`,dropdownClassName:"w-100",children:XPe.map(n=>y.jsx(Je,{active:e===n,onClick:()=>t(n),children:n},n))}),JPe=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r,qrDrawType:i})=>{const[a,o]=U.useState(300),[l,f]=U.useState(0),[c,h]=U.useState("L"),[m,g]=U.useState("#000000"),[x,_]=U.useState("#ffffff"),[w,S]=U.useState("png"),O=Ca("qrCodeColors"),C=U.useRef(null),T=U.useCallback(()=>{var I;return(I=C.current)==null?void 0:I.download(`${t}-qr-code`,w)},[w,t]),[j,P]=G0(),R=U.useCallback(()=>{var I;const V=((I=C.current)==null?void 0:I.getDataUri(w))??"";return V3({text:V,onCopy:P})},[w,P]);return y.jsxs(ia,{isOpen:r,toggle:n,centered:!0,size:"lg",children:[y.jsxs(Hl,{toggle:n,children:["QR code for ",y.jsx(Ei,{href:e,children:e})]}),y.jsxs(ms,{className:"d-flex flex-column-reverse flex-lg-row gap-3",children:[y.jsx("div",{className:"flex-grow-1 d-flex align-items-center justify-content-around qr-code-modal__qr-code",children:y.jsxs("div",{className:"d-flex flex-column gap-1","data-testid":"qr-code-container",children:[y.jsx(KPe,{ref:C,data:e,size:a,margin:l,errorCorrection:c,color:m,bgColor:x,drawType:i}),y.jsxs("div",{className:"text-center fst-italic",children:["Preview (",a+l,"x",a+l,")"]})]})}),y.jsxs("div",{className:"d-flex flex-column gap-2 qr-code-modal__controls",children:[y.jsx(q$,{name:"size",value:a,onChange:o,step:10,min:50,max:1e3}),y.jsx(q$,{name:"margin",value:l,onChange:f,step:1,min:0,max:100}),y.jsx(ZPe,{errorCorrection:c,onChange:h}),O&&y.jsxs(y.Fragment,{children:[y.jsx(F$,{name:"color",color:m,onChange:g}),y.jsx(F$,{name:"background",color:x,onChange:_})]}),y.jsx("div",{className:"my-auto",children:y.jsx("hr",{className:"my-2"})}),y.jsxs("div",{className:"d-flex flex-column gap-2",children:[y.jsx(QPe,{format:w,onChange:S}),y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[y.jsx(qt,{outline:!0,color:"primary",onClick:R,"aria-label":"Copy data URI",title:"Copy data URI",children:y.jsx(Xe,{icon:j?ec:vP,fixedWidth:!0})}),y.jsxs(qt,{color:"primary",onClick:T,className:"flex-grow-1",children:["Download ",y.jsx(Xe,{icon:o9,className:"ms-1"})]})]})]})]})]})]})},KH=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r}=Tn(KH),[i,,a,o]=Jt(),[l,,f,c]=Jt(),h=B_(),m=Ca("shortUrlRedirectRules"),{confirmDeletions:g=!0}=Hr("shortUrlsList",{}),x=U.useCallback(async()=>{const _=await t(e);P3(_)||n(e)},[t,e,n]);return y.jsxs(y.Fragment,{children:[y.jsxs(Y0,{minWidth:m?220:190,children:[y.jsxs(Je,{tag:Yp,shortUrl:e,suffix:"visits",asLink:!0,children:[y.jsx(Xe,{icon:Tj,fixedWidth:!0})," Visit stats"]}),h&&y.jsxs(y.Fragment,{children:[y.jsxs(Je,{disabled:!h.canAddItemWithName(e.shortUrl),onClick:()=>h.addItemToCompare({name:e.shortUrl,query:$3(e)}),children:[y.jsx(Xe,{icon:I0,fixedWidth:!0})," Compare visits"]}),y.jsx(Je,{divider:!0,tag:"hr"})]}),y.jsxs(Je,{tag:Yp,shortUrl:e,suffix:"edit",asLink:!0,children:[y.jsx(Xe,{icon:Cj,fixedWidth:!0})," Edit short URL"]}),m&&y.jsxs(Je,{tag:Yp,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[y.jsx(Xe,{icon:u9,fixedWidth:!0})," Manage redirect rules"]}),y.jsxs(Je,{onClick:a,children:[y.jsx(Xe,{icon:WQ,fixedWidth:!0})," QR code"]}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsxs(Je,{className:"dropdown-item--danger",onClick:g?f:x,children:[y.jsx(Xe,{icon:r9,fixedWidth:!0})," Delete short URL"]})]}),y.jsx(JPe,{shortUrl:e,isOpen:i,toggle:o}),y.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:l,toggle:c})]})},e3e=An(KH,["DeleteShortUrlModal"]),ZH="shlink/shortUrlCreation",V$={saving:!1,saved:!1,error:!1},t3e=e=>Zn(`${ZH}/createShortUrl`,t=>e().createShortUrl(t)),n3e=e=>{const{reducer:t,actions:n}=$n({name:ZH,initialState:V$,reducers:{resetCreateShortUrl:()=>V$},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:o})=>({saving:!1,saved:!1,error:!0,errorData:Ri(o)})),i.addCase(e.fulfilled,(a,{payload:o})=>({result:o,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},XH="shlink/shortUrlEdition",r3e={saving:!1,saved:!1,error:!1},i3e=e=>Zn(`${XH}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl({shortCode:t,domain:n},r)),a3e=e=>$n({name:XH,initialState:r3e,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),H$="shlink/shortUrlsDetails",W$={loading:!1,error:!1},o3e=e=>{const t=Zn(`${H$}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:a}=i(),o=await Promise.all(r.map(async l=>{var f;const{shortCode:c,domain:h}=l,m=(f=a==null?void 0:a.shortUrls)==null?void 0:f.data.find(g=>Gp(g,c,h));return[l,m??await e().getShortUrl({shortCode:c,domain:h})]}));return new Map(o)}),{reducer:n}=$n({name:H$,initialState:W$,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({loading:!1,error:!0,errorData:Ri(a)})),r.addCase(t.fulfilled,(i,{payload:a})=>({...W$,shortUrls:a}))}});return{reducer:n,getShortUrlsDetails:t}},s3e=({domains:e,value:t,onChange:n})=>{const[r,,i,a]=Jt(),o=!t,l=U.useCallback(()=>{n(""),a()},[n,a]),f=U.useCallback(()=>{n(""),i()},[n,i]);return r?y.jsxs(iv,{children:[y.jsx(sr,{value:t??"",placeholder:"Domain",onChange:c=>n(c.target.value)}),y.jsx(qt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:l,children:y.jsx(Xe,{icon:EQ})}),y.jsx(aa,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):y.jsxs(vs,{text:o?"Domain":`Domain: ${t}`,className:o?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[e.map(({domain:c,isDefault:h})=>y.jsxs(Je,{active:(t===c||h)&&o,onClick:()=>n(c),className:"d-flex justify-content-between align-items-center",children:[c,h&&y.jsx("span",{className:"text-muted",children:"default"})]},c)),y.jsx(Je,{divider:!0}),y.jsx(Je,{onClick:f,children:y.jsx("i",{children:"New domain"})})]})},jE=({icon:e,className:t,...n})=>{const r=Dl();return y.jsxs("div",{className:"icon-input-container",children:[y.jsx(sr,{className:ke("icon-input-container__input",t),innerRef:r,...n}),y.jsx(Xe,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},l3e=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...a})=>{const o=U.useCallback(({target:f})=>{if(!f.value){r==null||r(null);return}r==null||r(Si(f.value))},[r]),l=U.useMemo(()=>i?Gm:El,[i]);return y.jsx(sr,{...a,type:i?"datetime-local":"date",value:l(n)??"",max:l(t)??void 0,min:l(e)??void 0,onChange:o})},O0=({label:e,id:t,...n})=>{const r=U.useId();return y.jsxs(y.Fragment,{children:[y.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),y.jsx(l3e,{id:t??r,...n})]})},PE=({children:e,infoTooltip:t,checked:n,onChange:r})=>y.jsxs("p",{children:[y.jsx(NU,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&y.jsx(Ny,{placement:"right",children:t})]}),u3e=({isOpen:e,toggle:t})=>y.jsxs(ia,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[y.jsx(Hl,{toggle:t,children:"Info"}),y.jsxs(ms,{children:[y.jsxs("p",{children:["When the ",y.jsx("b",{children:y.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),y.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),y.jsxs("ul",{children:[y.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),y.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",y.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),y.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),c3e=()=>{const[e,t]=Jt();return y.jsxs(y.Fragment,{children:[y.jsx(pc,{className:"p-0",title:"What does this mean?",onClick:t,children:y.jsx(Xe,{icon:Aj})}),y.jsx(u3e,{isOpen:e,toggle:t})]})},vy=e=>typeof e=="string"?kl(e):e,f3e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,QH=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:a})=>{var o,l,f;const{TagsSelector:c}=Tn(QH),[h,m]=U.useState(r),g=f3e(h),x=Ca("deviceLongUrls"),_=Ca("urlValidation"),w=_||g,S=U.useCallback(()=>m(r),[r]),O=U.useCallback((R,I)=>Bu(R)?R:Bu(I)?null:void 0,[]),C=U.useCallback((R,I)=>m(({deviceLongUrls:V={},...G})=>{var W;return{...G,deviceLongUrls:{...V,[R]:O(I,(W=r.deviceLongUrls)==null?void 0:W[R])}}}),[r.deviceLongUrls,O]),T=U.useCallback(R=>m(I=>({...I,tags:R})),[]),j=U.useCallback(async R=>(R.preventDefault(),n(h).then(I=>g&&!P3(I)&&S()).catch(()=>{})),[g,n,S,h]),P=U.useMemo(()=>y.jsxs("div",{className:"d-flex flex-column gap-3",children:[y.jsx(sr,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:h.longUrl,onChange:R=>m(I=>({...I,longUrl:R.target.value}))}),y.jsxs("div",{className:ke("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&g&&y.jsx("div",{className:"w-100 w-lg-50",children:y.jsx(sr,{bsSize:"lg",placeholder:"Custom slug",value:h.customSlug??"",onChange:R=>m(I=>({...I,customSlug:R.target.value}))})}),y.jsx("div",{className:ke("w-100",{"w-lg-50":e}),children:y.jsx(c,{tags:i.tags,selectedTags:h.tags??[],onChange:T})})]})]}),[c,e,T,g,h,i.tags]);return y.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:j,children:[e&&P,!e&&y.jsxs(y.Fragment,{children:[y.jsxs(Ja,{children:[y.jsx("div",{className:ke("mb-3",{"col-sm-6":x,"col-12":!x}),children:y.jsx(Mn,{title:"Main options",children:P})}),x&&y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Mn,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[y.jsx(jE,{type:"url",icon:Ufe,placeholder:"Android-specific redirection",value:((o=h.deviceLongUrls)==null?void 0:o.android)??"",onChange:({target:R})=>C("android",R.value)}),y.jsx(jE,{type:"url",icon:Bfe,placeholder:"iOS-specific redirection",value:((l=h.deviceLongUrls)==null?void 0:l.ios)??"",onChange:({target:R})=>C("ios",R.value)}),y.jsx(jE,{type:"url",icon:ZQ,placeholder:"Desktop-specific redirection",value:((f=h.deviceLongUrls)==null?void 0:f.desktop)??"",onChange:({target:R})=>C("desktop",R.value)})]})})]}),y.jsxs(Ja,{children:[y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Mn,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[y.jsx(sr,{placeholder:"Title",value:h.title??"",onChange:({target:R})=>m(I=>({...I,title:O(R.value,r.title)}))}),g&&y.jsxs(y.Fragment,{children:[y.jsxs(Ja,{children:[y.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:y.jsx(sr,{placeholder:"Custom slug",value:h.customSlug??"",onChange:R=>m(I=>({...I,customSlug:R.target.value})),disabled:Bu(h.shortCodeLength)})}),y.jsx("div",{className:"col-lg-6",children:y.jsx(sr,{type:"number",placeholder:"Short code length",value:h.shortCodeLength??"",onChange:R=>m(I=>({...I,shortCodeLength:R.target.value})),min:4,disabled:Bu(h.customSlug)})})]}),y.jsx(s3e,{value:h.domain,onChange:R=>m(I=>({...I,domain:R})),domains:a.domains})]})]})}),y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Mn,{title:"Limit access to the short URL",children:[y.jsxs("div",{className:"row mb-3",children:[y.jsx("div",{className:"col-lg-6",children:y.jsx(O0,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?vy(h.validUntil):void 0,value:h.validSince?vy(h.validSince):null,onChange:R=>m(I=>({...I,validSince:zl(R)}))})}),y.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:y.jsx(O0,{label:"Enabled until",withTime:!0,minDate:h.validSince?vy(h.validSince):void 0,value:h.validUntil?vy(h.validUntil):null,onChange:R=>m(I=>({...I,validUntil:zl(R)}))})})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),y.jsx(sr,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:h.maxVisits??"",onChange:R=>m(I=>({...I,maxVisits:Bu(R.target.value)?Number(R.target.value):null}))})]})]})})]}),y.jsxs(Ja,{children:[w&&y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Mn,{title:"Extra checks",children:[_&&y.jsx(PE,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:h.validateUrl,onChange:R=>m(I=>({...I,validateUrl:R})),children:"Validate URL"}),g&&y.jsxs("p",{children:[y.jsx(NU,{inline:!0,className:"me-2",checked:h.findIfExists,onChange:R=>m(I=>({...I,findIfExists:R})),children:"Use existing URL if found"}),y.jsx(c3e,{})]})]})}),y.jsx("div",{className:ke("mb-3",{"col-sm-6":w}),children:y.jsxs(Mn,{title:"Configure behavior",children:[y.jsx(PE,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:h.crawlable,onChange:R=>m(I=>({...I,crawlable:R})),children:"Make it crawlable"}),y.jsx(PE,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:h.forwardQuery,onChange:R=>m(I=>({...I,forwardQuery:R})),children:"Forward query params on redirect"})]})})]})]}),y.jsx("div",{className:"text-center",children:y.jsx(qt,{outline:!0,color:"primary",disabled:t||!h.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},d3e=An(QH,["TagsSelector"]),W_="all",JH={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[W_]:void 0},eW=Object.keys(JH),h3e=e=>!e||!e.startDate&&!e.endDate,E0=e=>typeof e=="string"&&eW.includes(e),p3e=eW.filter(e=>e!==W_),G$=e=>e?Si(e):null,tW=(e,t)=>({startDate:G$(e),endDate:G$(t)}),m3e=e=>{if(!(!e||h3e(e)))return e.startDate&&!e.endDate?`Since ${El(e.startDate)}`:!e.startDate&&e.endDate?`Until ${El(e.endDate)}`:`${El(e.startDate)} - ${El(e.endDate)}`},nW=e=>{if(!(!e||e===W_))return E0(e)?JH[e]:m3e(e)},Yi=e=>uc(bb(Ul(),e)),Sf=e=>({startDate:e,endDate:ed(Ul())}),rW=e=>{var t;return((t=[[()=>e==="today",()=>Sf(uc(Ul()))],[()=>e==="yesterday",()=>({startDate:Yi(1),endDate:ed(bb(Ul(),1))})],[()=>e==="last7Days",()=>Sf(Yi(7))],[()=>e==="last30Days",()=>Sf(Yi(30))],[()=>e==="last90Days",()=>Sf(Yi(90))],[()=>e==="last180Days",()=>Sf(Yi(180))],[()=>e==="last365Days",()=>Sf(Yi(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},v3e=e=>{var t;const n=Si(e);return((t=[[()=>Pu(uc(Ul()),n),"today"],[()=>Pu(Yi(1),n),"yesterday"],[()=>Pu(Yi(7),n),"last7Days"],[()=>Pu(Yi(30),n),"last30Days"],[()=>Pu(Yi(90),n),"last90Days"],[()=>Pu(Yi(180),n),"last180Days"],[()=>Pu(Yi(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??W_},iW=e=>E0(e)?rW(e):e,aW=e=>!!(e&&e.startDate),g3e=({startDate:e,endDate:t})=>{const n=gz(ed(t??new Date),uc(e))+1,r=bb(uc(e),n),i=bb(ed(e),1);return{startDate:r,endDate:i}},y3e=e=>{if(aW(e))return gz(e.endDate??new Date,e.startDate)},b3e=({active:e,allText:t,onChange:n})=>y.jsxs(y.Fragment,{children:[y.jsx(Je,{active:e==="all",onClick:()=>n("all"),children:t}),y.jsx(Je,{divider:!0,tag:"hr"}),p3e.map(r=>y.jsx(Je,{active:e===r,onClick:()=>n(r),children:nW(r)},r))]}),_3e=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>y.jsxs("div",{className:"row",children:[y.jsx("div",{className:"col-md-6",children:y.jsx(O0,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),y.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:y.jsx(O0,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:a=>i(a&&ed(a))})})]}),G3=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=U.useMemo(()=>nW(t)??n,[t,n]),[a,o]=U.useMemo(()=>E0(t)?[void 0,t]:[t,void 0],[t]),l=U.useCallback(f=>{E0(f)?e(rW(f),f):e(f)},[e]);return y.jsxs(vs,{disabled:r,text:i,children:[y.jsx(b3e,{allText:n,active:o,onChange:l}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsx("div",{className:"px-3 py-1",children:y.jsx(_3e,{...a,onStartDateChange:f=>l({...a,startDate:f}),onEndDateChange:f=>l({...a,endDate:f})})})]})},x3e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},w3e=({onChange:e,selected:t={},className:n,domains:r})=>{const i=Ca("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:l=!1,domain:f}=t,c=U.useCallback(m=>e({...t,...m}),[e,t]),h=U.useCallback(m=>c({[m]:!(t!=null&&t[m])}),[c,t]);return y.jsxs(vs,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[y.jsx(Je,{header:!0,"aria-hidden":!0,children:"Visits:"}),y.jsx(Je,{active:a,onClick:()=>h("excludeBots"),children:"Ignore visits from bots"}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsx(Je,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),y.jsx(Je,{active:o,onClick:()=>h("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),y.jsx(Je,{active:l,onClick:()=>h("excludePastValidUntil"),children:"Exclude enabled in the past"}),i&&y.jsxs(y.Fragment,{children:[y.jsx(Je,{divider:!0,tag:"hr"}),y.jsxs(Je,{header:!0,"aria-hidden":!0,children:["Domain: ",!r&&y.jsx("i",{children:"loading..."})]}),r==null?void 0:r.map(m=>{const g=m.isDefault?Pd:m.domain,x=f===g;return y.jsx(Je,{active:x,onClick:()=>c({domain:x?void 0:g}),children:m.domain},m.domain)})]}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsx(Je,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"fst-italic",children:"Reset to defaults"})]})},oW=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:a})=>{const{ExportShortUrlsBtn:o,TagsSelector:l}=Tn(oW),[{search:f,tags:c,startDate:h,endDate:m,excludeBots:g,excludeMaxVisitsReached:x,excludePastValidUntil:_,domain:w,tagsMode:S="any"},O]=q_(),C=Hr("visits"),[T,j]=U.useState(),P=U.useCallback(({startDate:G,endDate:W},K)=>{O({startDate:zl(G)??void 0,endDate:zl(W)??void 0}),j(K)},[O]),R=U.useCallback(G=>O({search:G||void 0}),[O]),I=U.useCallback(G=>O({tags:G}),[O]),V=U.useCallback(()=>O({tagsMode:S==="any"?"all":"any"}),[S,O]);return y.jsxs("div",{className:ke("short-urls-filtering-bar-container",e),children:[y.jsx(W0,{initialValue:f,onChange:R}),y.jsxs(iv,{className:"mt-3",children:[y.jsx(l,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:c,onChange:I}),c.length>1&&y.jsxs(y.Fragment,{children:[y.jsx(qt,{outline:!0,color:"secondary",onClick:V,id:"tagsModeBtn","aria-label":"Change tags mode",children:y.jsx(Xe,{className:"short-urls-filtering-bar__tags-icon",icon:S==="all"?a9:wQ})}),y.jsx(aa,{target:"tagsModeBtn",placement:"left",children:S==="all"?"With all the tags.":"With any of the tags."})]})]}),y.jsxs(Ja,{className:"flex-lg-row-reverse",children:[y.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(G3,{defaultText:"All short URLs",dateRangeOrInterval:T??tW(h,m),onDatesChange:P})}),y.jsx(w3e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:g??(C==null?void 0:C.excludeBots),excludeMaxVisitsReached:x,excludePastValidUntil:_,domain:w},onChange:O,domains:a.loading?void 0:a.domains})]})}),y.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:y.jsx(o,{amount:t})}),y.jsx("div",{className:"col-6 d-lg-none mt-3",children:y.jsx(ov,{prefixed:!1,items:x3e,order:n,onChange:r})})]})]})},S3e=An(oW,["ExportShortUrlsBtn","TagsSelector"]);function Kp({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:y.jsx(Xe,{icon:e.dir==="ASC"?hQ:TQ,className:n})}const Of=2,oj="...",sW=(e,t)=>{const n=pP(Math.max(Of,e-Of),Math.min(t-1,e+Of)+1);return e-Of>Of&&n.unshift(oj),e+Of<t-1&&n.push(oj),n.unshift(1),n.push(t),n},Ym=e=>e===oj,lW=e=>Ym(e)?e:Nn(e),uW=(e,t)=>Ym(e)?`${e}_${t}`:`${e}`,O3e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=Xl(),a=l=>`${i}/list-short-urls/${l}${t}`;if(r<=1)return y.jsx("div",{className:"pb-3"});const o=()=>sW(n,r).map((l,f)=>y.jsx(Ku,{disabled:Ym(l),active:n===l,children:y.jsx(Zu,{tag:hn,to:a(l),children:lW(l)})},uW(l,f)));return y.jsxs(iP,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[y.jsx(Ku,{disabled:n===1,children:y.jsx(Zu,{previous:!0,tag:hn,to:a(n-1)})}),o(),y.jsx(Ku,{disabled:n>=r,children:y.jsx(Zu,{next:!0,tag:hn,to:a(n+1)})})]})},E3e={field:"dateCreated",dir:"DESC"},cW=Na(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:a,ShortUrlsFilteringBar:o}=Tn(cW),{page:l}=Dd(),f=Pr(),[{tags:c,search:h,startDate:m,endDate:g,orderBy:x,tagsMode:_,excludeBots:w,excludePastValidUntil:S,excludeMaxVisitsReached:O,domain:C},T]=q_(),j=mP(),[P,R]=U.useState(x??((n=j.shortUrlsList)==null?void 0:n.defaultOrdering)??E3e),{pagination:I}=(t==null?void 0:t.shortUrls)??{},V=U.useMemo(()=>{var J;return w??((J=j.visits)==null?void 0:J.excludeBots)},[w,(r=j.visits)==null?void 0:r.excludeBots]),G=U.useCallback((J,H)=>{T({orderBy:{field:J,dir:H}}),R({field:J,dir:H})},[T]),W=J=>()=>G(J,av(J,P.field,P.dir)),K=J=>y.jsx(Kp,{currentOrder:P,field:J}),ne=U.useCallback(J=>T({tags:[...new Set([...c,J])]}),[c,T]),le=U.useCallback(({field:J,dir:H})=>V&&J==="visits"?{field:"nonBotVisits",dir:H}:{field:J,dir:H},[V]),Q=M3();return U.useEffect(()=>{e({page:l,searchTerm:h,tags:c,startDate:m,endDate:g,orderBy:le(P),tagsMode:_,excludePastValidUntil:S,excludeMaxVisitsReached:O,domain:C})},[e,le,l,h,c,m,g,P,_,S,O,C]),y.jsxs(R3,{value:Q,children:[y.jsx(o,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:P,handleOrderBy:G,className:"mb-3"}),y.jsx(N3,{type:"short-urls",className:"mb-3"}),y.jsxs(ra,{body:!0,className:ke({"pb-0":!t.loading}),children:[y.jsx(a,{shortUrlsList:t,orderByColumn:W,renderOrderIcon:K,onTagClick:ne}),!t.loading&&y.jsx(O3e,{paginator:I,currentQueryString:f.search})]})]})},()=>[Vr.visits]),C3e=An(cW,["ShortUrlsTable","ShortUrlsFilteringBar"]),T3e=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:a}=e;return r?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):i?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!i&&(!a||a.data.length===0)?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):a==null?void 0:a.data.map(o=>y.jsx(n,{shortUrl:o,onTagClick:t},o.shortUrl))},fW=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:a}=Tn(fW),o=ke({"short-urls-table__header-cell--with-action":!!e}),l=ke("short-urls-table__header-cell",o),f=ke("table table-hover responsive-table short-urls-table",i);return y.jsxs("table",{className:f,children:[y.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:y.jsxs("tr",{children:[y.jsxs("th",{className:l,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),y.jsxs("th",{className:l,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),y.jsxs("th",{className:"short-urls-table__header-cell",children:[y.jsxs(pc,{className:ke("p-0",o),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",y.jsxs(pc,{className:ke("p-0",o),onClick:e==null?void 0:e("longUrl"),children:[y.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),y.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),y.jsx("th",{className:l,onClick:e==null?void 0:e("visits"),children:y.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),y.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),y.jsx("tbody",{children:y.jsx(T3e,{ShortUrlsRow:a,shortUrlsList:n,onTagClick:r})})]})},A3e=An(fW,["ShortUrlsRow"]),j3e=(e,t)=>{e.factory("ShortUrlsList",C3e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",A3e),e.factory("ShortUrlsRow",VPe),e.factory("CreateShortUrlResult",NPe),e.factory("ShortUrlsRowMenu",e3e),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",d3e),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",RPe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",MPe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>LPe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("ExportShortUrlsBtn",DPe),e.factory("ShortUrlsFilteringBar",S3e),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",nje,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",n3e,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",a3e,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",JAe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",o3e,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",tje,"apiClientFactory"),e.serviceFactory("createShortUrl",t3e,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",QAe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>yH),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",i3e,"apiClientFactory")},P3e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:a})=>{const{deleting:o,error:l,deleted:f,errorData:c}=i;return y.jsxs(ia,{toggle:t,isOpen:n,centered:!0,onClosed:()=>f&&a(e),children:[y.jsx(Hl,{toggle:t,className:"text-danger",children:"Delete tag"}),y.jsxs(ms,{children:["Are you sure you want to delete tag ",y.jsx("b",{children:e}),"?",l&&y.jsx(Oi,{type:"error",small:!0,className:"mt-2",children:y.jsx(ho,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),y.jsxs(Id,{children:[y.jsx(qt,{color:"link",onClick:t,children:"Cancel"}),y.jsx(qt,{color:"danger",disabled:o,onClick:async()=>{await r(e),t()},children:o?"Deleting tag...":"Delete tag"})]})]})},dW=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:a})=>{const{ColorGenerator:o}=Tn(dW),[l,f]=U.useState(e),[c,h]=U.useState(o.getColorForKey(e)),{editing:m,error:g,edited:x,errorData:_}=a,w=mH(async()=>{await t({oldName:e,newName:l,color:c}),n()}),S=U.useCallback(()=>x&&r({oldName:e,newName:l,color:c}),[c,x,l,e,r]);return y.jsx(ia,{isOpen:i,toggle:n,centered:!0,onClosed:S,children:y.jsxs("form",{name:"editTag",onSubmit:w,children:[y.jsx(Hl,{toggle:n,children:"Edit tag"}),y.jsxs(ms,{children:[y.jsxs(iv,{children:[y.jsx(YH,{color:c,onChange:h,className:"input-group-text",name:"tag-color"}),y.jsx(sr,{value:l,placeholder:"Tag",required:!0,onChange:({target:O})=>f(O.value)})]}),g&&y.jsx(Oi,{type:"error",small:!0,className:"mt-2",children:y.jsx(ho,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),y.jsxs(Id,{children:[y.jsx(qt,{type:"button",color:"link",onClick:n,children:"Cancel"}),y.jsx(qt,{color:"primary",disabled:m,children:m?"Saving...":"Save"})]})]})})},R3e=An(dW,["ColorGenerator"]),M3e=/\s+/g,hW=e=>e.trim().toLowerCase().replace(M3e,"-"),pW=({color:e})=>y.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),mW=({tag:e,colorGenerator:t})=>y.jsx(pW,{color:t.getColorForKey(e)});let Y$=1;const vW="Tag not found",gW="Add tag",N3e=e=>e!==vW,L3e=e=>e===gW,K$=e=>(Y$+=1,{label:e,value:`${e}${Y$}`}),D3e=e=>({tag:t,onClick:n})=>y.jsx(H_,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),k3e=(e,t)=>({option:n,classNames:r,...i})=>{var a;const o=N3e(n.label),l=L3e(n.label);return y.jsx("div",{className:ke(r.option,{[r.optionIsActive]:o&&n.active,"react-tags__listbox-option--not-selectable":!o}),...i,children:o?y.jsxs(y.Fragment,{children:[!l&&y.jsx(mW,{tag:`${n.label}`,colorGenerator:e}),l?y.jsxs("i",{children:['Add "',hW(((a=t.current)==null?void 0:a.input.value)??""),'"']}):n.label]}):y.jsx("i",{children:n.label})})},yW=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:a}=Tn(yW),o=Hr("shortUrlCreation"),l=(o==null?void 0:o.tagFilteringMode)??"startsWith",f=U.useRef(null);return y.jsx($de,{ref:f,selected:e.map(K$),suggestions:r.filter(c=>!e.includes(c)).map(K$),renderTag:D3e(a),renderOption:k3e(a,f),activateFirstOption:!0,allowNew:!i,newOptionText:gW,noOptionsText:vW,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(c,h)=>{const m=c.toLowerCase().trim();return m.length<1?[]:[...h.filter(({label:g})=>l==="includes"?g.includes(m):g.startsWith(m))].slice(0,5)},onDelete:c=>{const h=[...e];h.splice(c,1),t(h)},onAdd:({label:c})=>t([...new Set([...e,...c.split(",").map(hW)])])})},I3e=An(yW,["ColorGenerator"]),sj="shlink/tagDelete",$3e={deleting:!1,deleted:!1,error:!1},bW=Fr(`${sj}/tagDeleted`),B3e=e=>{const t=Zn(`${sj}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=$n({name:sj,initialState:$3e,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({deleting:!1,deleted:!1,error:!0,errorData:Ri(a)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},Y3="shlink/tagEdit",U3e={editing:!1,edited:!1,error:!1},_W=Fr(`${Y3}/tagEdited`),z3e=(e,t)=>Zn(`${Y3}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag({oldName:n,newName:r}),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),F3e=e=>$n({name:Y3,initialState:U3e,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:a}=r;return{oldName:i,newName:a,editing:!1,edited:!0,error:!1}})}}),K3="shlink/tagsList",RE={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},Z$=(e,t)=>n=>n===e?t:n,X$=(e,t)=>e.filter(n=>n!==t),q3e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:a,nonBots:o}=i,l=n[r];return{...n,[r]:{...l,visitsSummary:l.visitsSummary&&{total:l.visitsSummary.total+a+o,bots:l.visitsSummary.bots+a,nonBots:l.visitsSummary.nonBots+o},visitsCount:(l.visitsCount??0)+a+o}}},{...t}),V3e=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),{})),H3e=e=>Zn(`${K3}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...a})=>(r[i]=a,r),{});return{tags:Object.keys(n),stats:n}}),xW=Fr(`${K3}/filterTags`),W3e=(e,t)=>$n({name:K3,initialState:RE,reducers:{},extraReducers:n=>{n.addCase(xW,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(a=>a.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...RE,error:!0,errorData:Ri(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...RE,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(bW,({tags:r,filteredTags:i,...a},{payload:o})=>({...a,tags:X$(r,o),filteredTags:X$(i,o)})),n.addCase(_W,({tags:r,filteredTags:i,stats:a,...o},{payload:l})=>({...o,stats:{...a,[l.newName]:a[l.oldName]},tags:r.map(Z$(l.oldName,l.newName)).sort(),filteredTags:i.map(Z$(l.oldName,l.newName)).sort()})),n.addCase(Jd,(r,{payload:i})=>({...r,stats:q3e(V3e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:a})=>({...i,tags:r.concat(a.tags.filter(o=>!r.includes(o)))}))}}),G3e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},wW=Na(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=Tn(wW),a=mP(),[o,l]=U.useState(((n=a.tags)==null?void 0:n.defaultOrdering)??{}),f=U.useMemo(()=>{const h=t.filteredTags.map(m=>{var g,x,_;const w=t.stats[m],S=((g=a.visits)!=null&&g.excludeBots?(x=w==null?void 0:w.visitsSummary)==null?void 0:x.nonBots:(_=w==null?void 0:w.visitsSummary)==null?void 0:_.total)??(w==null?void 0:w.visitsCount)??0;return{tag:m,visits:S,shortUrls:(w==null?void 0:w.shortUrlsCount)??0}});return kU(h,o)},[o,(r=a.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),c=M3();return t.loading?y.jsx(ac,{loading:!0}):t.error?y.jsx(Oi,{type:"error",children:y.jsx(ho,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):y.jsxs(R3,{value:c,children:[y.jsx(W0,{className:"mb-3",onChange:e}),y.jsx(Ja,{className:"mb-3",children:y.jsx("div",{className:"col-lg-6 offset-lg-6",children:y.jsx(ov,{items:G3e,order:o,onChange:(h,m)=>l({field:h,dir:m})})})}),y.jsx(N3,{type:"tags",className:"mb-3"}),y.jsx(i,{sortedTags:f,currentOrder:o,orderByColumn:h=>()=>{const m=av(h,o.field,o.dir);l({field:m?h:void 0,dir:m})}})]})},()=>[Vr.visits]),Y3e=An(wW,["TagsTable"]),Z3=({pagesCount:e,currentPage:t,onPageChange:n,centered:r=!0})=>{const i=U.useCallback(a=>!Ym(a)&&n(a),[n]);return e<2?null:y.jsxs(iP,{listClassName:ke("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[y.jsx(Ku,{disabled:t<=1,children:y.jsx(Zu,{previous:!0,tag:"span",onClick:()=>i(t-1)})}),sW(t,e).map((a,o)=>y.jsx(Ku,{disabled:Ym(a),active:t===a,children:y.jsx(Zu,{role:"link",tag:"span",onClick:()=>i(a),children:lW(a)})},uW(a,o))),y.jsx(Ku,{disabled:t>=e,children:y.jsx(Zu,{next:!0,tag:"span",onClick:()=>i(t+1)})})]})},K3e=20,SW=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Tn(SW),i=U.useRef(!0),{page:a=1}=Bd(),[o,l]=DAe("page",Number(a)),f=U.useCallback(g=>{l(g),scrollTo(0,0)},[l]),c=Bf(e,K3e),h=c.length>1,m=c[o-1]??[];return U.useEffect(()=>{i.current||f(1),i.current=!1},[f,e]),y.jsxs(Mn,{bodyClassName:h?"pb-1":"",children:[y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsxs("thead",{className:"responsive-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",y.jsx(Kp,{currentOrder:n,field:"tag"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",y.jsx(Kp,{currentOrder:n,field:"shortUrls"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",y.jsx(Kp,{currentOrder:n,field:"visits"})]}),y.jsx("th",{className:"tags-table__header-cell",children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),y.jsx("tr",{children:y.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),y.jsxs("tbody",{children:[m.length===0&&y.jsx("tr",{children:y.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),m.map(g=>y.jsx(r,{tag:g},g.tag))]})]}),h&&y.jsx("div",{className:"sticky-card-paginator",children:y.jsx(Z3,{pagesCount:c.length,currentPage:o,onPageChange:f})})]},o)},Z3e=An(SW,["TagsTableRow"]),OW=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Tn(OW),[i,a]=Jt(),[o,l]=Jt(),f=Xl(),c=B_();return y.jsxs("tr",{className:"responsive-table__row",children:[y.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[y.jsx(mW,{tag:e.tag,colorGenerator:r})," ",e.tag]}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:y.jsx(hn,{to:`${f}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Nn(e.shortUrls)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:y.jsx(hn,{to:`${f}/tag/${e.tag}/visits`,children:Nn(e.visits)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end",children:y.jsxs(Y0,{children:[y.jsxs(Je,{onClick:l,children:[y.jsx(Xe,{icon:i9,fixedWidth:!0,className:"me-1"})," Edit"]}),y.jsxs(Je,{disabled:!c||!c.canAddItemWithName(e.tag),onClick:()=>c==null?void 0:c.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[y.jsx(Xe,{icon:I0,fixedWidth:!0})," Compare visits"]}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsxs(Je,{className:"dropdown-item--danger",onClick:a,children:[y.jsx(Xe,{icon:yQ,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),y.jsx(n,{tag:e.tag,toggle:l,isOpen:o}),y.jsx(t,{tag:e.tag,toggle:a,isOpen:i})]})},X3e=An(OW,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),Q3e=(e,t)=>{e.factory("TagsSelector",I3e),e.serviceFactory("DeleteTagConfirmModal",()=>P3e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",R3e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",X3e),e.factory("TagsTable",Z3e),e.factory("TagsList",Y3e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",F3e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",B3e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",W3e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",H3e,"apiClientFactory"),e.serviceFactory("filterTags",()=>xW),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>bW),e.serviceFactory("editTag",z3e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>_W)},J3e=new jz,e4e=e=>J3e.parse(e),Q$=e=>e.toLowerCase().trim();class t4e{constructor(t){Pl(this,"colors"),Pl(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=Q$(t);return this.colors[n]||this.setColorForKey(n,GPe())}setColorForKey(t,n){var r;const i=Q$(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);return this.lights[n]===void 0&&(this.lights[n]=GH(n)),this.lights[n]}}const EW=({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)},n4e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);EW(e,i,n)};class r4e{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(a=>a.blob()),i=URL.createObjectURL(r);EW(this.window,i,n)}}class i4e{constructor(t,n){Pl(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Pl(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Pl(this,"exportCsv",(r,i)=>{const a=this.jsonToCsv(i);n4e(this.window,a,r)}),this.window=t,this.jsonToCsv=n}}function a4e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",r4e,"fetch","window"),e.service("ColorGenerator",t4e,"TagColorsStorage"),e.constant("jsonToCsv",e4e),e.service("ReportExporter",i4e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>G0)}const xv=({visits:e,shortUrl:t,children:n,title:r})=>y.jsx("header",{children:y.jsxs(ra,{body:!0,children:[y.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[y.jsx(V_,{}),y.jsx("span",{className:"text-center d-none d-sm-block",children:y.jsx("small",{children:r})}),y.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",y.jsx(HH,{visitsCount:e.length,shortUrl:t})]})]}),y.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:y.jsx("small",{children:r})}),n&&y.jsx("div",{className:"mt-md-2",children:n})]})}),G_=({children:e,className:t})=>y.jsx("div",{className:ke("d-flex justify-content-between align-items-center",t),children:e}),CW=({title:e,footer:t,children:n})=>y.jsxs(ra,{role:"document",children:[y.jsx(rv,{className:"chart-card__header",children:e}),y.jsx(nv,{children:n}),t&&y.jsx(_U,{className:"chart-card__footer--sticky",children:t})]}),TW=U.createContext(null),{Provider:INe}=TW,X3=e=>{const t=U.useContext(TW)??void 0,n=U.useMemo(()=>t?{}:{width:"100%",height:e},[e,t]);return{ChartWrapper:t?U.Fragment:Oge,dimensions:t,wrapperDimensions:n}},AW={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},o4e={marginBottom:"5px",fontWeight:"bold"},jW={contentStyle:AW,labelStyle:o4e,itemStyle:{padding:0}},J$=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],PW=e=>J$[e%J$.length],C0=()=>sv()?"#46e587":"#1DAA58",s4e=()=>sv()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",l4e=({chartData:e,showNumbers:t})=>y.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>y.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[y.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),y.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&y.jsxs("b",{children:[" (",Nn(i),")"]})]})]},n))}),eB=e=>U.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:PW(r)})),[e]),u4e=({stats:e,prevStats:t,showNumbersInLegend:n})=>{const r=eB(e),i=eB(t),a=i.length>0,o=sv()?Qse:Xse,{ChartWrapper:l,dimensions:f,wrapperDimensions:c}=X3(300);return y.jsxs("div",{className:"row align-items-center",children:[y.jsx("div",{className:"col-sm-12 col-md-7",children:y.jsx("div",{style:c,children:y.jsx(l,{children:y.jsxs(YTe,{...f,children:[y.jsx(Gi,{formatter:Nn,contentStyle:AW,itemStyle:{color:"white"}}),y.jsx(fo,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:r.map((h,m)=>y.jsx(Tl,{fill:h.color,stroke:o},`${h.name}-${m}`))}),a&&y.jsx(fo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:o,fill:C0()})]})})})}),y.jsx("div",{className:"col-sm-12 col-md-5",children:y.jsx(l4e,{chartData:r,showNumbers:n})})]})},tB=({title:e,...t})=>{const[n,r]=Jt(!1);return y.jsx(CW,{title:y.jsxs(G_,{children:[e,y.jsx("div",{children:y.jsx(ss,{checked:n,onChange:r,children:"Show numbers"})})]}),children:y.jsx(u4e,{...t,showNumbersInLegend:n})})},c4e=U.forwardRef(({visitsGroups:e},t)=>{const n=U.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:y.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],a)=>y.jsxs("li",{className:"d-inline",children:[y.jsx(pW,{color:RW(i)}),y.jsxs("strong",{children:[r," (",Nn(i.length),")"]})]},`${r}${a}`))})}),f4e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},d4e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},h4e={hourly:uce,daily:t_,weekly:lce,monthly:vb},Q3={hourly:e=>gb(e,"yyyy-MM-dd HH:00"),daily:e=>El(e),weekly(e){const t=El(um(e)),n=El(gce(e));return`${t} - ${n}`},monthly:e=>gb(e,"yyyy-MM")},p4e=e=>{var t;const n=Object.values(e).filter(o=>o.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(o=>kl(o[o.length-1].date)),a=vz(i);return((t=[[()=>t_(r,a)<=2,"hourly"],[()=>vb(r,a)<=1,"daily"],[()=>vb(r,a)<=6,"weekly"]].find(([o])=>o()))==null?void 0:t[1])??"monthly"},m4e=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=sz(t[r],i=>Q3[e](kl(i.date))),n),{}),v4e=(e,t)=>t.reduce((n,r)=>{const i=Q3[e](kl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),g4e=(e,t)=>{const n=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(n.length===0)return[];const r=h4e[e],i=Q3[e],a=d4e[e],o=n.flat(),l=kl(o[0].date),f=kl(o[o.length-1].date),c=r(f,l)||1;return[{formattedDate:i(l),date:l},...L3(c,h=>{const m=nce(l,a(h));return{formattedDate:i(m),date:m}})]},RW=e=>{if(e.color)return e.color;const t={main:am,highlighted:bT,previous:C0()};return e.type?t[e.type]:am},nB=(e,t)=>U.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),y4e=(e,t,n)=>{const r=nB(e,"main"),i=nB(e,"highlighted"),a=U.useMemo(()=>n?v4e(t,r):{},[n,t,r]),o=U.useCallback((l,{payload:f})=>{const c=a[f.formattedDate]??[];n==null||n(c===i?[]:c)},[a,i,n]);return n&&{cursor:"pointer",onClick:o}},rB=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},MW=({visitsGroups:e,setSelectedVisits:t,matchMedia:n,onDateRangeChange:r})=>{const[i,a]=U.useState(p4e(e)),o=k3(767,n??window.matchMedia),l=U.useMemo(()=>{const Q=m4e(i,e),J=Object.keys(Q);return g4e(i,e).map(({formattedDate:H,date:B})=>({date:B,formattedDate:H,...J.reduce((z,F)=>(z[F]=Q[F][H]??0,z),{})}))},[i,e]),f=y4e(e,i,t),[c,h,,m]=Jt(),g=Dl(),x=U.useId(),_=Dl(),[w,S]=U.useState(o?300:400);U.useLayoutEffect(()=>{if(!c)return S(o?300:400),()=>{};const Q=new ResizeObserver(()=>{const{height:J}=g.current.getBoundingClientRect(),{height:H}=_.current.getBoundingClientRect();S(J-H-48)});return Q.observe(g.current),Q.observe(_.current),()=>Q.disconnect()},[g,c,o,_]),IAe("Escape",m,c);const{ChartWrapper:O,dimensions:C,wrapperDimensions:T}=X3(w),[j,P]=U.useState(),[R,I]=U.useState(),V=U.useCallback(()=>{P(void 0),I(void 0)},[]),G=U.useCallback((Q,J)=>{const H=rB(Q);J.button===0&&H&&P(H)},[]),W=U.useCallback(Q=>{const J=rB(Q);j&&J&&I(J)},[j]),K=U.useCallback(()=>{if(!j||!R)return;const Q=[j.date,R.date],J=ace(Q),H=vz(Q);V(),r({startDate:J,endDate:H})},[r,V,R,j]),[ne,le]=Jt();return y.jsxs(ra,{className:ke({"fixed-top fixed-bottom":c}),"data-testid":"line-chart-card",children:[y.jsxs(rv,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",y.jsxs("div",{className:"d-flex align-content-center gap-1",children:[y.jsx(qt,{"aria-label":c?"Collapse":"Expand","aria-expanded":c,"aria-controls":x,size:"sm",color:"link",onClick:h,children:y.jsx(Xe,{icon:c?ZX:YQ})}),y.jsxs(ja,{isOpen:ne,toggle:le,className:"d-flex align-items-center",children:[y.jsx(ps,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),y.jsx(Vl,{end:!0,children:ne&&Object.entries(f4e).map(([Q,J])=>y.jsx(Je,{active:i===Q,onClick:()=>a(Q),children:J},Q))})]})]})]}),y.jsxs(nv,{innerRef:g,id:x,children:[y.jsx(O,{...T,children:y.jsxs(GTe,{className:"user-select-none",data:l,...C,onMouseDown:G,onMouseMove:W,onMouseUp:K,children:[y.jsx(Xd,{dataKey:"formattedDate"}),y.jsx(Qd,{tickFormatter:Nn,yAxisId:"1"}),y.jsx(Gi,{formatter:Nn,...jW}),y.jsx(O3,{strokeOpacity:sv()?.1:.9}),Object.entries(e).map(([Q,J])=>J.length>0&&y.jsx(Zd,{yAxisId:"1",dataKey:Q,type:"monotone",stroke:RW(J),strokeWidth:2,activeDot:J.type==="previous"?void 0:f,strokeDasharray:J.type==="previous"?"8 3":void 0},Q)),j&&R&&y.jsx(yv,{yAxisId:"1",x1:j.formattedDate,x2:R.formattedDate})]})}),y.jsx(c4e,{visitsGroups:e,ref:_})]})]})},b4e=({toggleClassName:e,ranges:t,value:n,setValue:r})=>{const[i,a]=Jt();return y.jsxs(ja,{isOpen:i,toggle:a,children:[y.jsx(ps,{caret:!0,color:"link",className:e,children:"Paginate"}),y.jsx(Vl,{end:!0,children:i&&y.jsxs(y.Fragment,{children:[t.map(o=>y.jsxs(Je,{active:o===n,onClick:()=>r(o),children:[y.jsx("b",{children:o})," items per page"]},o)),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsx(Je,{disabled:n===1/0,onClick:()=>r(1/0),children:y.jsx("i",{children:"Clear pagination"})})]})})]})},iB=e=>e.startsWith("hidden_"),_4e=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:a})=>{const o=U.useMemo(()=>Object.entries(e).map(([m,g])=>{const x=(n==null?void 0:n[m])??0,_=(t==null?void 0:t[m])??0,w=iB(m);return{name:m,amount:Math.max(g,_),nonHighlightedAmount:w?null:g-x,highlightedAmount:w?null:x,prevAmount:w?null:_}}),[e,t,n]),l=U.useMemo(()=>{const m=o.reduce((g,{name:x})=>g>x.length?g:x.length,0);return Math.min(150,m*7)},[o]),{ChartWrapper:f,dimensions:c,wrapperDimensions:h}=X3(Math.max(300,o.length*(t?44:22)));return y.jsx(f,{...h,children:y.jsxs(KTe,{layout:"vertical",data:o,barCategoryGap:3,...c,children:[y.jsx(Xd,{type:"number",dataKey:"amount",tickFormatter:Nn,domain:i?[0,i]:void 0}),y.jsx(Qd,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:m=>iB(m)?"":m}),y.jsx(O3,{strokeOpacity:sv()?.05:.9}),y.jsx(Gi,{filterNull:!0,...jW,formatter:(m,g)=>[Nn(m),g==="highlightedAmount"?r:g==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),y.jsx(ns,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:am,onClick:({name:m})=>a==null?void 0:a(m),children:o.map(m=>y.jsx(Tl,{fill:Kse,stroke:am,strokeWidth:2},m.name))}),n&&y.jsx(ns,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:bT,onClick:({name:m})=>a==null?void 0:a(m),children:o.map(m=>y.jsx(Tl,{fill:Zse,stroke:bT,strokeWidth:2},m.name))}),t&&y.jsx(ns,{dataKey:"prevAmount",fill:C0(),children:o.map(m=>y.jsx(Tl,{fill:s4e(),stroke:C0(),strokeWidth:2},m.name))})]})})},x4e=e=>typeof e=="string"?e.toLowerCase():e,w4e=([e])=>e,S4e=([,e])=>e,gy=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:a,withPagination:o=!0,...l})=>{const[f,c]=U.useState({}),[h,m]=U.useState(1),[g,x]=U.useState(50),_=U.useCallback((V,G)=>{const W=Object.entries(V),K=f.field?Oue(W,([ne,le])=>x4e(f.field===Object.keys(G)[0]?ne:le)):W;return!f.dir||f.dir==="ASC"?K:[...K].reverse()},[f.dir,f.field]),w=U.useCallback(V=>{const G=V[h-1];if(h<V.length)return G;const W=V[0].length;return[...G,...L3(W-G.length,K=>[`hidden_${K}`,0])]},[h]),S=U.useCallback(V=>y.jsx(Z3,{currentPage:h,pagesCount:V,onPageChange:m}),[h]),O=U.useCallback((V,G,W,K)=>{const ne=_(V,G),le=ne.map(w4e),Q=W&&Object.entries({...aL(le,le.map(()=>0)),...W}),J=K&&Object.entries({...aL(le,le.map(()=>0)),...K});if(ne.length<=g)return{currentPageStats:Object.fromEntries(ne),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:J&&Object.fromEntries(J)};const H=Bf(ne,g),B=Q&&Bf(Q,g),z=J&&Bf(J,g);return{currentPageStats:Object.fromEntries(w(H)),currentPageHighlightedStats:B&&Object.fromEntries(w(B)),currentPagePrevStats:z&&Object.fromEntries(w(z)),pagination:S(H.length),max:ije(Math.max(...ne.map(S4e)))}},[w,_,g,S]),{currentPageStats:C,currentPagePrevStats:T,currentPageHighlightedStats:j,pagination:P,max:R}=U.useMemo(()=>O(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[O,n,t,i,e]),I=U.useMemo(()=>Object.keys(C),[C]);return y.jsx(CW,{title:y.jsxs(G_,{children:[r,y.jsxs("div",{className:"d-flex gap-3",children:[a==null?void 0:a(P?I:void 0),o&&Object.keys(e).length>50&&y.jsx(b4e,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:g,setValue:V=>{x(V),m(1)}}),y.jsx(ov,{isButton:!1,right:!0,items:i,order:f,onChange:(V,G)=>{c({field:V,dir:G}),m(1)}})]})]}),footer:P,children:y.jsx(_4e,{stats:C,prevStats:T,highlightedStats:j,max:R,...l})})},J3=e=>e.type!==void 0,O4e=e=>e.type!==void 0,E4e=e=>{const t=lz(e,n=>J3(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},NW=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:a,visit:o})=>a&&Gp(a,t,n)&&_v(o.date,i,r)),LW=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>i&&ZAe(i,t)&&_v(a.date,r,n)),DW=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>(i==null?void 0:i.tags.includes(t))&&_v(a.date,r,n)),yy=(e,t)=>sz(e,n=>n[t]),C4e=e=>{const t=((e==null?void 0:e.startDate)&&zl(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&zl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},lj=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=C4e(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},T4e=e=>aW(e.dateRange),A4e=({dateRange:e,...t})=>({...t,dateRange:g3e(e)}),aB=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&zl(t[e])||""},kW=()=>{const e=mo(),t=Bd(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:a,loadPrevInterval:o,...l}=t,f=U.useMemo(()=>({dateRange:n!=null||r!=null?tW(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:a!==void 0?a==="true":void 0},loadPrevInterval:o!==void 0?o==="true":void 0}),[r,a,o,i,n]),c=U.useCallback(h=>{const{dateRange:m,visitsFilter:g={},loadPrevInterval:x}=e_(f,h),{excludeBots:_,orphanVisitsType:w}=g,S={...l,startDate:aB("startDate",m),endDate:aB("endDate",m),excludeBots:_===void 0?void 0:rj(_),orphanVisitsType:w,loadPrevInterval:x===void 0?void 0:rj(x)},O=aP(S),C=O?`?${O}`:"";e(C,{replace:!0,relative:"route"})},[f,e,l]);return[f,c]},j4e=()=>y.jsx(pAe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),P4e=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}},IW=({toggle:e,isOpen:t,title:n,locations:r=[]})=>y.jsx(ia,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:y.jsxs(ms,{className:"map-modal__modal-body",children:[y.jsxs(G_,{className:"map-modal__modal-title fs-4",children:[n,y.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),y.jsxs(fAe,{...P4e(r),children:[y.jsx(j4e,{}),r.map(({cityName:i,latLong:a,count:o},l)=>y.jsx(dAe,{position:a,children:y.jsxs(hAe,{children:[y.jsx("b",{children:o})," visit",o>1?"s":""," from ",y.jsx("b",{children:i})]})},l))]})]})}),R4e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,a]=Jt(),[o,l]=Jt(),[f,c]=U.useState([]),h=U.useCallback(m=>{c(m?n.filter(m):n),i()},[n,i]);return y.jsxs(y.Fragment,{children:[!t&&y.jsx(qt,{color:"link",className:"p-0",onClick:()=>h(),"aria-label":"Show in map",title:"Show in map",children:y.jsx(Xe,{icon:BE})}),t&&y.jsxs(ja,{isOpen:o,toggle:l,children:[y.jsx(ps,{color:"link",className:"p-0",title:"Show in map",children:y.jsx(Xe,{icon:BE})}),y.jsx(Vl,{end:!0,children:o&&y.jsxs(y.Fragment,{children:[y.jsx(Je,{onClick:()=>h(),children:"Show all locations"}),y.jsx(Je,{onClick:()=>h(({cityName:m})=>t.includes(m)),children:"Show locations in current page"})]})})]}),y.jsx(IW,{toggle:a,isOpen:r,title:e,locations:f})]})},$W=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:a})=>{const{orphanVisitsType:o,excludeBots:l=!1,loadPrevInterval:f=!1}=t,c=g=>({active:o===g,onClick:()=>e({...t,orphanVisitsType:g===o?void 0:g})}),h=U.useCallback(()=>e({...t,excludeBots:!l}),[l,e,t]),m=U.useCallback(()=>e({...t,loadPrevInterval:!f}),[f,e,t]);return y.jsxs(vs,{disabled:a,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&y.jsxs(y.Fragment,{children:[y.jsx(Je,{active:f,onClick:m,children:"Compare with previous period"}),y.jsx(Je,{divider:!0,tag:"hr"})]}),y.jsx(Je,{header:!0,"aria-hidden":!0,children:"Bots:"}),y.jsx(Je,{active:l,onClick:h,children:"Exclude potential bots"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Je,{divider:!0,tag:"hr"}),y.jsx(Je,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),y.jsx(Je,{...c("base_url"),children:"Base URL"}),y.jsx(Je,{...c("invalid_short_url"),children:"Invalid short URL"}),y.jsx(Je,{...c("regular_404"),children:"Regular 404"})]}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsx(Je,{disabled:t.excludeBots===void 0&&t.loadPrevInterval===void 0&&t.orphanVisitsType===void 0,onClick:()=>e({excludeBots:void 0,loadPrevInterval:void 0,orphanVisitsType:void 0}),children:y.jsx("i",{children:"Reset to defaults"})})]})},BW=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return y.jsxs(y.Fragment,{children:[t&&r===null&&y.jsx(ac,{loading:!0}),t&&r!==null&&y.jsxs(ac,{loading:!0,children:["This is going to take a while... :S",y.jsx(EU,{value:r,striped:r>=100,className:"mt-3"})]}),n&&y.jsx(Oi,{type:"error",children:y.jsx(ho,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},Dy=({children:e,showFallback:t})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(ac,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&y.jsx(y.Fragment,{children:e})]}),M4e=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Jt();return y.jsx(Mn,{title:y.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:y.jsxs(G_,{children:[y.jsxs("dl",{className:"m-0 me-3",children:[y.jsx("dt",{children:"Delete visits."}),y.jsxs("dd",{className:"m-0",children:["This will delete ",y.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&y.jsx(qt,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&y.jsxs(qt,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:a=>{a==null||a.focus()},children:[!n&&y.jsx(y.Fragment,{children:"Click again to confirm"}),n&&y.jsx(y.Fragment,{children:"Deleting..."})]})]})})},by="Others",N4e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],L4e=e=>{if(!Bu(e))return{browser:by,os:by};const{browser:{name:t},os:{name:n}}=_Ae.parse(e);return{os:n??by,browser:t&&N4e.includes(t)?t:by}},D4e=e=>{var t;return Bu(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},UW=(e,t)=>e[t]!==void 0,oB=e=>typeof e=="number"?e:e?parseFloat(e):0,k4e=(e,{os:t})=>{e[t]=(e[t]||0)+1},I4e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},$4e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},zW=e=>(t,n)=>{const r=UW(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},B4e=zW("country"),U4e=zW("city"),z4e=(e,t)=>{if(!UW(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,a=e[n]||{cityName:n,count:0,latLong:[oB(r),oB(i)]};a.count+=1,e[n]=a},F4e=(e,t)=>{if(!O4e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},uj=e=>e.reduce((t,n)=>(k4e(t.os,n),I4e(t.browsers,n),$4e(t.referrers,n),B4e(t.countries,n),U4e(t.cities,n),z4e(t.citiesForMap,n),F4e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),T0=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:a,potentialBot:o}=t;return{date:r,potentialBot:o,userAgent:n,...L4e(n),referer:D4e(i),country:(a==null?void 0:a.countryName)||"Unknown",city:(a==null?void 0:a.cityName)||"Unknown",latitude:a==null?void 0:a.latitude,longitude:a==null?void 0:a.longitude,visitedUrl:t.visitedUrl,type:J3(t)?t.type:void 0}}),q4e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:T0,processStatsFromVisits:uj},Symbol.toStringTag,{value:"Module"})),Pp=20,V4e=({browser:e,os:t,referer:n,country:r,city:i,userAgent:a,...o},l,f)=>{const c=f?a:`${r} ${i}`;return`${e} ${t} ${n} ${c} ${o.visitedUrl}`.toLowerCase().includes(l.toLowerCase())},H4e=(e,t,n)=>t.filter(r=>V4e(r,e,n)),W4e=(e,t)=>kU(t,e),G4e=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?H4e(t,e,r):[...e],a=W4e(n,i),o=a.length;return{visitsGroups:Bf(a,Pp),total:o}},Ka="visits-table__header-cell visits-table__sticky",Y4e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const a=k3(767,r),[o,l]=U.useState(),f=U.useCallback(V=>{l(V),S(1),n([])},[n]),[c,h]=U.useState({}),[m,g]=Jt(),x=U.useCallback(()=>{g(),h({})},[g]),_=U.useMemo(()=>G4e({visits:e,searchTerm:o,order:c,searchInRawUserAgent:m}),[e,o,c,m]),[w,S]=U.useState(1),O=w*Pp,C=O-Pp,T=U.useMemo(()=>{var V,G;return!!((G=(V=_.visitsGroups[w-1])==null?void 0:V[0])!=null&&G.visitedUrl)},[w,_.visitsGroups]),j=6+Number(T)+(m?1:2),P=_.total>0,R=V=>h({field:V,dir:av(V,c.field,c.dir)}),I=V=>y.jsx(Kp,{currentOrder:c,field:V,className:"visits-table__header-icon"});return y.jsx(Mn,{className:"mt-3",bodyClassName:"p-0 pb-1",title:y.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",y.jsx(ss,{checked:m,onChange:x,children:"Show user agent"})]}),children:y.jsx("div",{className:"table-responsive-md",children:y.jsxs("table",{className:ke("table table-sm position-relative m-0 visits-table",{"table-hover":P}),children:[y.jsxs("thead",{className:"visits-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:`${Ka} text-center`,onClick:()=>n(t.length<_.total?_.visitsGroups.flat():[]),children:[y.jsx("span",{className:"sr-only",children:"Is selected"}),y.jsx(Xe,{icon:ec,className:ke({"text-primary":t.length>0})})]}),y.jsxs("th",{className:`${Ka} text-center`,onClick:()=>R("potentialBot"),children:[y.jsx("span",{className:"sr-only",children:"Is bot"}),y.jsx(Xe,{icon:wN}),I("potentialBot")]}),y.jsxs("th",{className:Ka,onClick:()=>R("date"),children:["Date",I("date")]}),y.jsxs("th",{className:Ka,onClick:()=>R("country"),children:["Country",I("country")]}),y.jsxs("th",{className:Ka,onClick:()=>R("city"),children:["City",I("city")]}),m?y.jsxs("th",{className:Ka,onClick:()=>R("userAgent"),children:["User agent",I("userAgent")]}):y.jsxs(y.Fragment,{children:[y.jsxs("th",{className:Ka,onClick:()=>R("browser"),children:["Browser",I("browser")]}),y.jsxs("th",{className:Ka,onClick:()=>R("os"),children:["OS",I("os")]})]}),y.jsxs("th",{className:Ka,onClick:()=>R("referer"),children:["Referrer",I("referer")]}),T&&y.jsxs("th",{className:Ka,onClick:()=>R("visitedUrl"),children:["Visited URL",I("visitedUrl")]})]}),y.jsx("tr",{children:y.jsx("td",{colSpan:j,className:"p-0",children:y.jsx(W0,{noBorder:!0,large:!1,onChange:f})})})]}),y.jsxs("tbody",{children:[!P&&y.jsx("tr",{children:y.jsx("td",{colSpan:j,className:"text-center",children:"There are no visits matching current filter"})}),(i=_.visitsGroups[w-1])==null?void 0:i.map((V,G)=>{const W=t.includes(V);return y.jsxs("tr",{style:{cursor:"pointer"},className:ke({"table-active":W}),onClick:()=>n(W?t.filter(K=>K!==V):[...t,V]),children:[y.jsx("td",{className:"text-center",children:W&&y.jsx(Xe,{icon:ec,className:"text-primary"})}),y.jsx("td",{className:"text-center",children:V.potentialBot&&y.jsxs(y.Fragment,{children:[y.jsx(Xe,{icon:wN,id:`botIcon${G}`}),y.jsx(aa,{placement:"right",target:`botIcon${G}`,children:"Potentially a visit from a bot or crawler"})]})}),y.jsx("td",{children:y.jsx(S0,{date:V.date})}),y.jsx("td",{children:V.country}),y.jsx("td",{children:V.city}),m?y.jsx("td",{children:V.userAgent}):y.jsxs(y.Fragment,{children:[y.jsx("td",{children:V.browser}),y.jsx("td",{children:V.os})]}),y.jsx("td",{children:V.referer}),V.visitedUrl&&y.jsx("td",{children:V.visitedUrl})]},G)})]}),_.total>Pp&&y.jsx("tfoot",{children:y.jsx("tr",{children:y.jsx("td",{colSpan:j,className:"visits-table__footer-cell visits-table__sticky",children:y.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3 p-2",children:[y.jsx(Z3,{pagesCount:Math.ceil(_.total/Pp),currentPage:w,onPageChange:S,centered:a}),y.jsxs("div",{children:["Visits ",y.jsx("b",{children:Nn(C+1)})," to"," ",y.jsx("b",{children:Nn(Math.min(O,_.total))})," of"," ",y.jsx("b",{children:Nn(_.total)})]})]})})})})]})})})},bl={byTime:{title:"By time",subPath:"by-time",icon:QX},byContext:{title:"By context",subPath:"by-context",icon:Tj},byLocation:{title:"By location",subPath:"by-location",icon:BE},list:{title:"List",subPath:"list",icon:Ej},options:{title:"Options",subPath:"options",icon:l9,shouldRender:({deletion:e})=>!!e}};Object.freeze(bl);const ME=({display:e})=>e&&y.jsx("div",{className:"mt-3 mx-auto w-75",children:y.jsx(Mn,{children:y.jsxs("div",{className:"d-flex gap-2",children:[y.jsx(Xe,{icon:QQ,className:"mt-1"}),y.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})}),wv=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:a,exportCsv:o,isOrphanVisits:l=!1}=e,{visits:f,prevVisits:c,loading:h,errorData:m,fallbackInterval:g}=n,[{dateRange:x,visitsFilter:_,loadPrevInterval:w},S]=kW(),O=Hr("visits"),[C,T]=U.useState(),j=U.useCallback(({startDate:ee,endDate:fe},X)=>{S({dateRange:{startDate:ee??void 0,endDate:fe??void 0}}),T(X)},[S]),[P,R]=U.useState(g??(O==null?void 0:O.defaultInterval)??"last30Days"),[I,V]=U.useState([]),[G,W]=U.useState(),K=U.useRef(!0),{search:ne}=Pr(),le=U.useCallback(ee=>ee?`../${ee}${ne}`:ne,[ne]),Q=U.useMemo(()=>T0(f),[f]),J=U.useMemo(()=>c&&T0(c),[c]),{os:H,browsers:B,referrers:z,countries:F,cities:M,citiesForMap:k,visitedUrls:te}=U.useMemo(()=>uj(Q),[Q]),Z=U.useMemo(()=>uj(J??[]),[J]),oe=U.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],J&&["Previous period",Object.assign(J,{type:"previous"})],I.length>0&&[G??"Selected",Object.assign(I,{type:"highlighted"})]].filter(Boolean)),[G,I,J,Q]),he=U.useMemo(()=>({..._,excludeBots:_.excludeBots??(O==null?void 0:O.excludeBots),loadPrevInterval:w??(O==null?void 0:O.loadPrevInterval)}),[w,_,O==null?void 0:O.excludeBots,O==null?void 0:O.loadPrevInterval]),de=U.useMemo(()=>Object.values(k),[k]),be=U.useRef(void 0),$=U.useCallback(ee=>{be.current=void 0,V(ee)},[]),q=U.useCallback((ee,fe)=>{const X=`${ee}_${fe}`;be.current===X?(V([]),W(void 0),be.current=void 0):(V(Q.filter(ue=>ue[ee]===fe)),W(fe),be.current=X)},[Q]);return U.useEffect(()=>i,[i]),U.useEffect(()=>{const ee=x??iW(P),{loadPrevInterval:fe,...X}=he,ue={doIntervalFallback:K.current,loadPrevInterval:fe};r({dateRange:ee,filter:X},ue),$([]),K.current=!1},[P,x,r,he,$]),U.useEffect(()=>{g&&P===((O==null?void 0:O.defaultInterval)??"last30Days")&&R(g)},[P,g,O==null?void 0:O.defaultInterval]),y.jsxs(y.Fragment,{children:[t,y.jsx("section",{className:"mt-3",children:y.jsxs("div",{className:"row flex-md-row-reverse",children:[y.jsx("div",{className:"col-lg-7 col-xl-6",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(G3,{disabled:h,dateRangeOrInterval:C??x??P,defaultText:"All visits",onDatesChange:j})}),y.jsx($W,{disabled:h,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:l,withPrevInterval:!0,selected:he,onChange:({loadPrevInterval:ee,...fe})=>S({visitsFilter:fe,loadPrevInterval:ee})})]})}),f.length>0&&y.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:y.jsxs("div",{className:"d-flex",children:[y.jsx(FH,{className:"btn-md-block",amount:Q.length,onClick:()=>o(Q)}),y.jsxs(qt,{outline:!0,disabled:I.length===0,className:"btn-md-block ms-2",onClick:()=>$([]),children:["Clear selection ",I.length>0&&y.jsxs(y.Fragment,{children:["(",Nn(I.length),")"]})]})]})})]})}),y.jsxs("section",{className:"mt-3",children:[y.jsx(BW,{info:n}),!h&&!m&&y.jsxs(y.Fragment,{children:[y.jsx(DU,{fill:!0,children:Object.values(bl).map(({title:ee,icon:fe,subPath:X,shouldRender:ue},pe)=>!ue||ue(e)?y.jsxs(Ip,{to:le(X),replace:!0,children:[y.jsx(Xe,{icon:fe}),y.jsx("span",{className:"ms-2 d-none d-lg-inline",children:ee})]},pe):void 0).filter(Boolean)}),y.jsx(Ja,{children:y.jsxs(M0,{children:[y.jsx(St,{path:bl.byTime.subPath,element:y.jsxs(Dy,{showFallback:f.length===0,children:[y.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:y.jsx(MW,{visitsGroups:oe,setSelectedVisits:$,onDateRangeChange:j})}),y.jsx(ME,{display:!!he.loadPrevInterval&&!c})]})}),y.jsx(St,{path:bl.byContext.subPath,element:y.jsxs(Dy,{showFallback:f.length===0,children:[y.jsx("div",{className:ke("mt-3 col-lg-6",{"col-xl-4":!l}),children:y.jsx(tB,{title:"Operating systems",stats:H,prevStats:Z.os})}),y.jsx("div",{className:ke("mt-3 col-lg-6",{"col-xl-4":!l}),children:y.jsx(tB,{title:"Browsers",stats:B,prevStats:Z.browsers})}),y.jsx("div",{className:ke("mt-3",{"col-xl-4":!l,"col-lg-6":l}),children:y.jsx(gy,{title:"Referrers",withPagination:!1,stats:z,prevStats:Z.referrers,highlightedStats:yy(I,"referer"),highlightedLabel:G,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:ee=>q("referer",ee)})}),l&&y.jsx("div",{className:"mt-3 col-lg-6",children:y.jsx(gy,{title:"Visited URLs",stats:te,prevStats:Z.visitedUrls,highlightedStats:yy(I,"visitedUrl"),highlightedLabel:G,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:ee=>q("visitedUrl",ee)})}),y.jsx("div",{className:"col-12",children:y.jsx(ME,{display:!!he.loadPrevInterval&&!c})})]})}),y.jsx(St,{path:bl.byLocation.subPath,element:y.jsxs(Dy,{showFallback:f.length===0,children:[y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(gy,{title:"Countries",stats:F,prevStats:Z.countries,highlightedStats:yy(I,"country"),highlightedLabel:G,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:ee=>q("country",ee)})}),y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(gy,{title:"Cities",stats:M,prevStats:Z.cities,highlightedStats:yy(I,"city"),highlightedLabel:G,extraHeaderContent:ee=>de.length>0&&y.jsx(R4e,{modalTitle:"Cities",locations:de,activeCities:ee}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:ee=>q("city",ee)})}),y.jsx("div",{className:"col-12",children:y.jsx(ME,{display:!!he.loadPrevInterval&&!c})})]})}),y.jsx(St,{path:bl.list.subPath,element:y.jsx("div",{className:"col-12",children:y.jsx(Y4e,{visits:Q,selectedVisits:I,setSelectedVisits:$})})}),a&&y.jsx(St,{path:bl.options.subPath,element:y.jsx("div",{className:"col-12 mt-3",children:y.jsx(M4e,{...a})})}),y.jsx(St,{path:"*",element:y.jsx(gj,{replace:!0,to:le(bl.byTime.subPath)})})]})})]})]})]})},FW=Na(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Tn(FW),{domain:i=""}=Dd(),[a,o=a]=i.split("_"),l=U.useCallback((c,h)=>e({domain:o,options:h,params:c}),[o,e]),f=U.useCallback(c=>r.exportVisits(`domain_${a}_visits.csv`,c),[a,r]);return y.jsx(wv,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:f,children:y.jsx(xv,{visits:t.visits,title:`"${a}" visits`})})},()=>[Vr.visits]),K4e=An(FW,["ReportExporter"]),qW=Na(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Tn(qW),i=U.useCallback(o=>r.exportVisits("non_orphan_visits.csv",o),[r]),a=U.useCallback((o,l)=>e({options:l,params:o}),[e]);return y.jsx(wv,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:y.jsx(xv,{title:"Non-orphan visits",visits:t.visits})})},()=>[Vr.visits]),Z4e=An(qW,["ReportExporter"]),VW=Na(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const a=Ca("orphanVisitsDeletion"),{ReportExporter:o}=Tn(VW),l=U.useCallback(h=>o.exportVisits("orphan_visits.csv",h),[o]),f=U.useCallback((h,m)=>{var g;return e({options:m,params:h,orphanVisitsType:(g=h.filter)==null?void 0:g.orphanVisitsType})},[e]),c=U.useMemo(()=>a?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,a]);return y.jsx(wv,{getVisits:f,cancelGetVisits:n,visitsInfo:t,exportCsv:l,deletion:c,isOrphanVisits:!0,children:y.jsx(xv,{title:"Orphan visits",visits:t.visits})})},()=>[Vr.orphanVisits]),X4e=An(VW,["ReportExporter"]),sB=5e3,Q4e=2,J4e=4,eRe=({currentPage:e,pagesCount:t})=>e>=t,tRe=(e,t)=>t*100/e,HW=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(o,l)=>Promise.all(l.map(async f=>e({...o,page:f,itemsPerPage:sB}).then(({data:c})=>c))).then(f=>f.flat()),a=async(o,l,f=0)=>{if(t())return[];const c=await i(o,l[f]);return n(tRe(l.length,f+1)),f<l.length-1?c.concat(await a(o,l,f+1)):c};return async o=>{const{pagination:l,data:f}=await e({...o,page:1,itemsPerPage:sB});if(eRe(l))return f;const c=pP(Q4e,l.pagesCount+1),h=Bf(c,r);return l.pagesCount-1>r&&n(0),f.concat(await a(o,h))}},Sv=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),Ov=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Fr(`${e}/progressChanged`),i=Fr(`${e}/fallbackToInterval`),a=Zn(e,async(o,{getState:l,dispatch:f})=>{var c;const{params:h,options:m}=o,{visitsLoader:g,lastVisitLoader:x}=t(o),_=y3e(h.dateRange),w=lj(h),S=m.loadPrevInterval&&T4e(h)?lj(A4e(h)):void 0,O=J4e/(S?2:1),C=S?{main:0,prev:0}:{main:0},T=(V,G)=>{C[V]=G;const W=Object.values(C),K=W.reduce((ne,le)=>ne+le,0);f(r(K/W.length))},j=HW({visitsLoader:g,shouldCancel:()=>n(l),progressChanged:V=>T("main",V),batchSize:O}),[P,R,I]=await Promise.all([j(w),x((c=h.filter)==null?void 0:c.excludeBots),S?j(S).then(V=>V.map(G=>{if(_===void 0)return G;const{date:W,...K}=G,ne=bP(Si(W),_);return{...K,date:zl(ne)}})):Promise.resolve(void 0)]);return!P.length&&R&&f(i(v3e(R.date))),{...o,visits:P,prevVisits:I}});return Object.assign(a,{progressChanged:r,fallbackToInterval:i})},Ev=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:a,rejected:o,fulfilled:l,progressChanged:f,fallbackToInterval:c}=t,{reducer:h,actions:m}=$n({name:e,initialState:n,reducers:{cancelGetVisits:x=>({...x,cancelLoad:!0})},extraReducers:x=>{x.addCase(a,()=>({...n,loading:!0})),x.addCase(o,(_,{error:w})=>({...n,errorData:Ri(w)??null})),x.addCase(l,(_,{payload:w})=>({..._,...w,loading:!1,progress:null,errorData:null})),x.addCase(f,(_,{payload:w})=>({..._,progress:w})),x.addCase(c,(_,{payload:w})=>({..._,fallbackInterval:w})),x.addCase(Jd,(_,{payload:w})=>{const{visits:S}=_,O=r(_,w.createdVisits).map(({visit:C})=>C);return O.length?{..._,visits:[...O,...S]}:_}),i==null||i(x)}}),{cancelGetVisits:g}=m;return{reducer:h,cancelGetVisits:g}},WW="shlink/domainVisits",nRe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},rRe=e=>Ov({typePrefix:`${WW}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=l=>r.getDomainVisits(t,l),o=Sv(i,l=>r.getDomainVisits(t,l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().domainVisits.cancelLoad}),iRe=e=>Ev({name:WW,initialState:nRe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>LW(r,t,n==null?void 0:n.dateRange)}),GW="shlink/orphanVisits",aRe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},oRe=e=>Ov({typePrefix:`${GW}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async o=>n.getNonOrphanVisits(o),a=Sv(r,o=>n.getNonOrphanVisits(o));return{visitsLoader:i,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),sRe=e=>Ev({name:GW,initialState:aRe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:a})=>_v(a.date,r,i))}}),YW="shlink/orphanVisits",lRe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},uRe=(e,t)=>!t||t===e.type,cRe=({data:e,...t},n)=>{const r=e.filter(i=>J3(i)&&uRe(i,n));return{...t,data:r}},fRe=e=>Ov({typePrefix:`${YW}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=async l=>r.getOrphanVisits({...l,type:t}).then(f=>cRe(f,t)),o=Sv(i,l=>r.getOrphanVisits(l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),dRe=(e,t)=>Ev({name:YW,initialState:lRe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:a}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:o,shortUrl:l})=>!l&&_v(o.date,i,a))}}),KW="shlink/orphanVisitsDeletion",lB={deletedVisits:0,deleting:!1,error:!1},hRe=e=>Zn(`${KW}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),pRe=e=>$n({name:KW,initialState:lB,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...lB,deletedVisits:i}})}}),ZW="shlink/shortUrlVisits",mRe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},vRe=e=>Ov({typePrefix:`${ZW}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:a=!1}=r,o=f=>i.getShortUrlVisits({shortCode:t,domain:n},f),l=Sv(a,f=>i.getShortUrlVisits({shortCode:t,domain:n},f));return{visitsLoader:o,lastVisitLoader:l}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),gRe=(e,t)=>Ev({name:ZW,initialState:mRe,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},a)=>NW(a,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),XW="shlink/shortUrlVisitsDeletion",uB={shortCode:"",deletedVisits:0,deleting:!1,error:!1},yRe=e=>Zn(`${XW}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits({shortCode:t,domain:n}),shortCode:t,domain:n})),bRe=e=>$n({name:XW,initialState:uB,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:Ri(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:a,deletedVisits:o}=r;return{...uB,shortCode:i,domain:a,deletedVisits:o}})}}),QW="shlink/tagVisits",_Re={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},xRe=e=>Ov({typePrefix:`${QW}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=l=>r.getTagVisits(t,l),o=Sv(i,async l=>r.getTagVisits(t,l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().tagVisits.cancelLoad}),wRe=e=>Ev({name:QW,initialState:_Re,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>DW(r,t,n==null?void 0:n.dateRange)}),JW="shlink/visitsOverview",_y={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},cB=e=>e.filter(({visit:t})=>t.potentialBot).length,SRe=e=>Zn(`${JW}/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}}))),ORe=e=>$n({name:JW,initialState:_y,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({..._y,loading:!0})),t.addCase(e.rejected,()=>({..._y,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({..._y,...r})),t.addCase(Jd,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:a})=>{const{nonOrphanVisits:o,orphanVisits:l}=E4e(a.createdVisits),f=o.length,c=cB(o),h=f-c,m=l.length,g=cB(l),x=m-g;return{...i,nonOrphanVisits:{total:n.total+f,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+h},orphanVisits:{total:r.total+m,bots:r.bots&&r.bots+g,nonBots:r.nonBots&&r.nonBots+x}}})}}),ERe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",a=(e==null?void 0:e.longUrl)??"",o=e==null?void 0:e.title;return y.jsxs(xv,{title:y.jsxs(y.Fragment,{children:["Visits for ",y.jsx(Ei,{href:i})]}),visits:r,shortUrl:e,children:[y.jsx("hr",{}),y.jsxs("div",{children:["Created: ",e?y.jsxs("span",{children:[y.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:y.jsx(S0,{date:e.dateCreated,relative:!0})}),y.jsx(aa,{placement:"bottom",target:"created",children:y.jsx(S0,{date:e.dateCreated})})]}):y.jsx("small",{children:"Loading..."})]}),y.jsxs("div",{className:"long-url-container",children:[`${o?"Title":"Long URL"}: `,t&&y.jsx("small",{children:"Loading..."}),!t&&y.jsx(Ei,{href:a,children:o??a})]})]})},eG=Na(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:a,cancelGetShortUrlVisits:o})=>{const l=Ca("shortUrlVisitsDeletion"),{ReportExporter:f}=Tn(eG),c=F3(),h=U.useMemo(()=>{var _;return(_=n.shortUrls)==null?void 0:_.get(c)},[c,n.shortUrls]),m=U.useCallback((_,w)=>r({...c,options:w,params:_}),[r,c]),g=U.useCallback(_=>f.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,_),[f,h==null?void 0:h.shortUrl]),x=U.useMemo(()=>l?{deleteVisits:()=>a(c),visitsDeletion:t}:void 0,[a,c,t,l]);return U.useEffect(()=>{i([c])},[c,i]),y.jsx(wv,{getVisits:m,cancelGetVisits:o,visitsInfo:e,exportCsv:g,deletion:x,children:y.jsx(ERe,{shortUrl:h,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[Vr.shortUrlVisits(I3(e.shortCode))]:[]),CRe=An(eG,["ReportExporter"]),TRe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return y.jsx(xv,{title:y.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[y.jsx("span",{className:"me-2",children:"Visits for"}),y.jsx(H_,{text:r,colorGenerator:t})]}),visits:n})},tG=Na(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Tn(tG),{tag:a=""}=Dd(),o=U.useCallback((f,c)=>e({tag:a,params:f,options:c}),[e,a]),l=U.useCallback(f=>i.exportVisits(`tag_${a}_visits.csv`,f),[i,a]);return y.jsx(wv,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:y.jsx(TRe,{tagVisits:t,colorGenerator:r})})},()=>[Vr.visits]),ARe=An(tG,["ColorGenerator","ReportExporter"]),e4=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:a,visitsGroups:o}=r,l=Hr("visits"),f=U.useMemo(()=>Object.keys(o).reduce((C,T,j)=>(C[T]=Object.assign(T0(o[T]),{color:(t==null?void 0:t[T])??PW(j)}),C),{}),[t,o]),c=U.useMemo(()=>Object.values(o).every(C=>C.length===0),[o]),[{dateRange:h,visitsFilter:m},g]=kW(),[x,_]=U.useState(),w=U.useCallback(({startDate:C,endDate:T},j)=>{g({dateRange:{startDate:C??void 0,endDate:T??void 0}}),_(j)},[g]),[S]=U.useState(()=>h??(l==null?void 0:l.defaultInterval)??"last30Days"),O=U.useMemo(()=>({...m,excludeBots:m.excludeBots??(l==null?void 0:l.excludeBots)}),[m,l==null?void 0:l.excludeBots]);return U.useEffect(()=>{const C=h??iW(S);return n({params:{dateRange:C,filter:O}}),i},[i,h,n,S,O]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"mb-3",children:y.jsxs(Mn,{bodyClassName:"d-flex",children:[y.jsx(V_,{}),y.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),y.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(G3,{disabled:a,defaultText:"All visits",dateRangeOrInterval:x??h??S,onDatesChange:w})}),y.jsx($W,{disabled:a,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:O,onChange:({orphanVisitsType:C,excludeBots:T})=>g({visitsFilter:{orphanVisitsType:C,excludeBots:T}})})]})}),y.jsx(BW,{info:r}),!a&&y.jsx(Dy,{showFallback:c,children:y.jsx(MW,{visitsGroups:f,onDateRangeChange:w})})]})},jRe=Na(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=D3("domains"),i=U.useCallback(a=>e({...a,domains:r}),[r,e]);return y.jsx(e4,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[Vr.visits]),PRe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),a=Object.fromEntries(r.map(f=>[f,0])),o=(f,c)=>{a[f]=c;const h=Object.values(a),m=h.reduce((g,x)=>g+x,0);n(m/h.length)},l=Object.entries(e).map(([f,c])=>[f,HW({visitsLoader:c,batchSize:i,shouldCancel:t,progressChanged:h=>o(f,h)})]);return async f=>{const c=await Promise.all(l.map(async([h,m])=>{const g=await m(f);return[h,g]}));return Object.fromEntries(c)}},t4=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Fr(`${e}/progressChanged`),i=Zn(e,async(a,{getState:o,dispatch:l})=>{const f=t(a),c=await PRe({visitsLoaders:f,shouldCancel:()=>n(o),progressChanged:h=>l(r(h))})(lj(a.params));return{...a,visitsGroups:c}});return Object.assign(i,{progressChanged:r})},n4=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:a,fulfilled:o,progressChanged:l}=t,{reducer:f,actions:c}=$n({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(a,(g,{error:x})=>({...n,errorData:Ri(x)??null})),m.addCase(o,(g,{payload:x})=>({...g,...x,loading:!1,progress:null,errorData:null})),m.addCase(l,(g,{payload:x})=>({...g,progress:x})),m.addCase(Jd,(g,{payload:x})=>{const{visitsGroups:_,...w}=g,S=Object.keys(_).map(C=>{const T=r({...w,groupKey:C},x.createdVisits).map(({visit:j})=>j);return[C,[...T,..._[C]]]}),O=Object.fromEntries(S);return{...w,visitsGroups:O}})}}),{cancelGetVisits:h}=c;return{reducer:f,cancelGetVisits:h}},nG="shlink/domainVisitsComparison",RRe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},MRe=e=>t4({typePrefix:`${nG}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getDomainVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),NRe=e=>n4({name:nG,initialState:RRe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>LW(r,t,n==null?void 0:n.dateRange)}),rG="shlink/shortUrlVisitsComparison",LRe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},DRe=e=>t4({typePrefix:`${rG}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[$3(i),a=>n.getShortUrlVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),kRe=e=>n4({name:rG,initialState:LRe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>NW(r,gH(t),n==null?void 0:n.dateRange)}),iG="shlink/tagVisitsComparison",IRe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},$Re=e=>t4({typePrefix:`${iG}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getTagVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),BRe=e=>n4({name:iG,initialState:IRe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>DW(r,t,n==null?void 0:n.dateRange)}),URe=Na(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const a=D3("short-urls"),o=U.useMemo(()=>a.map(gH),[a]),l=U.useCallback(h=>e({...h,shortUrls:o}),[e,o]),f=U.useMemo(()=>{var h;return[...((h=r.shortUrls)==null?void 0:h.values())??[]]},[r.shortUrls]),c=U.useMemo(()=>{const{visitsGroups:h,loading:m,...g}=t,x=f.reduce((_,w)=>(_[w.shortUrl]=h[$3(w)]??[],_),{});return{...g,visitsGroups:x,loading:m||r.loading}},[t,r.loading,f]);return U.useEffect(()=>{o.length>0&&i(o)},[i,o]),y.jsx(e4,{title:y.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${f.length} short URLs`}),getVisitsForComparison:l,visitsComparisonInfo:c,cancelGetVisitsComparison:n})},()=>[Vr.visits]),aG=Na(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Tn(aG),i=D3("tags"),a=U.useCallback(f=>e({...f,tags:i}),[e,i]),{visitsGroups:o}=t,l=U.useMemo(()=>Object.keys(o).reduce((f,c)=>(f[c]=r.getColorForKey(c),f),{}),[r,o]);return y.jsx(e4,{title:y.jsxs(y.Fragment,{children:["Comparing ",i.map(f=>y.jsx(H_,{colorGenerator:r,text:f},f))]}),getVisitsForComparison:a,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:l})},()=>[Vr.visits]),zRe=An(aG,["ColorGenerator"]),FRe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>IW),e.factory("ShortUrlVisits",CRe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",ARe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",zRe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>jRe),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>URe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",K4e),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",X4e),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",Z4e),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>q4e),e.serviceFactory("getShortUrlVisits",vRe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",DRe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",yRe,"apiClientFactory"),e.serviceFactory("getTagVisits",xRe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",$Re,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",rRe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",MRe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",fRe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",hRe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",oRe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Jd),e.serviceFactory("loadVisitsOverview",SRe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",ORe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",iRe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",sRe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",dRe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",pRe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",gRe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",bRe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",wRe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",BRe,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",NRe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",kRe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},yp=({children:e,to:t,className:n,...r})=>y.jsx(L0,{className:({isActive:i})=>ke("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),qRe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Pr(),r=ke("aside-menu",{"aside-menu--hidden":!t}),i=a=>`${e}${a}`;return y.jsx("aside",{className:r,children:y.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[y.jsxs(yp,{to:i("/overview"),children:[y.jsx(Xe,{fixedWidth:!0,icon:RQ}),y.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),y.jsxs(yp,{to:i("/list-short-urls/1"),className:ke({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[y.jsx(Xe,{fixedWidth:!0,icon:Ej}),y.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),y.jsxs(yp,{to:i("/create-short-url"),children:[y.jsx(Xe,{fixedWidth:!0,icon:IQ,flip:"horizontal"}),y.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),y.jsxs(yp,{to:i("/manage-tags"),children:[y.jsx(Xe,{fixedWidth:!0,icon:a9}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),y.jsxs(yp,{to:i("/manage-domains"),children:[y.jsx(Xe,{fixedWidth:!0,icon:lQ}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},oG=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:a,DomainVisits:o,OrphanVisits:l,NonOrphanVisits:f,Overview:c,EditShortUrl:h,ManageDomains:m,TagVisitsComparison:g,DomainVisitsComparison:x,ShortUrlVisitsComparison:_,ShortUrlRedirectRules:w}=Tn(oG),S=Pr(),O=Xl(),[C,T,j,P]=Jt();U.useEffect(()=>P(),[S,P]);const R=ke("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":C}),I=LAe(j,P),V=Ca("shortUrlRedirectRules");return y.jsxs(y.Fragment,{children:[y.jsx(Xe,{icon:nQ,className:R,onClick:T}),y.jsx("div",{...I,className:"shlink-layout__swipeable",children:y.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[y.jsx(qRe,{routePrefix:O,showOnMobile:C}),y.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>P(),children:y.jsx("div",{className:"container-xl",children:y.jsxs(M0,{children:[y.jsx(St,{index:!0,element:y.jsx(gj,{replace:!0,to:"overview"})}),y.jsx(St,{path:"/overview",element:y.jsx(c,{})}),y.jsx(St,{path:"/list-short-urls/:page",element:y.jsx(n,{})}),y.jsx(St,{path:"/create-short-url",element:y.jsx(r,{})}),y.jsx(St,{path:"/short-code/:shortCode/visits",children:["","*"].map(G=>y.jsx(St,{path:G,element:y.jsx(i,{})},G))}),y.jsx(St,{path:"/short-code/:shortCode/edit",element:y.jsx(h,{})}),V&&y.jsx(St,{path:"/short-code/:shortCode/redirect-rules",element:y.jsx(w,{})}),y.jsx(St,{path:"/short-urls/compare-visits",element:y.jsx(_,{})}),y.jsx(St,{path:"/tag/:tag/visits",children:["","*"].map(G=>y.jsx(St,{path:G,element:y.jsx(a,{})},G))}),y.jsx(St,{path:"/tags/compare-visits",element:y.jsx(g,{})}),y.jsx(St,{path:"/domain/:domain/visits",children:["","*"].map(G=>y.jsx(St,{path:G,element:y.jsx(o,{})},G))}),y.jsx(St,{path:"/orphan-visits",children:["","*"].map(G=>y.jsx(St,{path:G,element:y.jsx(l,{})},G))}),y.jsx(St,{path:"/non-orphan-visits",children:["","*"].map(G=>y.jsx(St,{path:G,element:y.jsx(f,{})},G))}),y.jsx(St,{path:"/manage-tags",element:y.jsx(t,{})}),y.jsx(St,{path:"/manage-domains",element:y.jsx(m,{})}),y.jsx(St,{path:"/domains/compare-visits",element:y.jsx(x,{})}),e&&y.jsx(St,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},VRe=An(oG,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),HRe=e=>tz({devTools:!1,reducer:cP({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})}),WRe=e=>{e.factory("Main",VRe),e.factory("store",HRe)},La=new JB,{container:GRe}=La,YRe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),KRe=(e,t)=>(...n)=>e[t](...n),ZRe=(e,t)=>({...e,[t]:KRe(GRe,t)}),th=(e,t=[])=>CB(e?YRe(e):null,t.reduce(ZRe,{}));WRe(La);j3e(La,th);Q3e(La,th);FRe(La,th);YAe(La);HAe(La,th);oje(La,th);a4e(La);jPe(La,th);let fB;const XRe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:a,tagColorsStorage:o})=>{const l=PAe(t),f=U.useRef(void 0),[c,h]=U.useState(),m=mc(),g=U.useMemo(()=>m?U.Fragment:UB,[m]);return U.useEffect(()=>{fB=n,e.value("apiClientFactory",()=>fB),o&&e.value("TagColorsStorage",o);const{container:x}=e,{Main:_,store:w,loadMercureInfo:S,listTags:O,listDomains:C}=x;f.current=y.jsx(_,{createNotFound:a}),h(w),w.dispatch(S(r)),w.dispatch(O()),w.dispatch(C())},[n,a,r,o]),c?y.jsx(TB,{store:c,children:y.jsx(hz,{value:r??{},children:y.jsx(jAe,{value:l,children:y.jsx(CAe,{value:i,children:y.jsx(g,{children:f.current})})})})}):y.jsx(y.Fragment,{})},QRe="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=",JRe="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==",eMe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",tMe=()=>{delete O$.Icon.Default.prototype._getIconUrl,O$.Icon.Default.mergeOptions({iconRetinaUrl:JRe,iconUrl:QRe,shadowUrl:eMe})};tMe();const nMe=XRe(La);function A0(e){return t=>{const{resetSelectedServer:n}=t;return U.useEffect(()=>{n()},[n]),y.jsx(e,{...t})}}let rMe=class extends U.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return y.jsxs(FU,{title:"Oops! This is awkward :S",children:[y.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),y.jsx("br",{}),y.jsx(ea,{size:"lg",onClick:()=>n.reload(),children:"Take me back"})]});const{children:r}=this.props;return r}};const iMe=({id:e,name:t})=>y.jsxs(hn,{to:`/server/${e}`,className:ke("servers-list__server-item","tw:flex tw:items-center tw:justify-between tw:gap-x-2 tw:px-4 tw:py-3","tw:rounded-none tw:hover:bg-lm-secondary tw:hover:dark:bg-dm-secondary","tw:border-b tw:last:border-0 tw:border-lm-border tw:dark:border-dm-border"),children:[y.jsx("span",{className:"tw:truncate",children:t}),y.jsx(Xe,{icon:FQ})]}),sG=({servers:e,borderless:t})=>y.jsx(y.Fragment,{children:e.length>0&&y.jsx("div",{"data-testid":"list",className:ke("tw:w-full tw:border-lm-border tw:dark:border-dm-border","tw:md:max-h-56 tw:md:overflow-y-auto tw:-mb-1 tw:scroll-thin",{"tw:border-y":!t}),children:e.map(({id:n,name:r})=>y.jsx(iMe,{id:n,name:r},n))})}),lG=({color:e=am,className:t})=>y.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{fill:e,children:[y.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),y.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),y.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),y.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})}),aMe=({servers:e})=>{const t=mo(),n=Object.values(e),r=n.length>0;return U.useEffect(()=>{const i=n.find(({autoConnect:a})=>a);i&&t(`/server/${i.id}`)},[n,t]),y.jsx("div",{className:"tw:w-full",children:y.jsx(wi,{className:"tw:mx-auto tw:max-w-[720px] tw:overflow-hidden",children:y.jsxs("div",{className:"tw:flex tw:flex-col tw:md:flex-row",children:[y.jsx("div",{className:"tw:p-6 tw:hidden tw:md:flex tw:items-center tw:w-[40%]",children:y.jsx("div",{className:"tw:w-full",children:y.jsx(lG,{})})}),y.jsxs("div",{className:"tw:md:border-l tw:border-lm-border tw:dark:border-dm-border tw:flex-grow",children:[y.jsx("h1",{className:ke("tw:p-4 tw:text-center tw:border-lm-border tw:dark:border-dm-border",{"tw:border-b":!r}),children:"Welcome!"}),r?y.jsx(sG,{servers:n}):y.jsxs("div",{className:"tw:p-6 tw:text-center tw:flex tw:flex-col tw:gap-12 tw:text-xl",children:[y.jsx("p",{children:"This application will help you manage your Shlink servers."}),y.jsx("p",{children:y.jsxs(ea,{to:"/server/create",size:"lg",inline:!0,children:[y.jsx(Xe,{icon:Xm})," Add a server"]})}),y.jsx("p",{children:y.jsx(Ei,{href:"https://shlink.io/documentation",children:y.jsxs("small",{children:[y.jsx("span",{className:"tw:mr-2",children:"Learn more about Shlink"}),y.jsx(Xe,{icon:xQ})]})})})]})]})]})})})},uG=()=>{const{ServersDropdown:e}=Pa(uG),[t,n,,r]=Jt(),i=Pr(),{pathname:a}=i;U.useEffect(r,[i,r]);const o="/settings";return y.jsxs(X9,{color:"primary",dark:!0,fixed:"top",expand:"md",className:"tw:text-white tw:bg-lm-brand tw:dark:bg-dm-brand",children:[y.jsxs(Q9,{tag:hn,to:"/",children:[y.jsx(lG,{className:"tw:inline tw:w-7 tw:mr-1",color:"white"})," Shlink"]}),y.jsx(J9,{onClick:n,children:y.jsx(Xe,{icon:BQ,className:ke("tw:transition-transform tw:duration-300",{"tw:rotate-180":t})})}),y.jsx(eP,{navbar:!0,isOpen:t,children:y.jsxs(Vj,{navbar:!0,className:"tw:ml-auto",children:[y.jsx(Hj,{children:y.jsxs(Wj,{tag:hn,to:o,active:a.startsWith(o),children:[y.jsx(Xe,{icon:HQ})," Settings"]})}),y.jsx(e,{})]})})]})},oMe=Ra(uG,["ServersDropdown"]),sMe=({children:e})=>{const t=Pr();return U.useEffect(()=>{scrollTo(0,0)},[t]),y.jsx(y.Fragment,{children:e})},cG=uz(e=>e,e=>{try{return TT(e,e,"=")}catch{return!1}}),fG=e=>cG(e)?`v${e}`:e,dG=(e,t="latest")=>cG(e)?e:t,lMe="%_VERSION_%",uMe=e=>fG(dG(e)),dB=({project:e,version:t})=>y.jsx(Ei,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"tw:text-gray-500",children:y.jsx("b",{children:t})}),cMe=({selectedServer:e,clientVersion:t=lMe})=>{const n=uMe(t);return y.jsxs("small",{className:"tw:text-gray-500",children:[Oj(e)&&y.jsxs(y.Fragment,{children:["Server: ",y.jsx(dB,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",y.jsx(dB,{project:"shlink-web-client",version:n})]})},fMe=({selectedServer:e})=>y.jsx("div",{className:ke("tw:text-center",{"tw:md:ml-(--aside-menu-width)":Oj(e)}),children:y.jsx(cMe,{selectedServer:e})}),nh=({children:e,className:t})=>y.jsx("div",{className:ke("tw:container tw:mx-auto tw:p-5 tw:pt-8 tw:max-md:p-0 tw:max-md:py-4",t),children:e});function hG(e){const t=n=>{const{ServerError:r}=Pa(t),i=Dd(),{selectServer:a,selectedServer:o}=n;return U.useEffect(()=>{i.serverId&&a(i.serverId)},[i.serverId,a]),o?FX(o)?y.jsx(r,{}):y.jsx(e,{...n}):y.jsx(nh,{children:y.jsx(UU,{loading:!0})})};return t}const pG=hG(U.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:a}=Pa(pG);if(!Oj(e))return y.jsx(a,{});const o=`/server/${e.id}`;return y.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:o,tagColorsStorage:r,createNotFound:l=>y.jsx(qU,{to:`${o}${l}`,children:"List short URLs"})})})),dMe=Ra(pG,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),hMe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",yue,"fetch"),e.serviceFactory("ScrollToTop",()=>sMe),e.factory("MainHeader",oMe),e.serviceFactory("Home",()=>aMe),e.decorator("Home",A0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>nMe),e.factory("ShlinkWebComponentContainer",dMe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>fMe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>rMe)},mG=()=>{const e=mo();return U.useCallback(()=>e(-1),[e])};function pMe(e){let t=e.url;try{const{host:n,pathname:r}=new URL(t);t=n;const i=r.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function mMe(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const vMe=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function gMe(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=lz(t,a=>vMe(n,a)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function j0(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const a=pMe(i);let o=a,l=1;for(;n.has(o);)o=`${a}-${l}`,l++;r.push({...i,id:o}),n.add(o)}),r}const vG=({open:e,duplicatedServers:t,onClose:n,onConfirm:r})=>{const i=t.length>1;return y.jsxs(BU,{size:"lg",title:`Duplicated server${i?"s":""}`,open:e,onClose:n,onConfirm:r,confirmText:`Save duplicate${i?"s":""}`,cancelText:i?"Ignore duplicates":"Discard",children:[y.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),y.jsx("ul",{className:"tw:list-disc tw:mt-4",children:t.map(({url:a,apiKey:o},l)=>i?y.jsxs("li",{children:[y.jsx("b",{children:a})," - ",y.jsx("b",{children:o})]},l):y.jsxs(U.Fragment,{children:[y.jsxs("li",{children:["URL: ",y.jsx("b",{children:a})]}),y.jsxs("li",{children:["API key: ",y.jsx("b",{children:o})]})]},l))}),y.jsxs("span",{children:[i?"Do you want to save duplicated servers":"Do you want to save this server","?"]})]})},yMe=e=>t=>{t.preventDefault(),e()},gG=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,a]=U.useState((t==null?void 0:t.name)??""),[o,l]=U.useState((t==null?void 0:t.url)??""),[f,c]=U.useState((t==null?void 0:t.apiKey)??""),h=yMe(()=>e({name:i,url:o,apiKey:f}));return y.jsxs("form",{name:"serverForm",onSubmit:h,children:[y.jsxs(K0,{className:"tw:mb-4",bodyClassName:"tw:flex tw:flex-col tw:gap-y-3",title:r,children:[y.jsx(B6,{label:"Name",value:i,onChange:m=>a(m.target.value),required:!0}),y.jsx(B6,{label:"URL",type:"url",value:o,onChange:m=>l(m.target.value),required:!0}),y.jsx(fle,{label:"API key",value:f,onChange:m=>c(m.target.value),required:!0})]}),y.jsx("div",{className:"tw:flex tw:items-center tw:justify-end tw:gap-x-2",children:n})]})},hB=4e3,pB=({variant:e})=>y.jsx("div",{className:"tw:mt-4",children:y.jsxs(zU,{variant: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."]})}),yG=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Pa(yG),i=mo(),a=mG(),o=!!Object.keys(e).length,[l,f]=r(!1,hB),[c,h]=r(!1,hB),[m,g]=Jt(),[x,_]=U.useState(),w=U.useCallback(O=>{const[C]=j0(e,[O]);t([C]),i(`/server/${C.id}`)},[t,i,e]),S=U.useCallback(O=>{_(O),Object.values(e).some(({url:T,apiKey:j})=>O.url===T&&O.apiKey===j)?g():w(O)},[w,e,g]);return y.jsxs(nh,{children:[y.jsxs(gG,{title:"Add new server",onSubmit:S,children:[!o&&y.jsx(n,{tooltipPlacement:"top",onImport:f,onError:h}),o&&y.jsx(ea,{variant:"secondary",onClick:a,children:"Cancel"}),y.jsx(ea,{type:"submit",children:"Create server"})]}),l&&y.jsx(pB,{variant:"success"}),c&&y.jsx(pB,{variant:"error"}),y.jsx(vG,{open:m,duplicatedServers:x?[x]:[],onClose:a,onConfirm:()=>x&&w(x)})]})},bMe=Ra(yG,["ImportServersBtn","useTimeoutToggle"]),bG=({server:e,children:t})=>{const{DeleteServerModal:n}=Pa(bG),[r,,i,a]=Jt(),o=mo(),l=U.useCallback(f=>{a(),f&&o("/")},[a,o]);return y.jsxs(y.Fragment,{children:[y.jsx("button",{type:"button",className:"tw:text-danger tw:hover:underline",onClick:i,children:t}),y.jsx(n,{server:e,open:r,onClose:l})]})},_Me=Ra(bG,["DeleteServerModal"]),xMe=({server:e,onClose:t,open:n,deleteServer:r})=>{const i=U.useCallback(a=>{a==="confirm"&&r(e)},[r,e]);return y.jsx(BU,{open:n,title:"Remove server",variant:"danger",onClose:()=>t(!1),onConfirm:()=>t(!0),onClosed:i,confirmText:"Delete",children:y.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-4",children:[y.jsxs("p",{children:["Are you sure you want to remove ",y.jsx("b",{children:e?e.name:""}),"?"]}),y.jsx("p",{children:y.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]})})},wMe=hG(({editServer:e,selectedServer:t,selectServer:n})=>{const r=mG(),{reconnect:i}=Bd();if(!Rp(t))return null;const a=o=>{e(t.id,o),i==="true"&&n(t.id),r()};return y.jsx(nh,{children:y.jsxs(gG,{title:y.jsxs(y.Fragment,{children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:a,children:[y.jsx(ea,{variant:"secondary",onClick:r,children:"Cancel"}),y.jsx(ea,{type:"submit",children:"Save"})]})})}),SMe=Ra(wMe,["ServerError"]),_G=({createServers:e,servers:t,children:n,onImport:r,onError:i=()=>{},tooltipPlacement:a="bottom",className:o=""})=>{const{ServersImporter:l}=Pa(_G),f=Dl(),[c,h]=U.useState([]),[m,,g,x]=Jt(),_=U.useRef(!1),w=U.useCallback(async({target:C})=>{var T;return l.importServersFromFile((T=C.files)==null?void 0:T[0]).then(j=>{const{duplicatedServers:P,newServers:R}=gMe(t,j);_.current=R.length>0,e(j0(t,R)),P.length>0?(h(P),g()):r==null||r()}).then(()=>{C.value=null}).catch(i)},[e,i,r,t,l,g]),S=U.useCallback(()=>{e(j0(t,c)),x(),r==null||r()},[e,c,x,r,t]),O=U.useCallback(()=>{x(),_.current&&(r==null||r())},[x,r]);return y.jsxs(y.Fragment,{children:[y.jsxs(ea,{variant:"secondary",id:"importBtn",className:o,onClick:()=>{var C;return(C=f.current)==null?void 0:C.click()},children:[y.jsx(Xe,{icon:fQ,fixedWidth:!0})," ",n??"Import from file"]}),y.jsxs(aa,{placement:a,target:"importBtn",children:["You can create servers by importing a CSV file with ",y.jsx("b",{children:"name"}),", ",y.jsx("b",{children:"apiKey"})," and ",y.jsx("b",{children:"url"})," columns."]}),y.jsx("input",{type:"file",accept:".csv",className:"tw:hidden","aria-hidden":!0,tabIndex:-1,ref:f,onChange:w,"data-testid":"csv-file-input"}),y.jsx(vG,{open:m,duplicatedServers:c,onClose:O,onConfirm:S})]})},OMe=Ra(_G,["ServersImporter"]),xG=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Pa(xG);return y.jsx(nh,{children:y.jsxs("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-y-4 tw:md:gap-y-8",children:[y.jsxs(UU,{className:"tw:w-full tw:lg:w-[80%]",variant:"error",children:[!Rp(t)&&"Could not find this Shlink server.",Rp(t)&&y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),y.jsxs("p",{className:"tw:text-xl",children:["These are the Shlink servers currently configured. Choose one of them or ",y.jsx(hn,{to:"/server/create",children:"add a new one"}),"."]}),y.jsx(wi,{className:"tw:w-full tw:max-w-100 tw:overflow-hidden",children:y.jsx(sG,{borderless:!0,servers:Object.values(e)})}),Rp(t)&&y.jsxs("p",{className:"tw:text-xl",children:["Alternatively, if you think you may have misconfigured this server, you can ",y.jsx(n,{server:t,children:"remove it"})," or ",y.jsx(hn,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})]})})},EMe=Ra(xG,["DeleteServerButton"]),CMe=4e3,wG=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Pa(wG),[a,o]=U.useState(""),l=U.useMemo(()=>Object.values(e),[e]),f=U.useMemo(()=>l.filter(({name:g,url:x})=>`${g} ${x}`.toLowerCase().match(a.toLowerCase())),[l,a]),c=l.some(({autoConnect:g})=>!!g),[h,m]=r(!1,CMe);return y.jsxs(nh,{className:"tw:flex tw:flex-col tw:gap-y-4",children:[y.jsx(hle,{onChange:o}),y.jsxs("div",{className:"tw:flex tw:flex-col tw:md:flex-row tw:gap-2",children:[y.jsxs("div",{className:"tw:flex tw:gap-2",children:[y.jsx(n,{className:"tw:flex-grow",onError:m,children:"Import servers"}),f.length>0&&y.jsxs(ea,{variant:"secondary",className:"tw:flex-grow",onClick:async()=>t.exportServers(),children:[y.jsx(Xe,{icon:o9})," Export servers"]})]}),y.jsxs(ea,{className:"tw:md:ml-auto",to:"/server/create",children:[y.jsx(Xe,{icon:Xm})," Add a server"]})]}),y.jsx(K0,{className:"card",children:y.jsxs(bi,{header:y.jsxs(bi.Row,{children:[c&&y.jsx(bi.Cell,{className:"tw:w-[35px]",children:y.jsx("span",{className:"tw:sr-only",children:"Auto-connect"})}),y.jsx(bi.Cell,{children:"Name"}),y.jsx(bi.Cell,{children:"Base URL"}),y.jsx(bi.Cell,{children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[!f.length&&y.jsx(bi.Row,{className:"tw:text-center",children:y.jsx(bi.Cell,{colSpan:4,children:"No servers found."})}),f.map(g=>y.jsx(i,{server:g,hasAutoConnect:c},g.id))]})}),h&&y.jsx("div",{children:y.jsx(zU,{variant:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},TMe=Ra(wG,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),SG=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Pa(SG);return y.jsxs(bi.Row,{className:"tw:relative",children:[t&&y.jsx(bi.Cell,{columnName:"Auto-connect",children:e.autoConnect&&y.jsxs(y.Fragment,{children:[y.jsx(Xe,{icon:ec,className:"tw:text-brand",id:"autoConnectIcon"}),y.jsx(aa,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),y.jsx(bi.Cell,{className:"tw:font-bold",columnName:"Name",children:y.jsx(hn,{to:`/server/${e.id}`,children:e.name})}),y.jsx(bi.Cell,{columnName:"Base URL",className:"tw:max-lg:border-b-0",children:e.url}),y.jsx(bi.Cell,{className:"tw:text-right tw:max-lg:absolute tw:right-0 tw:-top-1 tw:mx-lg:pt-0",children:y.jsx(n,{server:e})})]})},AMe=Ra(SG,["ManageServersRowDropdown"]),OG=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Pa(OG),[r,,i,a]=Jt(),o=`/server/${e.id}`,{autoConnect:l}=e,f=l?uQ:Jue;return y.jsxs(y.Fragment,{children:[y.jsxs(Y0,{minWidth:l?210:170,children:[y.jsxs(Je,{tag:hn,to:o,children:[y.jsx(Xe,{icon:sQ,fixedWidth:!0})," Connect"]}),y.jsxs(Je,{tag:hn,to:`${o}/edit`,children:[y.jsx(Xe,{icon:Cj,fixedWidth:!0})," Edit server"]}),y.jsxs(Je,{onClick:()=>t(e,!l),children:[y.jsx(Xe,{icon:f,fixedWidth:!0})," ",l?"Do not a":"A","uto-connect"]}),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsxs(Je,{className:"tw:text-danger",onClick:i,children:[y.jsx(Xe,{icon:r9,fixedWidth:!0})," Remove server"]})]}),y.jsx(n,{server:e,open:r,onClose:a})]})},jMe=Ra(OG,["DeleteServerModal"]),EG=(e,t)=>rz(e,t,{serializeError:n=>n}),PMe={},{actions:RMe,reducer:MMe}=$n({name:"shlink/servers",initialState:PMe,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,a])=>[i,{...a,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:mMe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:NMe,deleteServer:LMe,setAutoConnect:DMe,createServers:CG}=RMe,kMe=MMe,IMe=e=>j0({},Array.isArray(e)?e.filter(n9):[]),$Me=e=>EG("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${$y.homepage}/servers.json`),i=IMe(r);n(CG(i))}),r4="shlink/selectedServer",BMe="1.0.0",UMe="999.999.999",zMe="latest",FMe=e=>dG(e===zMe?UMe:e,BMe),qMe=uz(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:FMe(n),printableVersion:fG(n)}))),mB=null,i4=Fr(`${r4}/resetSelectedServer`),VMe=e=>EG(`${r4}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(i4());const{servers:i}=r(),a=i[t];if(!a)return{serverNotFound:!0};try{const o=e(a),{version:l,printableVersion:f}=await qMe(a,()=>o.health());return{...a,version:l,printableVersion:f}}catch{return{...a,serverNotReachable:!0}}}),HMe=e=>$n({name:r4,initialState:mB,reducers:{},extraReducers:t=>{t.addCase(i4,()=>mB),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),WMe=({servers:e,selectedServer:t})=>{const n=Object.values(e);return y.jsxs(jU,{nav:!0,inNavbar:!0,children:[y.jsxs(ps,{nav:!0,caret:!0,children:[y.jsx(Xe,{icon:_N})," ",y.jsx("span",{className:"tw:ml-1",children:"Servers"})]}),y.jsx(Vl,{end:!0,className:"tw:right-0",children:n.length===0?y.jsxs(Je,{tag:hn,to:"/server/create",children:[y.jsx(Xe,{icon:Xm})," ",y.jsx("span",{className:"tw:ml-1",children:"Add a server"})]}):y.jsxs(y.Fragment,{children:[n.map(({name:r,id:i})=>y.jsx(Je,{tag:hn,to:`/server/${i}`,active:qX(t)===i,children:r},i)),y.jsx(Je,{divider:!0,tag:"hr"}),y.jsxs(Je,{tag:hn,to:"/manage-servers",children:[y.jsx(Xe,{icon:_N})," ",y.jsx("span",{className:"tw:ml-1",children:"Manage servers"})]})]})})]})},GMe=({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)},YMe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);GMe(e,i,n)},KMe="shlink-servers.csv";class ZMe{constructor(t,n,r){df(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(VX);try{const n=this.jsonToCsv(t);YMe(this.window,n,KMe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const XMe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",QMe=e=>Array.isArray(e)&&e.every(XMe);class JMe{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(!QMe(r))throw new Error("Provided file does not have the right format.");return r}}const eNe=(e,t)=>{e.factory("ManageServers",TMe),e.decorator("ManageServers",A0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",AMe),e.factory("ManageServersRowDropdown",jMe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",bMe),e.decorator("CreateServer",A0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",SMe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>WMe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>xMe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",_Me),e.factory("ImportServersBtn",OMe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",EMe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",JMe,"csvToJson"),e.service("ServersExporter",ZMe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",VMe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>CG),e.serviceFactory("deleteServer",()=>LMe),e.serviceFactory("editServer",()=>NMe),e.serviceFactory("setAutoConnect",()=>DMe),e.serviceFactory("fetchServers",$Me,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>i4),e.serviceFactory("selectedServerReducerCreator",HMe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},TG={field:"dateCreated",dir:"DESC"},tNe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:oP()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:TG}},{reducer:nNe,actions:rNe}=$n({name:"shlink/settings",initialState:tNe,reducers:{setSettings:(e,{payload:t})=>e_(e,t)}}),{setSettings:iNe}=rNe,aNe=nNe,oNe=({settings:e,setSettings:t})=>y.jsx(nh,{children:y.jsx(Zue,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:TG})}),sNe=(e,t)=>{e.serviceFactory("Settings",()=>oNe),e.decorator("Settings",A0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>iNe)};var NE,vB;function lNe(){return vB||(vB=1,NE=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,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var o in r)n.d(a,o,(function(l){return r[l]}).bind(null,o));return a},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(_){var w=[];for(var S in _)w.push(S);return w};e.exports=m;var a=n(5);a.inherits=n(2);var o=n(23),l=n(14);a.inherits(m,o);for(var f=i(l.prototype),c=0;c<f.length;c++){var h=f[c];m.prototype[h]||(m.prototype[h]=l.prototype[h])}function m(_){if(!(this instanceof m))return new m(_);o.call(this,_),l.call(this,_),_&&_.readable===!1&&(this.readable=!1),_&&_.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,_&&_.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||r.nextTick(x,this)}function x(_){_.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(_){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}),m.prototype._destroy=function(_,w){this.push(null),this.end(),r.nextTick(w,_)}},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),a=n(39),o=n(40);function l(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f($,q){if(l()<q)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?($=new Uint8Array(q)).__proto__=c.prototype:($===null&&($=new c(q)),$.length=q),$}function c($,q,ee){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c($,q,ee);if(typeof $=="number"){if(typeof q=="string")throw new Error("If encoding is specified then the first argument must be a string");return g(this,$)}return h(this,$,q,ee)}function h($,q,ee,fe){if(typeof q=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&q instanceof ArrayBuffer?function(X,ue,pe,ye){if(ue.byteLength,pe<0||ue.byteLength<pe)throw new RangeError("'offset' is out of bounds");if(ue.byteLength<pe+(ye||0))throw new RangeError("'length' is out of bounds");return ue=pe===void 0&&ye===void 0?new Uint8Array(ue):ye===void 0?new Uint8Array(ue,pe):new Uint8Array(ue,pe,ye),c.TYPED_ARRAY_SUPPORT?(X=ue).__proto__=c.prototype:X=x(X,ue),X}($,q,ee,fe):typeof q=="string"?function(X,ue,pe){if(typeof pe=="string"&&pe!==""||(pe="utf8"),!c.isEncoding(pe))throw new TypeError('"encoding" must be a valid string encoding');var ye=0|w(ue,pe),me=(X=f(X,ye)).write(ue,pe);return me!==ye&&(X=X.slice(0,me)),X}($,q,ee):function(X,ue){if(c.isBuffer(ue)){var pe=0|_(ue.length);return(X=f(X,pe)).length===0||ue.copy(X,0,0,pe),X}if(ue){if(typeof ArrayBuffer<"u"&&ue.buffer instanceof ArrayBuffer||"length"in ue)return typeof ue.length!="number"||function(ye){return ye!=ye}(ue.length)?f(X,0):x(X,ue);if(ue.type==="Buffer"&&o(ue.data))return x(X,ue.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}($,q)}function m($){if(typeof $!="number")throw new TypeError('"size" argument must be a number');if($<0)throw new RangeError('"size" argument must not be negative')}function g($,q){if(m(q),$=f($,q<0?0:0|_(q)),!c.TYPED_ARRAY_SUPPORT)for(var ee=0;ee<q;++ee)$[ee]=0;return $}function x($,q){var ee=q.length<0?0:0|_(q.length);$=f($,ee);for(var fe=0;fe<ee;fe+=1)$[fe]=255&q[fe];return $}function _($){if($>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|$}function w($,q){if(c.isBuffer($))return $.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView($)||$ instanceof ArrayBuffer))return $.byteLength;typeof $!="string"&&($=""+$);var ee=$.length;if(ee===0)return 0;for(var fe=!1;;)switch(q){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":case void 0:return he($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return de($).length;default:if(fe)return he($).length;q=(""+q).toLowerCase(),fe=!0}}function S($,q,ee){var fe=$[q];$[q]=$[ee],$[ee]=fe}function O($,q,ee,fe,X){if($.length===0)return-1;if(typeof ee=="string"?(fe=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),ee=+ee,isNaN(ee)&&(ee=X?0:$.length-1),ee<0&&(ee=$.length+ee),ee>=$.length){if(X)return-1;ee=$.length-1}else if(ee<0){if(!X)return-1;ee=0}if(typeof q=="string"&&(q=c.from(q,fe)),c.isBuffer(q))return q.length===0?-1:C($,q,ee,fe,X);if(typeof q=="number")return q&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call($,q,ee):Uint8Array.prototype.lastIndexOf.call($,q,ee):C($,[q],ee,fe,X);throw new TypeError("val must be string, number or Buffer")}function C($,q,ee,fe,X){var ue,pe=1,ye=$.length,me=q.length;if(fe!==void 0&&((fe=String(fe).toLowerCase())==="ucs2"||fe==="ucs-2"||fe==="utf16le"||fe==="utf-16le")){if($.length<2||q.length<2)return-1;pe=2,ye/=2,me/=2,ee/=2}function we($e,Fe){return pe===1?$e[Fe]:$e.readUInt16BE(Fe*pe)}if(X){var Te=-1;for(ue=ee;ue<ye;ue++)if(we($,ue)===we(q,Te===-1?0:ue-Te)){if(Te===-1&&(Te=ue),ue-Te+1===me)return Te*pe}else Te!==-1&&(ue-=ue-Te),Te=-1}else for(ee+me>ye&&(ee=ye-me),ue=ee;ue>=0;ue--){for(var Le=!0,ze=0;ze<me;ze++)if(we($,ue+ze)!==we(q,ze)){Le=!1;break}if(Le)return ue}return-1}function T($,q,ee,fe){ee=Number(ee)||0;var X=$.length-ee;fe?(fe=Number(fe))>X&&(fe=X):fe=X;var ue=q.length;if(ue%2!=0)throw new TypeError("Invalid hex string");fe>ue/2&&(fe=ue/2);for(var pe=0;pe<fe;++pe){var ye=parseInt(q.substr(2*pe,2),16);if(isNaN(ye))return pe;$[ee+pe]=ye}return pe}function j($,q,ee,fe){return be(he(q,$.length-ee),$,ee,fe)}function P($,q,ee,fe){return be(function(X){for(var ue=[],pe=0;pe<X.length;++pe)ue.push(255&X.charCodeAt(pe));return ue}(q),$,ee,fe)}function R($,q,ee,fe){return P($,q,ee,fe)}function I($,q,ee,fe){return be(de(q),$,ee,fe)}function V($,q,ee,fe){return be(function(X,ue){for(var pe,ye,me,we=[],Te=0;Te<X.length&&!((ue-=2)<0);++Te)ye=(pe=X.charCodeAt(Te))>>8,me=pe%256,we.push(me),we.push(ye);return we}(q,$.length-ee),$,ee,fe)}function G($,q,ee){return q===0&&ee===$.length?i.fromByteArray($):i.fromByteArray($.slice(q,ee))}function W($,q,ee){ee=Math.min($.length,ee);for(var fe=[],X=q;X<ee;){var ue,pe,ye,me,we=$[X],Te=null,Le=we>239?4:we>223?3:we>191?2:1;if(X+Le<=ee)switch(Le){case 1:we<128&&(Te=we);break;case 2:(192&(ue=$[X+1]))==128&&(me=(31&we)<<6|63&ue)>127&&(Te=me);break;case 3:ue=$[X+1],pe=$[X+2],(192&ue)==128&&(192&pe)==128&&(me=(15&we)<<12|(63&ue)<<6|63&pe)>2047&&(me<55296||me>57343)&&(Te=me);break;case 4:ue=$[X+1],pe=$[X+2],ye=$[X+3],(192&ue)==128&&(192&pe)==128&&(192&ye)==128&&(me=(15&we)<<18|(63&ue)<<12|(63&pe)<<6|63&ye)>65535&&me<1114112&&(Te=me)}Te===null?(Te=65533,Le=1):Te>65535&&(Te-=65536,fe.push(Te>>>10&1023|55296),Te=56320|1023&Te),fe.push(Te),X+=Le}return function(ze){var $e=ze.length;if($e<=K)return String.fromCharCode.apply(String,ze);for(var Fe="",_e=0;_e<$e;)Fe+=String.fromCharCode.apply(String,ze.slice(_e,_e+=K));return Fe}(fe)}t.Buffer=c,t.SlowBuffer=function($){return+$!=$&&($=0),c.alloc(+$)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var $=new Uint8Array(1);return $.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},$.foo()===42&&typeof $.subarray=="function"&&$.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=l(),c.poolSize=8192,c._augment=function($){return $.__proto__=c.prototype,$},c.from=function($,q,ee){return h(null,$,q,ee)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function($,q,ee){return function(fe,X,ue,pe){return m(X),X<=0?f(fe,X):ue!==void 0?typeof pe=="string"?f(fe,X).fill(ue,pe):f(fe,X).fill(ue):f(fe,X)}(null,$,q,ee)},c.allocUnsafe=function($){return g(null,$)},c.allocUnsafeSlow=function($){return g(null,$)},c.isBuffer=function($){return!($==null||!$._isBuffer)},c.compare=function($,q){if(!c.isBuffer($)||!c.isBuffer(q))throw new TypeError("Arguments must be Buffers");if($===q)return 0;for(var ee=$.length,fe=q.length,X=0,ue=Math.min(ee,fe);X<ue;++X)if($[X]!==q[X]){ee=$[X],fe=q[X];break}return ee<fe?-1:fe<ee?1:0},c.isEncoding=function($){switch(String($).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}},c.concat=function($,q){if(!o($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return c.alloc(0);var ee;if(q===void 0)for(q=0,ee=0;ee<$.length;++ee)q+=$[ee].length;var fe=c.allocUnsafe(q),X=0;for(ee=0;ee<$.length;++ee){var ue=$[ee];if(!c.isBuffer(ue))throw new TypeError('"list" argument must be an Array of Buffers');ue.copy(fe,X),X+=ue.length}return fe},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var $=this.length;if($%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var q=0;q<$;q+=2)S(this,q,q+1);return this},c.prototype.swap32=function(){var $=this.length;if($%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var q=0;q<$;q+=4)S(this,q,q+3),S(this,q+1,q+2);return this},c.prototype.swap64=function(){var $=this.length;if($%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var q=0;q<$;q+=8)S(this,q,q+7),S(this,q+1,q+6),S(this,q+2,q+5),S(this,q+3,q+4);return this},c.prototype.toString=function(){var $=0|this.length;return $===0?"":arguments.length===0?W(this,0,$):(function(q,ee,fe){var X=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((fe===void 0||fe>this.length)&&(fe=this.length),fe<=0)||(fe>>>=0)<=(ee>>>=0))return"";for(q||(q="utf8");;)switch(q){case"hex":return Q(this,ee,fe);case"utf8":case"utf-8":return W(this,ee,fe);case"ascii":return ne(this,ee,fe);case"latin1":case"binary":return le(this,ee,fe);case"base64":return G(this,ee,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,ee,fe);default:if(X)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),X=!0}}).apply(this,arguments)},c.prototype.equals=function($){if(!c.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$||c.compare(this,$)===0},c.prototype.inspect=function(){var $="",q=t.INSPECT_MAX_BYTES;return this.length>0&&($=this.toString("hex",0,q).match(/.{2}/g).join(" "),this.length>q&&($+=" ... ")),"<Buffer "+$+">"},c.prototype.compare=function($,q,ee,fe,X){if(!c.isBuffer($))throw new TypeError("Argument must be a Buffer");if(q===void 0&&(q=0),ee===void 0&&(ee=$?$.length:0),fe===void 0&&(fe=0),X===void 0&&(X=this.length),q<0||ee>$.length||fe<0||X>this.length)throw new RangeError("out of range index");if(fe>=X&&q>=ee)return 0;if(fe>=X)return-1;if(q>=ee)return 1;if(q>>>=0,ee>>>=0,fe>>>=0,X>>>=0,this===$)return 0;for(var ue=X-fe,pe=ee-q,ye=Math.min(ue,pe),me=this.slice(fe,X),we=$.slice(q,ee),Te=0;Te<ye;++Te)if(me[Te]!==we[Te]){ue=me[Te],pe=we[Te];break}return ue<pe?-1:pe<ue?1:0},c.prototype.includes=function($,q,ee){return this.indexOf($,q,ee)!==-1},c.prototype.indexOf=function($,q,ee){return O(this,$,q,ee,!0)},c.prototype.lastIndexOf=function($,q,ee){return O(this,$,q,ee,!1)},c.prototype.write=function($,q,ee,fe){if(q===void 0)fe="utf8",ee=this.length,q=0;else if(ee===void 0&&typeof q=="string")fe=q,ee=this.length,q=0;else{if(!isFinite(q))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");q|=0,isFinite(ee)?(ee|=0,fe===void 0&&(fe="utf8")):(fe=ee,ee=void 0)}var X=this.length-q;if((ee===void 0||ee>X)&&(ee=X),$.length>0&&(ee<0||q<0)||q>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var ue=!1;;)switch(fe){case"hex":return T(this,$,q,ee);case"utf8":case"utf-8":return j(this,$,q,ee);case"ascii":return P(this,$,q,ee);case"latin1":case"binary":return R(this,$,q,ee);case"base64":return I(this,$,q,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,$,q,ee);default:if(ue)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),ue=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var K=4096;function ne($,q,ee){var fe="";ee=Math.min($.length,ee);for(var X=q;X<ee;++X)fe+=String.fromCharCode(127&$[X]);return fe}function le($,q,ee){var fe="";ee=Math.min($.length,ee);for(var X=q;X<ee;++X)fe+=String.fromCharCode($[X]);return fe}function Q($,q,ee){var fe=$.length;(!q||q<0)&&(q=0),(!ee||ee<0||ee>fe)&&(ee=fe);for(var X="",ue=q;ue<ee;++ue)X+=oe($[ue]);return X}function J($,q,ee){for(var fe=$.slice(q,ee),X="",ue=0;ue<fe.length;ue+=2)X+=String.fromCharCode(fe[ue]+256*fe[ue+1]);return X}function H($,q,ee){if($%1!=0||$<0)throw new RangeError("offset is not uint");if($+q>ee)throw new RangeError("Trying to access beyond buffer length")}function B($,q,ee,fe,X,ue){if(!c.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(q>X||q<ue)throw new RangeError('"value" argument is out of bounds');if(ee+fe>$.length)throw new RangeError("Index out of range")}function z($,q,ee,fe){q<0&&(q=65535+q+1);for(var X=0,ue=Math.min($.length-ee,2);X<ue;++X)$[ee+X]=(q&255<<8*(fe?X:1-X))>>>8*(fe?X:1-X)}function F($,q,ee,fe){q<0&&(q=4294967295+q+1);for(var X=0,ue=Math.min($.length-ee,4);X<ue;++X)$[ee+X]=q>>>8*(fe?X:3-X)&255}function M($,q,ee,fe,X,ue){if(ee+fe>$.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function k($,q,ee,fe,X){return X||M($,0,ee,4),a.write($,q,ee,fe,23,4),ee+4}function te($,q,ee,fe,X){return X||M($,0,ee,8),a.write($,q,ee,fe,52,8),ee+8}c.prototype.slice=function($,q){var ee,fe=this.length;if($=~~$,q=q===void 0?fe:~~q,$<0?($+=fe)<0&&($=0):$>fe&&($=fe),q<0?(q+=fe)<0&&(q=0):q>fe&&(q=fe),q<$&&(q=$),c.TYPED_ARRAY_SUPPORT)(ee=this.subarray($,q)).__proto__=c.prototype;else{var X=q-$;ee=new c(X,void 0);for(var ue=0;ue<X;++ue)ee[ue]=this[ue+$]}return ee},c.prototype.readUIntLE=function($,q,ee){$|=0,q|=0,ee||H($,q,this.length);for(var fe=this[$],X=1,ue=0;++ue<q&&(X*=256);)fe+=this[$+ue]*X;return fe},c.prototype.readUIntBE=function($,q,ee){$|=0,q|=0,ee||H($,q,this.length);for(var fe=this[$+--q],X=1;q>0&&(X*=256);)fe+=this[$+--q]*X;return fe},c.prototype.readUInt8=function($,q){return q||H($,1,this.length),this[$]},c.prototype.readUInt16LE=function($,q){return q||H($,2,this.length),this[$]|this[$+1]<<8},c.prototype.readUInt16BE=function($,q){return q||H($,2,this.length),this[$]<<8|this[$+1]},c.prototype.readUInt32LE=function($,q){return q||H($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+16777216*this[$+3]},c.prototype.readUInt32BE=function($,q){return q||H($,4,this.length),16777216*this[$]+(this[$+1]<<16|this[$+2]<<8|this[$+3])},c.prototype.readIntLE=function($,q,ee){$|=0,q|=0,ee||H($,q,this.length);for(var fe=this[$],X=1,ue=0;++ue<q&&(X*=256);)fe+=this[$+ue]*X;return fe>=(X*=128)&&(fe-=Math.pow(2,8*q)),fe},c.prototype.readIntBE=function($,q,ee){$|=0,q|=0,ee||H($,q,this.length);for(var fe=q,X=1,ue=this[$+--fe];fe>0&&(X*=256);)ue+=this[$+--fe]*X;return ue>=(X*=128)&&(ue-=Math.pow(2,8*q)),ue},c.prototype.readInt8=function($,q){return q||H($,1,this.length),128&this[$]?-1*(255-this[$]+1):this[$]},c.prototype.readInt16LE=function($,q){q||H($,2,this.length);var ee=this[$]|this[$+1]<<8;return 32768&ee?4294901760|ee:ee},c.prototype.readInt16BE=function($,q){q||H($,2,this.length);var ee=this[$+1]|this[$]<<8;return 32768&ee?4294901760|ee:ee},c.prototype.readInt32LE=function($,q){return q||H($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},c.prototype.readInt32BE=function($,q){return q||H($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},c.prototype.readFloatLE=function($,q){return q||H($,4,this.length),a.read(this,$,!0,23,4)},c.prototype.readFloatBE=function($,q){return q||H($,4,this.length),a.read(this,$,!1,23,4)},c.prototype.readDoubleLE=function($,q){return q||H($,8,this.length),a.read(this,$,!0,52,8)},c.prototype.readDoubleBE=function($,q){return q||H($,8,this.length),a.read(this,$,!1,52,8)},c.prototype.writeUIntLE=function($,q,ee,fe){$=+$,q|=0,ee|=0,fe||B(this,$,q,ee,Math.pow(2,8*ee)-1,0);var X=1,ue=0;for(this[q]=255&$;++ue<ee&&(X*=256);)this[q+ue]=$/X&255;return q+ee},c.prototype.writeUIntBE=function($,q,ee,fe){$=+$,q|=0,ee|=0,fe||B(this,$,q,ee,Math.pow(2,8*ee)-1,0);var X=ee-1,ue=1;for(this[q+X]=255&$;--X>=0&&(ue*=256);)this[q+X]=$/ue&255;return q+ee},c.prototype.writeUInt8=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,1,255,0),c.TYPED_ARRAY_SUPPORT||($=Math.floor($)),this[q]=255&$,q+1},c.prototype.writeUInt16LE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[q]=255&$,this[q+1]=$>>>8):z(this,$,q,!0),q+2},c.prototype.writeUInt16BE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[q]=$>>>8,this[q+1]=255&$):z(this,$,q,!1),q+2},c.prototype.writeUInt32LE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[q+3]=$>>>24,this[q+2]=$>>>16,this[q+1]=$>>>8,this[q]=255&$):F(this,$,q,!0),q+4},c.prototype.writeUInt32BE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[q]=$>>>24,this[q+1]=$>>>16,this[q+2]=$>>>8,this[q+3]=255&$):F(this,$,q,!1),q+4},c.prototype.writeIntLE=function($,q,ee,fe){if($=+$,q|=0,!fe){var X=Math.pow(2,8*ee-1);B(this,$,q,ee,X-1,-X)}var ue=0,pe=1,ye=0;for(this[q]=255&$;++ue<ee&&(pe*=256);)$<0&&ye===0&&this[q+ue-1]!==0&&(ye=1),this[q+ue]=($/pe>>0)-ye&255;return q+ee},c.prototype.writeIntBE=function($,q,ee,fe){if($=+$,q|=0,!fe){var X=Math.pow(2,8*ee-1);B(this,$,q,ee,X-1,-X)}var ue=ee-1,pe=1,ye=0;for(this[q+ue]=255&$;--ue>=0&&(pe*=256);)$<0&&ye===0&&this[q+ue+1]!==0&&(ye=1),this[q+ue]=($/pe>>0)-ye&255;return q+ee},c.prototype.writeInt8=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,1,127,-128),c.TYPED_ARRAY_SUPPORT||($=Math.floor($)),$<0&&($=255+$+1),this[q]=255&$,q+1},c.prototype.writeInt16LE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[q]=255&$,this[q+1]=$>>>8):z(this,$,q,!0),q+2},c.prototype.writeInt16BE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[q]=$>>>8,this[q+1]=255&$):z(this,$,q,!1),q+2},c.prototype.writeInt32LE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[q]=255&$,this[q+1]=$>>>8,this[q+2]=$>>>16,this[q+3]=$>>>24):F(this,$,q,!0),q+4},c.prototype.writeInt32BE=function($,q,ee){return $=+$,q|=0,ee||B(this,$,q,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),c.TYPED_ARRAY_SUPPORT?(this[q]=$>>>24,this[q+1]=$>>>16,this[q+2]=$>>>8,this[q+3]=255&$):F(this,$,q,!1),q+4},c.prototype.writeFloatLE=function($,q,ee){return k(this,$,q,!0,ee)},c.prototype.writeFloatBE=function($,q,ee){return k(this,$,q,!1,ee)},c.prototype.writeDoubleLE=function($,q,ee){return te(this,$,q,!0,ee)},c.prototype.writeDoubleBE=function($,q,ee){return te(this,$,q,!1,ee)},c.prototype.copy=function($,q,ee,fe){if(ee||(ee=0),fe||fe===0||(fe=this.length),q>=$.length&&(q=$.length),q||(q=0),fe>0&&fe<ee&&(fe=ee),fe===ee||$.length===0||this.length===0)return 0;if(q<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),$.length-q<fe-ee&&(fe=$.length-q+ee);var X,ue=fe-ee;if(this===$&&ee<q&&q<fe)for(X=ue-1;X>=0;--X)$[X+q]=this[X+ee];else if(ue<1e3||!c.TYPED_ARRAY_SUPPORT)for(X=0;X<ue;++X)$[X+q]=this[X+ee];else Uint8Array.prototype.set.call($,this.subarray(ee,ee+ue),q);return ue},c.prototype.fill=function($,q,ee,fe){if(typeof $=="string"){if(typeof q=="string"?(fe=q,q=0,ee=this.length):typeof ee=="string"&&(fe=ee,ee=this.length),$.length===1){var X=$.charCodeAt(0);X<256&&($=X)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!c.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof $=="number"&&($&=255);if(q<0||this.length<q||this.length<ee)throw new RangeError("Out of range index");if(ee<=q)return this;var ue;if(q>>>=0,ee=ee===void 0?this.length:ee>>>0,$||($=0),typeof $=="number")for(ue=q;ue<ee;++ue)this[ue]=$;else{var pe=c.isBuffer($)?$:he(new c($,fe).toString()),ye=pe.length;for(ue=0;ue<ee-q;++ue)this[ue+q]=pe[ue%ye]}return this};var Z=/[^+\/0-9A-Za-z-_]/g;function oe($){return $<16?"0"+$.toString(16):$.toString(16)}function he($,q){var ee;q=q||1/0;for(var fe=$.length,X=null,ue=[],pe=0;pe<fe;++pe){if((ee=$.charCodeAt(pe))>55295&&ee<57344){if(!X){if(ee>56319){(q-=3)>-1&&ue.push(239,191,189);continue}if(pe+1===fe){(q-=3)>-1&&ue.push(239,191,189);continue}X=ee;continue}if(ee<56320){(q-=3)>-1&&ue.push(239,191,189),X=ee;continue}ee=65536+(X-55296<<10|ee-56320)}else X&&(q-=3)>-1&&ue.push(239,191,189);if(X=null,ee<128){if((q-=1)<0)break;ue.push(ee)}else if(ee<2048){if((q-=2)<0)break;ue.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((q-=3)<0)break;ue.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((q-=4)<0)break;ue.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return ue}function de($){return i.toByteArray(function(q){if((q=function(ee){return ee.trim?ee.trim():ee.replace(/^\s+|\s+$/g,"")}(q).replace(Z,"")).length<2)return"";for(;q.length%4!=0;)q+="=";return q}($))}function be($,q,ee,fe){for(var X=0;X<fe&&!(X+ee>=q.length||X>=$.length);++X)q[X+ee]=$[X];return X}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(S){if(n===setTimeout)return setTimeout(S,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(S,0);try{return n(S,0)}catch{try{return n.call(null,S,0)}catch{return n.call(this,S,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:o}catch{r=o}})();var f,c=[],h=!1,m=-1;function g(){h&&f&&(h=!1,f.length?c=f.concat(c):m=-1,c.length&&x())}function x(){if(!h){var S=l(g);h=!0;for(var O=c.length;O;){for(f=c,c=[];++m<O;)f&&f[m].run();m=-1,O=c.length}f=null,h=!1,function(C){if(r===clearTimeout)return clearTimeout(C);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(C);try{r(C)}catch{try{return r.call(null,C)}catch{return r.call(this,C)}}}(S)}}function _(S,O){this.fun=S,this.array=O}function w(){}i.nextTick=function(S){var O=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)O[C-1]=arguments[C];c.push(new _(S,O)),c.length!==1||h||l(x)},_.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=w,i.addListener=w,i.once=w,i.off=w,i.removeListener=w,i.removeAllListeners=w,i.emit=w,i.prependListener=w,i.prependOnceListener=w,i.listeners=function(S){return[]},i.binding=function(S){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(S){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(a){return Object.prototype.toString.call(a)}t.isArray=function(a){return Array.isArray?Array.isArray(a):i(a)==="[object Array]"},t.isBoolean=function(a){return typeof a=="boolean"},t.isNull=function(a){return a===null},t.isNullOrUndefined=function(a){return a==null},t.isNumber=function(a){return typeof a=="number"},t.isString=function(a){return typeof a=="string"},t.isSymbol=function(a){return typeof a=="symbol"},t.isUndefined=function(a){return a===void 0},t.isRegExp=function(a){return i(a)==="[object RegExp]"},t.isObject=function(a){return typeof a=="object"&&a!==null},t.isDate=function(a){return i(a)==="[object Date]"},t.isError=function(a){return i(a)==="[object Error]"||a instanceof Error},t.isFunction=function(a){return typeof a=="function"},t.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===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,a,o,l){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var f,c,h=arguments.length;switch(h){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,a)});case 3:return r.nextTick(function(){i.call(null,a,o)});case 4:return r.nextTick(function(){i.call(null,a,o,l)});default:for(f=new Array(h-1),c=0;c<f.length;)f[c++]=arguments[c];return r.nextTick(function(){i.apply(null,f)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function a(l,f){for(var c in l)f[c]=l[c]}function o(l,f,c){return i(l,f,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(l,f,c){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,f,c)},o.alloc=function(l,f,c){if(typeof l!="number")throw new TypeError("Argument must be a number");var h=i(l);return f!==void 0?typeof c=="string"?h.fill(f,c):h.fill(f):h.fill(0),h},o.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},o.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}},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,a){for(var o=i.length;o--;)if(r(i[o][0],a))return o;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,a){var o=i.__data__;return r(a)?o[typeof a=="string"?"string":"hash"]:o.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function o(l,f){this._id=l,this._clearFn=f}t.setTimeout=function(){return new o(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(l){l&&l.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(l,f){clearTimeout(l._idleTimeoutId),l._idleTimeout=f},t.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},t._unrefActive=t.active=function(l){clearTimeout(l._idleTimeoutId);var f=l._idleTimeout;f>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},f))},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(o){return typeof o=="function"}function i(o){return typeof o=="object"&&o!==null}function a(o){return o===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(o){if(!function(l){return typeof l=="number"}(o)||o<0||isNaN(o))throw TypeError("n must be a positive number");return this._maxListeners=o,this},n.prototype.emit=function(o){var l,f,c,h,m,g;if(this._events||(this._events={}),o==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((l=arguments[1])instanceof Error)throw l;var x=new Error('Uncaught, unspecified "error" event. ('+l+")");throw x.context=l,x}if(a(f=this._events[o]))return!1;if(r(f))switch(arguments.length){case 1:f.call(this);break;case 2:f.call(this,arguments[1]);break;case 3:f.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),f.apply(this,h)}else if(i(f))for(h=Array.prototype.slice.call(arguments,1),c=(g=f.slice()).length,m=0;m<c;m++)g[m].apply(this,h);return!0},n.prototype.addListener=function(o,l){var f;if(!r(l))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",o,r(l.listener)?l.listener:l),this._events[o]?i(this._events[o])?this._events[o].push(l):this._events[o]=[this._events[o],l]:this._events[o]=l,i(this._events[o])&&!this._events[o].warned&&(f=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&f>0&&this._events[o].length>f&&(this._events[o].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[o].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(o,l){if(!r(l))throw TypeError("listener must be a function");var f=!1;function c(){this.removeListener(o,c),f||(f=!0,l.apply(this,arguments))}return c.listener=l,this.on(o,c),this},n.prototype.removeListener=function(o,l){var f,c,h,m;if(!r(l))throw TypeError("listener must be a function");if(!this._events||!this._events[o])return this;if(h=(f=this._events[o]).length,c=-1,f===l||r(f.listener)&&f.listener===l)delete this._events[o],this._events.removeListener&&this.emit("removeListener",o,l);else if(i(f)){for(m=h;m-- >0;)if(f[m]===l||f[m].listener&&f[m].listener===l){c=m;break}if(c<0)return this;f.length===1?(f.length=0,delete this._events[o]):f.splice(c,1),this._events.removeListener&&this.emit("removeListener",o,l)}return this},n.prototype.removeAllListeners=function(o){var l,f;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[o]&&delete this._events[o],this;if(arguments.length===0){for(l in this._events)l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events={},this}if(r(f=this._events[o]))this.removeListener(o,f);else if(f)for(;f.length;)this.removeListener(o,f[f.length-1]);return delete this._events[o],this},n.prototype.listeners=function(o){return this._events&&this._events[o]?r(this._events[o])?[this._events[o]]:this._events[o].slice():[]},n.prototype.listenerCount=function(o){if(this._events){var l=this._events[o];if(r(l))return 1;if(l)return l.length}return 0},n.listenerCount=function(o,l){return o.listenerCount(l)}},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,a){var o=n(6);function l(W){var K=this;this.next=null,this.entry=null,this.finish=function(){(function(ne,le,Q){var J=ne.entry;for(ne.entry=null;J;){var H=J.callback;le.pendingcb--,H(void 0),J=J.next}le.corkedRequestsFree?le.corkedRequestsFree.next=ne:le.corkedRequestsFree=ne})(K,W)}}e.exports=T;var f,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;T.WritableState=C;var h=n(5);h.inherits=n(2);var m,g={deprecate:n(44)},x=n(24),_=n(7).Buffer,w=a.Uint8Array||function(){},S=n(25);function O(){}function C(W,K){f=f||n(1),W=W||{};var ne=K instanceof f;this.objectMode=!!W.objectMode,ne&&(this.objectMode=this.objectMode||!!W.writableObjectMode);var le=W.highWaterMark,Q=W.writableHighWaterMark,J=this.objectMode?16:16384;this.highWaterMark=le||le===0?le:ne&&(Q||Q===0)?Q:J,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 H=W.decodeStrings===!1;this.decodeStrings=!H,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){(function(z,F){var M=z._writableState,k=M.sync,te=M.writecb;if(function(oe){oe.writing=!1,oe.writecb=null,oe.length-=oe.writelen,oe.writelen=0}(M),F)(function(oe,he,de,be,$){--he.pendingcb,de?(o.nextTick($,be),o.nextTick(G,oe,he),oe._writableState.errorEmitted=!0,oe.emit("error",be)):($(be),oe._writableState.errorEmitted=!0,oe.emit("error",be),G(oe,he))})(z,M,k,F,te);else{var Z=I(M);Z||M.corked||M.bufferProcessing||!M.bufferedRequest||R(z,M),k?c(P,z,M,Z,te):P(z,M,Z,te)}})(K,B)},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 l(this)}function T(W){if(f=f||n(1),!(m.call(T,this)||this instanceof f))return new T(W);this._writableState=new C(W,this),this.writable=!0,W&&(typeof W.write=="function"&&(this._write=W.write),typeof W.writev=="function"&&(this._writev=W.writev),typeof W.destroy=="function"&&(this._destroy=W.destroy),typeof W.final=="function"&&(this._final=W.final)),x.call(this)}function j(W,K,ne,le,Q,J,H){K.writelen=le,K.writecb=H,K.writing=!0,K.sync=!0,ne?W._writev(Q,K.onwrite):W._write(Q,J,K.onwrite),K.sync=!1}function P(W,K,ne,le){ne||function(Q,J){J.length===0&&J.needDrain&&(J.needDrain=!1,Q.emit("drain"))}(W,K),K.pendingcb--,le(),G(W,K)}function R(W,K){K.bufferProcessing=!0;var ne=K.bufferedRequest;if(W._writev&&ne&&ne.next){var le=K.bufferedRequestCount,Q=new Array(le),J=K.corkedRequestsFree;J.entry=ne;for(var H=0,B=!0;ne;)Q[H]=ne,ne.isBuf||(B=!1),ne=ne.next,H+=1;Q.allBuffers=B,j(W,K,!0,K.length,Q,"",J.finish),K.pendingcb++,K.lastBufferedRequest=null,J.next?(K.corkedRequestsFree=J.next,J.next=null):K.corkedRequestsFree=new l(K),K.bufferedRequestCount=0}else{for(;ne;){var z=ne.chunk,F=ne.encoding,M=ne.callback;if(j(W,K,!1,K.objectMode?1:z.length,z,F,M),ne=ne.next,K.bufferedRequestCount--,K.writing)break}ne===null&&(K.lastBufferedRequest=null)}K.bufferedRequest=ne,K.bufferProcessing=!1}function I(W){return W.ending&&W.length===0&&W.bufferedRequest===null&&!W.finished&&!W.writing}function V(W,K){W._final(function(ne){K.pendingcb--,ne&&W.emit("error",ne),K.prefinished=!0,W.emit("prefinish"),G(W,K)})}function G(W,K){var ne=I(K);return ne&&(function(le,Q){Q.prefinished||Q.finalCalled||(typeof le._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,o.nextTick(V,le,Q)):(Q.prefinished=!0,le.emit("prefinish")))}(W,K),K.pendingcb===0&&(K.finished=!0,W.emit("finish"))),ne}h.inherits(T,x),C.prototype.getBuffer=function(){for(var W=this.bufferedRequest,K=[];W;)K.push(W),W=W.next;return K},function(){try{Object.defineProperty(C.prototype,"buffer",{get:g.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"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(W){return!!m.call(this,W)||this===T&&W&&W._writableState instanceof C}})):m=function(W){return W instanceof this},T.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},T.prototype.write=function(W,K,ne){var le=this._writableState,Q=!1,J=!le.objectMode&&function(H){return _.isBuffer(H)||H instanceof w}(W);return J&&!_.isBuffer(W)&&(W=function(H){return _.from(H)}(W)),typeof K=="function"&&(ne=K,K=null),J?K="buffer":K||(K=le.defaultEncoding),typeof ne!="function"&&(ne=O),le.ended?function(H,B){var z=new Error("write after end");H.emit("error",z),o.nextTick(B,z)}(this,ne):(J||function(H,B,z,F){var M=!0,k=!1;return z===null?k=new TypeError("May not write null values to stream"):typeof z=="string"||z===void 0||B.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k&&(H.emit("error",k),o.nextTick(F,k),M=!1),M}(this,le,W,ne))&&(le.pendingcb++,Q=function(H,B,z,F,M,k){if(!z){var te=function(de,be,$){return de.objectMode||de.decodeStrings===!1||typeof be!="string"||(be=_.from(be,$)),be}(B,F,M);F!==te&&(z=!0,M="buffer",F=te)}var Z=B.objectMode?1:F.length;B.length+=Z;var oe=B.length<B.highWaterMark;if(oe||(B.needDrain=!0),B.writing||B.corked){var he=B.lastBufferedRequest;B.lastBufferedRequest={chunk:F,encoding:M,isBuf:z,callback:k,next:null},he?he.next=B.lastBufferedRequest:B.bufferedRequest=B.lastBufferedRequest,B.bufferedRequestCount+=1}else j(H,B,!1,Z,F,M,k);return oe}(this,le,J,W,K,ne)),Q},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var W=this._writableState;W.corked&&(W.corked--,W.writing||W.corked||W.finished||W.bufferProcessing||!W.bufferedRequest||R(this,W))},T.prototype.setDefaultEncoding=function(W){if(typeof W=="string"&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(W,K,ne){ne(new Error("_write() is not implemented"))},T.prototype._writev=null,T.prototype.end=function(W,K,ne){var le=this._writableState;typeof W=="function"?(ne=W,W=null,K=null):typeof K=="function"&&(ne=K,K=null),W!=null&&this.write(W,K),le.corked&&(le.corked=1,this.uncork()),le.ending||le.finished||function(Q,J,H){J.ending=!0,G(Q,J),H&&(J.finished?o.nextTick(H):Q.once("finish",H)),J.ended=!0,Q.writable=!1}(this,le,ne)},Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),T.prototype.destroy=S.destroy,T.prototype._undestroy=S.undestroy,T.prototype._destroy=function(W,K){this.end(),K(W)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,a){e.exports=function o(l,f,c){function h(x,_){if(!f[x]){if(!l[x]){var w=typeof _dereq_=="function"&&_dereq_;if(!_&&w)return w(x,!0);if(m)return m(x,!0);var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}var O=f[x]={exports:{}};l[x][0].call(O.exports,function(C){return h(l[x][1][C]||C)},O,O.exports,o,l,f,c)}return f[x].exports}for(var m=typeof _dereq_=="function"&&_dereq_,g=0;g<c.length;g++)h(c[g]);return h}({1:[function(o,l,f){l.exports=function(c){var h=c._SomePromiseArray;function m(g){var x=new h(g),_=x.promise();return x.setHowMany(1),x.setUnwrap(),x.init(),_}c.any=function(g){return m(g)},c.prototype.any=function(){return m(this)}}},{}],2:[function(o,l,f){var c;try{throw new Error}catch(O){c=O}var h=o("./schedule"),m=o("./queue"),g=o("./util");function x(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new m(16),this._normalQueue=new m(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var O=this;this.drainQueues=function(){O._drainQueues()},this._schedule=h}function _(O,C,T){this._lateQueue.push(O,C,T),this._queueTick()}function w(O,C,T){this._normalQueue.push(O,C,T),this._queueTick()}function S(O){this._normalQueue._pushOne(O),this._queueTick()}x.prototype.setScheduler=function(O){var C=this._schedule;return this._schedule=O,this._customScheduler=!0,C},x.prototype.hasCustomScheduler=function(){return this._customScheduler},x.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},x.prototype.disableTrampolineIfNecessary=function(){g.hasDevTools&&(this._trampolineEnabled=!1)},x.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},x.prototype.fatalError=function(O,C){C?(r.stderr.write("Fatal "+(O instanceof Error?O.stack:O)+`
|
||
`),r.exit(2)):this.throwLater(O)},x.prototype.throwLater=function(O,C){if(arguments.length===1&&(C=O,O=function(){throw C}),typeof setTimeout<"u")setTimeout(function(){O(C)},0);else try{this._schedule(function(){O(C)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},g.hasDevTools?(x.prototype.invokeLater=function(O,C,T){this._trampolineEnabled?_.call(this,O,C,T):this._schedule(function(){setTimeout(function(){O.call(C,T)},100)})},x.prototype.invoke=function(O,C,T){this._trampolineEnabled?w.call(this,O,C,T):this._schedule(function(){O.call(C,T)})},x.prototype.settlePromises=function(O){this._trampolineEnabled?S.call(this,O):this._schedule(function(){O._settlePromises()})}):(x.prototype.invokeLater=_,x.prototype.invoke=w,x.prototype.settlePromises=S),x.prototype._drainQueue=function(O){for(;O.length()>0;){var C=O.shift();if(typeof C=="function"){var T=O.shift(),j=O.shift();C.call(T,j)}else C._settlePromises()}},x.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},x.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},x.prototype._reset=function(){this._isTickUsed=!1},l.exports=x,l.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(o,l,f){l.exports=function(c,h,m,g){var x=!1,_=function(C,T){this._reject(T)},w=function(C,T){T.promiseRejectionQueued=!0,T.bindingPromise._then(_,_,null,this,C)},S=function(C,T){(50397184&this._bitField)==0&&this._resolveCallback(T.target)},O=function(C,T){T.promiseRejectionQueued||this._reject(C)};c.prototype.bind=function(C){x||(x=!0,c.prototype._propagateFrom=g.propagateFromFunction(),c.prototype._boundValue=g.boundValueFunction());var T=m(C),j=new c(h);j._propagateFrom(this,1);var P=this._target();if(j._setBoundTo(T),T instanceof c){var R={promiseRejectionQueued:!1,promise:j,target:P,bindingPromise:T};P._then(h,w,void 0,j,R),T._then(S,O,void 0,j,R),j._setOnCancel(T)}else j._resolveCallback(P);return j},c.prototype._setBoundTo=function(C){C!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=C):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(C,T){return c.resolve(T).bind(C)}}},{}],4:[function(o,l,f){var c;typeof Promise<"u"&&(c=Promise);var h=o("./promise")();h.noConflict=function(){try{Promise===h&&(Promise=c)}catch{}return h},l.exports=h},{"./promise":22}],5:[function(o,l,f){var c=Object.create;if(c){var h=c(null),m=c(null);h[" size"]=m[" size"]=0}l.exports=function(g){var x=o("./util"),_=x.canEvaluate;function w(C){return function(T,j){var P;if(T!=null&&(P=T[j]),typeof P!="function"){var R="Object "+x.classString(T)+" has no method '"+x.toString(j)+"'";throw new g.TypeError(R)}return P}(C,this.pop()).apply(C,this)}function S(C){return C[this]}function O(C){var T=+this;return T<0&&(T=Math.max(0,T+C.length)),C[T]}x.isIdentifier,g.prototype.call=function(C){var T=[].slice.call(arguments,1);return T.push(C),this._then(w,void 0,void 0,T,void 0)},g.prototype.get=function(C){var T;if(typeof C=="number")T=O;else if(_){var j=(void 0)(C);T=j!==null?j:S}else T=S;return this._then(T,void 0,void 0,C,void 0)}}},{"./util":36}],6:[function(o,l,f){l.exports=function(c,h,m,g){var x=o("./util"),_=x.tryCatch,w=x.errorObj,S=c._async;c.prototype.break=c.prototype.cancel=function(){if(!g.cancellation())return this._warn("cancellation is disabled");for(var O=this,C=O;O._isCancellable();){if(!O._cancelBy(C)){C._isFollowing()?C._followee().cancel():C._cancelBranched();break}var T=O._cancellationParent;if(T==null||!T._isCancellable()){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}O._isFollowing()&&O._followee().cancel(),O._setWillBeCancelled(),C=O,O=T}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(O){return O===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),S.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(O,C){if(x.isArray(O))for(var T=0;T<O.length;++T)this._doInvokeOnCancel(O[T],C);else if(O!==void 0)if(typeof O=="function"){if(!C){var j=_(O).call(this._boundValue());j===w&&(this._attachExtraTrace(j.e),S.throwLater(j.e))}}else O._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var O=this._onCancel();this._unsetOnCancel(),S.invoke(this._doInvokeOnCancel,this,O)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(o,l,f){l.exports=function(c){var h=o("./util"),m=o("./es5").keys,g=h.tryCatch,x=h.errorObj;return function(_,w,S){return function(O){var C=S._boundValue();e:for(var T=0;T<_.length;++T){var j=_[T];if(j===Error||j!=null&&j.prototype instanceof Error){if(O instanceof j)return g(w).call(C,O)}else if(typeof j=="function"){var P=g(j).call(C,O);if(P===x)return P;if(P)return g(w).call(C,O)}else if(h.isObject(O)){for(var R=m(j),I=0;I<R.length;++I){var V=R[I];if(j[V]!=O[V])continue e}return g(w).call(C,O)}}return c}}}},{"./es5":13,"./util":36}],8:[function(o,l,f){l.exports=function(c){var h=!1,m=[];function g(){this._trace=new g.CapturedTrace(x())}function x(){var _=m.length-1;if(_>=0)return m[_]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},g.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,m.push(this._trace))},g.prototype._popContext=function(){if(this._trace!==void 0){var _=m.pop(),w=_._promiseCreated;return _._promiseCreated=null,w}return null},g.CapturedTrace=null,g.create=function(){if(h)return new g},g.deactivateLongStackTraces=function(){},g.activateLongStackTraces=function(){var _=c.prototype._pushContext,w=c.prototype._popContext,S=c._peekContext,O=c.prototype._peekContext,C=c.prototype._promiseCreated;g.deactivateLongStackTraces=function(){c.prototype._pushContext=_,c.prototype._popContext=w,c._peekContext=S,c.prototype._peekContext=O,c.prototype._promiseCreated=C,h=!1},h=!0,c.prototype._pushContext=g.prototype._pushContext,c.prototype._popContext=g.prototype._popContext,c._peekContext=c.prototype._peekContext=x,c.prototype._promiseCreated=function(){var T=this._peekContext();T&&T._promiseCreated==null&&(T._promiseCreated=this)}},g}},{}],9:[function(o,l,f){l.exports=function(c,h){var m,g,x,_=c._getDomain,w=c._async,S=o("./errors").Warning,O=o("./util"),C=O.canAttachTrace,T=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,j=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,R=null,I=null,V=!1,G=O.env("BLUEBIRD_DEBUG")!=0,W=!(O.env("BLUEBIRD_WARNINGS")==0||!G&&!O.env("BLUEBIRD_WARNINGS")),K=!(O.env("BLUEBIRD_LONG_STACK_TRACES")==0||!G&&!O.env("BLUEBIRD_LONG_STACK_TRACES")),ne=O.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(W||!!O.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var _e=this._target();_e._bitField=-1048577&_e._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if((524288&this._bitField)==0){this._setRejectionIsUnhandled();var _e=this;setTimeout(function(){_e._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){pe("rejectionHandled",m,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var _e=this._settledValue();this._setUnhandledRejectionIsNotified(),pe("unhandledRejection",g,_e,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(_e,Se,De){return ee(_e,Se,De||this)},c.onPossiblyUnhandledRejection=function(_e){var Se=_();g=typeof _e=="function"?Se===null?_e:O.domainBind(Se,_e):void 0},c.onUnhandledRejectionHandled=function(_e){var Se=_();m=typeof _e=="function"?Se===null?_e:O.domainBind(Se,_e):void 0};var le=function(){};c.longStackTraces=function(){if(w.haveItemsQueued()&&!Fe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!Fe.longStackTraces&&me()){var _e=c.prototype._captureStackTrace,Se=c.prototype._attachExtraTrace;Fe.longStackTraces=!0,le=function(){if(w.haveItemsQueued()&&!Fe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);c.prototype._captureStackTrace=_e,c.prototype._attachExtraTrace=Se,h.deactivateLongStackTraces(),w.enableTrampoline(),Fe.longStackTraces=!1},c.prototype._captureStackTrace=$,c.prototype._attachExtraTrace=q,h.activateLongStackTraces(),w.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Fe.longStackTraces&&me()};var Q=function(){try{if(typeof CustomEvent=="function"){var _e=new CustomEvent("CustomEvent");return O.global.dispatchEvent(_e),function(Se,De){var Me=new CustomEvent(Se.toLowerCase(),{detail:De,cancelable:!0});return!O.global.dispatchEvent(Me)}}return typeof Event=="function"?(_e=new Event("CustomEvent"),O.global.dispatchEvent(_e),function(Se,De){var Me=new Event(Se.toLowerCase(),{cancelable:!0});return Me.detail=De,!O.global.dispatchEvent(Me)}):((_e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),O.global.dispatchEvent(_e),function(Se,De){var Me=document.createEvent("CustomEvent");return Me.initCustomEvent(Se.toLowerCase(),!1,!0,De),!O.global.dispatchEvent(Me)})}catch{}return function(){return!1}}(),J=O.isNode?function(){return r.emit.apply(r,arguments)}:O.global?function(_e){var Se="on"+_e.toLowerCase(),De=O.global[Se];return!!De&&(De.apply(O.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function H(_e,Se){return{promise:Se}}var B={promiseCreated:H,promiseFulfilled:H,promiseRejected:H,promiseResolved:H,promiseCancelled:H,promiseChained:function(_e,Se,De){return{promise:Se,child:De}},warning:function(_e,Se){return{warning:Se}},unhandledRejection:function(_e,Se,De){return{reason:Se,promise:De}},rejectionHandled:H},z=function(_e){var Se=!1;try{Se=J.apply(null,arguments)}catch(Me){w.throwLater(Me),Se=!0}var De=!1;try{De=Q(_e,B[_e].apply(null,arguments))}catch(Me){w.throwLater(Me),De=!0}return De||Se};function F(){return!1}function M(_e,Se,De){var Me=this;try{_e(Se,De,function(je){if(typeof je!="function")throw new TypeError("onCancel must be a function, got: "+O.toString(je));Me._attachCancellationCallback(je)})}catch(je){return je}}function k(_e){if(!this._isCancellable())return this;var Se=this._onCancel();Se!==void 0?O.isArray(Se)?Se.push(_e):this._setOnCancel([Se,_e]):this._setOnCancel(_e)}function te(){return this._onCancelField}function Z(_e){this._onCancelField=_e}function oe(){this._cancellationParent=void 0,this._onCancelField=void 0}function he(_e,Se){if((1&Se)!=0){this._cancellationParent=_e;var De=_e._branchesRemainingToCancel;De===void 0&&(De=0),_e._branchesRemainingToCancel=De+1}(2&Se)!=0&&_e._isBound()&&this._setBoundTo(_e._boundTo)}c.config=function(_e){if("longStackTraces"in(_e=Object(_e))&&(_e.longStackTraces?c.longStackTraces():!_e.longStackTraces&&c.hasLongStackTraces()&&le()),"warnings"in _e){var Se=_e.warnings;Fe.warnings=!!Se,ne=Fe.warnings,O.isObject(Se)&&"wForgottenReturn"in Se&&(ne=!!Se.wForgottenReturn)}if("cancellation"in _e&&_e.cancellation&&!Fe.cancellation){if(w.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=oe,c.prototype._propagateFrom=he,c.prototype._onCancel=te,c.prototype._setOnCancel=Z,c.prototype._attachCancellationCallback=k,c.prototype._execute=M,de=he,Fe.cancellation=!0}return"monitoring"in _e&&(_e.monitoring&&!Fe.monitoring?(Fe.monitoring=!0,c.prototype._fireEvent=z):!_e.monitoring&&Fe.monitoring&&(Fe.monitoring=!1,c.prototype._fireEvent=F)),c},c.prototype._fireEvent=F,c.prototype._execute=function(_e,Se,De){try{_e(Se,De)}catch(Me){return Me}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(_e){},c.prototype._attachCancellationCallback=function(_e){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(_e,Se){};var de=function(_e,Se){(2&Se)!=0&&_e._isBound()&&this._setBoundTo(_e._boundTo)};function be(){var _e=this._boundTo;return _e!==void 0&&_e instanceof c?_e.isFulfilled()?_e.value():void 0:_e}function $(){this._trace=new ze(this._peekContext())}function q(_e,Se){if(C(_e)){var De=this._trace;if(De!==void 0&&Se&&(De=De._parent),De!==void 0)De.attachExtraTrace(_e);else if(!_e.__stackCleaned__){var Me=X(_e);O.notEnumerableProp(_e,"stack",Me.message+`
|
||
`+Me.stack.join(`
|
||
`)),O.notEnumerableProp(_e,"__stackCleaned__",!0)}}}function ee(_e,Se,De){if(Fe.warnings){var Me,je=new S(_e);if(Se)De._attachExtraTrace(je);else if(Fe.longStackTraces&&(Me=c._peekContext()))Me.attachExtraTrace(je);else{var qe=X(je);je.stack=qe.message+`
|
||
`+qe.stack.join(`
|
||
`)}z("warning",je)||ue(je,"",!0)}}function fe(_e){for(var Se=[],De=0;De<_e.length;++De){var Me=_e[De],je=Me===" (No stack trace)"||R.test(Me),qe=je&&we(Me);je&&!qe&&(V&&Me.charAt(0)!==" "&&(Me=" "+Me),Se.push(Me))}return Se}function X(_e){var Se=_e.stack,De=_e.toString();return Se=typeof Se=="string"&&Se.length>0?function(Me){for(var je=Me.stack.replace(/\s+$/g,"").split(`
|
||
`),qe=0;qe<je.length;++qe){var Ge=je[qe];if(Ge===" (No stack trace)"||R.test(Ge))break}return qe>0&&Me.name!="SyntaxError"&&(je=je.slice(qe)),je}(_e):[" (No stack trace)"],{message:De,stack:_e.name=="SyntaxError"?Se:fe(Se)}}function ue(_e,Se,De){if(typeof console<"u"){var Me;if(O.isObject(_e)){var je=_e.stack;Me=Se+I(je,_e)}else Me=Se+String(_e);typeof x=="function"?x(Me,De):typeof console.log!="function"&&typeof console.log!="object"||console.log(Me)}}function pe(_e,Se,De,Me){var je=!1;try{typeof Se=="function"&&(je=!0,_e==="rejectionHandled"?Se(Me):Se(De,Me))}catch(qe){w.throwLater(qe)}_e==="unhandledRejection"?z(_e,De,Me)||je||ue(De,"Unhandled rejection "):z(_e,Me)}function ye(_e){var Se;if(typeof _e=="function")Se="[function "+(_e.name||"anonymous")+"]";else{if(Se=_e&&typeof _e.toString=="function"?_e.toString():O.toString(_e),/\[object [a-zA-Z0-9$_]+\]/.test(Se))try{Se=JSON.stringify(_e)}catch{}Se.length===0&&(Se="(empty array)")}return"(<"+function(De){return De.length<41?De:De.substr(0,38)+"..."}(Se)+">, no stack trace)"}function me(){return typeof $e=="function"}var we=function(){return!1},Te=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Le(_e){var Se=_e.match(Te);if(Se)return{fileName:Se[1],line:parseInt(Se[2],10)}}function ze(_e){this._parent=_e,this._promisesCreated=0;var Se=this._length=1+(_e===void 0?0:_e._length);$e(this,ze),Se>32&&this.uncycle()}O.inherits(ze,Error),h.CapturedTrace=ze,ze.prototype.uncycle=function(){var _e=this._length;if(!(_e<2)){for(var Se=[],De={},Me=0,je=this;je!==void 0;++Me)Se.push(je),je=je._parent;for(Me=(_e=this._length=Me)-1;Me>=0;--Me){var qe=Se[Me].stack;De[qe]===void 0&&(De[qe]=Me)}for(Me=0;Me<_e;++Me){var Ge=De[Se[Me].stack];if(Ge!==void 0&&Ge!==Me){Ge>0&&(Se[Ge-1]._parent=void 0,Se[Ge-1]._length=1),Se[Me]._parent=void 0,Se[Me]._length=1;var Qe=Me>0?Se[Me-1]:this;Ge<_e-1?(Qe._parent=Se[Ge+1],Qe._parent.uncycle(),Qe._length=Qe._parent._length+1):(Qe._parent=void 0,Qe._length=1);for(var ct=Qe._length+1,ot=Me-2;ot>=0;--ot)Se[ot]._length=ct,ct++;return}}}},ze.prototype.attachExtraTrace=function(_e){if(!_e.__stackCleaned__){this.uncycle();for(var Se=X(_e),De=Se.message,Me=[Se.stack],je=this;je!==void 0;)Me.push(fe(je.stack.split(`
|
||
`))),je=je._parent;(function(qe){for(var Ge=qe[0],Qe=1;Qe<qe.length;++Qe){for(var ct=qe[Qe],ot=Ge.length-1,_t=Ge[ot],It=-1,Bt=ct.length-1;Bt>=0;--Bt)if(ct[Bt]===_t){It=Bt;break}for(Bt=It;Bt>=0;--Bt){var Ut=ct[Bt];if(Ge[ot]!==Ut)break;Ge.pop(),ot--}Ge=ct}})(Me),function(qe){for(var Ge=0;Ge<qe.length;++Ge)(qe[Ge].length===0||Ge+1<qe.length&&qe[Ge][0]===qe[Ge+1][0])&&(qe.splice(Ge,1),Ge--)}(Me),O.notEnumerableProp(_e,"stack",function(qe,Ge){for(var Qe=0;Qe<Ge.length-1;++Qe)Ge[Qe].push("From previous event:"),Ge[Qe]=Ge[Qe].join(`
|
||
`);return Qe<Ge.length&&(Ge[Qe]=Ge[Qe].join(`
|
||
`)),qe+`
|
||
`+Ge.join(`
|
||
`)}(De,Me)),O.notEnumerableProp(_e,"__stackCleaned__",!0)}};var $e=function(){var _e=/^\s*at\s*/,Se=function(qe,Ge){return typeof qe=="string"?qe:Ge.name!==void 0&&Ge.message!==void 0?Ge.toString():ye(Ge)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,R=_e,I=Se;var De=Error.captureStackTrace;return we=function(qe){return T.test(qe)},function(qe,Ge){Error.stackTraceLimit+=6,De(qe,Ge),Error.stackTraceLimit-=6}}var Me,je=new Error;if(typeof je.stack=="string"&&je.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return R=/@/,I=Se,V=!0,function(qe){qe.stack=new Error().stack};try{throw new Error}catch(qe){Me="stack"in qe}return"stack"in je||!Me||typeof Error.stackTraceLimit!="number"?(I=function(qe,Ge){return typeof qe=="string"?qe:typeof Ge!="object"&&typeof Ge!="function"||Ge.name===void 0||Ge.message===void 0?ye(Ge):Ge.toString()},null):(R=_e,I=Se,function(qe){Error.stackTraceLimit+=6;try{throw new Error}catch(Ge){qe.stack=Ge.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(x=function(_e){console.warn(_e)},O.isNode&&r.stderr.isTTY?x=function(_e,Se){var De=Se?"\x1B[33m":"\x1B[31m";console.warn(De+_e+`\x1B[0m
|
||
`)}:O.isNode||typeof new Error().stack!="string"||(x=function(_e,Se){console.warn("%c"+_e,Se?"color: darkorange":"color: red")}));var Fe={warnings:W,longStackTraces:!1,cancellation:!1,monitoring:!1};return K&&c.longStackTraces(),{longStackTraces:function(){return Fe.longStackTraces},warnings:function(){return Fe.warnings},cancellation:function(){return Fe.cancellation},monitoring:function(){return Fe.monitoring},propagateFromFunction:function(){return de},boundValueFunction:function(){return be},checkForgottenReturns:function(_e,Se,De,Me,je){if(_e===void 0&&Se!==null&&ne){if(je!==void 0&&je._returnedNonUndefined()||(65535&Me._bitField)==0)return;De&&(De+=" ");var qe="",Ge="";if(Se._trace){for(var Qe=Se._trace.stack.split(`
|
||
`),ct=fe(Qe),ot=ct.length-1;ot>=0;--ot){var _t=ct[ot];if(!j.test(_t)){var It=_t.match(P);It&&(qe="at "+It[1]+":"+It[2]+":"+It[3]+" ");break}}if(ct.length>0){var Bt=ct[0];for(ot=0;ot<Qe.length;++ot)if(Qe[ot]===Bt){ot>0&&(Ge=`
|
||
`+Qe[ot-1]);break}}}var Ut="a promise was created in a "+De+"handler "+qe+"but was not returned from it, see http://goo.gl/rRqMUw"+Ge;Me._warn(Ut,!0,Se)}},setBounds:function(_e,Se){if(me()){for(var De,Me,je=_e.stack.split(`
|
||
`),qe=Se.stack.split(`
|
||
`),Ge=-1,Qe=-1,ct=0;ct<je.length;++ct)if(ot=Le(je[ct])){De=ot.fileName,Ge=ot.line;break}for(ct=0;ct<qe.length;++ct){var ot;if(ot=Le(qe[ct])){Me=ot.fileName,Qe=ot.line;break}}Ge<0||Qe<0||!De||!Me||De!==Me||Ge>=Qe||(we=function(_t){if(T.test(_t))return!0;var It=Le(_t);return!!(It&&It.fileName===De&&Ge<=It.line&&It.line<=Qe)})}},warn:ee,deprecated:function(_e,Se){var De=_e+" is deprecated and will be removed in a future version.";return Se&&(De+=" Use "+Se+" instead."),ee(De)},CapturedTrace:ze,fireDomEvent:Q,fireGlobalEvent:J}}},{"./errors":12,"./util":36}],10:[function(o,l,f){l.exports=function(c){function h(){return this.value}function m(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(g){return g instanceof c&&g.suppressUnhandledRejections(),this._then(h,void 0,void 0,{value:g},void 0)},c.prototype.throw=c.prototype.thenThrow=function(g){return this._then(m,void 0,void 0,{reason:g},void 0)},c.prototype.catchThrow=function(g){if(arguments.length<=1)return this._then(void 0,m,void 0,{reason:g},void 0);var x=arguments[1];return this.caught(g,function(){throw x})},c.prototype.catchReturn=function(g){if(arguments.length<=1)return g instanceof c&&g.suppressUnhandledRejections(),this._then(void 0,h,void 0,{value:g},void 0);var x=arguments[1];return x instanceof c&&x.suppressUnhandledRejections(),this.caught(g,function(){return x})}}},{}],11:[function(o,l,f){l.exports=function(c,h){var m=c.reduce,g=c.all;function x(){return g(this)}c.prototype.each=function(_){return m(this,_,h,0)._then(x,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(_){return m(this,_,h,h)},c.each=function(_,w){return m(_,w,h,0)._then(x,void 0,void 0,_,void 0)},c.mapSeries=function(_,w){return m(_,w,h,h)}}},{}],12:[function(o,l,f){var c,h,m=o("./es5"),g=m.freeze,x=o("./util"),_=x.inherits,w=x.notEnumerableProp;function S(W,K){function ne(le){if(!(this instanceof ne))return new ne(le);w(this,"message",typeof le=="string"?le:K),w(this,"name",W),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return _(ne,Error),ne}var O=S("Warning","warning"),C=S("CancellationError","cancellation error"),T=S("TimeoutError","timeout error"),j=S("AggregateError","aggregate error");try{c=TypeError,h=RangeError}catch{c=S("TypeError","type error"),h=S("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),R=0;R<P.length;++R)typeof Array.prototype[P[R]]=="function"&&(j.prototype[P[R]]=Array.prototype[P[R]]);m.defineProperty(j.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),j.prototype.isOperational=!0;var I=0;function V(W){if(!(this instanceof V))return new V(W);w(this,"name","OperationalError"),w(this,"message",W),this.cause=W,this.isOperational=!0,W instanceof Error?(w(this,"message",W.message),w(this,"stack",W.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}j.prototype.toString=function(){var W=Array(4*I+1).join(" "),K=`
|
||
`+W+`AggregateError of:
|
||
`;I++,W=Array(4*I+1).join(" ");for(var ne=0;ne<this.length;++ne){for(var le=this[ne]===this?"[Circular AggregateError]":this[ne]+"",Q=le.split(`
|
||
`),J=0;J<Q.length;++J)Q[J]=W+Q[J];K+=(le=Q.join(`
|
||
`))+`
|
||
`}return I--,K},_(V,Error);var G=Error.__BluebirdErrorTypes__;G||(G=g({CancellationError:C,TimeoutError:T,OperationalError:V,RejectionError:V,AggregateError:j}),m.defineProperty(Error,"__BluebirdErrorTypes__",{value:G,writable:!1,enumerable:!1,configurable:!1})),l.exports={Error,TypeError:c,RangeError:h,CancellationError:G.CancellationError,OperationalError:G.OperationalError,TimeoutError:G.TimeoutError,AggregateError:G.AggregateError,Warning:O}},{"./es5":13,"./util":36}],13:[function(o,l,f){var c=function(){return this===void 0}();if(c)l.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:c,propertyIsWritable:function(_,w){var S=Object.getOwnPropertyDescriptor(_,w);return!(S&&!S.writable&&!S.set)}};else{var h={}.hasOwnProperty,m={}.toString,g={}.constructor.prototype,x=function(_){var w=[];for(var S in _)h.call(_,S)&&w.push(S);return w};l.exports={isArray:function(_){try{return m.call(_)==="[object Array]"}catch{return!1}},keys:x,names:x,defineProperty:function(_,w,S){return _[w]=S.value,_},getDescriptor:function(_,w){return{value:_[w]}},freeze:function(_){return _},getPrototypeOf:function(_){try{return Object(_).constructor.prototype}catch{return g}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(o,l,f){l.exports=function(c,h){var m=c.map;c.prototype.filter=function(g,x){return m(this,g,x,h)},c.filter=function(g,x,_){return m(g,x,_,h)}}},{}],15:[function(o,l,f){l.exports=function(c,h,m){var g=o("./util"),x=c.CancellationError,_=g.errorObj,w=o("./catch_filter")(m);function S(R,I,V){this.promise=R,this.type=I,this.handler=V,this.called=!1,this.cancelPromise=null}function O(R){this.finallyHandler=R}function C(R,I){return R.cancelPromise!=null&&(arguments.length>1?R.cancelPromise._reject(I):R.cancelPromise._cancel(),R.cancelPromise=null,!0)}function T(){return P.call(this,this.promise._target()._settledValue())}function j(R){if(!C(this,R))return _.e=R,_}function P(R){var I=this.promise,V=this.handler;if(!this.called){this.called=!0;var G=this.isFinallyHandler()?V.call(I._boundValue()):V.call(I._boundValue(),R);if(G===m)return G;if(G!==void 0){I._setReturnedNonUndefined();var W=h(G,I);if(W instanceof c){if(this.cancelPromise!=null){if(W._isCancelled()){var K=new x("late cancellation observer");return I._attachExtraTrace(K),_.e=K,_}W.isPending()&&W._attachCancellationCallback(new O(this))}return W._then(T,j,void 0,this,void 0)}}}return I.isRejected()?(C(this),_.e=R,_):(C(this),R)}return S.prototype.isFinallyHandler=function(){return this.type===0},O.prototype._resultCancelled=function(){C(this.finallyHandler)},c.prototype._passThrough=function(R,I,V,G){return typeof R!="function"?this.then():this._then(V,G,void 0,new S(this,I,R),void 0)},c.prototype.lastly=c.prototype.finally=function(R){return this._passThrough(R,0,P,P)},c.prototype.tap=function(R){return this._passThrough(R,1,P)},c.prototype.tapCatch=function(R){var I=arguments.length;if(I===1)return this._passThrough(R,1,void 0,P);var V,G=new Array(I-1),W=0;for(V=0;V<I-1;++V){var K=arguments[V];if(!g.isObject(K))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+g.classString(K)));G[W++]=K}G.length=W;var ne=arguments[V];return this._passThrough(w(G,ne,this),1,void 0,P)},S}},{"./catch_filter":7,"./util":36}],16:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=o("./errors").TypeError,S=o("./util"),O=S.errorObj,C=S.tryCatch,T=[];function j(P,R,I,V){if(_.cancellation()){var G=new c(m),W=this._finallyPromise=new c(m);this._promise=G.lastly(function(){return W}),G._captureStackTrace(),G._setOnCancel(this)}else(this._promise=new c(m))._captureStackTrace();this._stack=V,this._generatorFunction=P,this._receiver=R,this._generator=void 0,this._yieldHandlers=typeof I=="function"?[I].concat(T):T,this._yieldedPromise=null,this._cancellationPhase=!1}S.inherits(j,x),j.prototype._isResolved=function(){return this._promise===null},j.prototype._cleanup=function(){this._promise=this._generator=null,_.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},j.prototype._promiseCancelled=function(){if(!this._isResolved()){var P;if(this._generator.return!==void 0)this._promise._pushContext(),P=C(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var R=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=R,this._promise._attachExtraTrace(R),this._promise._pushContext(),P=C(this._generator.throw).call(this._generator,R),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(P)}},j.prototype._promiseFulfilled=function(P){this._yieldedPromise=null,this._promise._pushContext();var R=C(this._generator.next).call(this._generator,P);this._promise._popContext(),this._continue(R)},j.prototype._promiseRejected=function(P){this._yieldedPromise=null,this._promise._attachExtraTrace(P),this._promise._pushContext();var R=C(this._generator.throw).call(this._generator,P);this._promise._popContext(),this._continue(R)},j.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var P=this._yieldedPromise;this._yieldedPromise=null,P.cancel()}},j.prototype.promise=function(){return this._promise},j.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},j.prototype._continue=function(P){var R=this._promise;if(P===O)return this._cleanup(),this._cancellationPhase?R.cancel():R._rejectCallback(P.e,!1);var I=P.value;if(P.done===!0)return this._cleanup(),this._cancellationPhase?R.cancel():R._resolveCallback(I);var V=g(I,this._promise);if(V instanceof c||(V=function(W,K,ne){for(var le=0;le<K.length;++le){ne._pushContext();var Q=C(K[le])(W);if(ne._popContext(),Q===O){ne._pushContext();var J=c.reject(O.e);return ne._popContext(),J}var H=g(Q,ne);if(H instanceof c)return H}return null}(V,this._yieldHandlers,this._promise))!==null){var G=(V=V._target())._bitField;(50397184&G)==0?(this._yieldedPromise=V,V._proxy(this,null)):(33554432&G)!=0?c._async.invoke(this._promiseFulfilled,this,V._value()):(16777216&G)!=0?c._async.invoke(this._promiseRejected,this,V._reason()):this._promiseCancelled()}else this._promiseRejected(new w(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(I))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},c.coroutine=function(P,R){if(typeof P!="function")throw new w(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var I=Object(R).yieldHandler,V=j,G=new Error().stack;return function(){var W=P.apply(this,arguments),K=new V(void 0,void 0,I,G),ne=K.promise();return K._generator=W,K._promiseFulfilled(void 0),ne}},c.coroutine.addYieldHandler=function(P){if(typeof P!="function")throw new w("expecting a function but got "+S.classString(P));T.push(P)},c.spawn=function(P){if(_.deprecated("Promise.spawn()","Promise.coroutine()"),typeof P!="function")return h(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var R=new j(P,this),I=R.promise();return R._run(c.spawn),I}}},{"./errors":12,"./util":36}],17:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=o("./util");w.canEvaluate,w.tryCatch,w.errorObj,c.join=function(){var S,O=arguments.length-1;O>0&&typeof arguments[O]=="function"&&(S=arguments[O]);var C=[].slice.call(arguments);S&&C.pop();var T=new h(C).promise();return S!==void 0?T.spread(S):T}}},{"./util":36}],18:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=c._getDomain,S=o("./util"),O=S.tryCatch,C=S.errorObj,T=c._async;function j(R,I,V,G){this.constructor$(R),this._promise._captureStackTrace();var W=w();this._callback=W===null?I:S.domainBind(W,I),this._preservedValues=G===x?new Array(this.length()):null,this._limit=V,this._inFlight=0,this._queue=[],T.invoke(this._asyncInit,this,void 0)}function P(R,I,V,G){if(typeof I!="function")return m("expecting a function but got "+S.classString(I));var W=0;if(V!==void 0){if(typeof V!="object"||V===null)return c.reject(new TypeError("options argument must be an object but it is "+S.classString(V)));if(typeof V.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+S.classString(V.concurrency)));W=V.concurrency}return new j(R,I,W=typeof W=="number"&&isFinite(W)&&W>=1?W:0,G).promise()}S.inherits(j,h),j.prototype._asyncInit=function(){this._init$(void 0,-2)},j.prototype._init=function(){},j.prototype._promiseFulfilled=function(R,I){var V=this._values,G=this.length(),W=this._preservedValues,K=this._limit;if(I<0){if(V[I=-1*I-1]=R,K>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(K>=1&&this._inFlight>=K)return V[I]=R,this._queue.push(I),!1;W!==null&&(W[I]=R);var ne=this._promise,le=this._callback,Q=ne._boundValue();ne._pushContext();var J=O(le).call(Q,R,I,G),H=ne._popContext();if(_.checkForgottenReturns(J,H,W!==null?"Promise.filter":"Promise.map",ne),J===C)return this._reject(J.e),!0;var B=g(J,this._promise);if(B instanceof c){var z=(B=B._target())._bitField;if((50397184&z)==0)return K>=1&&this._inFlight++,V[I]=B,B._proxy(this,-1*(I+1)),!1;if((33554432&z)==0)return(16777216&z)!=0?(this._reject(B._reason()),!0):(this._cancel(),!0);J=B._value()}V[I]=J}return++this._totalResolved>=G&&(W!==null?this._filter(V,W):this._resolve(V),!0)},j.prototype._drainQueue=function(){for(var R=this._queue,I=this._limit,V=this._values;R.length>0&&this._inFlight<I;){if(this._isResolved())return;var G=R.pop();this._promiseFulfilled(V[G],G)}},j.prototype._filter=function(R,I){for(var V=I.length,G=new Array(V),W=0,K=0;K<V;++K)R[K]&&(G[W++]=I[K]);G.length=W,this._resolve(G)},j.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(R,I){return P(this,R,I,null)},c.map=function(R,I,V,G){return P(R,I,V,G)}}},{"./util":36}],19:[function(o,l,f){l.exports=function(c,h,m,g,x){var _=o("./util"),w=_.tryCatch;c.method=function(S){if(typeof S!="function")throw new c.TypeError("expecting a function but got "+_.classString(S));return function(){var O=new c(h);O._captureStackTrace(),O._pushContext();var C=w(S).apply(this,arguments),T=O._popContext();return x.checkForgottenReturns(C,T,"Promise.method",O),O._resolveFromSyncValue(C),O}},c.attempt=c.try=function(S){if(typeof S!="function")return g("expecting a function but got "+_.classString(S));var O,C=new c(h);if(C._captureStackTrace(),C._pushContext(),arguments.length>1){x.deprecated("calling Promise.try with more than 1 argument");var T=arguments[1],j=arguments[2];O=_.isArray(T)?w(S).apply(j,T):w(S).call(j,T)}else O=w(S)();var P=C._popContext();return x.checkForgottenReturns(O,P,"Promise.try",C),C._resolveFromSyncValue(O),C},c.prototype._resolveFromSyncValue=function(S){S===_.errorObj?this._rejectCallback(S.e,!1):this._resolveCallback(S,!0)}}},{"./util":36}],20:[function(o,l,f){var c=o("./util"),h=c.maybeWrapAsError,m=o("./errors").OperationalError,g=o("./es5"),x=/^(?:name|message|stack|cause)$/;function _(w){var S;if(function(j){return j instanceof Error&&g.getPrototypeOf(j)===Error.prototype}(w)){(S=new m(w)).name=w.name,S.message=w.message,S.stack=w.stack;for(var O=g.keys(w),C=0;C<O.length;++C){var T=O[C];x.test(T)||(S[T]=w[T])}return S}return c.markAsOriginatingFromRejection(w),w}l.exports=function(w,S){return function(O,C){if(w!==null){if(O){var T=_(h(O));w._attachExtraTrace(T),w._reject(T)}else if(S){var j=[].slice.call(arguments,1);w._fulfill(j)}else w._fulfill(C);w=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(o,l,f){l.exports=function(c){var h=o("./util"),m=c._async,g=h.tryCatch,x=h.errorObj;function _(O,C){if(!h.isArray(O))return w.call(this,O,C);var T=g(C).apply(this._boundValue(),[null].concat(O));T===x&&m.throwLater(T.e)}function w(O,C){var T=this._boundValue(),j=O===void 0?g(C).call(T,null):g(C).call(T,null,O);j===x&&m.throwLater(j.e)}function S(O,C){if(!O){var T=new Error(O+"");T.cause=O,O=T}var j=g(C).call(this._boundValue(),O);j===x&&m.throwLater(j.e)}c.prototype.asCallback=c.prototype.nodeify=function(O,C){if(typeof O=="function"){var T=w;C!==void 0&&Object(C).spread&&(T=_),this._then(T,S,void 0,this,O)}return this}}},{"./util":36}],22:[function(o,l,f){l.exports=function(){var c=function(){return new j(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},h=function(){return new F.PromiseInspection(this._target())},m=function(Z){return F.reject(new j(Z))};function g(){}var x,_={},w=o("./util");x=w.isNode?function(){var Z=r.domain;return Z===void 0&&(Z=null),Z}:function(){return null},w.notEnumerableProp(F,"_getDomain",x);var S=o("./es5"),O=o("./async"),C=new O;S.defineProperty(F,"_async",{value:C});var T=o("./errors"),j=F.TypeError=T.TypeError;F.RangeError=T.RangeError;var P=F.CancellationError=T.CancellationError;F.TimeoutError=T.TimeoutError,F.OperationalError=T.OperationalError,F.RejectionError=T.OperationalError,F.AggregateError=T.AggregateError;var R=function(){},I={},V={},G=o("./thenables")(F,R),W=o("./promise_array")(F,R,G,m,g),K=o("./context")(F),ne=K.create,le=o("./debuggability")(F,K),Q=(le.CapturedTrace,o("./finally")(F,G,V)),J=o("./catch_filter")(V),H=o("./nodeback"),B=w.errorObj,z=w.tryCatch;function F(Z){Z!==R&&function(oe,he){if(oe==null||oe.constructor!==F)throw new j(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof he!="function")throw new j("expecting a function but got "+w.classString(he))}(this,Z),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(Z),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function M(Z){this.promise._resolveCallback(Z)}function k(Z){this.promise._rejectCallback(Z,!1)}function te(Z){var oe=new F(R);oe._fulfillmentHandler0=Z,oe._rejectionHandler0=Z,oe._promise0=Z,oe._receiver0=Z}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(Z){var oe=arguments.length;if(oe>1){var he,de=new Array(oe-1),be=0;for(he=0;he<oe-1;++he){var $=arguments[he];if(!w.isObject($))return m("Catch statement predicate: expecting an object but got "+w.classString($));de[be++]=$}return de.length=be,Z=arguments[he],this.then(void 0,J(de,Z,this))}return this.then(void 0,Z)},F.prototype.reflect=function(){return this._then(h,h,void 0,this,void 0)},F.prototype.then=function(Z,oe){if(le.warnings()&&arguments.length>0&&typeof Z!="function"&&typeof oe!="function"){var he=".then() only accepts functions but was passed: "+w.classString(Z);arguments.length>1&&(he+=", "+w.classString(oe)),this._warn(he)}return this._then(Z,oe,void 0,void 0,void 0)},F.prototype.done=function(Z,oe){this._then(Z,oe,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(Z){return typeof Z!="function"?m("expecting a function but got "+w.classString(Z)):this.all()._then(Z,void 0,void 0,I,void 0)},F.prototype.toJSON=function(){var Z={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(Z.fulfillmentValue=this.value(),Z.isFulfilled=!0):this.isRejected()&&(Z.rejectionReason=this.reason(),Z.isRejected=!0),Z},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new W(this).promise()},F.prototype.error=function(Z){return this.caught(w.originatesFromRejection,Z)},F.getNewLibraryCopy=l.exports,F.is=function(Z){return Z instanceof F},F.fromNode=F.fromCallback=function(Z){var oe=new F(R);oe._captureStackTrace();var he=arguments.length>1&&!!Object(arguments[1]).multiArgs,de=z(Z)(H(oe,he));return de===B&&oe._rejectCallback(de.e,!0),oe._isFateSealed()||oe._setAsyncGuaranteed(),oe},F.all=function(Z){return new W(Z).promise()},F.cast=function(Z){var oe=G(Z);return oe instanceof F||((oe=new F(R))._captureStackTrace(),oe._setFulfilled(),oe._rejectionHandler0=Z),oe},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(Z){var oe=new F(R);return oe._captureStackTrace(),oe._rejectCallback(Z,!0),oe},F.setScheduler=function(Z){if(typeof Z!="function")throw new j("expecting a function but got "+w.classString(Z));return C.setScheduler(Z)},F.prototype._then=function(Z,oe,he,de,be){var $=be!==void 0,q=$?be:new F(R),ee=this._target(),fe=ee._bitField;$||(q._propagateFrom(this,3),q._captureStackTrace(),de===void 0&&(2097152&this._bitField)!=0&&(de=(50397184&fe)!=0?this._boundValue():ee===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,q));var X=x();if((50397184&fe)!=0){var ue,pe,ye=ee._settlePromiseCtx;(33554432&fe)!=0?(pe=ee._rejectionHandler0,ue=Z):(16777216&fe)!=0?(pe=ee._fulfillmentHandler0,ue=oe,ee._unsetRejectionIsUnhandled()):(ye=ee._settlePromiseLateCancellationObserver,pe=new P("late cancellation observer"),ee._attachExtraTrace(pe),ue=oe),C.invoke(ye,ee,{handler:X===null?ue:typeof ue=="function"&&w.domainBind(X,ue),promise:q,receiver:de,value:pe})}else ee._addCallbacks(Z,oe,q,de,X);return q},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},F.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},F.prototype._setLength=function(Z){this._bitField=-65536&this._bitField|65535&Z},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){C.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(Z){var oe=Z===0?this._receiver0:this[4*Z-4+3];if(oe!==_)return oe===void 0&&this._isBound()?this._boundValue():oe},F.prototype._promiseAt=function(Z){return this[4*Z-4+2]},F.prototype._fulfillmentHandlerAt=function(Z){return this[4*Z-4+0]},F.prototype._rejectionHandlerAt=function(Z){return this[4*Z-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(Z){Z._bitField;var oe=Z._fulfillmentHandler0,he=Z._rejectionHandler0,de=Z._promise0,be=Z._receiverAt(0);be===void 0&&(be=_),this._addCallbacks(oe,he,de,be,null)},F.prototype._migrateCallbackAt=function(Z,oe){var he=Z._fulfillmentHandlerAt(oe),de=Z._rejectionHandlerAt(oe),be=Z._promiseAt(oe),$=Z._receiverAt(oe);$===void 0&&($=_),this._addCallbacks(he,de,be,$,null)},F.prototype._addCallbacks=function(Z,oe,he,de,be){var $=this._length();if($>=65531&&($=0,this._setLength(0)),$===0)this._promise0=he,this._receiver0=de,typeof Z=="function"&&(this._fulfillmentHandler0=be===null?Z:w.domainBind(be,Z)),typeof oe=="function"&&(this._rejectionHandler0=be===null?oe:w.domainBind(be,oe));else{var q=4*$-4;this[q+2]=he,this[q+3]=de,typeof Z=="function"&&(this[q+0]=be===null?Z:w.domainBind(be,Z)),typeof oe=="function"&&(this[q+1]=be===null?oe:w.domainBind(be,oe))}return this._setLength($+1),$},F.prototype._proxy=function(Z,oe){this._addCallbacks(void 0,void 0,oe,Z,null)},F.prototype._resolveCallback=function(Z,oe){if((117506048&this._bitField)==0){if(Z===this)return this._rejectCallback(c(),!1);var he=G(Z,this);if(!(he instanceof F))return this._fulfill(Z);oe&&this._propagateFrom(he,2);var de=he._target();if(de!==this){var be=de._bitField;if((50397184&be)==0){var $=this._length();$>0&&de._migrateCallback0(this);for(var q=1;q<$;++q)de._migrateCallbackAt(this,q);this._setFollowing(),this._setLength(0),this._setFollowee(de)}else if((33554432&be)!=0)this._fulfill(de._value());else if((16777216&be)!=0)this._reject(de._reason());else{var ee=new P("late cancellation observer");de._attachExtraTrace(ee),this._reject(ee)}}else this._reject(c())}},F.prototype._rejectCallback=function(Z,oe,he){var de=w.ensureErrorObject(Z),be=de===Z;if(!be&&!he&&le.warnings()){var $="a promise was rejected with a non-error: "+w.classString(Z);this._warn($,!0)}this._attachExtraTrace(de,!!oe&&be),this._reject(Z)},F.prototype._resolveFromExecutor=function(Z){if(Z!==R){var oe=this;this._captureStackTrace(),this._pushContext();var he=!0,de=this._execute(Z,function(be){oe._resolveCallback(be)},function(be){oe._rejectCallback(be,he)});he=!1,this._popContext(),de!==void 0&&oe._rejectCallback(de,!0)}},F.prototype._settlePromiseFromHandler=function(Z,oe,he,de){var be=de._bitField;if((65536&be)==0){var $;de._pushContext(),oe===I?he&&typeof he.length=="number"?$=z(Z).apply(this._boundValue(),he):($=B).e=new j("cannot .spread() a non-array: "+w.classString(he)):$=z(Z).call(oe,he);var q=de._popContext();(65536&(be=de._bitField))==0&&($===V?de._reject(he):$===B?de._rejectCallback($.e,!1):(le.checkForgottenReturns($,q,"",de,this),de._resolveCallback($)))}},F.prototype._target=function(){for(var Z=this;Z._isFollowing();)Z=Z._followee();return Z},F.prototype._followee=function(){return this._rejectionHandler0},F.prototype._setFollowee=function(Z){this._rejectionHandler0=Z},F.prototype._settlePromise=function(Z,oe,he,de){var be=Z instanceof F,$=this._bitField,q=(134217728&$)!=0;(65536&$)!=0?(be&&Z._invokeInternalOnCancel(),he instanceof Q&&he.isFinallyHandler()?(he.cancelPromise=Z,z(oe).call(he,de)===B&&Z._reject(B.e)):oe===h?Z._fulfill(h.call(he)):he instanceof g?he._promiseCancelled(Z):be||Z instanceof W?Z._cancel():he.cancel()):typeof oe=="function"?be?(q&&Z._setAsyncGuaranteed(),this._settlePromiseFromHandler(oe,he,de,Z)):oe.call(he,de,Z):he instanceof g?he._isResolved()||((33554432&$)!=0?he._promiseFulfilled(de,Z):he._promiseRejected(de,Z)):be&&(q&&Z._setAsyncGuaranteed(),(33554432&$)!=0?Z._fulfill(de):Z._reject(de))},F.prototype._settlePromiseLateCancellationObserver=function(Z){var oe=Z.handler,he=Z.promise,de=Z.receiver,be=Z.value;typeof oe=="function"?he instanceof F?this._settlePromiseFromHandler(oe,de,be,he):oe.call(de,be,he):he instanceof F&&he._reject(be)},F.prototype._settlePromiseCtx=function(Z){this._settlePromise(Z.promise,Z.handler,Z.receiver,Z.value)},F.prototype._settlePromise0=function(Z,oe,he){var de=this._promise0,be=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(de,Z,be,oe)},F.prototype._clearCallbackDataAtIndex=function(Z){var oe=4*Z-4;this[oe+2]=this[oe+3]=this[oe+0]=this[oe+1]=void 0},F.prototype._fulfill=function(Z){var oe=this._bitField;if(!((117506048&oe)>>>16)){if(Z===this){var he=c();return this._attachExtraTrace(he),this._reject(he)}this._setFulfilled(),this._rejectionHandler0=Z,(65535&oe)>0&&((134217728&oe)!=0?this._settlePromises():C.settlePromises(this))}},F.prototype._reject=function(Z){var oe=this._bitField;if(!((117506048&oe)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=Z,this._isFinal())return C.fatalError(Z,w.isNode);(65535&oe)>0?C.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(Z,oe){for(var he=1;he<Z;he++){var de=this._fulfillmentHandlerAt(he),be=this._promiseAt(he),$=this._receiverAt(he);this._clearCallbackDataAtIndex(he),this._settlePromise(be,de,$,oe)}},F.prototype._rejectPromises=function(Z,oe){for(var he=1;he<Z;he++){var de=this._rejectionHandlerAt(he),be=this._promiseAt(he),$=this._receiverAt(he);this._clearCallbackDataAtIndex(he),this._settlePromise(be,de,$,oe)}},F.prototype._settlePromises=function(){var Z=this._bitField,oe=65535&Z;if(oe>0){if((16842752&Z)!=0){var he=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,he,Z),this._rejectPromises(oe,he)}else{var de=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,de,Z),this._fulfillPromises(oe,de)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var Z=this._bitField;return(33554432&Z)!=0?this._rejectionHandler0:(16777216&Z)!=0?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return le.deprecated("Promise.defer","new Promise"),{promise:new F(R),resolve:M,reject:k}},w.notEnumerableProp(F,"_makeSelfResolutionError",c),o("./method")(F,R,G,m,le),o("./bind")(F,R,G,le),o("./cancel")(F,W,m,le),o("./direct_resolve")(F),o("./synchronous_inspection")(F),o("./join")(F,W,G,R,C,x),F.Promise=F,F.version="3.5.1",o("./map.js")(F,W,m,G,R,le),o("./call_get.js")(F),o("./using.js")(F,m,G,ne,R,le),o("./timers.js")(F,R,le),o("./generators.js")(F,m,R,G,g,le),o("./nodeify.js")(F),o("./promisify.js")(F,R),o("./props.js")(F,W,G,m),o("./race.js")(F,R,G,m),o("./reduce.js")(F,W,m,G,R,le),o("./settle.js")(F,W,le),o("./some.js")(F,W,m),o("./filter.js")(F,R),o("./each.js")(F,R),o("./any.js")(F),w.toFastProperties(F),w.toFastProperties(F.prototype),te({a:1}),te({b:2}),te({c:3}),te(1),te(function(){}),te(void 0),te(!1),te(new F(R)),le.setBounds(O.firstLineError,w.lastLineError),F}},{"./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(o,l,f){l.exports=function(c,h,m,g,x){var _=o("./util");function w(S){var O=this._promise=new c(h);S instanceof c&&O._propagateFrom(S,3),O._setOnCancel(this),this._values=S,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return _.isArray,_.inherits(w,x),w.prototype.length=function(){return this._length},w.prototype.promise=function(){return this._promise},w.prototype._init=function S(O,C){var T=m(this._values,this._promise);if(T instanceof c){var j=(T=T._target())._bitField;if(this._values=T,(50397184&j)==0)return this._promise._setAsyncGuaranteed(),T._then(S,this._reject,void 0,this,C);if((33554432&j)==0)return(16777216&j)!=0?this._reject(T._reason()):this._cancel();T=T._value()}if((T=_.asArray(T))!==null)T.length!==0?this._iterate(T):C===-5?this._resolveEmptyArray():this._resolve(function(R){switch(C){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=g("expecting an array or an iterable object but got "+_.classString(T)).reason();this._promise._rejectCallback(P,!1)}},w.prototype._iterate=function(S){var O=this.getActualLength(S.length);this._length=O,this._values=this.shouldCopyValues()?new Array(O):this._values;for(var C=this._promise,T=!1,j=null,P=0;P<O;++P){var R=m(S[P],C);j=R instanceof c?(R=R._target())._bitField:null,T?j!==null&&R.suppressUnhandledRejections():j!==null?(50397184&j)==0?(R._proxy(this,P),this._values[P]=R):T=(33554432&j)!=0?this._promiseFulfilled(R._value(),P):(16777216&j)!=0?this._promiseRejected(R._reason(),P):this._promiseCancelled(P):T=this._promiseFulfilled(R,P)}T||C._setAsyncGuaranteed()},w.prototype._isResolved=function(){return this._values===null},w.prototype._resolve=function(S){this._values=null,this._promise._fulfill(S)},w.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},w.prototype._reject=function(S){this._values=null,this._promise._rejectCallback(S,!1)},w.prototype._promiseFulfilled=function(S,O){return this._values[O]=S,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},w.prototype._promiseCancelled=function(){return this._cancel(),!0},w.prototype._promiseRejected=function(S){return this._totalResolved++,this._reject(S),!0},w.prototype._resultCancelled=function(){if(!this._isResolved()){var S=this._values;if(this._cancel(),S instanceof c)S.cancel();else for(var O=0;O<S.length;++O)S[O]instanceof c&&S[O].cancel()}},w.prototype.shouldCopyValues=function(){return!0},w.prototype.getActualLength=function(S){return S},w}},{"./util":36}],24:[function(o,l,f){l.exports=function(c,h){var m={},g=o("./util"),x=o("./nodeback"),_=g.withAppended,w=g.maybeWrapAsError,S=g.canEvaluate,O=o("./errors").TypeError,C={__isPromisified__:!0},T=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),j=function(ne){return g.isIdentifier(ne)&&ne.charAt(0)!=="_"&&ne!=="constructor"};function P(ne){return!T.test(ne)}function R(ne){try{return ne.__isPromisified__===!0}catch{return!1}}function I(ne,le,Q){var J=g.getDataPropertyOrDefault(ne,le+Q,C);return!!J&&R(J)}function V(ne,le,Q,J){for(var H=g.inheritedDataKeys(ne),B=[],z=0;z<H.length;++z){var F=H[z],M=ne[F],k=J===j||j(F);typeof M!="function"||R(M)||I(ne,F,le)||!J(F,M,ne,k)||B.push(F,M)}return function(te,Z,oe){for(var he=0;he<te.length;he+=2){var de=te[he];if(oe.test(de)){for(var be=de.replace(oe,""),$=0;$<te.length;$+=2)if(te[$]===be)throw new O(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",Z))}}}(B,le,Q),B}var G=function(ne){return ne.replace(/([$])/,"\\$")},W=S?void 0:function(ne,le,Q,J,H,B){var z=function(){return this}(),F=ne;function M(){var k=le;le===m&&(k=this);var te=new c(h);te._captureStackTrace();var Z=typeof F=="string"&&this!==z?this[F]:ne,oe=x(te,B);try{Z.apply(k,_(arguments,oe))}catch(he){te._rejectCallback(w(he),!0,!0)}return te._isFateSealed()||te._setAsyncGuaranteed(),te}return typeof F=="string"&&(ne=J),g.notEnumerableProp(M,"__isPromisified__",!0),M};function K(ne,le,Q,J,H){for(var B=new RegExp(G(le)+"$"),z=V(ne,le,B,Q),F=0,M=z.length;F<M;F+=2){var k=z[F],te=z[F+1],Z=k+le;if(J===W)ne[Z]=W(k,m,k,te,le,H);else{var oe=J(te,function(){return W(k,m,k,te,le,H)});g.notEnumerableProp(oe,"__isPromisified__",!0),ne[Z]=oe}}return g.toFastProperties(ne),ne}c.promisify=function(ne,le){if(typeof ne!="function")throw new O("expecting a function but got "+g.classString(ne));if(R(ne))return ne;var Q=(le=Object(le)).context===void 0?m:le.context,J=!!le.multiArgs,H=function(B,z,F){return W(B,z,void 0,B,null,J)}(ne,Q);return g.copyDescriptors(ne,H,P),H},c.promisifyAll=function(ne,le){if(typeof ne!="function"&&typeof ne!="object")throw new O(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Q=!!(le=Object(le)).multiArgs,J=le.suffix;typeof J!="string"&&(J="Async");var H=le.filter;typeof H!="function"&&(H=j);var B=le.promisifier;if(typeof B!="function"&&(B=W),!g.isIdentifier(J))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var z=g.inheritedDataKeys(ne),F=0;F<z.length;++F){var M=ne[z[F]];z[F]!=="constructor"&&g.isClass(M)&&(K(M.prototype,J,H,B,Q),K(M,J,H,B,Q))}return K(ne,J,H,B,Q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(o,l,f){l.exports=function(c,h,m,g){var x,_=o("./util"),w=_.isObject,S=o("./es5");typeof Map=="function"&&(x=Map);var O=function(){var j=0,P=0;function R(I,V){this[j]=I,this[j+P]=V,j++}return function(I){P=I.size,j=0;var V=new Array(2*I.size);return I.forEach(R,V),V}}();function C(j){var P,R=!1;if(x!==void 0&&j instanceof x)P=O(j),R=!0;else{var I=S.keys(j),V=I.length;P=new Array(2*V);for(var G=0;G<V;++G){var W=I[G];P[G]=j[W],P[G+V]=W}}this.constructor$(P),this._isMap=R,this._init$(void 0,R?-6:-3)}function T(j){var P,R=m(j);return w(R)?(P=R instanceof c?R._then(c.props,void 0,void 0,void 0,void 0):new C(R).promise(),R instanceof c&&P._propagateFrom(R,2),P):g(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}_.inherits(C,h),C.prototype._init=function(){},C.prototype._promiseFulfilled=function(j,P){if(this._values[P]=j,++this._totalResolved>=this._length){var R;if(this._isMap)R=function(W){for(var K=new x,ne=W.length/2|0,le=0;le<ne;++le){var Q=W[ne+le],J=W[le];K.set(Q,J)}return K}(this._values);else{R={};for(var I=this.length(),V=0,G=this.length();V<G;++V)R[this._values[V+I]]=this._values[V]}return this._resolve(R),!0}return!1},C.prototype.shouldCopyValues=function(){return!1},C.prototype.getActualLength=function(j){return j>>1},c.prototype.props=function(){return T(this)},c.props=function(j){return T(j)}}},{"./es5":13,"./util":36}],26:[function(o,l,f){function c(h){this._capacity=h,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(h){return this._capacity<h},c.prototype._pushOne=function(h){var m=this.length();this._checkCapacity(m+1),this[this._front+m&this._capacity-1]=h,this._length=m+1},c.prototype.push=function(h,m,g){var x=this.length()+3;if(this._willBeOverCapacity(x))return this._pushOne(h),this._pushOne(m),void this._pushOne(g);var _=this._front+x-3;this._checkCapacity(x);var w=this._capacity-1;this[_+0&w]=h,this[_+1&w]=m,this[_+2&w]=g,this._length=x},c.prototype.shift=function(){var h=this._front,m=this[h];return this[h]=void 0,this._front=h+1&this._capacity-1,this._length--,m},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(h){this._capacity<h&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(h){var m=this._capacity;this._capacity=h,function(g,x,_,w,S){for(var O=0;O<S;++O)_[O+w]=g[O+0],g[O+0]=void 0}(this,0,this,m,this._front+this._length&m-1)},l.exports=c},{}],27:[function(o,l,f){l.exports=function(c,h,m,g){var x=o("./util"),_=function(S){return S.then(function(O){return w(O,S)})};function w(S,O){var C=m(S);if(C instanceof c)return _(C);if((S=x.asArray(S))===null)return g("expecting an array or an iterable object but got "+x.classString(S));var T=new c(h);O!==void 0&&T._propagateFrom(O,3);for(var j=T._fulfill,P=T._reject,R=0,I=S.length;R<I;++R){var V=S[R];(V!==void 0||R in S)&&c.cast(V)._then(j,P,void 0,T,null)}return T}c.race=function(S){return w(S,void 0)},c.prototype.race=function(){return w(this,void 0)}}},{"./util":36}],28:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=c._getDomain,S=o("./util"),O=S.tryCatch;function C(I,V,G,W){this.constructor$(I);var K=w();this._fn=K===null?V:S.domainBind(K,V),G!==void 0&&(G=c.resolve(G))._attachCancellationCallback(this),this._initialValue=G,this._currentCancellable=null,this._eachValues=W===x?Array(this._length):W===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function T(I,V){this.isFulfilled()?V._resolve(I):V._reject(I)}function j(I,V,G,W){return typeof V!="function"?m("expecting a function but got "+S.classString(V)):new C(I,V,G,W).promise()}function P(I){this.accum=I,this.array._gotAccum(I);var V=g(this.value,this.array._promise);return V instanceof c?(this.array._currentCancellable=V,V._then(R,void 0,void 0,this,void 0)):R.call(this,V)}function R(I){var V,G=this.array,W=G._promise,K=O(G._fn);W._pushContext(),(V=G._eachValues!==void 0?K.call(W._boundValue(),I,this.index,this.length):K.call(W._boundValue(),this.accum,I,this.index,this.length))instanceof c&&(G._currentCancellable=V);var ne=W._popContext();return _.checkForgottenReturns(V,ne,G._eachValues!==void 0?"Promise.each":"Promise.reduce",W),V}S.inherits(C,h),C.prototype._gotAccum=function(I){this._eachValues!==void 0&&this._eachValues!==null&&I!==x&&this._eachValues.push(I)},C.prototype._eachComplete=function(I){return this._eachValues!==null&&this._eachValues.push(I),this._eachValues},C.prototype._init=function(){},C.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},C.prototype.shouldCopyValues=function(){return!1},C.prototype._resolve=function(I){this._promise._resolveCallback(I),this._values=null},C.prototype._resultCancelled=function(I){if(I===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},C.prototype._iterate=function(I){var V,G;this._values=I;var W=I.length;if(this._initialValue!==void 0?(V=this._initialValue,G=0):(V=c.resolve(I[0]),G=1),this._currentCancellable=V,!V.isRejected())for(;G<W;++G){var K={accum:null,value:I[G],index:G,length:W,array:this};V=V._then(P,void 0,void 0,K,void 0)}this._eachValues!==void 0&&(V=V._then(this._eachComplete,void 0,void 0,this,void 0)),V._then(T,T,void 0,V,this)},c.prototype.reduce=function(I,V){return j(this,I,V,null)},c.reduce=function(I,V,G,W){return j(I,V,G,W)}}},{"./util":36}],29:[function(o,l,f){var c,h=o("./util"),m=h.getNativePromise();if(h.isNode&&typeof MutationObserver>"u"){var g=i.setImmediate,x=r.nextTick;c=h.isRecentNode?function(w){g.call(i,w)}:function(w){x.call(r,w)}}else if(typeof m=="function"&&typeof m.resolve=="function"){var _=m.resolve();c=function(w){_.then(w)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?a!==void 0?function(w){a(w)}:typeof setTimeout<"u"?function(w){setTimeout(w,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var w=document.createElement("div"),S={attributes:!0},O=!1,C=document.createElement("div");return new MutationObserver(function(){w.classList.toggle("foo"),O=!1}).observe(C,S),function(T){var j=new MutationObserver(function(){j.disconnect(),T()});j.observe(w,S),O||(O=!0,C.classList.toggle("foo"))}}();l.exports=c},{"./util":36}],30:[function(o,l,f){l.exports=function(c,h,m){var g=c.PromiseInspection;function x(_){this.constructor$(_)}o("./util").inherits(x,h),x.prototype._promiseResolved=function(_,w){return this._values[_]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},x.prototype._promiseFulfilled=function(_,w){var S=new g;return S._bitField=33554432,S._settledValueField=_,this._promiseResolved(w,S)},x.prototype._promiseRejected=function(_,w){var S=new g;return S._bitField=16777216,S._settledValueField=_,this._promiseResolved(w,S)},c.settle=function(_){return m.deprecated(".settle()",".reflect()"),new x(_).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(o,l,f){l.exports=function(c,h,m){var g=o("./util"),x=o("./errors").RangeError,_=o("./errors").AggregateError,w=g.isArray,S={};function O(T){this.constructor$(T),this._howMany=0,this._unwrap=!1,this._initialized=!1}function C(T,j){if((0|j)!==j||j<0)return m(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=new O(T),R=P.promise();return P.setHowMany(j),P.init(),R}g.inherits(O,h),O.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var T=w(this._values);!this._isResolved()&&T&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},O.prototype.init=function(){this._initialized=!0,this._init()},O.prototype.setUnwrap=function(){this._unwrap=!0},O.prototype.howMany=function(){return this._howMany},O.prototype.setHowMany=function(T){this._howMany=T},O.prototype._promiseFulfilled=function(T){return this._addFulfilled(T),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},O.prototype._promiseRejected=function(T){return this._addRejected(T),this._checkOutcome()},O.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(S),this._checkOutcome())},O.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var T=new _,j=this.length();j<this._values.length;++j)this._values[j]!==S&&T.push(this._values[j]);return T.length>0?this._reject(T):this._cancel(),!0}return!1},O.prototype._fulfilled=function(){return this._totalResolved},O.prototype._rejected=function(){return this._values.length-this.length()},O.prototype._addRejected=function(T){this._values.push(T)},O.prototype._addFulfilled=function(T){this._values[this._totalResolved++]=T},O.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},O.prototype._getRangeError=function(T){var j="Input array must contain at least "+this._howMany+" items but contains only "+T+" items";return new x(j)},O.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(T,j){return C(T,j)},c.prototype.some=function(T){return C(this,T)},c._SomePromiseArray=O}},{"./errors":12,"./util":36}],32:[function(o,l,f){l.exports=function(c){function h(O){O!==void 0?(O=O._target(),this._bitField=O._bitField,this._settledValueField=O._isFateSealed()?O._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}h.prototype._settledValue=function(){return this._settledValueField};var m=h.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},g=h.prototype.error=h.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},x=h.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},_=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},w=h.prototype.isPending=function(){return(50397184&this._bitField)==0},S=h.prototype.isResolved=function(){return(50331648&this._bitField)!=0};h.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return w.call(this._target())},c.prototype.isRejected=function(){return _.call(this._target())},c.prototype.isFulfilled=function(){return x.call(this._target())},c.prototype.isResolved=function(){return S.call(this._target())},c.prototype.value=function(){return m.call(this._target())},c.prototype.reason=function(){var O=this._target();return O._unsetRejectionIsUnhandled(),g.call(O)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=h}},{}],33:[function(o,l,f){l.exports=function(c,h){var m=o("./util"),g=m.errorObj,x=m.isObject,_={}.hasOwnProperty;return function(w,S){if(x(w)){if(w instanceof c)return w;var O=function(T){try{return function(j){return j.then}(T)}catch(j){return g.e=j,g}}(w);if(O===g){S&&S._pushContext();var C=c.reject(O.e);return S&&S._popContext(),C}if(typeof O=="function")return function(T){try{return _.call(T,"_promise0")}catch{return!1}}(w)?(C=new c(h),w._then(C._fulfill,C._reject,void 0,C,null),C):function(T,j,P){var R=new c(h),I=R;P&&P._pushContext(),R._captureStackTrace(),P&&P._popContext();var V=!0,G=m.tryCatch(j).call(T,function(W){R&&(R._resolveCallback(W),R=null)},function(W){R&&(R._rejectCallback(W,V,!0),R=null)});return V=!1,R&&G===g&&(R._rejectCallback(G.e,!0,!0),R=null),I}(w,O,S)}return w}}},{"./util":36}],34:[function(o,l,f){l.exports=function(c,h,m){var g=o("./util"),x=c.TimeoutError;function _(T){this.handle=T}_.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(T){return S(+this).thenReturn(T)},S=c.delay=function(T,j){var P,R;return j!==void 0?(P=c.resolve(j)._then(w,null,null,T,void 0),m.cancellation()&&j instanceof c&&P._setOnCancel(j)):(P=new c(h),R=setTimeout(function(){P._fulfill()},+T),m.cancellation()&&P._setOnCancel(new _(R)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function O(T){return clearTimeout(this.handle),T}function C(T){throw clearTimeout(this.handle),T}c.prototype.delay=function(T){return S(T,this)},c.prototype.timeout=function(T,j){var P,R;T=+T;var I=new _(setTimeout(function(){P.isPending()&&function(V,G,W){var K;K=typeof G!="string"?G instanceof Error?G:new x("operation timed out"):new x(G),g.markAsOriginatingFromRejection(K),V._attachExtraTrace(K),V._reject(K),W!=null&&W.cancel()}(P,j,R)},T));return m.cancellation()?(R=this.then(),(P=R._then(O,C,void 0,I,void 0))._setOnCancel(I)):P=this._then(O,C,void 0,I,void 0),P}}},{"./util":36}],35:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=o("./util"),S=o("./errors").TypeError,O=o("./util").inherits,C=w.errorObj,T=w.tryCatch,j={};function P(K){setTimeout(function(){throw K},0)}function R(K,ne){var le=0,Q=K.length,J=new c(x);return function H(){if(le>=Q)return J._fulfill();var B=function(z){var F=m(z);return F!==z&&typeof z._isDisposable=="function"&&typeof z._getDisposer=="function"&&z._isDisposable()&&F._setDisposable(z._getDisposer()),F}(K[le++]);if(B instanceof c&&B._isDisposable()){try{B=m(B._getDisposer().tryDispose(ne),K.promise)}catch(z){return P(z)}if(B instanceof c)return B._then(H,P,null,null,null)}H()}(),J}function I(K,ne,le){this._data=K,this._promise=ne,this._context=le}function V(K,ne,le){this.constructor$(K,ne,le)}function G(K){return I.isDisposer(K)?(this.resources[this.index]._setDisposable(K),K.promise()):K}function W(K){this.length=K,this.promise=null,this[K-1]=null}I.prototype.data=function(){return this._data},I.prototype.promise=function(){return this._promise},I.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():j},I.prototype.tryDispose=function(K){var ne=this.resource(),le=this._context;le!==void 0&&le._pushContext();var Q=ne!==j?this.doDispose(ne,K):null;return le!==void 0&&le._popContext(),this._promise._unsetDisposable(),this._data=null,Q},I.isDisposer=function(K){return K!=null&&typeof K.resource=="function"&&typeof K.tryDispose=="function"},O(V,I),V.prototype.doDispose=function(K,ne){return this.data().call(K,K,ne)},W.prototype._resultCancelled=function(){for(var K=this.length,ne=0;ne<K;++ne){var le=this[ne];le instanceof c&&le.cancel()}},c.using=function(){var K=arguments.length;if(K<2)return h("you must pass at least 2 arguments to Promise.using");var ne,le=arguments[K-1];if(typeof le!="function")return h("expecting a function but got "+w.classString(le));var Q=!0;K===2&&Array.isArray(arguments[0])?(K=(ne=arguments[0]).length,Q=!1):(ne=arguments,K--);for(var J=new W(K),H=0;H<K;++H){var B=ne[H];if(I.isDisposer(B)){var z=B;(B=B.promise())._setDisposable(z)}else{var F=m(B);F instanceof c&&(B=F._then(G,null,null,{resources:J,index:H},void 0))}J[H]=B}var M=new Array(J.length);for(H=0;H<M.length;++H)M[H]=c.resolve(J[H]).reflect();var k=c.all(M).then(function(Z){for(var oe=0;oe<Z.length;++oe){var he=Z[oe];if(he.isRejected())return C.e=he.error(),C;if(!he.isFulfilled())return void k.cancel();Z[oe]=he.value()}te._pushContext(),le=T(le);var de=Q?le.apply(void 0,Z):le(Z),be=te._popContext();return _.checkForgottenReturns(de,be,"Promise.using",te),de}),te=k.lastly(function(){var Z=new c.PromiseInspection(k);return R(J,Z)});return J.promise=te,te._setOnCancel(J),te},c.prototype._setDisposable=function(K){this._bitField=131072|this._bitField,this._disposer=K},c.prototype._isDisposable=function(){return(131072&this._bitField)>0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(K){if(typeof K=="function")return new V(K,this,g());throw new S}}},{"./errors":12,"./util":36}],36:[function(o,l,f){var c,h=o("./es5"),m=typeof navigator>"u",g={e:{}},x=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function _(){try{var Q=c;return c=null,Q.apply(this,arguments)}catch(J){return g.e=J,g}}function w(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function S(Q,J,H){if(w(Q))return Q;var B={value:H,configurable:!0,enumerable:!1,writable:!0};return h.defineProperty(Q,J,B),Q}var O=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],J=function(z){for(var F=0;F<Q.length;++F)if(Q[F]===z)return!0;return!1};if(h.isES5){var H=Object.getOwnPropertyNames;return function(z){for(var F=[],M=Object.create(null);z!=null&&!J(z);){var k;try{k=H(z)}catch{return F}for(var te=0;te<k.length;++te){var Z=k[te];if(!M[Z]){M[Z]=!0;var oe=Object.getOwnPropertyDescriptor(z,Z);oe!=null&&oe.get==null&&oe.set==null&&F.push(Z)}}z=h.getPrototypeOf(z)}return F}}var B={}.hasOwnProperty;return function(z){if(J(z))return[];var F=[];e:for(var M in z)if(B.call(z,M))F.push(M);else{for(var k=0;k<Q.length;++k)if(B.call(Q[k],M))continue e;F.push(M)}return F}}(),C=/this\s*\.\s*\S+\s*=/,T=/^[a-z$_][a-z$_0-9]*$/i;function j(Q){try{return Q+""}catch{return"[no string representation]"}}function P(Q){return Q instanceof Error||Q!==null&&typeof Q=="object"&&typeof Q.message=="string"&&typeof Q.name=="string"}function R(Q){return P(Q)&&h.propertyIsWritable(Q,"stack")}var I="stack"in new Error?function(Q){return R(Q)?Q:new Error(j(Q))}:function(Q){if(R(Q))return Q;try{throw new Error(j(Q))}catch(J){return J}};function V(Q){return{}.toString.call(Q)}var G=function(Q){return h.isArray(Q)?Q:null};if(typeof Symbol<"u"&&Symbol.iterator){var W=typeof Array.from=="function"?function(Q){return Array.from(Q)}:function(Q){for(var J,H=[],B=Q[Symbol.iterator]();!(J=B.next()).done;)H.push(J.value);return H};G=function(Q){return h.isArray(Q)?Q:Q!=null&&typeof Q[Symbol.iterator]=="function"?W(Q):null}}var K=r!==void 0&&V(r).toLowerCase()==="[object process]",ne=r!==void 0&&r.env!==void 0,le={isClass:function(Q){try{if(typeof Q=="function"){var J=h.names(Q.prototype),H=h.isES5&&J.length>1,B=J.length>0&&!(J.length===1&&J[0]==="constructor"),z=C.test(Q+"")&&h.names(Q).length>0;if(H||B||z)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return T.test(Q)},inheritedDataKeys:O,getDataPropertyOrDefault:function(Q,J,H){if(!h.isES5)return{}.hasOwnProperty.call(Q,J)?Q[J]:void 0;var B=Object.getOwnPropertyDescriptor(Q,J);return B!=null?B.get==null&&B.set==null?B.value:H:void 0},thrower:function(Q){throw Q},isArray:h.isArray,asArray:G,notEnumerableProp:S,isPrimitive:w,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:P,canEvaluate:m,errorObj:g,tryCatch:function(Q){return c=Q,_},inherits:function(Q,J){var H={}.hasOwnProperty;function B(){for(var z in this.constructor=Q,this.constructor$=J,J.prototype)H.call(J.prototype,z)&&z.charAt(z.length-1)!=="$"&&(this[z+"$"]=J.prototype[z])}return B.prototype=J.prototype,Q.prototype=new B,Q.prototype},withAppended:function(Q,J){var H,B=Q.length,z=new Array(B+1);for(H=0;H<B;++H)z[H]=Q[H];return z[H]=J,z},maybeWrapAsError:function(Q){return w(Q)?new Error(j(Q)):Q},toFastProperties:function(Q){return Q},filledRange:function(Q,J,H){for(var B=new Array(Q),z=0;z<Q;++z)B[z]=J+z+H;return B},toString:j,canAttachTrace:R,ensureErrorObject:I,originatesFromRejection:function(Q){return Q!=null&&(Q instanceof Error.__BluebirdErrorTypes__.OperationalError||Q.isOperational===!0)},markAsOriginatingFromRejection:function(Q){try{S(Q,"isOperational",!0)}catch{}},classString:V,copyDescriptors:function(Q,J,H){for(var B=h.names(Q),z=0;z<B.length;++z){var F=B[z];if(H(F))try{h.defineProperty(J,F,h.getDescriptor(Q,F))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:K,hasEnvVariables:ne,env:function(Q){return ne?r.env[Q]:void 0},global:x,getNativePromise:function(){if(typeof Promise=="function")try{var Q=new Promise(function(){});if({}.toString.call(Q)==="[object Promise]")return Promise}catch{}},domainBind:function(Q,J){return Q.bind(J)}};le.isRecentNode=le.isNode&&function(){var Q=r.versions.node.split(".").map(Number);return Q[0]===0&&Q[1]>10||Q[0]>0}(),le.isNode&&le.toFastProperties(r);try{throw new Error}catch(Q){le.lastLineError=Q}l.exports=le},{"./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 a=0,o=r.length;a<o;a++)if(r[a]==="\r"){if(r[a+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(r[a+1]){i.eol="\r";break}}else if(r[a]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(a,o){var l=i(a,o);return r(l)?l: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,a=r||i||Function("return this")();e.exports=a},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(a){return typeof a=="symbol"||i(a)&&r(a)=="[object Symbol]"}},function(e,t,n){(function(r,i){var a=n(6);e.exports=j;var o,l=n(37);j.ReadableState=T,n(12).EventEmitter;var f=function(M,k){return M.listeners(k).length},c=n(24),h=n(7).Buffer,m=r.Uint8Array||function(){},g=n(5);g.inherits=n(2);var x=n(41),_=void 0;_=x&&x.debuglog?x.debuglog("stream"):function(){};var w,S=n(42),O=n(25);g.inherits(j,c);var C=["error","close","destroy","pause","resume"];function T(M,k){o=o||n(1),M=M||{};var te=k instanceof o;this.objectMode=!!M.objectMode,te&&(this.objectMode=this.objectMode||!!M.readableObjectMode);var Z=M.highWaterMark,oe=M.readableHighWaterMark,he=this.objectMode?16:16384;this.highWaterMark=Z||Z===0?Z:te&&(oe||oe===0)?oe:he,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new S,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=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(w||(w=n(26).StringDecoder),this.decoder=new w(M.encoding),this.encoding=M.encoding)}function j(M){if(o=o||n(1),!(this instanceof j))return new j(M);this._readableState=new T(M,this),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),c.call(this)}function P(M,k,te,Z,oe){var he,de=M._readableState;return k===null?(de.reading=!1,function(be,$){if(!$.ended){if($.decoder){var q=$.decoder.end();q&&q.length&&($.buffer.push(q),$.length+=$.objectMode?1:q.length)}$.ended=!0,G(be)}}(M,de)):(oe||(he=function(be,$){var q;return function(ee){return h.isBuffer(ee)||ee instanceof m}($)||typeof $=="string"||$===void 0||be.objectMode||(q=new TypeError("Invalid non-string/buffer chunk")),q}(de,k)),he?M.emit("error",he):de.objectMode||k&&k.length>0?(typeof k=="string"||de.objectMode||Object.getPrototypeOf(k)===h.prototype||(k=function(be){return h.from(be)}(k)),Z?de.endEmitted?M.emit("error",new Error("stream.unshift() after end event")):R(M,de,k,!0):de.ended?M.emit("error",new Error("stream.push() after EOF")):(de.reading=!1,de.decoder&&!te?(k=de.decoder.write(k),de.objectMode||k.length!==0?R(M,de,k,!1):K(M,de)):R(M,de,k,!1))):Z||(de.reading=!1)),function(be){return!be.ended&&(be.needReadable||be.length<be.highWaterMark||be.length===0)}(de)}function R(M,k,te,Z){k.flowing&&k.length===0&&!k.sync?(M.emit("data",te),M.read(0)):(k.length+=k.objectMode?1:te.length,Z?k.buffer.unshift(te):k.buffer.push(te),k.needReadable&&G(M)),K(M,k)}Object.defineProperty(j.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),j.prototype.destroy=O.destroy,j.prototype._undestroy=O.undestroy,j.prototype._destroy=function(M,k){this.push(null),k(M)},j.prototype.push=function(M,k){var te,Z=this._readableState;return Z.objectMode?te=!0:typeof M=="string"&&((k=k||Z.defaultEncoding)!==Z.encoding&&(M=h.from(M,k),k=""),te=!0),P(this,M,k,!1,te)},j.prototype.unshift=function(M){return P(this,M,null,!0,!1)},j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(M){return w||(w=n(26).StringDecoder),this._readableState.decoder=new w(M),this._readableState.encoding=M,this};var I=8388608;function V(M,k){return M<=0||k.length===0&&k.ended?0:k.objectMode?1:M!=M?k.flowing&&k.length?k.buffer.head.data.length:k.length:(M>k.highWaterMark&&(k.highWaterMark=function(te){return te>=I?te=I:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}(M)),M<=k.length?M:k.ended?k.length:(k.needReadable=!0,0))}function G(M){var k=M._readableState;k.needReadable=!1,k.emittedReadable||(_("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?a.nextTick(W,M):W(M))}function W(M){_("emit readable"),M.emit("readable"),J(M)}function K(M,k){k.readingMore||(k.readingMore=!0,a.nextTick(ne,M,k))}function ne(M,k){for(var te=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(_("maybeReadMore read 0"),M.read(0),te!==k.length);)te=k.length;k.readingMore=!1}function le(M){_("readable nexttick read 0"),M.read(0)}function Q(M,k){k.reading||(_("resume read 0"),M.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,M.emit("resume"),J(M),k.flowing&&!k.reading&&M.read(0)}function J(M){var k=M._readableState;for(_("flow",k.flowing);k.flowing&&M.read()!==null;);}function H(M,k){return k.length===0?null:(k.objectMode?te=k.buffer.shift():!M||M>=k.length?(te=k.decoder?k.buffer.join(""):k.buffer.length===1?k.buffer.head.data:k.buffer.concat(k.length),k.buffer.clear()):te=function(Z,oe,he){var de;return Z<oe.head.data.length?(de=oe.head.data.slice(0,Z),oe.head.data=oe.head.data.slice(Z)):de=Z===oe.head.data.length?oe.shift():he?function(be,$){var q=$.head,ee=1,fe=q.data;for(be-=fe.length;q=q.next;){var X=q.data,ue=be>X.length?X.length:be;if(ue===X.length?fe+=X:fe+=X.slice(0,be),(be-=ue)==0){ue===X.length?(++ee,q.next?$.head=q.next:$.head=$.tail=null):($.head=q,q.data=X.slice(ue));break}++ee}return $.length-=ee,fe}(Z,oe):function(be,$){var q=h.allocUnsafe(be),ee=$.head,fe=1;for(ee.data.copy(q),be-=ee.data.length;ee=ee.next;){var X=ee.data,ue=be>X.length?X.length:be;if(X.copy(q,q.length-be,0,ue),(be-=ue)==0){ue===X.length?(++fe,ee.next?$.head=ee.next:$.head=$.tail=null):($.head=ee,ee.data=X.slice(ue));break}++fe}return $.length-=fe,q}(Z,oe),de}(M,k.buffer,k.decoder),te);var te}function B(M){var k=M._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,a.nextTick(z,k,M))}function z(M,k){M.endEmitted||M.length!==0||(M.endEmitted=!0,k.readable=!1,k.emit("end"))}function F(M,k){for(var te=0,Z=M.length;te<Z;te++)if(M[te]===k)return te;return-1}j.prototype.read=function(M){_("read",M),M=parseInt(M,10);var k=this._readableState,te=M;if(M!==0&&(k.emittedReadable=!1),M===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return _("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?B(this):G(this),null;if((M=V(M,k))===0&&k.ended)return k.length===0&&B(this),null;var Z,oe=k.needReadable;return _("need readable",oe),(k.length===0||k.length-M<k.highWaterMark)&&_("length less than watermark",oe=!0),k.ended||k.reading?_("reading or ended",oe=!1):oe&&(_("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(M=V(te,k))),(Z=M>0?H(M,k):null)===null?(k.needReadable=!0,M=0):k.length-=M,k.length===0&&(k.ended||(k.needReadable=!0),te!==M&&k.ended&&B(this)),Z!==null&&this.emit("data",Z),Z},j.prototype._read=function(M){this.emit("error",new Error("_read() is not implemented"))},j.prototype.pipe=function(M,k){var te=this,Z=this._readableState;switch(Z.pipesCount){case 0:Z.pipes=M;break;case 1:Z.pipes=[Z.pipes,M];break;default:Z.pipes.push(M)}Z.pipesCount+=1,_("pipe count=%d opts=%j",Z.pipesCount,k);var oe=k&&k.end===!1||M===i.stdout||M===i.stderr?ue:he;function he(){_("onend"),M.end()}Z.endEmitted?a.nextTick(oe):te.once("end",oe),M.on("unpipe",function pe(ye,me){_("onunpipe"),ye===te&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,_("cleanup"),M.removeListener("close",fe),M.removeListener("finish",X),M.removeListener("drain",de),M.removeListener("error",ee),M.removeListener("unpipe",pe),te.removeListener("end",he),te.removeListener("end",ue),te.removeListener("data",q),be=!0,!Z.awaitDrain||M._writableState&&!M._writableState.needDrain||de())});var de=function(pe){return function(){var ye=pe._readableState;_("pipeOnDrain",ye.awaitDrain),ye.awaitDrain&&ye.awaitDrain--,ye.awaitDrain===0&&f(pe,"data")&&(ye.flowing=!0,J(pe))}}(te);M.on("drain",de);var be=!1,$=!1;function q(pe){_("ondata"),$=!1,M.write(pe)!==!1||$||((Z.pipesCount===1&&Z.pipes===M||Z.pipesCount>1&&F(Z.pipes,M)!==-1)&&!be&&(_("false write response, pause",te._readableState.awaitDrain),te._readableState.awaitDrain++,$=!0),te.pause())}function ee(pe){_("onerror",pe),ue(),M.removeListener("error",ee),f(M,"error")===0&&M.emit("error",pe)}function fe(){M.removeListener("finish",X),ue()}function X(){_("onfinish"),M.removeListener("close",fe),ue()}function ue(){_("unpipe"),te.unpipe(M)}return te.on("data",q),function(pe,ye,me){if(typeof pe.prependListener=="function")return pe.prependListener(ye,me);pe._events&&pe._events[ye]?l(pe._events[ye])?pe._events[ye].unshift(me):pe._events[ye]=[me,pe._events[ye]]:pe.on(ye,me)}(M,"error",ee),M.once("close",fe),M.once("finish",X),M.emit("pipe",te),Z.flowing||(_("pipe resume"),te.resume()),M},j.prototype.unpipe=function(M){var k=this._readableState,te={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return M&&M!==k.pipes?this:(M||(M=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,M&&M.emit("unpipe",this,te),this);if(!M){var Z=k.pipes,oe=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var he=0;he<oe;he++)Z[he].emit("unpipe",this,te);return this}var de=F(k.pipes,M);return de===-1?this:(k.pipes.splice(de,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),M.emit("unpipe",this,te),this)},j.prototype.on=function(M,k){var te=c.prototype.on.call(this,M,k);if(M==="data")this._readableState.flowing!==!1&&this.resume();else if(M==="readable"){var Z=this._readableState;Z.endEmitted||Z.readableListening||(Z.readableListening=Z.needReadable=!0,Z.emittedReadable=!1,Z.reading?Z.length&&G(this):a.nextTick(le,this))}return te},j.prototype.addListener=j.prototype.on,j.prototype.resume=function(){var M=this._readableState;return M.flowing||(_("resume"),M.flowing=!0,function(k,te){te.resumeScheduled||(te.resumeScheduled=!0,a.nextTick(Q,k,te))}(this,M)),this},j.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},j.prototype.wrap=function(M){var k=this,te=this._readableState,Z=!1;for(var oe in M.on("end",function(){if(_("wrapped end"),te.decoder&&!te.ended){var de=te.decoder.end();de&&de.length&&k.push(de)}k.push(null)}),M.on("data",function(de){_("wrapped data"),te.decoder&&(de=te.decoder.write(de)),(!te.objectMode||de!=null)&&(te.objectMode||de&&de.length)&&(k.push(de)||(Z=!0,M.pause()))}),M)this[oe]===void 0&&typeof M[oe]=="function"&&(this[oe]=function(de){return function(){return M[de].apply(M,arguments)}}(oe));for(var he=0;he<C.length;he++)M.on(C[he],this.emit.bind(this,C[he]));return this._read=function(de){_("wrapped _read",de),Z&&(Z=!1,M.resume())},this},Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),j._fromList=H}).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(a,o){a.emit("error",o)}e.exports={destroy:function(a,o){var l=this,f=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return f||c?(o?o(a):!a||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,a),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!o&&h?(r.nextTick(i,l,h),l._writableState&&(l._writableState.errorEmitted=!0)):o&&o(h)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(_){switch((_=""+_)&&_.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 a(_){var w;switch(this.encoding=function(S){var O=function(C){if(!C)return"utf8";for(var T;;)switch(C){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 C;default:if(T)return;C=(""+C).toLowerCase(),T=!0}}(S);if(typeof O!="string"&&(r.isEncoding===i||!i(S)))throw new Error("Unknown encoding: "+S);return O||S}(_),this.encoding){case"utf16le":this.text=f,this.end=c,w=4;break;case"utf8":this.fillLast=l,w=4;break;case"base64":this.text=h,this.end=m,w=3;break;default:return this.write=g,void(this.end=x)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(w)}function o(_){return _<=127?0:_>>5==6?2:_>>4==14?3:_>>3==30?4:_>>6==2?-1:-2}function l(_){var w=this.lastTotal-this.lastNeed,S=function(O,C,T){if((192&C[0])!=128)return O.lastNeed=0,"<22>";if(O.lastNeed>1&&C.length>1){if((192&C[1])!=128)return O.lastNeed=1,"<22>";if(O.lastNeed>2&&C.length>2&&(192&C[2])!=128)return O.lastNeed=2,"<22>"}}(this,_);return S!==void 0?S:this.lastNeed<=_.length?(_.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_.copy(this.lastChar,w,0,_.length),void(this.lastNeed-=_.length))}function f(_,w){if((_.length-w)%2==0){var S=_.toString("utf16le",w);if(S){var O=S.charCodeAt(S.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",w,_.length-1)}function c(_){var w=_&&_.length?this.write(_):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,S)}return w}function h(_,w){var S=(_.length-w)%3;return S===0?_.toString("base64",w):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",w,_.length-S))}function m(_){var w=_&&_.length?this.write(_):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function g(_){return _.toString(this.encoding)}function x(_){return _&&_.length?this.write(_):""}t.StringDecoder=a,a.prototype.write=function(_){if(_.length===0)return"";var w,S;if(this.lastNeed){if((w=this.fillLast(_))===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<_.length?w?w+this.text(_,S):this.text(_,S):w||""},a.prototype.end=function(_){var w=_&&_.length?this.write(_):"";return this.lastNeed?w+"<22>":w},a.prototype.text=function(_,w){var S=function(C,T,j){var P=T.length-1;if(P<j)return 0;var R=o(T[P]);return R>=0?(R>0&&(C.lastNeed=R-1),R):--P<j||R===-2?0:(R=o(T[P]))>=0?(R>0&&(C.lastNeed=R-2),R):--P<j||R===-2?0:(R=o(T[P]))>=0?(R>0&&(R===2?R=0:C.lastNeed=R-3),R):0}(this,_,w);if(!this.lastNeed)return _.toString("utf8",w);this.lastTotal=S;var O=_.length-(S-this.lastNeed);return _.copy(this.lastChar,0,O),_.toString("utf8",w,O)},a.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length}},function(e,t,n){e.exports=a;var r=n(1),i=n(5);function a(f){if(!(this instanceof a))return new a(f);r.call(this,f),this._transformState={afterTransform:(function(c,h){var m=this._transformState;m.transforming=!1;var g=m.writecb;if(!g)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,h!=null&&this.push(h),g(c);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",o)}function o(){var f=this;typeof this._flush=="function"?this._flush(function(c,h){l(f,c,h)}):l(this,null,null)}function l(f,c,h){if(c)return f.emit("error",c);if(h!=null&&f.push(h),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}i.inherits=n(2),i.inherits(a,r),a.prototype.push=function(f,c){return this._transformState.needTransform=!1,r.prototype.push.call(this,f,c)},a.prototype._transform=function(f,c,h){throw new Error("_transform() is not implemented")},a.prototype._write=function(f,c,h){var m=this._transformState;if(m.writecb=h,m.writechunk=f,m.writeencoding=c,!m.transforming){var g=this._readableState;(m.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},a.prototype._read=function(f){var c=this._transformState;c.writechunk!==null&&c.writecb&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},a.prototype._destroy=function(f,c){var h=this;r.prototype._destroy.call(this,f,function(m){c(m),h.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var a=r.byteLength(i),o=r.allocUnsafe?r.allocUnsafe(a):new r(a);return o.write(i),o},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,a){for(var o=[],l=0;l<i.length;l++)a.indexOf(l)>-1&&o.push(i[l]);return o},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 a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])};return function(o,l){function f(){this.constructor=o}a(o,l),o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(a){function o(l,f,c){var h=a.call(this,"Error: "+l+". JSON Line number: "+f+(c?" near: "+c:""))||this;return h.err=l,h.line=f,h.extra=c,h.name="CSV Parse Error",h}return r(o,a),o.column_mismatched=function(l,f){return new o("column_mismatched",l,f)},o.unclosed_quote=function(l,f){return new o("unclosed_quote",l,f)},o.fromJSON=function(l){return new o(l.err,l.line,l.extra)},o.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},o}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),a=n(69),o=r?r.toStringTag:void 0;e.exports=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":o&&o in Object(l)?i(l):a(l)}},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(a,o){return new r.Converter(a,o)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,w){_.__proto__=w}||function(_,w){for(var S in w)w.hasOwnProperty(S)&&(_[S]=w[S])};return function(_,w){function S(){this.constructor=_}x(_,w),_.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),a=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(36),l=n(50),f=n(51),c=a(n(15)),h=n(52),m=n(105),g=function(x){function _(w,S){S===void 0&&(S={});var O=x.call(this,S)||this;return O.options=S,O.params=l.mergeParams(w),O.runtime=f.initParseRuntime(O),O.result=new m.Result(O),O.processor=new h.ProcessorLocal(O),O.once("error",function(C){r(function(){O.result.processError(C),O.emit("done",C)})}),O.once("done",function(){O.processor.destroy()}),O}return i(_,x),_.prototype.preRawData=function(w){return this.runtime.preRawDataHook=w,this},_.prototype.preFileLine=function(w){return this.runtime.preFileLineHook=w,this},_.prototype.subscribe=function(w,S,O){return this.parseRuntime.subscribe={onNext:w,onError:S,onCompleted:O},this},_.prototype.fromFile=function(w,S){var O=this,C=n(!function(){var T=new Error("Cannot find module 'fs'");throw T.code="MODULE_NOT_FOUND",T}());return C.exists(w,function(T){T?C.createReadStream(w,S).pipe(O):O.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},_.prototype.fromStream=function(w){return w.pipe(this),this},_.prototype.fromString=function(w){w.toString();var S=new o.Readable,O=0;return S._read=function(C){if(O>=w.length)this.push(null);else{var T=w.substr(O,C);this.push(T),O+=C}},this.fromStream(S)},_.prototype.then=function(w,S){var O=this;return new c.default(function(C,T){O.parseRuntime.then={onfulfilled:function(j){C(w?w(j):j)},onrejected:function(j){S?C(S(j)):T(j)}}})},Object.defineProperty(_.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),_.prototype._transform=function(w,S,O){var C=this;this.processor.process(w).then(function(T){if(T.length>0)return C.runtime.started=!0,C.result.processResult(T)}).then(function(){C.emit("drained"),O()},function(T){C.runtime.hasError=!0,C.runtime.error=T,C.emit("error",T),O()})},_.prototype._flush=function(w){var S=this;this.processor.flush().then(function(O){if(O.length>0)return S.result.processResult(O)}).then(function(){S.processEnd(w)},function(O){S.emit("error",O),w()})},_.prototype.processEnd=function(w){this.result.endProcess(),this.emit("done"),w()},Object.defineProperty(_.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),_}(o.Transform);t.Converter=g}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(a,o){if(!a.setImmediate){var l,f=1,c={},h=!1,m=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,{}.toString.call(a.process)==="[object process]"?l=function(w){i.nextTick(function(){_(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,S=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=S,w}}()?function(){var w="setImmediate$"+Math.random()+"$",S=function(O){O.source===a&&typeof O.data=="string"&&O.data.indexOf(w)===0&&_(+O.data.slice(w.length))};a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),l=function(O){a.postMessage(w+O,"*")}}():a.MessageChannel?function(){var w=new MessageChannel;w.port1.onmessage=function(S){_(S.data)},l=function(S){w.port2.postMessage(S)}}():m&&"onreadystatechange"in m.createElement("script")?function(){var w=m.documentElement;l=function(S){var O=m.createElement("script");O.onreadystatechange=function(){_(S),O.onreadystatechange=null,w.removeChild(O),O=null},w.appendChild(O)}}():l=function(w){setTimeout(_,0,w)},g.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var S=new Array(arguments.length-1),O=0;O<S.length;O++)S[O]=arguments[O+1];var C={callback:w,args:S};return c[f]=C,l(f),f++},g.clearImmediate=x}function x(w){delete c[w]}function _(w){if(h)setTimeout(_,0,w);else{var S=c[w];if(S){h=!0;try{(function(O){var C=O.callback,T=O.args;switch(T.length){case 0:C();break;case 1:C(T[0]);break;case 2:C(T[0],T[1]);break;case 3:C(T[0],T[1],T[2]);break;default:C.apply(o,T)}})(S)}finally{x(w),h=!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(a,o){var l=this;function f(w){a.writable&&a.write(w)===!1&&l.pause&&l.pause()}function c(){l.readable&&l.resume&&l.resume()}l.on("data",f),a.on("drain",c),a._isStdio||o&&o.end===!1||(l.on("end",m),l.on("close",g));var h=!1;function m(){h||(h=!0,a.end())}function g(){h||(h=!0,typeof a.destroy=="function"&&a.destroy())}function x(w){if(_(),r.listenerCount(this,"error")===0)throw w}function _(){l.removeListener("data",f),a.removeListener("drain",c),l.removeListener("end",m),l.removeListener("close",g),l.removeListener("error",x),a.removeListener("error",x),l.removeListener("end",_),l.removeListener("close",_),a.removeListener("close",_)}return l.on("error",x),a.on("error",x),l.on("end",_),l.on("close",_),a.on("close",_),a.emit("pipe",l),a}},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(g){var x=c(g),_=x[0],w=x[1];return 3*(_+w)/4-w},t.toByteArray=function(g){for(var x,_=c(g),w=_[0],S=_[1],O=new a(3*(w+S)/4-S),C=0,T=S>0?w-4:w,j=0;j<T;j+=4)x=i[g.charCodeAt(j)]<<18|i[g.charCodeAt(j+1)]<<12|i[g.charCodeAt(j+2)]<<6|i[g.charCodeAt(j+3)],O[C++]=x>>16&255,O[C++]=x>>8&255,O[C++]=255&x;return S===2&&(x=i[g.charCodeAt(j)]<<2|i[g.charCodeAt(j+1)]>>4,O[C++]=255&x),S===1&&(x=i[g.charCodeAt(j)]<<10|i[g.charCodeAt(j+1)]<<4|i[g.charCodeAt(j+2)]>>2,O[C++]=x>>8&255,O[C++]=255&x),O},t.fromByteArray=function(g){for(var x,_=g.length,w=_%3,S=[],O=0,C=_-w;O<C;O+=16383)S.push(m(g,O,O+16383>C?C:O+16383));return w===1?(x=g[_-1],S.push(r[x>>2]+r[x<<4&63]+"==")):w===2&&(x=(g[_-2]<<8)+g[_-1],S.push(r[x>>10]+r[x>>4&63]+r[x<<2&63]+"=")),S.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,f=o.length;l<f;++l)r[l]=o[l],i[o.charCodeAt(l)]=l;function c(g){var x=g.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=g.indexOf("=");return _===-1&&(_=x),[_,_===x?0:4-_%4]}function h(g){return r[g>>18&63]+r[g>>12&63]+r[g>>6&63]+r[63&g]}function m(g,x,_){for(var w,S=[],O=x;O<_;O+=3)w=(g[O]<<16&16711680)+(g[O+1]<<8&65280)+(255&g[O+2]),S.push(h(w));return S.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,a,o){var l,f,c=8*o-a-1,h=(1<<c)-1,m=h>>1,g=-7,x=i?o-1:0,_=i?-1:1,w=n[r+x];for(x+=_,l=w&(1<<-g)-1,w>>=-g,g+=c;g>0;l=256*l+n[r+x],x+=_,g-=8);for(f=l&(1<<-g)-1,l>>=-g,g+=a;g>0;f=256*f+n[r+x],x+=_,g-=8);if(l===0)l=1-m;else{if(l===h)return f?NaN:1/0*(w?-1:1);f+=Math.pow(2,a),l-=m}return(w?-1:1)*f*Math.pow(2,l-a)},t.write=function(n,r,i,a,o,l){var f,c,h,m=8*l-o-1,g=(1<<m)-1,x=g>>1,_=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=a?0:l-1,S=a?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,f=g):(f=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-f))<1&&(f--,h*=2),(r+=f+x>=1?_/h:_*Math.pow(2,1-x))*h>=2&&(f++,h/=2),f+x>=g?(c=0,f=g):f+x>=1?(c=(r*h-1)*Math.pow(2,o),f+=x):(c=r*Math.pow(2,x-1)*Math.pow(2,o),f=0));o>=8;n[i+w]=255&c,w+=S,c/=256,o-=8);for(f=f<<o|c,m+=o;m>0;n[i+w]=255&f,w+=S,f/=256,m-=8);n[i+w-S]|=128*O}},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 a(o,l,f){o.copy(l,f)}e.exports=function(){function o(){(function(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(l){var f={data:l,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},o.prototype.unshift=function(l){var f={data:l,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},o.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(l){if(this.length===0)return"";for(var f=this.head,c=""+f.data;f=f.next;)c+=l+f.data;return c},o.prototype.concat=function(l){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var f=r.allocUnsafe(l>>>0),c=this.head,h=0;c;)a(c.data,f,h),h+=c.data.length,c=c.next;return f},o}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var o=i.inspect({length:this.length});return this.constructor.name+" "+o})},function(e,t){},function(e,t,n){(function(r){function i(a){try{if(!r.localStorage)return!1}catch{return!1}var o=r.localStorage[a];return o!=null&&String(o).toLowerCase()==="true"}e.exports=function(a,o){if(i("noDeprecation"))return a;var l=!1;return function(){if(!l){if(i("throwDeprecation"))throw new Error(o);i("traceDeprecation")?console.trace(o):console.warn(o),l=!0}return a.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=a;var r=n(27),i=n(5);function a(o){if(!(this instanceof a))return new a(o);r.call(this,o)}i.inherits=n(2),i.inherits(a,r),a.prototype._transform=function(o,l,f){f(null,o)}},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 a in r||(r={}),r)r.hasOwnProperty(a)&&(Array.isArray(r[a])?i[a]=[].concat(r[a]):i[a]=r[a]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,a={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&&(a.needProcessIgnoreColumn=!0),i.includeColumns&&(a.needProcessIncludeColumn=!0),a}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,C){O.__proto__=C}||function(O,C){for(var T in C)C.hasOwnProperty(T)&&(O[T]=C[T])};return function(O,C){function T(){this.constructor=O}S(O,C),O.prototype=C===null?Object.create(C):(T.prototype=C.prototype,new T)}}(),a=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(53),l=a(n(15)),f=n(54),c=a(n(16)),h=n(57),m=n(28),g=n(58),x=a(n(59)),_=a(n(29)),w=function(S){function O(){var C=S!==null&&S.apply(this,arguments)||this;return C.rowSplit=new g.RowSplit(C.converter),C.eolEmitted=!1,C._needEmitEol=void 0,C.headEmitted=!1,C._needEmitHead=void 0,C}return i(O,S),O.prototype.flush=function(){var C=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var T=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(T,!0).then(function(j){return C.runtime.csvLineBuffer&&C.runtime.csvLineBuffer.length>0?l.default.reject(_.default.unclosed_quote(C.runtime.parsedLineNumber,C.runtime.csvLineBuffer.toString())):l.default.resolve(j)})}return l.default.resolve([])},O.prototype.destroy=function(){return l.default.resolve()},Object.defineProperty(O.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),O.prototype.process=function(C,T){var j,P=this;return T===void 0&&(T=!1),j=T?C.toString():f.prepareData(C,this.converter.parseRuntime),l.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(j):j}).then(function(R){return R&&R.length>0?P.processCSV(R,T):l.default.resolve([])})},O.prototype.processCSV=function(C,T){var j=this,P=this.params,R=this.runtime;R.eol||c.default(C,R),this.needEmitEol&&!this.eolEmitted&&R.eol&&(this.converter.emit("eol",R.eol),this.eolEmitted=!0),P.ignoreEmpty&&!R.started&&(C=m.trimLeft(C));var I=h.stringToLines(C,R);return T?(I.lines.push(I.partial),I.partial=""):this.prependLeftBuf(m.bufFromString(I.partial)),I.lines.length>0?(R.preFileLineHook?this.runPreLineHook(I.lines):l.default.resolve(I.lines)).then(function(V){return R.started||j.runtime.headers?j.processCSVBody(V):j.processDataWithHead(V)}):l.default.resolve([])},O.prototype.processDataWithHead=function(C){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var T="",j=[];C.length;){var P=T+C.shift(),R=this.rowSplit.parse(P);if(R.closed){j=R.cells,T="";break}T=P+c.default(P,this.runtime)}if(this.prependLeftBuf(m.bufFromString(T)),j.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=j}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(C)},O.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var C=this.runtime.headers,T=0;T<C.length;T++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(C[T])){if(!this.params.includeColumns||!this.params.includeColumns.test(C[T]))continue;this.runtime.selectedColumns.push(T)}else this.runtime.selectedColumns.push(T);else this.params.includeColumns?this.params.includeColumns.test(C[T])&&this.runtime.selectedColumns.push(T):this.runtime.selectedColumns.push(T);this.runtime.headers=m.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},O.prototype.processCSVBody=function(C){if(this.params.output==="line")return C;var T=this.rowSplit.parseMultiLines(C);return this.prependLeftBuf(m.bufFromString(T.partial)),this.params.output==="csv"?T.rowsCells:x.default(T.rowsCells,this.converter)},O.prototype.prependLeftBuf=function(C){C&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([C,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=C)},O.prototype.runPreLineHook=function(C){var T=this;return new l.default(function(j,P){(function R(I,V,G,W){if(G>=I.length)W();else if(V.preFileLineHook){var K=I[G],ne=V.preFileLineHook(K,V.parsedLineNumber+G);if(G++,ne&&ne.then)ne.then(function(le){I[G-1]=le,R(I,V,G,W)});else{for(I[G-1]=ne;G<I.length;)I[G]=V.preFileLineHook(I[G],V.parsedLineNumber+G),G++;W()}}else W()})(C,T.runtime,0,function(R){R?P(R):j(C)})})},O}(o.Processor);t.ProcessorLocal=w}).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(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(55));t.prepareData=function(o,l){var f=function(h,m){return m.csvLineBuffer&&m.csvLineBuffer.length>0?r.concat([m.csvLineBuffer,h]):h}(o,l);l.csvLineBuffer=void 0;var c=function(h,m){var g=h.length-1;if((128&h[g])!=0){for(;(192&h[g])==128;)g--;g--}return g!=h.length-1?(m.csvLineBuffer=h.slice(g+1),h.slice(0,g+1)):h}(f,l).toString("utf8");return l.started===!1?a.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(a){return typeof a=="string"&&a.charCodeAt(0)===65279?a.slice(1):r.isBuffer(a)&&i(a)&&a[0]===239&&a[1]===187&&a[2]===191?a.slice(3):a}}).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(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(a,o){var l=i.default(a,o),f=a.split(l);return{lines:f,partial:f.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),a=n(28),o=[",","|"," ",";",":"],l=function(){function f(c){this.conv=c,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=c.parseParam.quote,this.trim=c.parseParam.trim,this.escape=c.parseParam.escape}return Object.defineProperty(f.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),f.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var h=this.quote,m=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var g=this.conv.parseRuntime.delimiter,x=c.split(g);if(h==="off"){if(m)for(var _=0;_<x.length;_++)x[_]=x[_].trim();return{cells:x,closed:!0}}return this.toCSVRow(x,m,h,g)},f.prototype.toCSVRow=function(c,h,m,g){for(var x=[],_=!1,w="",S=0,O=c.length;S<O;S++){var C=c[S];!_&&h&&(C=a.trimLeft(C));var T=C.length;if(_)this.isQuoteClose(C)?(_=!1,w+=g+(C=C.substr(0,T-1)),w=this.escapeQuote(w),h&&(w=a.trimRight(w)),x.push(w),w=""):w+=g+C;else{if(T===2&&C===this.quote+this.quote){x.push("");continue}if(this.isQuoteOpen(C)){if(C=C.substr(1),this.isQuoteClose(C)){C=C.substring(0,C.lastIndexOf(m)),C=this.escapeQuote(C),x.push(C);continue}if(C.indexOf(m)!==-1){for(var j=0,P="",R=0,I=C;R<I.length;R++){var V=I[R];V===m&&P!==this.escape?(j++,P=""):P=V}if(j%2==1){h&&(C=a.trimRight(C)),x.push(m+C);continue}_=!0,w+=C;continue}_=!0,w+=C;continue}h&&(C=a.trimRight(C)),x.push(C)}}return{cells:x,closed:!_}},f.prototype.getDelimiter=function(c){var h;if(this.conv.parseParam.delimiter==="auto")h=o;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;h=this.conv.parseParam.delimiter}var m=0,g=",";return h.forEach(function(x){var _=c.split(x).length;_>m&&(g=x,m=_)}),g},f.prototype.isQuoteOpen=function(c){var h=this.quote,m=this.escape;return c[0]===h&&(c[1]!==h||c[1]===m&&(c[2]===h||c.length===2))},f.prototype.isQuoteClose=function(c){var h=this.quote,m=this.escape;this.conv.parseParam.trim&&(c=a.trimRight(c));for(var g=0,x=c.length-1;c[x]===h||c[x]===m;)x--,g++;return g%2!=0},f.prototype.escapeQuote=function(c){var h="es|"+this.quote+"|"+this.escape;this.cachedRegExp[h]===void 0&&(this.cachedRegExp[h]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var m=this.cachedRegExp[h];return c.replace(m,this.quote)},f.prototype.parseMultiLines=function(c){for(var h=[],m="";c.length;){var g=m+c.shift(),x=this.parse(g);x.cells.length===0&&this.conv.parseParam.ignoreEmpty||(x.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?h.push(a.filterArray(x.cells,this.conv.parseRuntime.selectedColumns)):h.push(x.cells),m=""):m=g+(i.default(g,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:h,partial:m}},f}();t.RowSplit=l},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(29)),a=r(n(60)),o=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function l(O,C,T){if(C.parseParam.checkColumn&&C.parseRuntime.headers&&O.length!==C.parseRuntime.headers.length)throw i.default.column_mismatched(C.parseRuntime.parsedLineNumber+T);return function(j,P,R){for(var I=!1,V={},G=0,W=j.length;G<W;G++){var K=j[G];if(!R.parseParam.ignoreEmpty||K!==""){I=!0;var ne=P[G];ne&&ne!==""||(ne=P[G]="field"+(G+1));var le=c(ne,G,R);if(le){var Q=le(K,ne,V,j,G);Q!==void 0&&h(V,ne,Q,R,G)}else R.parseParam.checkType&&(K=x(K,ne,G,R)(K)),K!==void 0&&h(V,ne,K,R,G)}}return I?V:null}(O,C.parseRuntime.headers||[],C)||null}t.default=function(O,C){for(var T=[],j=0,P=O.length;j<P;j++){var R=l(O[j],C,j);R&&T.push(R)}return T};var f={string:w,number:_,omit:function(){}};function c(O,C,T){if(T.parseRuntime.columnConv[C]!==void 0)return T.parseRuntime.columnConv[C];var j=T.parseParam.colParser[O];if(j===void 0)return T.parseRuntime.columnConv[C]=null;if(typeof j=="object"&&(j=j.cellParser||"string"),typeof j=="string"){j=j.trim().toLowerCase();var P=f[j];return T.parseRuntime.columnConv[C]=P||null}return T.parseRuntime.columnConv[C]=typeof j=="function"?j:null}function h(O,C,T,j,P){if(!j.parseRuntime.columnValueSetter[P])if(j.parseParam.flatKeys)j.parseRuntime.columnValueSetter[P]=m;else if(C.indexOf(".")>-1){for(var R=C.split("."),I=!0;R.length>0;)if(R.shift().length===0){I=!1;break}!I||j.parseParam.colParser[C]&&j.parseParam.colParser[C].flat?j.parseRuntime.columnValueSetter[P]=m:j.parseRuntime.columnValueSetter[P]=g}else j.parseRuntime.columnValueSetter[P]=m;j.parseParam.nullObject===!0&&T==="null"&&(T=null),j.parseRuntime.columnValueSetter[P](O,C,T)}function m(O,C,T){O[C]=T}function g(O,C,T){a.default(O,C,T)}function x(O,C,T,j){return j.parseRuntime.headerType[T]?j.parseRuntime.headerType[T]:C.indexOf("number#!")>-1?j.parseRuntime.headerType[T]=_:C.indexOf("string#!")>-1?j.parseRuntime.headerType[T]=w:j.parseParam.checkType?j.parseRuntime.headerType[T]=S:j.parseRuntime.headerType[T]=w}function _(O){var C=parseFloat(O);return isNaN(C)?O:C}function w(O){return O.toString()}function S(O){var C=O.trim();return C===""?w(O):o.test(C)?_(O):C.length===5&&C.toLowerCase()==="false"||C.length===4&&C.toLowerCase()==="true"?function(T){var j=T.trim();return j.length!==5||j.toLowerCase()!=="false"}(O):C[0]==="{"&&C[C.length-1]==="}"||C[0]==="["&&C[C.length-1]==="]"?function(T){try{return JSON.parse(T)}catch{return T}}(O):w(O)}},function(e,t,n){var r=n(61);e.exports=function(i,a,o){return i==null?i:r(i,a,o)}},function(e,t,n){var r=n(62),i=n(74),a=n(103),o=n(20),l=n(104);e.exports=function(f,c,h,m){if(!o(f))return f;for(var g=-1,x=(c=i(c,f)).length,_=x-1,w=f;w!=null&&++g<x;){var S=l(c[g]),O=h;if(g!=_){var C=w[S];(O=m?m(C,S,w):void 0)===void 0&&(O=o(C)?C:a(c[g+1])?[]:{})}r(w,S,O),w=w[S]}return f}},function(e,t,n){var r=n(63),i=n(31),a=Object.prototype.hasOwnProperty;e.exports=function(o,l,f){var c=o[l];a.call(o,l)&&i(c,f)&&(f!==void 0||l in o)||r(o,l,f)}},function(e,t,n){var r=n(64);e.exports=function(i,a,o){a=="__proto__"&&r?r(i,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):i[a]=o}},function(e,t,n){var r=n(17),i=function(){try{var a=r(Object,"defineProperty");return a({},"",{}),a}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),a=n(20),o=n(72),l=/^\[object .+?Constructor\]$/,f=Function.prototype,c=Object.prototype,h=f.toString,m=c.hasOwnProperty,g=RegExp("^"+h.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(x){return!(!a(x)||i(x))&&(r(x)?g:l).test(o(x))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(a){if(!i(a))return!1;var o=r(a);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[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,a=i.hasOwnProperty,o=i.toString,l=r?r.toStringTag:void 0;e.exports=function(f){var c=a.call(f,l),h=f[l];try{f[l]=void 0;var m=!0}catch{}var g=o.call(f);return m&&(c?f[l]=h:delete f[l]),g}},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 a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();e.exports=function(a){return!!i&&i in a}},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),a=n(77),o=n(100);e.exports=function(l,f){return r(l)?l:i(l,f)?[l]:a(o(l))}},function(e,t,n){var r=n(21),i=n(22),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(l,f){if(r(l))return!1;var c=typeof l;return!(c!="number"&&c!="symbol"&&c!="boolean"&&l!=null&&!i(l))||o.test(l)||!a.test(l)||f!=null&&l in Object(f)}},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,a=n(78)(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(r,function(f,c,h,m){l.push(h?m.replace(i,"$1"):c||f)}),l});e.exports=a},function(e,t,n){var r=n(79);e.exports=function(i){var a=r(i,function(l){return o.size===500&&o.clear(),l}),o=a.cache;return a}},function(e,t,n){var r=n(80),i="Expected a function";function a(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new TypeError(i);var f=function(){var c=arguments,h=l?l.apply(this,c):c[0],m=f.cache;if(m.has(h))return m.get(h);var g=o.apply(this,c);return f.cache=m.set(h,g)||m,g};return f.cache=new(a.Cache||r),f}a.Cache=r,e.exports=a},function(e,t,n){var r=n(81),i=n(95),a=n(97),o=n(98),l=n(99);function f(c){var h=-1,m=c==null?0:c.length;for(this.clear();++h<m;){var g=c[h];this.set(g[0],g[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},function(e,t,n){var r=n(82),i=n(88),a=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),a=n(85),o=n(86),l=n(87);function f(c){var h=-1,m=c==null?0:c.length;for(this.clear();++h<m;){var g=c[h];this.set(g[0],g[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},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(a){var o=this.__data__;if(r){var l=o[a];return l==="__lodash_hash_undefined__"?void 0:l}return i.call(o,a)?o[a]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(a){var o=this.__data__;return r?o[a]!==void 0:i.call(o,a)}},function(e,t,n){var r=n(8);e.exports=function(i,a){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=r&&a===void 0?"__lodash_hash_undefined__":a,this}},function(e,t,n){var r=n(89),i=n(90),a=n(91),o=n(92),l=n(93);function f(c){var h=-1,m=c==null?0:c.length;for(this.clear();++h<m;){var g=c[h];this.set(g[0],g[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},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(a){var o=this.__data__,l=r(o,a);return!(l<0||(l==o.length-1?o.pop():i.call(o,l,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var a=this.__data__,o=r(a,i);return o<0?void 0:a[o][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,a){var o=this.__data__,l=r(o,i);return l<0?(++this.size,o.push([i,a])):o[l][1]=a,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 a=r(this,i).delete(i);return this.size-=a?1:0,a}},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,a){var o=r(this,i),l=o.size;return o.set(i,a),this.size+=o.size==l?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),a=n(21),o=n(22),l=r?r.prototype:void 0,f=l?l.toString:void 0;e.exports=function c(h){if(typeof h=="string")return h;if(a(h))return i(h,c)+"";if(o(h))return f?f.call(h):"";var m=h+"";return m=="0"&&1/h==-1/0?"-0":m}},function(e,t){e.exports=function(n,r){for(var i=-1,a=n==null?0:n.length,o=Array(a);++i<a;)o[i]=r(n[i],i,n);return o}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var a=typeof r;return!!(i=i??9007199254740991)&&(a=="number"||a!="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 a=i+"";return a=="0"&&1/i==-1/0?"-0":a}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),a=n(106),o=function(){function f(c){this.converter=c,this.finalResult=[]}return Object.defineProperty(f.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),f.prototype.processResult=function(c){var h=this,m=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&m===0&&l(this.converter,"["+a.EOL),new i.default(function(g,x){h.needEmitLine?function _(w,S,O,C,T){if(O>=w.length)T();else if(S.parseRuntime.subscribe&&S.parseRuntime.subscribe.onNext){var j=S.parseRuntime.subscribe.onNext,P=w[O],R=j(P,S.parseRuntime.parsedLineNumber+O);if(O++,R&&R.then)R.then(function(){(function(V,G,W,K,ne,le,Q){ne&&l(W,Q),_(V,W,K,ne,le)})(w,0,S,O,C,T,P)},T);else{for(C&&l(S,P);O<w.length;){var I=w[O];j(I,S.parseRuntime.parsedLineNumber+O),O++,C&&l(S,I)}T()}}else{if(C)for(;O<w.length;)I=w[O++],l(S,I);T()}}(c,h.converter,0,h.needPushDownstream,function(_){_?x(_):(h.appendFinalResult(c),g())}):(h.appendFinalResult(c),g())})},f.prototype.appendFinalResult=function(c){this.needEmitAll&&(this.finalResult=this.finalResult.concat(c)),this.converter.parseRuntime.parsedLineNumber+=c.length},f.prototype.processError=function(c){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(c),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(c)},f.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"&&l(this.converter,"]"+a.EOL)},f}();function l(f,c){if(typeof c!="object"||f.options.objectMode)f.push(c);else{var h=JSON.stringify(c);f.push(h+(f.parseParam.downstreamFormat==="array"?","+a.EOL:a.EOL),"utf8")}}t.Result=o},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"/"}}])),NE}var uNe=lNe();const cNe=Lt(uNe),fNe=e=>new Promise(t=>{cNe().fromString(e).then(t)}),dNe=new jz,hNe=e=>dNe.parse(e),pNe="shlink",gB=e=>`${pNe}.${e}`;class mNe{constructor(t){df(this,"get",t=>{const n=this.localStorage.getItem(gB(t));return n?JSON.parse(n):void 0});df(this,"set",(t,n)=>this.localStorage.setItem(gB(t),JSON.stringify(n)));this.localStorage=t}}class vNe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const gNe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",mNe,"localStorage"),e.service("TagColorsStorage",vNe,"Storage"),e.constant("csvToJson",fNe),e.constant("jsonToCsv",hNe),e.serviceFactory("useTimeoutToggle",()=>G0)},wc=new JB,{container:a4}=wc,yNe=(e,t)=>(...n)=>e[t](...n),bNe=(e,t)=>({...e,[t]:yNe(a4,t)}),_Ne=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Y_=(e,t=[])=>CB(e?_Ne(e):null,t.reduce(bNe,{}));mue(wc,Y_);hMe(wc,Y_);YX(wc);eNe(wc,Y_);gNe(wc);sNe(wc,Y_);var LE={},xy={exports:{}},yB;function xNe(){return yB||(yB=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return r.apply(void 0,c)}t.main=n,n.clone=a,n.isPlainObject=o,n.recursive=i;function r(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return f(c[0]===!0,!1,c)}t.merge=r;function i(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return f(c[0]===!0,!0,c)}t.recursive=i;function a(c){if(Array.isArray(c)){for(var h=[],m=0;m<c.length;++m)h.push(a(c[m]));return h}else if(o(c)){var h={};for(var m in c)h[m]=a(c[m]);return h}else return c}t.clone=a;function o(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=o;function l(c,h){if(!o(c))return h;for(var m in h)m==="__proto__"||m==="constructor"||m==="prototype"||(c[m]=o(c[m])&&o(h[m])?l(c[m],h[m]):h[m]);return c}function f(c,h,m){var g;(c||!o(g=m.shift()))&&(g={});for(var x=0;x<m.length;++x){var _=m[x];if(o(_)){for(var w in _)if(!(w==="__proto__"||w==="constructor"||w==="prototype")){var S=c?a(_[w]):_[w];g[w]=h?l(g[w],S):S}}}return g}}(xy,xy.exports)),xy.exports}var bB;function wNe(){return bB||(bB=1,function(e){var t=n(xNe());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=le,e.combineLoads=ne,e.load=K,e.save=W;function n(F){return F&&F.__esModule?F:{default:F}}function r(F,M){return f(F)||l(F,M)||a(F,M)||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 a(F,M){if(F){if(typeof F=="string")return o(F,M);var k=Object.prototype.toString.call(F).slice(8,-1);return k==="Object"&&F.constructor&&(k=F.constructor.name),k==="Map"||k==="Set"?Array.from(F):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?o(F,M):void 0}}function o(F,M){(M==null||M>F.length)&&(M=F.length);for(var k=0,te=Array(M);k<M;k++)te[k]=F[k];return te}function l(F,M){var k=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(k!=null){var te,Z,oe=[],he=!0,de=!1;try{for(k=k.call(F);!(he=(te=k.next()).done)&&(oe.push(te.value),!(M&&oe.length===M));he=!0);}catch(be){de=!0,Z=be}finally{try{he||k.return==null||k.return()}finally{if(de)throw Z}}return oe}}function f(F){if(Array.isArray(F))return F}function c(F){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(F)}function h(F,M,k){return M in F?Object.defineProperty(F,M,{value:k,enumerable:!0,configurable:!0,writable:!0}):F[M]=k,F}var m="[Redux-LocalStorage-Simple]",g="redux_localstorage_simple",x="_",_=[],w=[],S=0,O=!1,C=!1,T=new Map;function j(F){console.warn(m,F)}function P(){}var R=function(F){return F?P:j};function I(F,M){return M===void 0?null:F.length===1?M[F[0]]:I(F.slice(1),M[F[0]])}function V(F){function M(te,Z){return te.length===0?Z:M(te.slice(1),h({},te[0],Z))}var k=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return M(F.split(".").reverse(),k)}function G(F){this.warnFn=F||j}Object.defineProperty(G.prototype,"length",{get:function(){try{return localStorage.length}catch(F){this.warnFn(F)}return 0},configurable:!0,enumerable:!0}),G.prototype.key=function(F){try{return localStorage.key(F)}catch(M){this.warnFn(M)}return null},G.prototype.setItem=function(F,M){try{localStorage.setItem(F,JSON.stringify(M))}catch(k){this.warnFn(k)}},G.prototype.getItem=function(F){try{return JSON.parse(localStorage.getItem(F))}catch(M){this.warnFn(M)}return null},G.prototype.removeItem=function(F){try{localStorage.removeItem(F)}catch(M){this.warnFn(M)}};function W(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.states,k=M===void 0?_:M,te=F.ignoreStates,Z=te===void 0?w:te,oe=F.namespace,he=oe===void 0?g:oe,de=F.namespaceSeparator,be=de===void 0?x:de,$=F.debounce,q=$===void 0?S:$,ee=F.disableWarnings,fe=ee===void 0?C:ee;return function(X){return function(ue){return function(pe){function ye($e,Fe){return 1<$e.split(".").length?I($e.split("."),Fe):I([$e],Fe)}function me(){k.length===0?ze.setItem(he,we):k.forEach(function($e){var Fe=he+be+$e,_e=ye($e,we);_e?ze.setItem(Fe,_e):ze.removeItem(Fe)})}var we,Te=R(fe),Le=ue(pe);Q(k)||(console.error(m,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),k=_),Q(Z)||(console.error(m,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),Z=w),0<Z.length&&(Z=Z.filter(function($e){return J($e)?$e:void console.error(m,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),J(he)||(console.error(m,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),he=g),J(be)||(console.error(m,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),be=x),H(q)||(console.error(m,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),q=S),we=0<Z.length?z(Z,X.getState()):X.getState();var ze=new G(Te);return q?(T.get(k+he)&&clearTimeout(T.get(k+he)),T.set(k+he,setTimeout(function(){me()},q))):me(),Le}}}}function K(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.states,k=M===void 0?_:M,te=F.immutablejs,Z=te===void 0?O:te,oe=F.namespace,he=oe===void 0?g:oe,de=F.namespaceSeparator,be=de===void 0?x:de,$=F.preloadedState,q=$===void 0?{}:$,ee=F.disableWarnings,fe=ee===void 0?C:ee,X=R(fe);Q(k)||(console.error(m,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),k=_),J(he)||(console.error(m,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),he=g),J(be)||(console.error(m,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),be=x),Z===!0&&X("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 ue=new G(X),pe=q;if(k.length===0){var ye=ue.getItem(he);ye&&(pe=ye)}else k.forEach(function(me){var we=he+be+me,Te=ue.getItem(we);Te?pe=t.default.recursive(pe,V(me,Te)):X("Invalid load '"+we+"' 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 pe}function ne(){for(var F={},M=arguments.length,k=Array(M),te=0;te<M;te++)k[te]=arguments[te];return k.forEach(function(Z){for(var oe in B(Z)||(console.error(m,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),Z={}),Z)F[oe]=Z[oe]}),F}function le(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.namespace,k=M===void 0?g:M,te=F.disableWarnings,Z=te===void 0?C:te,oe=R(Z);J(k)||(console.error(m,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),k=g);for(var he,de=new G(oe),be=de.length,$=0;$<be;$++)he=de.key($),he&&he.slice(0,k.length)===k&&de.removeItem(he)}function Q(F){return Object.prototype.toString.call(F)==="[object Array]"}function J(F){return typeof F=="string"}function H(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function B(F){return F!==null&&c(F)==="object"}function z(F,M){var k=Object.entries(M).reduce(function(te,Z){var oe=r(Z,2),he=oe[0];return oe[1],F.indexOf(he)===-1&&(te[he]=M[he]),te},{});return k}}(LE)),LE}var AG=wNe();const SNe=e=>cP({appUpdated:pue,servers:kMe,selectedServer:e.selectedServerReducer,settings:aNe}),ONe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),jG={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},ENe=ONe(AG.load(jG)),CNe=e=>tz({devTools:!1,reducer:SNe(e),preloadedState:ENe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(AG.save(jG))}),TNe=!!(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 ANe(e){if("serviceWorker"in navigator){if(new URL($y.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${$y.homepage}/service-worker.js`;TNe?(jNe(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")})):PG(n,e)})}}function PG(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 jNe(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()})}):PG(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const RG=CNe(a4),{App:PNe,ScrollToTop:RNe,ErrorHandler:MNe,appUpdateAvailable:NNe}=a4;nK.createRoot(document.getElementById("root")).render(y.jsx(TB,{store:RG,children:y.jsx(UB,{basename:$y.homepage,children:y.jsx(MNe,{children:y.jsx(RNe,{children:y.jsx(PNe,{})})})})}));ANe({onUpdate(){RG.dispatch(NNe())}});
|