mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-01 05:06:39 +00:00
807 lines
1.4 MiB
807 lines
1.4 MiB
function xB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D1={exports:{}},Dd={};/**
|
||
* @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 lA;function wB(){if(lA)return Dd;lA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:a}}return Dd.Fragment=t,Dd.jsx=n,Dd.jsxs=n,Dd}var uA;function SB(){return uA||(uA=1,D1.exports=wB()),D1.exports}var v=SB(),k1={exports:{}},kd={},I1={exports:{}},U1={};/**
|
||
* @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 cA;function CB(){return cA||(cA=1,function(e){function t(Y,U){var I=Y.length;Y.push(U);e:for(;0<I;){var z=I-1>>>1,M=Y[z];if(0<i(M,U))Y[z]=U,Y[I]=M,I=z;else break e}}function n(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var U=Y[0],I=Y.pop();if(I!==U){Y[0]=I;e:for(var z=0,M=Y.length,D=M>>>1;z<D;){var W=2*(z+1)-1,H=Y[W],re=W+1,ue=Y[re];if(0>i(H,I))re<M&&0>i(ue,H)?(Y[z]=ue,Y[re]=I,z=re):(Y[z]=H,Y[W]=I,z=W);else if(re<M&&0>i(ue,I))Y[z]=ue,Y[re]=I,z=re;else break e}}return U}function i(Y,U){var I=Y.sortIndex-U.sortIndex;return I!==0?I:Y.id-U.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 s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var d=[],f=[],m=1,p=null,b=3,_=!1,w=!1,x=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function N(Y){for(var U=n(f);U!==null;){if(U.callback===null)r(f);else if(U.startTime<=Y)r(f),U.sortIndex=U.expirationTime,t(d,U);else break;U=n(f)}}function B(Y){if(x=!1,N(Y),!w)if(n(d)!==null)w=!0,V||(V=!0,ne());else{var U=n(f);U!==null&&se(B,U.startTime-Y)}}var V=!1,Z=-1,X=5,oe=-1;function ee(){return A?!0:!(e.unstable_now()-oe<X)}function J(){if(A=!1,V){var Y=e.unstable_now();oe=Y;var U=!0;try{e:{w=!1,x&&(x=!1,j(Z),Z=-1),_=!0;var I=b;try{t:{for(N(Y),p=n(d);p!==null&&!(p.expirationTime>Y&&ee());){var z=p.callback;if(typeof z=="function"){p.callback=null,b=p.priorityLevel;var M=z(p.expirationTime<=Y);if(Y=e.unstable_now(),typeof M=="function"){p.callback=M,N(Y),U=!0;break t}p===n(d)&&r(d),N(Y)}else r(d);p=n(d)}if(p!==null)U=!0;else{var D=n(f);D!==null&&se(B,D.startTime-Y),U=!1}}break e}finally{p=null,b=I,_=!1}U=void 0}}finally{U?ne():V=!1}}}var ne;if(typeof O=="function")ne=function(){O(J)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Q=he.port2;he.port1.onmessage=J,ne=function(){Q.postMessage(null)}}else ne=function(){C(J,0)};function se(Y,U){Z=C(function(){Y(e.unstable_now())},U)}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(Y){Y.callback=null},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(Y){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var I=b;b=U;try{return Y()}finally{b=I}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(Y,U){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var I=b;b=Y;try{return U()}finally{b=I}},e.unstable_scheduleCallback=function(Y,U,I){var z=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?z+I:z):I=z,Y){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=I+M,Y={id:m++,callback:U,priorityLevel:Y,startTime:I,expirationTime:M,sortIndex:-1},I>z?(Y.sortIndex=I,t(f,Y),n(d)===null&&Y===n(f)&&(x?(j(Z),Z=-1):x=!0,se(B,I-z))):(Y.sortIndex=M,t(d,Y),w||_||(w=!0,V||(V=!0,ne()))),Y},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(Y){var U=b;return function(){var I=b;b=U;try{return Y.apply(this,arguments)}finally{b=I}}}}(U1)),U1}var fA;function EB(){return fA||(fA=1,I1.exports=CB()),I1.exports}var B1={exports:{}},yt={};/**
|
||
* @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 dA;function AB(){if(dA)return yt;dA=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"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function b(M){return M===null||typeof M!="object"?null:(M=p&&M[p]||M["@@iterator"],typeof M=="function"?M:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function A(M,D,W){this.props=M,this.context=D,this.refs=x,this.updater=W||_}A.prototype.isReactComponent={},A.prototype.setState=function(M,D){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,D,"setState")},A.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function C(){}C.prototype=A.prototype;function j(M,D,W){this.props=M,this.context=D,this.refs=x,this.updater=W||_}var O=j.prototype=new C;O.constructor=j,w(O,A.prototype),O.isPureReactComponent=!0;var N=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},V=Object.prototype.hasOwnProperty;function Z(M,D,W,H,re,ue){return W=ue.ref,{$$typeof:e,type:M,key:D,ref:W!==void 0?W:null,props:ue}}function X(M,D){return Z(M.type,D,void 0,void 0,void 0,M.props)}function oe(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function ee(M){var D={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(W){return D[W]})}var J=/\/+/g;function ne(M,D){return typeof M=="object"&&M!==null&&M.key!=null?ee(""+M.key):D.toString(36)}function he(){}function Q(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(he,he):(M.status="pending",M.then(function(D){M.status==="pending"&&(M.status="fulfilled",M.value=D)},function(D){M.status==="pending"&&(M.status="rejected",M.reason=D)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function se(M,D,W,H,re){var ue=typeof M;(ue==="undefined"||ue==="boolean")&&(M=null);var ce=!1;if(M===null)ce=!0;else switch(ue){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(M.$$typeof){case e:case t:ce=!0;break;case m:return ce=M._init,se(ce(M._payload),D,W,H,re)}}if(ce)return re=re(M),ce=H===""?"."+ne(M,0):H,N(re)?(W="",ce!=null&&(W=ce.replace(J,"$&/")+"/"),se(re,D,W,"",function(F){return F})):re!=null&&(oe(re)&&(re=X(re,W+(re.key==null||M&&M.key===re.key?"":(""+re.key).replace(J,"$&/")+"/")+ce)),D.push(re)),1;ce=0;var ve=H===""?".":H+":";if(N(M))for(var k=0;k<M.length;k++)H=M[k],ue=ve+ne(H,k),ce+=se(H,D,W,ue,re);else if(k=b(M),typeof k=="function")for(M=k.call(M),k=0;!(H=M.next()).done;)H=H.value,ue=ve+ne(H,k++),ce+=se(H,D,W,ue,re);else if(ue==="object"){if(typeof M.then=="function")return se(Q(M),D,W,H,re);throw D=String(M),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ce}function Y(M,D,W){if(M==null)return M;var H=[],re=0;return se(M,H,"","",function(ue){return D.call(W,ue,re++)}),H}function U(M){if(M._status===-1){var D=M._result;D=D(),D.then(function(W){(M._status===0||M._status===-1)&&(M._status=1,M._result=W)},function(W){(M._status===0||M._status===-1)&&(M._status=2,M._result=W)}),M._status===-1&&(M._status=0,M._result=D)}if(M._status===1)return M._result.default;throw M._result}var I=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=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(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function z(){}return yt.Children={map:Y,forEach:function(M,D,W){Y(M,function(){D.apply(this,arguments)},W)},count:function(M){var D=0;return Y(M,function(){D++}),D},toArray:function(M){return Y(M,function(D){return D})||[]},only:function(M){if(!oe(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},yt.Component=A,yt.Fragment=n,yt.Profiler=i,yt.PureComponent=j,yt.StrictMode=r,yt.Suspense=d,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,yt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return B.H.useMemoCache(M)}},yt.cache=function(M){return function(){return M.apply(null,arguments)}},yt.cloneElement=function(M,D,W){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var H=w({},M.props),re=M.key,ue=void 0;if(D!=null)for(ce in D.ref!==void 0&&(ue=void 0),D.key!==void 0&&(re=""+D.key),D)!V.call(D,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&D.ref===void 0||(H[ce]=D[ce]);var ce=arguments.length-2;if(ce===1)H.children=W;else if(1<ce){for(var ve=Array(ce),k=0;k<ce;k++)ve[k]=arguments[k+2];H.children=ve}return Z(M.type,re,void 0,void 0,ue,H)},yt.createContext=function(M){return M={$$typeof:s,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:a,_context:M},M},yt.createElement=function(M,D,W){var H,re={},ue=null;if(D!=null)for(H in D.key!==void 0&&(ue=""+D.key),D)V.call(D,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(re[H]=D[H]);var ce=arguments.length-2;if(ce===1)re.children=W;else if(1<ce){for(var ve=Array(ce),k=0;k<ce;k++)ve[k]=arguments[k+2];re.children=ve}if(M&&M.defaultProps)for(H in ce=M.defaultProps,ce)re[H]===void 0&&(re[H]=ce[H]);return Z(M,ue,void 0,void 0,null,re)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(M){return{$$typeof:u,render:M}},yt.isValidElement=oe,yt.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:U}},yt.memo=function(M,D){return{$$typeof:f,type:M,compare:D===void 0?null:D}},yt.startTransition=function(M){var D=B.T,W={};B.T=W;try{var H=M(),re=B.S;re!==null&&re(W,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(z,I)}catch(ue){I(ue)}finally{B.T=D}},yt.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},yt.use=function(M){return B.H.use(M)},yt.useActionState=function(M,D,W){return B.H.useActionState(M,D,W)},yt.useCallback=function(M,D){return B.H.useCallback(M,D)},yt.useContext=function(M){return B.H.useContext(M)},yt.useDebugValue=function(){},yt.useDeferredValue=function(M,D){return B.H.useDeferredValue(M,D)},yt.useEffect=function(M,D,W){var H=B.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return H.useEffect(M,D)},yt.useId=function(){return B.H.useId()},yt.useImperativeHandle=function(M,D,W){return B.H.useImperativeHandle(M,D,W)},yt.useInsertionEffect=function(M,D){return B.H.useInsertionEffect(M,D)},yt.useLayoutEffect=function(M,D){return B.H.useLayoutEffect(M,D)},yt.useMemo=function(M,D){return B.H.useMemo(M,D)},yt.useOptimistic=function(M,D){return B.H.useOptimistic(M,D)},yt.useReducer=function(M,D,W){return B.H.useReducer(M,D,W)},yt.useRef=function(M){return B.H.useRef(M)},yt.useState=function(M){return B.H.useState(M)},yt.useSyncExternalStore=function(M,D,W){return B.H.useSyncExternalStore(M,D,W)},yt.useTransition=function(){return B.H.useTransition()},yt.version="19.1.1",yt}var hA;function mf(){return hA||(hA=1,B1.exports=AB()),B1.exports}var z1={exports:{}},Ar={};/**
|
||
* @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 mA;function TB(){if(mA)return Ar;mA=1;var e=mf();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" 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(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ar.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(d,f,null,m)},Ar.flushSync=function(d){var f=s.T,m=r.p;try{if(s.T=null,r.p=2,d)return d()}finally{s.T=f,r.p=m,r.d.f()}},Ar.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Ar.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Ar.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:b,fetchPriority:_}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:b,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Ar.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},Ar.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Ar.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},Ar.requestFormReset=function(d){r.d.r(d)},Ar.unstable_batchedUpdates=function(d,f){return d(f)},Ar.useFormState=function(d,f,m){return s.H.useFormState(d,f,m)},Ar.useFormStatus=function(){return s.H.useHostTransitionStatus()},Ar.version="19.1.1",Ar}var pA;function d5(){if(pA)return z1.exports;pA=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(),z1.exports=TB(),z1.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 gA;function OB(){if(gA)return kd;gA=1;var e=EB(),t=mf(),n=d5();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)l+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var l=o,h=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(h=l.return),o=l.return;while(o)}return l.tag===3?h:null}function s(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(a(o)!==o)throw Error(r(188))}function d(o){var l=o.alternate;if(!l){if(l=a(o),l===null)throw Error(r(188));return l!==o?null:o}for(var h=o,y=l;;){var E=h.return;if(E===null)break;var P=E.alternate;if(P===null){if(y=E.return,y!==null){h=y;continue}break}if(E.child===P.child){for(P=E.child;P;){if(P===h)return u(E),o;if(P===y)return u(E),l;P=P.sibling}throw Error(r(188))}if(h.return!==y.return)h=E,y=P;else{for(var K=!1,ie=E.child;ie;){if(ie===h){K=!0,h=E,y=P;break}if(ie===y){K=!0,y=E,h=P;break}ie=ie.sibling}if(!K){for(ie=P.child;ie;){if(ie===h){K=!0,h=P,y=E;break}if(ie===y){K=!0,y=P,h=E;break}ie=ie.sibling}if(!K)throw Error(r(189))}}if(h.alternate!==y)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?o:l}function f(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=f(o),l!==null)return l;o=o.sibling}return null}var m=Object.assign,p=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ne(o){return o===null||typeof o!="object"?null:(o=J&&o[J]||o["@@iterator"],typeof o=="function"?o:null)}var he=Symbol.for("react.client.reference");function Q(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===he?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case A:return"Profiler";case x:return"StrictMode";case B:return"Suspense";case V:return"SuspenseList";case oe:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case _:return"Portal";case O:return(o.displayName||"Context")+".Provider";case j:return(o._context.displayName||"Context")+".Consumer";case N:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Z:return l=o.displayName||null,l!==null?l:Q(o.type)||"Memo";case X:l=o._payload,o=o._init;try{return Q(o(l))}catch{}}return null}var se=Array.isArray,Y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},z=[],M=-1;function D(o){return{current:o}}function W(o){0>M||(o.current=z[M],z[M]=null,M--)}function H(o,l){M++,z[M]=o.current,o.current=l}var re=D(null),ue=D(null),ce=D(null),ve=D(null);function k(o,l){switch(H(ce,l),H(ue,o),H(re,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?kE(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=kE(l),o=IE(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}W(re),H(re,o)}function F(){W(re),W(ue),W(ce)}function G(o){o.memoizedState!==null&&H(ve,o);var l=re.current,h=IE(l,o.type);l!==h&&(H(ue,o),H(re,h))}function le(o){ue.current===o&&(W(re),W(ue)),ve.current===o&&(W(ve),Pd._currentValue=I)}var q=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,fe=e.unstable_cancelCallback,ge=e.unstable_shouldYield,de=e.unstable_requestPaint,_e=e.unstable_now,Te=e.unstable_getCurrentPriorityLevel,Le=e.unstable_ImmediatePriority,He=e.unstable_UserBlockingPriority,Be=e.unstable_NormalPriority,qe=e.unstable_LowPriority,be=e.unstable_IdlePriority,we=e.log,De=e.unstable_setDisableYieldValue,Re=null,Ae=null;function ze(o){if(typeof we=="function"&&De(o),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Re,o)}catch{}}var Ve=Math.clz32?Math.clz32:at,Ze=Math.log,ut=Math.LN2;function at(o){return o>>>=0,o===0?32:31-(Ze(o)/ut|0)|0}var pt=256,Dt=4194304;function kt(o){var l=o&42;if(l!==0)return l;switch(o&-o){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 o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function It(o,l,h){var y=o.pendingLanes;if(y===0)return 0;var E=0,P=o.suspendedLanes,K=o.pingedLanes;o=o.warmLanes;var ie=y&134217727;return ie!==0?(y=ie&~P,y!==0?E=kt(y):(K&=ie,K!==0?E=kt(K):h||(h=ie&~o,h!==0&&(E=kt(h))))):(ie=y&~P,ie!==0?E=kt(ie):K!==0?E=kt(K):h||(h=y&~o,h!==0&&(E=kt(h)))),E===0?0:l!==0&&l!==E&&(l&P)===0&&(P=E&-E,h=l&-l,P>=h||P===32&&(h&4194048)!==0)?l:E}function wr(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function Vn(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 os(){var o=pt;return pt<<=1,(pt&4194048)===0&&(pt=256),o}function ii(){var o=Dt;return Dt<<=1,(Dt&62914560)===0&&(Dt=4194304),o}function ss(o){for(var l=[],h=0;31>h;h++)l.push(o);return l}function ja(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Gu(o,l,h,y,E,P){var K=o.pendingLanes;o.pendingLanes=h,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=h,o.entangledLanes&=h,o.errorRecoveryDisabledLanes&=h,o.shellSuspendCounter=0;var ie=o.entanglements,pe=o.expirationTimes,Ee=o.hiddenUpdates;for(h=K&~h;0<h;){var ke=31-Ve(h),Ue=1<<ke;ie[ke]=0,pe[ke]=-1;var Oe=Ee[ke];if(Oe!==null)for(Ee[ke]=null,ke=0;ke<Oe.length;ke++){var je=Oe[ke];je!==null&&(je.lane&=-536870913)}h&=~Ue}y!==0&&ls(o,y,0),P!==0&&E===0&&o.tag!==0&&(o.suspendedLanes|=P&~(K&~l))}function ls(o,l,h){o.pendingLanes|=l,o.suspendedLanes&=~l;var y=31-Ve(l);o.entangledLanes|=l,o.entanglements[y]=o.entanglements[y]|1073741824|h&4194090}function Pa(o,l){var h=o.entangledLanes|=l;for(o=o.entanglements;h;){var y=31-Ve(h),E=1<<y;E&l|o[y]&l&&(o[y]|=l),h&=~E}}function mn(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function sn(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Jn(){var o=U.p;return o!==0?o:(o=window.event,o===void 0?32:nA(o.type))}function qn(o,l){var h=U.p;try{return U.p=o,l()}finally{U.p=h}}var Qt=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Qt,Jt="__reactProps$"+Qt,er="__reactContainer$"+Qt,Rn="__reactEvents$"+Qt,ot="__reactListeners$"+Qt,hm="__reactHandles$"+Qt,Uf="__reactResources$"+Qt,us="__reactMarker$"+Qt;function Wu(o){delete o[Tt],delete o[Jt],delete o[Rn],delete o[ot],delete o[hm]}function Ma(o){var l=o[Tt];if(l)return l;for(var h=o.parentNode;h;){if(l=h[er]||h[Tt]){if(h=l.alternate,l.child!==null||h!==null&&h.child!==null)for(o=FE(o);o!==null;){if(h=o[Tt])return h;o=FE(o)}return l}o=h,h=o.parentNode}return null}function io(o){if(o=o[Tt]||o[er]){var l=o.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return o}return null}function Di(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function ao(o){var l=o[Uf];return l||(l=o[Uf]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Un(o){o[us]=!0}var mm=new Set,pm={};function oo(o,l){so(o,l),so(o+"Capture",l)}function so(o,l){for(pm[o]=l,o=0;o<l.length;o++)mm.add(l[o])}var Hy=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]*$"),Dl={},gm={};function Gy(o){return q.call(gm,o)?!0:q.call(Dl,o)?!1:Hy.test(o)?gm[o]=!0:(Dl[o]=!0,!1)}function Yu(o,l,h){if(Gy(l))if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var y=l.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+h)}}function Ku(o,l,h){if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+h)}}function na(o,l,h,y){if(y===null)o.removeAttribute(h);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(h);return}o.setAttributeNS(l,h,""+y)}}var kl,cs;function lo(o){if(kl===void 0)try{throw Error()}catch(h){var l=h.stack.trim().match(/\n( *(at )?)/);kl=l&&l[1]||"",cs=-1<h.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+kl+o+cs}var Zu=!1;function uo(o,l){if(!o||Zu)return"";Zu=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(l){var Ue=function(){throw Error()};if(Object.defineProperty(Ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ue,[])}catch(je){var Oe=je}Reflect.construct(o,[],Ue)}else{try{Ue.call()}catch(je){Oe=je}o.call(Ue.prototype)}}else{try{throw Error()}catch(je){Oe=je}(Ue=o())&&typeof Ue.catch=="function"&&Ue.catch(function(){})}}catch(je){if(je&&Oe&&typeof je.stack=="string")return[je.stack,Oe.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=y.DetermineComponentFrameRoot(),K=P[0],ie=P[1];if(K&&ie){var pe=K.split(`
|
||
`),Ee=ie.split(`
|
||
`);for(E=y=0;y<pe.length&&!pe[y].includes("DetermineComponentFrameRoot");)y++;for(;E<Ee.length&&!Ee[E].includes("DetermineComponentFrameRoot");)E++;if(y===pe.length||E===Ee.length)for(y=pe.length-1,E=Ee.length-1;1<=y&&0<=E&&pe[y]!==Ee[E];)E--;for(;1<=y&&0<=E;y--,E--)if(pe[y]!==Ee[E]){if(y!==1||E!==1)do if(y--,E--,0>E||pe[y]!==Ee[E]){var ke=`
|
||
`+pe[y].replace(" at new "," at ");return o.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",o.displayName)),ke}while(1<=y&&0<=E);break}}}finally{Zu=!1,Error.prepareStackTrace=h}return(h=o?o.displayName||o.name:"")?lo(h):""}function jt(o){switch(o.tag){case 26:case 27:case 5:return lo(o.type);case 16:return lo("Lazy");case 13:return lo("Suspense");case 19:return lo("SuspenseList");case 0:case 15:return uo(o.type,!1);case 11:return uo(o.type.render,!1);case 1:return uo(o.type,!0);case 31:return lo("Activity");default:return""}}function en(o){try{var l="";do l+=jt(o),o=o.return;while(o);return l}catch(h){return`
|
||
Error generating stack: `+h.message+`
|
||
`+h.stack}}function cr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function co(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function fs(o){var l=co(o)?"checked":"value",h=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),y=""+o[l];if(!o.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var E=h.get,P=h.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return E.call(this)},set:function(K){y=""+K,P.call(this,K)}}),Object.defineProperty(o,l,{enumerable:h.enumerable}),{getValue:function(){return y},setValue:function(K){y=""+K},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ds(o){o._valueTracker||(o._valueTracker=fs(o))}function vt(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var h=l.getValue(),y="";return o&&(y=co(o)?o.checked?"true":"false":o.value),o=y,o!==h?(l.setValue(o),!0):!1}function tn(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Bf=/[\n"\\]/g;function fr(o){return o.replace(Bf,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Sr(o,l,h,y,E,P,K,ie){o.name="",K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?o.type=K:o.removeAttribute("type"),l!=null?K==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+cr(l)):o.value!==""+cr(l)&&(o.value=""+cr(l)):K!=="submit"&&K!=="reset"||o.removeAttribute("value"),l!=null?hs(o,K,cr(l)):h!=null?hs(o,K,cr(h)):y!=null&&o.removeAttribute("value"),E==null&&P!=null&&(o.defaultChecked=!!P),E!=null&&(o.checked=E&&typeof E!="function"&&typeof E!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?o.name=""+cr(ie):o.removeAttribute("name")}function vm(o,l,h,y,E,P,K,ie){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(o.type=P),l!=null||h!=null){if(!(P!=="submit"&&P!=="reset"||l!=null))return;h=h!=null?""+cr(h):"",l=l!=null?""+cr(l):h,ie||l===o.value||(o.value=l),o.defaultValue=l}y=y??E,y=typeof y!="function"&&typeof y!="symbol"&&!!y,o.checked=ie?o.checked:!!y,o.defaultChecked=!!y,K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"&&(o.name=K)}function hs(o,l,h){l==="number"&&tn(o.ownerDocument)===o||o.defaultValue===""+h||(o.defaultValue=""+h)}function Gr(o,l,h,y){if(o=o.options,l){l={};for(var E=0;E<h.length;E++)l["$"+h[E]]=!0;for(h=0;h<o.length;h++)E=l.hasOwnProperty("$"+o[h].value),o[h].selected!==E&&(o[h].selected=E),E&&y&&(o[h].defaultSelected=!0)}else{for(h=""+cr(h),l=null,E=0;E<o.length;E++){if(o[E].value===h){o[E].selected=!0,y&&(o[E].defaultSelected=!0);return}l!==null||o[E].disabled||(l=o[E])}l!==null&&(l.selected=!0)}}function _n(o,l,h){if(l!=null&&(l=""+cr(l),l!==o.value&&(o.value=l),h==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=h!=null?""+cr(h):""}function Ra(o,l,h,y){if(l==null){if(y!=null){if(h!=null)throw Error(r(92));if(se(y)){if(1<y.length)throw Error(r(93));y=y[0]}h=y}h==null&&(h=""),l=h}h=cr(l),o.defaultValue=h,y=o.textContent,y===h&&y!==""&&y!==null&&(o.value=y)}function ki(o,l){if(l){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=l;return}}o.textContent=l}var Il=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 Xu(o,l,h){var y=l.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?y?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":y?o.setProperty(l,h):typeof h!="number"||h===0||Il.has(l)?l==="float"?o.cssFloat=h:o[l]=(""+h).trim():o[l]=h+"px"}function ms(o,l,h){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,h!=null){for(var y in h)!h.hasOwnProperty(y)||l!=null&&l.hasOwnProperty(y)||(y.indexOf("--")===0?o.setProperty(y,""):y==="float"?o.cssFloat="":o[y]="");for(var E in l)y=l[E],l.hasOwnProperty(E)&&h[E]!==y&&Xu(o,E,y)}else for(var P in l)l.hasOwnProperty(P)&&Xu(o,P,l[P])}function Ul(o){if(o.indexOf("-")===-1)return!1;switch(o){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 zf=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"]]),Qu=/^[\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(o){return Qu.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Bl=null;function gs(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var fo=null,Na=null;function ym(o){var l=io(o);if(l&&(o=l.stateNode)){var h=o[Jt]||null;e:switch(o=l.stateNode,l.type){case"input":if(Sr(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),l=h.name,h.type==="radio"&&l!=null){for(h=o;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+fr(""+l)+'"][type="radio"]'),l=0;l<h.length;l++){var y=h[l];if(y!==o&&y.form===o.form){var E=y[Jt]||null;if(!E)throw Error(r(90));Sr(y,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(l=0;l<h.length;l++)y=h[l],y.form===o.form&&vt(y)}break e;case"textarea":_n(o,h.value,h.defaultValue);break e;case"select":l=h.value,l!=null&&Gr(o,!!h.multiple,l,!1)}}}var mt=!1;function ai(o,l,h){if(mt)return o(l,h);mt=!0;try{var y=o(l);return y}finally{if(mt=!1,(fo!==null||Na!==null)&&(dp(),fo&&(l=fo,o=Na,Na=fo=null,ym(l),o)))for(l=0;l<o.length;l++)ym(o[l])}}function Ut(o,l){var h=o.stateNode;if(h===null)return null;var y=h[Jt]||null;if(y===null)return null;h=y[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(o=o.type,y=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!y;break e;default:o=!1}if(o)return null;if(h&&typeof h!="function")throw Error(r(231,l,typeof h));return h}var Ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zl=!1;if(Ii)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){zl=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{zl=!1}var Ui=null,ra=null,vs=null;function ys(){if(vs)return vs;var o,l=ra,h=l.length,y,E="value"in Ui?Ui.value:Ui.textContent,P=E.length;for(o=0;o<h&&l[o]===E[o];o++);var K=h-o;for(y=1;y<=K&&l[h-y]===E[P-y];y++);return vs=E.slice(o,1<y?1-y:void 0)}function Cn(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function Bi(){return!0}function Ff(){return!1}function dr(o){function l(h,y,E,P,K){this._reactName=h,this._targetInst=E,this.type=y,this.nativeEvent=P,this.target=K,this.currentTarget=null;for(var ie in o)o.hasOwnProperty(ie)&&(h=o[ie],this[ie]=h?h(P):P[ie]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?Bi:Ff,this.isPropagationStopped=Ff,this}return m(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Bi)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),l}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fl=dr(mo),po=m({},mo,{view:0,detail:0}),Wy=dr(po),Ju,xt,$l,Cr=m({},po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ec,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==$l&&($l&&o.type==="mousemove"?(Ju=o.screenX-$l.screenX,xt=o.screenY-$l.screenY):xt=Ju=0,$l=o),Ju)},movementY:function(o){return"movementY"in o?o.movementY:xt}}),bs=dr(Cr),bm=m({},Cr,{dataTransfer:0}),Yy=dr(bm),$f=m({},po,{relatedTarget:0}),Vf=dr($f),_m=m({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),Ky=dr(_m),Zy=m({},mo,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),qf=dr(Zy),Xy=m({},mo,{data:0}),oi=dr(Xy),Qy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xm={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"},La={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wm(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=La[o])?!!l[o]:!1}function ec(){return wm}var Hf=m({},po,{key:function(o){if(o.key){var l=Qy[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Cn(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?xm[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ec,charCode:function(o){return o.type==="keypress"?Cn(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Cn(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Jy=dr(Hf),Sm=m({},Cr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gf=dr(Sm),e0=m({},po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ec}),t0=dr(e0),Wf=m({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=dr(Wf),Cm=m({},Cr,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Em=dr(Cm),tc=m({},mo,{newState:0,oldState:0}),go=dr(tc),r0=[9,13,27,32],vo=Ii&&"CompositionEvent"in window,tr=null;Ii&&"documentMode"in document&&(tr=document.documentMode);var Am=Ii&&"TextEvent"in window&&!tr,Yf=Ii&&(!vo||tr&&8<tr&&11>=tr),Tm=" ",nc=!1;function rc(o,l){switch(o){case"keyup":return r0.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var _s=!1;function jm(o,l){switch(o){case"compositionend":return Om(l);case"keypress":return l.which!==32?null:(nc=!0,Tm);case"textInput":return o=l.data,o===Tm&&nc?null:o;default:return null}}function i0(o,l){if(_s)return o==="compositionend"||!vo&&rc(o,l)?(o=ys(),vs=ra=Ui=null,_s=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Yf&&l.locale!=="ko"?null:l.data;default:return null}}var si={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 yo(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!si[o.type]:l==="textarea"}function Pm(o,l,h,y){fo?Na?Na.push(y):Na=[y]:fo=y,l=yp(l,"onChange"),0<l.length&&(h=new Fl("onChange","change",null,h,y),o.push({event:h,listeners:l}))}var Nr=null,Vl=null;function xs(o){ME(o,0)}function ic(o){var l=Di(o);if(vt(l))return o}function ws(o,l){if(o==="change")return l}var Kf=!1;if(Ii){var Ss;if(Ii){var Zf="oninput"in document;if(!Zf){var ia=document.createElement("div");ia.setAttribute("oninput","return;"),Zf=typeof ia.oninput=="function"}Ss=Zf}else Ss=!1;Kf=Ss&&(!document.documentMode||9<document.documentMode)}function ql(){Nr&&(Nr.detachEvent("onpropertychange",Mm),Vl=Nr=null)}function Mm(o){if(o.propertyName==="value"&&ic(Vl)){var l=[];Pm(l,Vl,o,gs(o)),ai(xs,l)}}function Xf(o,l,h){o==="focusin"?(ql(),Nr=l,Vl=h,Nr.attachEvent("onpropertychange",Mm)):o==="focusout"&&ql()}function a0(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ic(Vl)}function aa(o,l){if(o==="click")return ic(l)}function o0(o,l){if(o==="input"||o==="change")return ic(l)}function Cs(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Lr=typeof Object.is=="function"?Object.is:Cs;function Dr(o,l){if(Lr(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var h=Object.keys(o),y=Object.keys(l);if(h.length!==y.length)return!1;for(y=0;y<h.length;y++){var E=h[y];if(!q.call(l,E)||!Lr(o[E],l[E]))return!1}return!0}function Hl(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Qf(o,l){var h=Hl(o);o=0;for(var y;h;){if(h.nodeType===3){if(y=o+h.textContent.length,o<=l&&y>=l)return{node:h,offset:l-o};o=y}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Hl(h)}}function ac(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?ac(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Gl(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=tn(o.document);l instanceof o.HTMLIFrameElement;){try{var h=typeof l.contentWindow.location.href=="string"}catch{h=!1}if(h)o=l.contentWindow;else break;l=tn(o.document)}return l}function Wl(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var oc=Ii&&"documentMode"in document&&11>=document.documentMode,li=null,Es=null,bo=null,sc=!1;function Rm(o,l,h){var y=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;sc||li==null||li!==tn(y)||(y=li,"selectionStart"in y&&Wl(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),bo&&Dr(bo,y)||(bo=y,y=yp(Es,"onSelect"),0<y.length&&(l=new Fl("onSelect","select",null,l,h),o.push({event:l,listeners:y}),l.target=li)))}function zi(o,l){var h={};return h[o.toLowerCase()]=l.toLowerCase(),h["Webkit"+o]="webkit"+l,h["Moz"+o]="moz"+l,h}var As={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},lc={},Nm={};Ii&&(Nm=document.createElement("div").style,"AnimationEvent"in window||(delete As.animationend.animation,delete As.animationiteration.animation,delete As.animationstart.animation),"TransitionEvent"in window||delete As.transitionend.transition);function Da(o){if(lc[o])return lc[o];if(!As[o])return o;var l=As[o],h;for(h in l)if(l.hasOwnProperty(h)&&h in Nm)return lc[o]=l[h];return o}var Lm=Da("animationend"),ui=Da("animationiteration"),Yl=Da("animationstart"),s0=Da("transitionrun"),uc=Da("transitionstart"),l0=Da("transitioncancel"),Jf=Da("transitionend"),Dm=new Map,_o="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(" ");_o.push("scrollEnd");function ci(o,l){Dm.set(o,l),oo(l,[o])}var xo=new WeakMap;function kr(o,l){if(typeof o=="object"&&o!==null){var h=xo.get(o);return h!==void 0?h:(l={value:o,source:l,stack:en(l)},xo.set(o,l),l)}return{value:o,source:l,stack:en(l)}}var Ir=[],Ts=0,fi=0;function Kl(){for(var o=Ts,l=fi=Ts=0;l<o;){var h=Ir[l];Ir[l++]=null;var y=Ir[l];Ir[l++]=null;var E=Ir[l];Ir[l++]=null;var P=Ir[l];if(Ir[l++]=null,y!==null&&E!==null){var K=y.pending;K===null?E.next=E:(E.next=K.next,K.next=E),y.pending=E}P!==0&&Xl(h,E,P)}}function Zl(o,l,h,y){Ir[Ts++]=o,Ir[Ts++]=l,Ir[Ts++]=h,Ir[Ts++]=y,fi|=y,o.lanes|=y,o=o.alternate,o!==null&&(o.lanes|=y)}function wo(o,l,h,y){return Zl(o,l,h,y),ka(o)}function Os(o,l){return Zl(o,null,null,l),ka(o)}function Xl(o,l,h){o.lanes|=h;var y=o.alternate;y!==null&&(y.lanes|=h);for(var E=!1,P=o.return;P!==null;)P.childLanes|=h,y=P.alternate,y!==null&&(y.childLanes|=h),P.tag===22&&(o=P.stateNode,o===null||o._visibility&1||(E=!0)),o=P,P=P.return;return o.tag===3?(P=o.stateNode,E&&l!==null&&(E=31-Ve(h),o=P.hiddenUpdates,y=o[E],y===null?o[E]=[l]:y.push(l),l.lane=h|536870912),P):null}function ka(o){if(50<wd)throw wd=0,a1=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var So={};function km(o,l,h,y){this.tag=o,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(o,l,h,y){return new km(o,l,h,y)}function cc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Fi(o,l){var h=o.alternate;return h===null?(h=Ur(o.tag,l,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=l,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&65011712,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,l=o.dependencies,h.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h.refCleanup=o.refCleanup,h}function ed(o,l){o.flags&=65011714;var h=o.alternate;return h===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=h.childLanes,o.lanes=h.lanes,o.child=h.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=h.memoizedProps,o.memoizedState=h.memoizedState,o.updateQueue=h.updateQueue,o.type=h.type,l=h.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function Ql(o,l,h,y,E,P){var K=0;if(y=o,typeof o=="function")cc(o)&&(K=1);else if(typeof o=="string")K=lB(o,h,re.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case oe:return o=Ur(31,h,l,E),o.elementType=oe,o.lanes=P,o;case w:return Ia(h.children,E,P,l);case x:K=8,E|=24;break;case A:return o=Ur(12,h,l,E|2),o.elementType=A,o.lanes=P,o;case B:return o=Ur(13,h,l,E),o.elementType=B,o.lanes=P,o;case V:return o=Ur(19,h,l,E),o.elementType=V,o.lanes=P,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case C:case O:K=10;break e;case j:K=9;break e;case N:K=11;break e;case Z:K=14;break e;case X:K=16,y=null;break e}K=29,h=Error(r(130,o===null?"null":typeof o,"")),y=null}return l=Ur(K,h,l,E),l.elementType=o,l.type=y,l.lanes=P,l}function Ia(o,l,h,y){return o=Ur(7,o,y,l),o.lanes=h,o}function td(o,l,h){return o=Ur(6,o,null,l),o.lanes=h,o}function fc(o,l,h){return l=Ur(4,o.children!==null?o.children:[],o.key,l),l.lanes=h,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var Co=[],js=0,c=null,g=0,S=[],R=0,$=null,te=1,me="";function Se(o,l){Co[js++]=g,Co[js++]=c,c=o,g=l}function Me(o,l,h){S[R++]=te,S[R++]=me,S[R++]=$,$=o;var y=te;o=me;var E=32-Ve(y)-1;y&=~(1<<E),h+=1;var P=32-Ve(l)+E;if(30<P){var K=E-E%5;P=(y&(1<<K)-1).toString(32),y>>=K,E-=K,te=1<<32-Ve(l)+E|h<<E|y,me=P+o}else te=1<<P|h<<E|y,me=o}function Fe(o){o.return!==null&&(Se(o,1),Me(o,1,0))}function Xe(o){for(;o===c;)c=Co[--js],Co[js]=null,g=Co[--js],Co[js]=null;for(;o===$;)$=S[--R],S[R]=null,me=S[--R],S[R]=null,te=S[--R],S[R]=null}var tt=null,rt=null,ht=!1,nn=null,xn=!1,nr=Error(r(519));function Wr(o){var l=Error(r(418,""));throw Ms(kr(l,o)),nr}function Im(o){var l=o.stateNode,h=o.type,y=o.memoizedProps;switch(l[Tt]=o,l[Jt]=y,h){case"dialog":Ct("cancel",l),Ct("close",l);break;case"iframe":case"object":case"embed":Ct("load",l);break;case"video":case"audio":for(h=0;h<Cd.length;h++)Ct(Cd[h],l);break;case"source":Ct("error",l);break;case"img":case"image":case"link":Ct("error",l),Ct("load",l);break;case"details":Ct("toggle",l);break;case"input":Ct("invalid",l),vm(l,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0),ds(l);break;case"select":Ct("invalid",l);break;case"textarea":Ct("invalid",l),Ra(l,y.value,y.defaultValue,y.children),ds(l)}h=y.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||l.textContent===""+h||y.suppressHydrationWarning===!0||DE(l.textContent,h)?(y.popover!=null&&(Ct("beforetoggle",l),Ct("toggle",l)),y.onScroll!=null&&Ct("scroll",l),y.onScrollEnd!=null&&Ct("scrollend",l),y.onClick!=null&&(l.onclick=bp),l=!0):l=!1,l||Wr(o)}function Um(o){for(tt=o.return;tt;)switch(tt.tag){case 5:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:tt=tt.return}}function Jl(o){if(o!==tt)return!1;if(!ht)return Um(o),ht=!0,!1;var l=o.tag,h;if((h=l!==3&&l!==27)&&((h=l===5)&&(h=o.type,h=!(h!=="form"&&h!=="button")||x1(o.type,o.memoizedProps)),h=!h),h&&rt&&Wr(o),Um(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,l=0;o;){if(o.nodeType===8)if(h=o.data,h==="/$"){if(l===0){rt=ua(o.nextSibling);break e}l--}else h!=="$"&&h!=="$!"&&h!=="$?"||l++;o=o.nextSibling}rt=null}}else l===27?(l=rt,Gs(o.type)?(o=E1,E1=null,rt=o):rt=l):rt=tt?ua(o.stateNode.nextSibling):null;return!0}function Ps(){rt=tt=null,ht=!1}function Bm(){var o=nn;return o!==null&&(Zr===null?Zr=o:Zr.push.apply(Zr,o),nn=null),o}function Ms(o){nn===null?nn=[o]:nn.push(o)}var pn=D(null),$i=null,oa=null;function Ua(o,l,h){H(pn,l._currentValue),l._currentValue=h}function sa(o){o._currentValue=pn.current,W(pn)}function eu(o,l,h){for(;o!==null;){var y=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,y!==null&&(y.childLanes|=l)):y!==null&&(y.childLanes&l)!==l&&(y.childLanes|=l),o===h)break;o=o.return}}function dc(o,l,h,y){var E=o.child;for(E!==null&&(E.return=o);E!==null;){var P=E.dependencies;if(P!==null){var K=E.child;P=P.firstContext;e:for(;P!==null;){var ie=P;P=E;for(var pe=0;pe<l.length;pe++)if(ie.context===l[pe]){P.lanes|=h,ie=P.alternate,ie!==null&&(ie.lanes|=h),eu(P.return,h,o),y||(K=null);break e}P=ie.next}}else if(E.tag===18){if(K=E.return,K===null)throw Error(r(341));K.lanes|=h,P=K.alternate,P!==null&&(P.lanes|=h),eu(K,h,o),K=null}else K=E.child;if(K!==null)K.return=E;else for(K=E;K!==null;){if(K===o){K=null;break}if(E=K.sibling,E!==null){E.return=K.return,K=E;break}K=K.return}E=K}}function tu(o,l,h,y){o=null;for(var E=l,P=!1;E!==null;){if(!P){if((E.flags&524288)!==0)P=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var K=E.alternate;if(K===null)throw Error(r(387));if(K=K.memoizedProps,K!==null){var ie=E.type;Lr(E.pendingProps.value,K.value)||(o!==null?o.push(ie):o=[ie])}}else if(E===ve.current){if(K=E.alternate,K===null)throw Error(r(387));K.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(o!==null?o.push(Pd):o=[Pd])}E=E.return}o!==null&&dc(l,o,h,y),l.flags|=262144}function zm(o){for(o=o.firstContext;o!==null;){if(!Lr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function nu(o){$i=o,oa=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Er(o){return x3($i,o)}function Fm(o,l){return $i===null&&nu(o),x3(o,l)}function x3(o,l){var h=l._currentValue;if(l={context:l,memoizedValue:h,next:null},oa===null){if(o===null)throw Error(r(308));oa=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else oa=oa.next=l;return h}var sU=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(h,y){o.push(y)}};this.abort=function(){l.aborted=!0,o.forEach(function(h){return h()})}},lU=e.unstable_scheduleCallback,uU=e.unstable_NormalPriority,Hn={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function u0(){return{controller:new sU,data:new Map,refCount:0}}function nd(o){o.refCount--,o.refCount===0&&lU(uU,function(){o.controller.abort()})}var rd=null,c0=0,hc=0,mc=null;function cU(o,l){if(rd===null){var h=rd=[];c0=0,hc=d1(),mc={status:"pending",value:void 0,then:function(y){h.push(y)}}}return c0++,l.then(w3,w3),l}function w3(){if(--c0===0&&rd!==null){mc!==null&&(mc.status="fulfilled");var o=rd;rd=null,hc=0,mc=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function fU(o,l){var h=[],y={status:"pending",value:null,reason:null,then:function(E){h.push(E)}};return o.then(function(){y.status="fulfilled",y.value=l;for(var E=0;E<h.length;E++)(0,h[E])(l)},function(E){for(y.status="rejected",y.reason=E,E=0;E<h.length;E++)(0,h[E])(void 0)}),y}var S3=Y.S;Y.S=function(o,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&cU(o,l),S3!==null&&S3(o,l)};var ru=D(null);function f0(){var o=ru.current;return o!==null?o:rn.pooledCache}function $m(o,l){l===null?H(ru,ru.current):H(ru,l.pool)}function C3(){var o=f0();return o===null?null:{parent:Hn._currentValue,pool:o}}var id=Error(r(460)),E3=Error(r(474)),Vm=Error(r(542)),d0={then:function(){}};function A3(o){return o=o.status,o==="fulfilled"||o==="rejected"}function qm(){}function T3(o,l,h){switch(h=o[h],h===void 0?o.push(l):h!==l&&(l.then(qm,qm),l=h),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,j3(o),o;default:if(typeof l.status=="string")l.then(qm,qm);else{if(o=rn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(y){if(l.status==="pending"){var E=l;E.status="fulfilled",E.value=y}},function(y){if(l.status==="pending"){var E=l;E.status="rejected",E.reason=y}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,j3(o),o}throw ad=l,id}}var ad=null;function O3(){if(ad===null)throw Error(r(459));var o=ad;return ad=null,o}function j3(o){if(o===id||o===Vm)throw Error(r(483))}var Rs=!1;function h0(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function m0(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ns(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Ls(o,l,h){var y=o.updateQueue;if(y===null)return null;if(y=y.shared,($t&2)!==0){var E=y.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),y.pending=l,l=ka(o),Xl(o,null,h),l}return Zl(o,y,l,h),ka(o)}function od(o,l,h){if(l=l.updateQueue,l!==null&&(l=l.shared,(h&4194048)!==0)){var y=l.lanes;y&=o.pendingLanes,h|=y,l.lanes=h,Pa(o,h)}}function p0(o,l){var h=o.updateQueue,y=o.alternate;if(y!==null&&(y=y.updateQueue,h===y)){var E=null,P=null;if(h=h.firstBaseUpdate,h!==null){do{var K={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};P===null?E=P=K:P=P.next=K,h=h.next}while(h!==null);P===null?E=P=l:P=P.next=l}else E=P=l;h={baseState:y.baseState,firstBaseUpdate:E,lastBaseUpdate:P,shared:y.shared,callbacks:y.callbacks},o.updateQueue=h;return}o=h.lastBaseUpdate,o===null?h.firstBaseUpdate=l:o.next=l,h.lastBaseUpdate=l}var g0=!1;function sd(){if(g0){var o=mc;if(o!==null)throw o}}function ld(o,l,h,y){g0=!1;var E=o.updateQueue;Rs=!1;var P=E.firstBaseUpdate,K=E.lastBaseUpdate,ie=E.shared.pending;if(ie!==null){E.shared.pending=null;var pe=ie,Ee=pe.next;pe.next=null,K===null?P=Ee:K.next=Ee,K=pe;var ke=o.alternate;ke!==null&&(ke=ke.updateQueue,ie=ke.lastBaseUpdate,ie!==K&&(ie===null?ke.firstBaseUpdate=Ee:ie.next=Ee,ke.lastBaseUpdate=pe))}if(P!==null){var Ue=E.baseState;K=0,ke=Ee=pe=null,ie=P;do{var Oe=ie.lane&-536870913,je=Oe!==ie.lane;if(je?(Pt&Oe)===Oe:(y&Oe)===Oe){Oe!==0&&Oe===hc&&(g0=!0),ke!==null&&(ke=ke.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var dt=o,ct=ie;Oe=l;var Wt=h;switch(ct.tag){case 1:if(dt=ct.payload,typeof dt=="function"){Ue=dt.call(Wt,Ue,Oe);break e}Ue=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=ct.payload,Oe=typeof dt=="function"?dt.call(Wt,Ue,Oe):dt,Oe==null)break e;Ue=m({},Ue,Oe);break e;case 2:Rs=!0}}Oe=ie.callback,Oe!==null&&(o.flags|=64,je&&(o.flags|=8192),je=E.callbacks,je===null?E.callbacks=[Oe]:je.push(Oe))}else je={lane:Oe,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},ke===null?(Ee=ke=je,pe=Ue):ke=ke.next=je,K|=Oe;if(ie=ie.next,ie===null){if(ie=E.shared.pending,ie===null)break;je=ie,ie=je.next,je.next=null,E.lastBaseUpdate=je,E.shared.pending=null}}while(!0);ke===null&&(pe=Ue),E.baseState=pe,E.firstBaseUpdate=Ee,E.lastBaseUpdate=ke,P===null&&(E.shared.lanes=0),$s|=K,o.lanes=K,o.memoizedState=Ue}}function P3(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function M3(o,l){var h=o.callbacks;if(h!==null)for(o.callbacks=null,o=0;o<h.length;o++)P3(h[o],l)}var pc=D(null),Hm=D(0);function R3(o,l){o=Mo,H(Hm,o),H(pc,l),Mo=o|l.baseLanes}function v0(){H(Hm,Mo),H(pc,pc.current)}function y0(){Mo=Hm.current,W(pc),W(Hm)}var Ds=0,bt=null,Ht=null,Bn=null,Gm=!1,gc=!1,iu=!1,Wm=0,ud=0,vc=null,dU=0;function Nn(){throw Error(r(321))}function b0(o,l){if(l===null)return!1;for(var h=0;h<l.length&&h<o.length;h++)if(!Lr(o[h],l[h]))return!1;return!0}function _0(o,l,h,y,E,P){return Ds=P,bt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Y.H=o===null||o.memoizedState===null?p4:g4,iu=!1,P=h(y,E),iu=!1,gc&&(P=L3(l,h,y,E)),N3(o),P}function N3(o){Y.H=Jm;var l=Ht!==null&&Ht.next!==null;if(Ds=0,Bn=Ht=bt=null,Gm=!1,ud=0,vc=null,l)throw Error(r(300));o===null||rr||(o=o.dependencies,o!==null&&zm(o)&&(rr=!0))}function L3(o,l,h,y){bt=o;var E=0;do{if(gc&&(vc=null),ud=0,gc=!1,25<=E)throw Error(r(301));if(E+=1,Bn=Ht=null,o.updateQueue!=null){var P=o.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}Y.H=bU,P=l(h,y)}while(gc);return P}function hU(){var o=Y.H,l=o.useState()[0];return l=typeof l.then=="function"?cd(l):l,o=o.useState()[0],(Ht!==null?Ht.memoizedState:null)!==o&&(bt.flags|=1024),l}function x0(){var o=Wm!==0;return Wm=0,o}function w0(o,l,h){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~h}function S0(o){if(Gm){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}Gm=!1}Ds=0,Bn=Ht=bt=null,gc=!1,ud=Wm=0,vc=null}function Yr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bn===null?bt.memoizedState=Bn=o:Bn=Bn.next=o,Bn}function zn(){if(Ht===null){var o=bt.alternate;o=o!==null?o.memoizedState:null}else o=Ht.next;var l=Bn===null?bt.memoizedState:Bn.next;if(l!==null)Bn=l,Ht=o;else{if(o===null)throw bt.alternate===null?Error(r(467)):Error(r(310));Ht=o,o={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},Bn===null?bt.memoizedState=Bn=o:Bn=Bn.next=o}return Bn}function C0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cd(o){var l=ud;return ud+=1,vc===null&&(vc=[]),o=T3(vc,o,l),l=bt,(Bn===null?l.memoizedState:Bn.next)===null&&(l=l.alternate,Y.H=l===null||l.memoizedState===null?p4:g4),o}function Ym(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return cd(o);if(o.$$typeof===O)return Er(o)}throw Error(r(438,String(o)))}function E0(o){var l=null,h=bt.updateQueue;if(h!==null&&(l=h.memoCache),l==null){var y=bt.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(l={data:y.data.map(function(E){return E.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),h===null&&(h=C0(),bt.updateQueue=h),h.memoCache=l,h=l.data[l.index],h===void 0)for(h=l.data[l.index]=Array(o),y=0;y<o;y++)h[y]=ee;return l.index++,h}function Eo(o,l){return typeof l=="function"?l(o):l}function Km(o){var l=zn();return A0(l,Ht,o)}function A0(o,l,h){var y=o.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=h;var E=o.baseQueue,P=y.pending;if(P!==null){if(E!==null){var K=E.next;E.next=P.next,P.next=K}l.baseQueue=E=P,y.pending=null}if(P=o.baseState,E===null)o.memoizedState=P;else{l=E.next;var ie=K=null,pe=null,Ee=l,ke=!1;do{var Ue=Ee.lane&-536870913;if(Ue!==Ee.lane?(Pt&Ue)===Ue:(Ds&Ue)===Ue){var Oe=Ee.revertLane;if(Oe===0)pe!==null&&(pe=pe.next={lane:0,revertLane:0,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),Ue===hc&&(ke=!0);else if((Ds&Oe)===Oe){Ee=Ee.next,Oe===hc&&(ke=!0);continue}else Ue={lane:0,revertLane:Ee.revertLane,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},pe===null?(ie=pe=Ue,K=P):pe=pe.next=Ue,bt.lanes|=Oe,$s|=Oe;Ue=Ee.action,iu&&h(P,Ue),P=Ee.hasEagerState?Ee.eagerState:h(P,Ue)}else Oe={lane:Ue,revertLane:Ee.revertLane,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},pe===null?(ie=pe=Oe,K=P):pe=pe.next=Oe,bt.lanes|=Ue,$s|=Ue;Ee=Ee.next}while(Ee!==null&&Ee!==l);if(pe===null?K=P:pe.next=ie,!Lr(P,o.memoizedState)&&(rr=!0,ke&&(h=mc,h!==null)))throw h;o.memoizedState=P,o.baseState=K,o.baseQueue=pe,y.lastRenderedState=P}return E===null&&(y.lanes=0),[o.memoizedState,y.dispatch]}function T0(o){var l=zn(),h=l.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=o;var y=h.dispatch,E=h.pending,P=l.memoizedState;if(E!==null){h.pending=null;var K=E=E.next;do P=o(P,K.action),K=K.next;while(K!==E);Lr(P,l.memoizedState)||(rr=!0),l.memoizedState=P,l.baseQueue===null&&(l.baseState=P),h.lastRenderedState=P}return[P,y]}function D3(o,l,h){var y=bt,E=zn(),P=ht;if(P){if(h===void 0)throw Error(r(407));h=h()}else h=l();var K=!Lr((Ht||E).memoizedState,h);K&&(E.memoizedState=h,rr=!0),E=E.queue;var ie=U3.bind(null,y,E,o);if(fd(2048,8,ie,[o]),E.getSnapshot!==l||K||Bn!==null&&Bn.memoizedState.tag&1){if(y.flags|=2048,yc(9,Zm(),I3.bind(null,y,E,h,l),null),rn===null)throw Error(r(349));P||(Ds&124)!==0||k3(y,l,h)}return h}function k3(o,l,h){o.flags|=16384,o={getSnapshot:l,value:h},l=bt.updateQueue,l===null?(l=C0(),bt.updateQueue=l,l.stores=[o]):(h=l.stores,h===null?l.stores=[o]:h.push(o))}function I3(o,l,h,y){l.value=h,l.getSnapshot=y,B3(l)&&z3(o)}function U3(o,l,h){return h(function(){B3(l)&&z3(o)})}function B3(o){var l=o.getSnapshot;o=o.value;try{var h=l();return!Lr(o,h)}catch{return!0}}function z3(o){var l=Os(o,2);l!==null&&gi(l,o,2)}function O0(o){var l=Yr();if(typeof o=="function"){var h=o;if(o=h(),iu){ze(!0);try{h()}finally{ze(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:o},l}function F3(o,l,h,y){return o.baseState=h,A0(o,Ht,typeof y=="function"?y:Eo)}function mU(o,l,h,y,E){if(Qm(o))throw Error(r(485));if(o=l.action,o!==null){var P={payload:E,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(K){P.listeners.push(K)}};Y.T!==null?h(!0):P.isTransition=!1,y(P),h=l.pending,h===null?(P.next=l.pending=P,$3(l,P)):(P.next=h.next,l.pending=h.next=P)}}function $3(o,l){var h=l.action,y=l.payload,E=o.state;if(l.isTransition){var P=Y.T,K={};Y.T=K;try{var ie=h(E,y),pe=Y.S;pe!==null&&pe(K,ie),V3(o,l,ie)}catch(Ee){j0(o,l,Ee)}finally{Y.T=P}}else try{P=h(E,y),V3(o,l,P)}catch(Ee){j0(o,l,Ee)}}function V3(o,l,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(y){q3(o,l,y)},function(y){return j0(o,l,y)}):q3(o,l,h)}function q3(o,l,h){l.status="fulfilled",l.value=h,H3(l),o.state=h,l=o.pending,l!==null&&(h=l.next,h===l?o.pending=null:(h=h.next,l.next=h,$3(o,h)))}function j0(o,l,h){var y=o.pending;if(o.pending=null,y!==null){y=y.next;do l.status="rejected",l.reason=h,H3(l),l=l.next;while(l!==y)}o.action=null}function H3(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function G3(o,l){return l}function W3(o,l){if(ht){var h=rn.formState;if(h!==null){e:{var y=bt;if(ht){if(rt){t:{for(var E=rt,P=xn;E.nodeType!==8;){if(!P){E=null;break t}if(E=ua(E.nextSibling),E===null){E=null;break t}}P=E.data,E=P==="F!"||P==="F"?E:null}if(E){rt=ua(E.nextSibling),y=E.data==="F!";break e}}Wr(y)}y=!1}y&&(l=h[0])}}return h=Yr(),h.memoizedState=h.baseState=l,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:G3,lastRenderedState:l},h.queue=y,h=d4.bind(null,bt,y),y.dispatch=h,y=O0(!1),P=L0.bind(null,bt,!1,y.queue),y=Yr(),E={state:l,dispatch:null,action:o,pending:null},y.queue=E,h=mU.bind(null,bt,E,P,h),E.dispatch=h,y.memoizedState=o,[l,h,!1]}function Y3(o){var l=zn();return K3(l,Ht,o)}function K3(o,l,h){if(l=A0(o,l,G3)[0],o=Km(Eo)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var y=cd(l)}catch(K){throw K===id?Vm:K}else y=l;l=zn();var E=l.queue,P=E.dispatch;return h!==l.memoizedState&&(bt.flags|=2048,yc(9,Zm(),pU.bind(null,E,h),null)),[y,P,o]}function pU(o,l){o.action=l}function Z3(o){var l=zn(),h=Ht;if(h!==null)return K3(l,h,o);zn(),l=l.memoizedState,h=zn();var y=h.queue.dispatch;return h.memoizedState=o,[l,y,!1]}function yc(o,l,h,y){return o={tag:o,create:h,deps:y,inst:l,next:null},l=bt.updateQueue,l===null&&(l=C0(),bt.updateQueue=l),h=l.lastEffect,h===null?l.lastEffect=o.next=o:(y=h.next,h.next=o,o.next=y,l.lastEffect=o),o}function Zm(){return{destroy:void 0,resource:void 0}}function X3(){return zn().memoizedState}function Xm(o,l,h,y){var E=Yr();y=y===void 0?null:y,bt.flags|=o,E.memoizedState=yc(1|l,Zm(),h,y)}function fd(o,l,h,y){var E=zn();y=y===void 0?null:y;var P=E.memoizedState.inst;Ht!==null&&y!==null&&b0(y,Ht.memoizedState.deps)?E.memoizedState=yc(l,P,h,y):(bt.flags|=o,E.memoizedState=yc(1|l,P,h,y))}function Q3(o,l){Xm(8390656,8,o,l)}function J3(o,l){fd(2048,8,o,l)}function e4(o,l){return fd(4,2,o,l)}function t4(o,l){return fd(4,4,o,l)}function n4(o,l){if(typeof l=="function"){o=o();var h=l(o);return function(){typeof h=="function"?h():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function r4(o,l,h){h=h!=null?h.concat([o]):null,fd(4,4,n4.bind(null,l,o),h)}function P0(){}function i4(o,l){var h=zn();l=l===void 0?null:l;var y=h.memoizedState;return l!==null&&b0(l,y[1])?y[0]:(h.memoizedState=[o,l],o)}function a4(o,l){var h=zn();l=l===void 0?null:l;var y=h.memoizedState;if(l!==null&&b0(l,y[1]))return y[0];if(y=o(),iu){ze(!0);try{o()}finally{ze(!1)}}return h.memoizedState=[y,l],y}function M0(o,l,h){return h===void 0||(Ds&1073741824)!==0?o.memoizedState=l:(o.memoizedState=h,o=lE(),bt.lanes|=o,$s|=o,h)}function o4(o,l,h,y){return Lr(h,l)?h:pc.current!==null?(o=M0(o,h,y),Lr(o,l)||(rr=!0),o):(Ds&42)===0?(rr=!0,o.memoizedState=h):(o=lE(),bt.lanes|=o,$s|=o,l)}function s4(o,l,h,y,E){var P=U.p;U.p=P!==0&&8>P?P:8;var K=Y.T,ie={};Y.T=ie,L0(o,!1,l,h);try{var pe=E(),Ee=Y.S;if(Ee!==null&&Ee(ie,pe),pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var ke=fU(pe,y);dd(o,l,ke,pi(o))}else dd(o,l,y,pi(o))}catch(Ue){dd(o,l,{then:function(){},status:"rejected",reason:Ue},pi())}finally{U.p=P,Y.T=K}}function gU(){}function R0(o,l,h,y){if(o.tag!==5)throw Error(r(476));var E=l4(o).queue;s4(o,E,l,I,h===null?gU:function(){return u4(o),h(y)})}function l4(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:I},next:null};var h={};return l.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:h},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function u4(o){var l=l4(o).next.queue;dd(o,l,{},pi())}function N0(){return Er(Pd)}function c4(){return zn().memoizedState}function f4(){return zn().memoizedState}function vU(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var h=pi();o=Ns(h);var y=Ls(l,o,h);y!==null&&(gi(y,l,h),od(y,l,h)),l={cache:u0()},o.payload=l;return}l=l.return}}function yU(o,l,h){var y=pi();h={lane:y,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},Qm(o)?h4(l,h):(h=wo(o,l,h,y),h!==null&&(gi(h,o,y),m4(h,l,y)))}function d4(o,l,h){var y=pi();dd(o,l,h,y)}function dd(o,l,h,y){var E={lane:y,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(Qm(o))h4(l,E);else{var P=o.alternate;if(o.lanes===0&&(P===null||P.lanes===0)&&(P=l.lastRenderedReducer,P!==null))try{var K=l.lastRenderedState,ie=P(K,h);if(E.hasEagerState=!0,E.eagerState=ie,Lr(ie,K))return Zl(o,l,E,0),rn===null&&Kl(),!1}catch{}finally{}if(h=wo(o,l,E,y),h!==null)return gi(h,o,y),m4(h,l,y),!0}return!1}function L0(o,l,h,y){if(y={lane:2,revertLane:d1(),action:y,hasEagerState:!1,eagerState:null,next:null},Qm(o)){if(l)throw Error(r(479))}else l=wo(o,h,y,2),l!==null&&gi(l,o,2)}function Qm(o){var l=o.alternate;return o===bt||l!==null&&l===bt}function h4(o,l){gc=Gm=!0;var h=o.pending;h===null?l.next=l:(l.next=h.next,h.next=l),o.pending=l}function m4(o,l,h){if((h&4194048)!==0){var y=l.lanes;y&=o.pendingLanes,h|=y,l.lanes=h,Pa(o,h)}}var Jm={readContext:Er,use:Ym,useCallback:Nn,useContext:Nn,useEffect:Nn,useImperativeHandle:Nn,useLayoutEffect:Nn,useInsertionEffect:Nn,useMemo:Nn,useReducer:Nn,useRef:Nn,useState:Nn,useDebugValue:Nn,useDeferredValue:Nn,useTransition:Nn,useSyncExternalStore:Nn,useId:Nn,useHostTransitionStatus:Nn,useFormState:Nn,useActionState:Nn,useOptimistic:Nn,useMemoCache:Nn,useCacheRefresh:Nn},p4={readContext:Er,use:Ym,useCallback:function(o,l){return Yr().memoizedState=[o,l===void 0?null:l],o},useContext:Er,useEffect:Q3,useImperativeHandle:function(o,l,h){h=h!=null?h.concat([o]):null,Xm(4194308,4,n4.bind(null,l,o),h)},useLayoutEffect:function(o,l){return Xm(4194308,4,o,l)},useInsertionEffect:function(o,l){Xm(4,2,o,l)},useMemo:function(o,l){var h=Yr();l=l===void 0?null:l;var y=o();if(iu){ze(!0);try{o()}finally{ze(!1)}}return h.memoizedState=[y,l],y},useReducer:function(o,l,h){var y=Yr();if(h!==void 0){var E=h(l);if(iu){ze(!0);try{h(l)}finally{ze(!1)}}}else E=l;return y.memoizedState=y.baseState=E,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:E},y.queue=o,o=o.dispatch=yU.bind(null,bt,o),[y.memoizedState,o]},useRef:function(o){var l=Yr();return o={current:o},l.memoizedState=o},useState:function(o){o=O0(o);var l=o.queue,h=d4.bind(null,bt,l);return l.dispatch=h,[o.memoizedState,h]},useDebugValue:P0,useDeferredValue:function(o,l){var h=Yr();return M0(h,o,l)},useTransition:function(){var o=O0(!1);return o=s4.bind(null,bt,o.queue,!0,!1),Yr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,h){var y=bt,E=Yr();if(ht){if(h===void 0)throw Error(r(407));h=h()}else{if(h=l(),rn===null)throw Error(r(349));(Pt&124)!==0||k3(y,l,h)}E.memoizedState=h;var P={value:h,getSnapshot:l};return E.queue=P,Q3(U3.bind(null,y,P,o),[o]),y.flags|=2048,yc(9,Zm(),I3.bind(null,y,P,h,l),null),h},useId:function(){var o=Yr(),l=rn.identifierPrefix;if(ht){var h=me,y=te;h=(y&~(1<<32-Ve(y)-1)).toString(32)+h,l="«"+l+"R"+h,h=Wm++,0<h&&(l+="H"+h.toString(32)),l+="»"}else h=dU++,l="«"+l+"r"+h.toString(32)+"»";return o.memoizedState=l},useHostTransitionStatus:N0,useFormState:W3,useActionState:W3,useOptimistic:function(o){var l=Yr();l.memoizedState=l.baseState=o;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=h,l=L0.bind(null,bt,!0,h),h.dispatch=l,[o,l]},useMemoCache:E0,useCacheRefresh:function(){return Yr().memoizedState=vU.bind(null,bt)}},g4={readContext:Er,use:Ym,useCallback:i4,useContext:Er,useEffect:J3,useImperativeHandle:r4,useInsertionEffect:e4,useLayoutEffect:t4,useMemo:a4,useReducer:Km,useRef:X3,useState:function(){return Km(Eo)},useDebugValue:P0,useDeferredValue:function(o,l){var h=zn();return o4(h,Ht.memoizedState,o,l)},useTransition:function(){var o=Km(Eo)[0],l=zn().memoizedState;return[typeof o=="boolean"?o:cd(o),l]},useSyncExternalStore:D3,useId:c4,useHostTransitionStatus:N0,useFormState:Y3,useActionState:Y3,useOptimistic:function(o,l){var h=zn();return F3(h,Ht,o,l)},useMemoCache:E0,useCacheRefresh:f4},bU={readContext:Er,use:Ym,useCallback:i4,useContext:Er,useEffect:J3,useImperativeHandle:r4,useInsertionEffect:e4,useLayoutEffect:t4,useMemo:a4,useReducer:T0,useRef:X3,useState:function(){return T0(Eo)},useDebugValue:P0,useDeferredValue:function(o,l){var h=zn();return Ht===null?M0(h,o,l):o4(h,Ht.memoizedState,o,l)},useTransition:function(){var o=T0(Eo)[0],l=zn().memoizedState;return[typeof o=="boolean"?o:cd(o),l]},useSyncExternalStore:D3,useId:c4,useHostTransitionStatus:N0,useFormState:Z3,useActionState:Z3,useOptimistic:function(o,l){var h=zn();return Ht!==null?F3(h,Ht,o,l):(h.baseState=o,[o,h.queue.dispatch])},useMemoCache:E0,useCacheRefresh:f4},bc=null,hd=0;function ep(o){var l=hd;return hd+=1,bc===null&&(bc=[]),T3(bc,o,l)}function md(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function tp(o,l){throw l.$$typeof===p?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function v4(o){var l=o._init;return l(o._payload)}function y4(o){function l(xe,ye){if(o){var Ce=xe.deletions;Ce===null?(xe.deletions=[ye],xe.flags|=16):Ce.push(ye)}}function h(xe,ye){if(!o)return null;for(;ye!==null;)l(xe,ye),ye=ye.sibling;return null}function y(xe){for(var ye=new Map;xe!==null;)xe.key!==null?ye.set(xe.key,xe):ye.set(xe.index,xe),xe=xe.sibling;return ye}function E(xe,ye){return xe=Fi(xe,ye),xe.index=0,xe.sibling=null,xe}function P(xe,ye,Ce){return xe.index=Ce,o?(Ce=xe.alternate,Ce!==null?(Ce=Ce.index,Ce<ye?(xe.flags|=67108866,ye):Ce):(xe.flags|=67108866,ye)):(xe.flags|=1048576,ye)}function K(xe){return o&&xe.alternate===null&&(xe.flags|=67108866),xe}function ie(xe,ye,Ce,Ie){return ye===null||ye.tag!==6?(ye=td(Ce,xe.mode,Ie),ye.return=xe,ye):(ye=E(ye,Ce),ye.return=xe,ye)}function pe(xe,ye,Ce,Ie){var nt=Ce.type;return nt===w?ke(xe,ye,Ce.props.children,Ie,Ce.key):ye!==null&&(ye.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&v4(nt)===ye.type)?(ye=E(ye,Ce.props),md(ye,Ce),ye.return=xe,ye):(ye=Ql(Ce.type,Ce.key,Ce.props,null,xe.mode,Ie),md(ye,Ce),ye.return=xe,ye)}function Ee(xe,ye,Ce,Ie){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==Ce.containerInfo||ye.stateNode.implementation!==Ce.implementation?(ye=fc(Ce,xe.mode,Ie),ye.return=xe,ye):(ye=E(ye,Ce.children||[]),ye.return=xe,ye)}function ke(xe,ye,Ce,Ie,nt){return ye===null||ye.tag!==7?(ye=Ia(Ce,xe.mode,Ie,nt),ye.return=xe,ye):(ye=E(ye,Ce),ye.return=xe,ye)}function Ue(xe,ye,Ce){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=td(""+ye,xe.mode,Ce),ye.return=xe,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case b:return Ce=Ql(ye.type,ye.key,ye.props,null,xe.mode,Ce),md(Ce,ye),Ce.return=xe,Ce;case _:return ye=fc(ye,xe.mode,Ce),ye.return=xe,ye;case X:var Ie=ye._init;return ye=Ie(ye._payload),Ue(xe,ye,Ce)}if(se(ye)||ne(ye))return ye=Ia(ye,xe.mode,Ce,null),ye.return=xe,ye;if(typeof ye.then=="function")return Ue(xe,ep(ye),Ce);if(ye.$$typeof===O)return Ue(xe,Fm(xe,ye),Ce);tp(xe,ye)}return null}function Oe(xe,ye,Ce,Ie){var nt=ye!==null?ye.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return nt!==null?null:ie(xe,ye,""+Ce,Ie);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case b:return Ce.key===nt?pe(xe,ye,Ce,Ie):null;case _:return Ce.key===nt?Ee(xe,ye,Ce,Ie):null;case X:return nt=Ce._init,Ce=nt(Ce._payload),Oe(xe,ye,Ce,Ie)}if(se(Ce)||ne(Ce))return nt!==null?null:ke(xe,ye,Ce,Ie,null);if(typeof Ce.then=="function")return Oe(xe,ye,ep(Ce),Ie);if(Ce.$$typeof===O)return Oe(xe,ye,Fm(xe,Ce),Ie);tp(xe,Ce)}return null}function je(xe,ye,Ce,Ie,nt){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return xe=xe.get(Ce)||null,ie(ye,xe,""+Ie,nt);if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case b:return xe=xe.get(Ie.key===null?Ce:Ie.key)||null,pe(ye,xe,Ie,nt);case _:return xe=xe.get(Ie.key===null?Ce:Ie.key)||null,Ee(ye,xe,Ie,nt);case X:var wt=Ie._init;return Ie=wt(Ie._payload),je(xe,ye,Ce,Ie,nt)}if(se(Ie)||ne(Ie))return xe=xe.get(Ce)||null,ke(ye,xe,Ie,nt,null);if(typeof Ie.then=="function")return je(xe,ye,Ce,ep(Ie),nt);if(Ie.$$typeof===O)return je(xe,ye,Ce,Fm(ye,Ie),nt);tp(ye,Ie)}return null}function dt(xe,ye,Ce,Ie){for(var nt=null,wt=null,st=ye,ft=ye=0,ar=null;st!==null&&ft<Ce.length;ft++){st.index>ft?(ar=st,st=null):ar=st.sibling;var Bt=Oe(xe,st,Ce[ft],Ie);if(Bt===null){st===null&&(st=ar);break}o&&st&&Bt.alternate===null&&l(xe,st),ye=P(Bt,ye,ft),wt===null?nt=Bt:wt.sibling=Bt,wt=Bt,st=ar}if(ft===Ce.length)return h(xe,st),ht&&Se(xe,ft),nt;if(st===null){for(;ft<Ce.length;ft++)st=Ue(xe,Ce[ft],Ie),st!==null&&(ye=P(st,ye,ft),wt===null?nt=st:wt.sibling=st,wt=st);return ht&&Se(xe,ft),nt}for(st=y(st);ft<Ce.length;ft++)ar=je(st,xe,ft,Ce[ft],Ie),ar!==null&&(o&&ar.alternate!==null&&st.delete(ar.key===null?ft:ar.key),ye=P(ar,ye,ft),wt===null?nt=ar:wt.sibling=ar,wt=ar);return o&&st.forEach(function(Xs){return l(xe,Xs)}),ht&&Se(xe,ft),nt}function ct(xe,ye,Ce,Ie){if(Ce==null)throw Error(r(151));for(var nt=null,wt=null,st=ye,ft=ye=0,ar=null,Bt=Ce.next();st!==null&&!Bt.done;ft++,Bt=Ce.next()){st.index>ft?(ar=st,st=null):ar=st.sibling;var Xs=Oe(xe,st,Bt.value,Ie);if(Xs===null){st===null&&(st=ar);break}o&&st&&Xs.alternate===null&&l(xe,st),ye=P(Xs,ye,ft),wt===null?nt=Xs:wt.sibling=Xs,wt=Xs,st=ar}if(Bt.done)return h(xe,st),ht&&Se(xe,ft),nt;if(st===null){for(;!Bt.done;ft++,Bt=Ce.next())Bt=Ue(xe,Bt.value,Ie),Bt!==null&&(ye=P(Bt,ye,ft),wt===null?nt=Bt:wt.sibling=Bt,wt=Bt);return ht&&Se(xe,ft),nt}for(st=y(st);!Bt.done;ft++,Bt=Ce.next())Bt=je(st,xe,ft,Bt.value,Ie),Bt!==null&&(o&&Bt.alternate!==null&&st.delete(Bt.key===null?ft:Bt.key),ye=P(Bt,ye,ft),wt===null?nt=Bt:wt.sibling=Bt,wt=Bt);return o&&st.forEach(function(_B){return l(xe,_B)}),ht&&Se(xe,ft),nt}function Wt(xe,ye,Ce,Ie){if(typeof Ce=="object"&&Ce!==null&&Ce.type===w&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case b:e:{for(var nt=Ce.key;ye!==null;){if(ye.key===nt){if(nt=Ce.type,nt===w){if(ye.tag===7){h(xe,ye.sibling),Ie=E(ye,Ce.props.children),Ie.return=xe,xe=Ie;break e}}else if(ye.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&v4(nt)===ye.type){h(xe,ye.sibling),Ie=E(ye,Ce.props),md(Ie,Ce),Ie.return=xe,xe=Ie;break e}h(xe,ye);break}else l(xe,ye);ye=ye.sibling}Ce.type===w?(Ie=Ia(Ce.props.children,xe.mode,Ie,Ce.key),Ie.return=xe,xe=Ie):(Ie=Ql(Ce.type,Ce.key,Ce.props,null,xe.mode,Ie),md(Ie,Ce),Ie.return=xe,xe=Ie)}return K(xe);case _:e:{for(nt=Ce.key;ye!==null;){if(ye.key===nt)if(ye.tag===4&&ye.stateNode.containerInfo===Ce.containerInfo&&ye.stateNode.implementation===Ce.implementation){h(xe,ye.sibling),Ie=E(ye,Ce.children||[]),Ie.return=xe,xe=Ie;break e}else{h(xe,ye);break}else l(xe,ye);ye=ye.sibling}Ie=fc(Ce,xe.mode,Ie),Ie.return=xe,xe=Ie}return K(xe);case X:return nt=Ce._init,Ce=nt(Ce._payload),Wt(xe,ye,Ce,Ie)}if(se(Ce))return dt(xe,ye,Ce,Ie);if(ne(Ce)){if(nt=ne(Ce),typeof nt!="function")throw Error(r(150));return Ce=nt.call(Ce),ct(xe,ye,Ce,Ie)}if(typeof Ce.then=="function")return Wt(xe,ye,ep(Ce),Ie);if(Ce.$$typeof===O)return Wt(xe,ye,Fm(xe,Ce),Ie);tp(xe,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,ye!==null&&ye.tag===6?(h(xe,ye.sibling),Ie=E(ye,Ce),Ie.return=xe,xe=Ie):(h(xe,ye),Ie=td(Ce,xe.mode,Ie),Ie.return=xe,xe=Ie),K(xe)):h(xe,ye)}return function(xe,ye,Ce,Ie){try{hd=0;var nt=Wt(xe,ye,Ce,Ie);return bc=null,nt}catch(st){if(st===id||st===Vm)throw st;var wt=Ur(29,st,null,xe.mode);return wt.lanes=Ie,wt.return=xe,wt}finally{}}}var _c=y4(!0),b4=y4(!1),Vi=D(null),Ba=null;function ks(o){var l=o.alternate;H(Gn,Gn.current&1),H(Vi,o),Ba===null&&(l===null||pc.current!==null||l.memoizedState!==null)&&(Ba=o)}function _4(o){if(o.tag===22){if(H(Gn,Gn.current),H(Vi,o),Ba===null){var l=o.alternate;l!==null&&l.memoizedState!==null&&(Ba=o)}}else Is()}function Is(){H(Gn,Gn.current),H(Vi,Vi.current)}function Ao(o){W(Vi),Ba===o&&(Ba=null),W(Gn)}var Gn=D(0);function np(o){for(var l=o;l!==null;){if(l.tag===13){var h=l.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||C1(h)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function D0(o,l,h,y){l=o.memoizedState,h=h(y,l),h=h==null?l:m({},l,h),o.memoizedState=h,o.lanes===0&&(o.updateQueue.baseState=h)}var k0={enqueueSetState:function(o,l,h){o=o._reactInternals;var y=pi(),E=Ns(y);E.payload=l,h!=null&&(E.callback=h),l=Ls(o,E,y),l!==null&&(gi(l,o,y),od(l,o,y))},enqueueReplaceState:function(o,l,h){o=o._reactInternals;var y=pi(),E=Ns(y);E.tag=1,E.payload=l,h!=null&&(E.callback=h),l=Ls(o,E,y),l!==null&&(gi(l,o,y),od(l,o,y))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var h=pi(),y=Ns(h);y.tag=2,l!=null&&(y.callback=l),l=Ls(o,y,h),l!==null&&(gi(l,o,h),od(l,o,h))}};function x4(o,l,h,y,E,P,K){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(y,P,K):l.prototype&&l.prototype.isPureReactComponent?!Dr(h,y)||!Dr(E,P):!0}function w4(o,l,h,y){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(h,y),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(h,y),l.state!==o&&k0.enqueueReplaceState(l,l.state,null)}function au(o,l){var h=l;if("ref"in l){h={};for(var y in l)y!=="ref"&&(h[y]=l[y])}if(o=o.defaultProps){h===l&&(h=m({},h));for(var E in o)h[E]===void 0&&(h[E]=o[E])}return h}var rp=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function S4(o){rp(o)}function C4(o){console.error(o)}function E4(o){rp(o)}function ip(o,l){try{var h=o.onUncaughtError;h(l.value,{componentStack:l.stack})}catch(y){setTimeout(function(){throw y})}}function A4(o,l,h){try{var y=o.onCaughtError;y(h.value,{componentStack:h.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function I0(o,l,h){return h=Ns(h),h.tag=3,h.payload={element:null},h.callback=function(){ip(o,l)},h}function T4(o){return o=Ns(o),o.tag=3,o}function O4(o,l,h,y){var E=h.type.getDerivedStateFromError;if(typeof E=="function"){var P=y.value;o.payload=function(){return E(P)},o.callback=function(){A4(l,h,y)}}var K=h.stateNode;K!==null&&typeof K.componentDidCatch=="function"&&(o.callback=function(){A4(l,h,y),typeof E!="function"&&(Vs===null?Vs=new Set([this]):Vs.add(this));var ie=y.stack;this.componentDidCatch(y.value,{componentStack:ie!==null?ie:""})})}function _U(o,l,h,y,E){if(h.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(l=h.alternate,l!==null&&tu(l,h,E,!0),h=Vi.current,h!==null){switch(h.tag){case 13:return Ba===null?s1():h.alternate===null&&En===0&&(En=3),h.flags&=-257,h.flags|=65536,h.lanes=E,y===d0?h.flags|=16384:(l=h.updateQueue,l===null?h.updateQueue=new Set([y]):l.add(y),u1(o,y,E)),!1;case 22:return h.flags|=65536,y===d0?h.flags|=16384:(l=h.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([y])},h.updateQueue=l):(h=l.retryQueue,h===null?l.retryQueue=new Set([y]):h.add(y)),u1(o,y,E)),!1}throw Error(r(435,h.tag))}return u1(o,y,E),s1(),!1}if(ht)return l=Vi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=E,y!==nr&&(o=Error(r(422),{cause:y}),Ms(kr(o,h)))):(y!==nr&&(l=Error(r(423),{cause:y}),Ms(kr(l,h))),o=o.current.alternate,o.flags|=65536,E&=-E,o.lanes|=E,y=kr(y,h),E=I0(o.stateNode,y,E),p0(o,E),En!==4&&(En=2)),!1;var P=Error(r(520),{cause:y});if(P=kr(P,h),xd===null?xd=[P]:xd.push(P),En!==4&&(En=2),l===null)return!0;y=kr(y,h),h=l;do{switch(h.tag){case 3:return h.flags|=65536,o=E&-E,h.lanes|=o,o=I0(h.stateNode,y,o),p0(h,o),!1;case 1:if(l=h.type,P=h.stateNode,(h.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Vs===null||!Vs.has(P))))return h.flags|=65536,E&=-E,h.lanes|=E,E=T4(E),O4(E,o,h,y),p0(h,E),!1}h=h.return}while(h!==null);return!1}var j4=Error(r(461)),rr=!1;function hr(o,l,h,y){l.child=o===null?b4(l,null,h,y):_c(l,o.child,h,y)}function P4(o,l,h,y,E){h=h.render;var P=l.ref;if("ref"in y){var K={};for(var ie in y)ie!=="ref"&&(K[ie]=y[ie])}else K=y;return nu(l),y=_0(o,l,h,K,P,E),ie=x0(),o!==null&&!rr?(w0(o,l,E),To(o,l,E)):(ht&&ie&&Fe(l),l.flags|=1,hr(o,l,y,E),l.child)}function M4(o,l,h,y,E){if(o===null){var P=h.type;return typeof P=="function"&&!cc(P)&&P.defaultProps===void 0&&h.compare===null?(l.tag=15,l.type=P,R4(o,l,P,y,E)):(o=Ql(h.type,null,y,l,l.mode,E),o.ref=l.ref,o.return=l,l.child=o)}if(P=o.child,!H0(o,E)){var K=P.memoizedProps;if(h=h.compare,h=h!==null?h:Dr,h(K,y)&&o.ref===l.ref)return To(o,l,E)}return l.flags|=1,o=Fi(P,y),o.ref=l.ref,o.return=l,l.child=o}function R4(o,l,h,y,E){if(o!==null){var P=o.memoizedProps;if(Dr(P,y)&&o.ref===l.ref)if(rr=!1,l.pendingProps=y=P,H0(o,E))(o.flags&131072)!==0&&(rr=!0);else return l.lanes=o.lanes,To(o,l,E)}return U0(o,l,h,y,E)}function N4(o,l,h){var y=l.pendingProps,E=y.children,P=o!==null?o.memoizedState:null;if(y.mode==="hidden"){if((l.flags&128)!==0){if(y=P!==null?P.baseLanes|h:h,o!==null){for(E=l.child=o.child,P=0;E!==null;)P=P|E.lanes|E.childLanes,E=E.sibling;l.childLanes=P&~y}else l.childLanes=0,l.child=null;return L4(o,l,y,h)}if((h&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&$m(l,P!==null?P.cachePool:null),P!==null?R3(l,P):v0(),_4(l);else return l.lanes=l.childLanes=536870912,L4(o,l,P!==null?P.baseLanes|h:h,h)}else P!==null?($m(l,P.cachePool),R3(l,P),Is(),l.memoizedState=null):(o!==null&&$m(l,null),v0(),Is());return hr(o,l,E,h),l.child}function L4(o,l,h,y){var E=f0();return E=E===null?null:{parent:Hn._currentValue,pool:E},l.memoizedState={baseLanes:h,cachePool:E},o!==null&&$m(l,null),v0(),_4(l),o!==null&&tu(o,l,y,!0),null}function ap(o,l){var h=l.ref;if(h===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(o===null||o.ref!==h)&&(l.flags|=4194816)}}function U0(o,l,h,y,E){return nu(l),h=_0(o,l,h,y,void 0,E),y=x0(),o!==null&&!rr?(w0(o,l,E),To(o,l,E)):(ht&&y&&Fe(l),l.flags|=1,hr(o,l,h,E),l.child)}function D4(o,l,h,y,E,P){return nu(l),l.updateQueue=null,h=L3(l,y,h,E),N3(o),y=x0(),o!==null&&!rr?(w0(o,l,P),To(o,l,P)):(ht&&y&&Fe(l),l.flags|=1,hr(o,l,h,P),l.child)}function k4(o,l,h,y,E){if(nu(l),l.stateNode===null){var P=So,K=h.contextType;typeof K=="object"&&K!==null&&(P=Er(K)),P=new h(y,P),l.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=k0,l.stateNode=P,P._reactInternals=l,P=l.stateNode,P.props=y,P.state=l.memoizedState,P.refs={},h0(l),K=h.contextType,P.context=typeof K=="object"&&K!==null?Er(K):So,P.state=l.memoizedState,K=h.getDerivedStateFromProps,typeof K=="function"&&(D0(l,h,K,y),P.state=l.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(K=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),K!==P.state&&k0.enqueueReplaceState(P,P.state,null),ld(l,y,P,E),sd(),P.state=l.memoizedState),typeof P.componentDidMount=="function"&&(l.flags|=4194308),y=!0}else if(o===null){P=l.stateNode;var ie=l.memoizedProps,pe=au(h,ie);P.props=pe;var Ee=P.context,ke=h.contextType;K=So,typeof ke=="object"&&ke!==null&&(K=Er(ke));var Ue=h.getDerivedStateFromProps;ke=typeof Ue=="function"||typeof P.getSnapshotBeforeUpdate=="function",ie=l.pendingProps!==ie,ke||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(ie||Ee!==K)&&w4(l,P,y,K),Rs=!1;var Oe=l.memoizedState;P.state=Oe,ld(l,y,P,E),sd(),Ee=l.memoizedState,ie||Oe!==Ee||Rs?(typeof Ue=="function"&&(D0(l,h,Ue,y),Ee=l.memoizedState),(pe=Rs||x4(l,h,pe,y,Oe,Ee,K))?(ke||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(l.flags|=4194308)):(typeof P.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=y,l.memoizedState=Ee),P.props=y,P.state=Ee,P.context=K,y=pe):(typeof P.componentDidMount=="function"&&(l.flags|=4194308),y=!1)}else{P=l.stateNode,m0(o,l),K=l.memoizedProps,ke=au(h,K),P.props=ke,Ue=l.pendingProps,Oe=P.context,Ee=h.contextType,pe=So,typeof Ee=="object"&&Ee!==null&&(pe=Er(Ee)),ie=h.getDerivedStateFromProps,(Ee=typeof ie=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(K!==Ue||Oe!==pe)&&w4(l,P,y,pe),Rs=!1,Oe=l.memoizedState,P.state=Oe,ld(l,y,P,E),sd();var je=l.memoizedState;K!==Ue||Oe!==je||Rs||o!==null&&o.dependencies!==null&&zm(o.dependencies)?(typeof ie=="function"&&(D0(l,h,ie,y),je=l.memoizedState),(ke=Rs||x4(l,h,ke,y,Oe,je,pe)||o!==null&&o.dependencies!==null&&zm(o.dependencies))?(Ee||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(y,je,pe),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(y,je,pe)),typeof P.componentDidUpdate=="function"&&(l.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof P.componentDidUpdate!="function"||K===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||K===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=1024),l.memoizedProps=y,l.memoizedState=je),P.props=y,P.state=je,P.context=pe,y=ke):(typeof P.componentDidUpdate!="function"||K===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||K===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=1024),y=!1)}return P=y,ap(o,l),y=(l.flags&128)!==0,P||y?(P=l.stateNode,h=y&&typeof h.getDerivedStateFromError!="function"?null:P.render(),l.flags|=1,o!==null&&y?(l.child=_c(l,o.child,null,E),l.child=_c(l,null,h,E)):hr(o,l,h,E),l.memoizedState=P.state,o=l.child):o=To(o,l,E),o}function I4(o,l,h,y){return Ps(),l.flags|=256,hr(o,l,h,y),l.child}var B0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function z0(o){return{baseLanes:o,cachePool:C3()}}function F0(o,l,h){return o=o!==null?o.childLanes&~h:0,l&&(o|=qi),o}function U4(o,l,h){var y=l.pendingProps,E=!1,P=(l.flags&128)!==0,K;if((K=P)||(K=o!==null&&o.memoizedState===null?!1:(Gn.current&2)!==0),K&&(E=!0,l.flags&=-129),K=(l.flags&32)!==0,l.flags&=-33,o===null){if(ht){if(E?ks(l):Is(),ht){var ie=rt,pe;if(pe=ie){e:{for(pe=ie,ie=xn;pe.nodeType!==8;){if(!ie){ie=null;break e}if(pe=ua(pe.nextSibling),pe===null){ie=null;break e}}ie=pe}ie!==null?(l.memoizedState={dehydrated:ie,treeContext:$!==null?{id:te,overflow:me}:null,retryLane:536870912,hydrationErrors:null},pe=Ur(18,null,null,0),pe.stateNode=ie,pe.return=l,l.child=pe,tt=l,rt=null,pe=!0):pe=!1}pe||Wr(l)}if(ie=l.memoizedState,ie!==null&&(ie=ie.dehydrated,ie!==null))return C1(ie)?l.lanes=32:l.lanes=536870912,null;Ao(l)}return ie=y.children,y=y.fallback,E?(Is(),E=l.mode,ie=op({mode:"hidden",children:ie},E),y=Ia(y,E,h,null),ie.return=l,y.return=l,ie.sibling=y,l.child=ie,E=l.child,E.memoizedState=z0(h),E.childLanes=F0(o,K,h),l.memoizedState=B0,y):(ks(l),$0(l,ie))}if(pe=o.memoizedState,pe!==null&&(ie=pe.dehydrated,ie!==null)){if(P)l.flags&256?(ks(l),l.flags&=-257,l=V0(o,l,h)):l.memoizedState!==null?(Is(),l.child=o.child,l.flags|=128,l=null):(Is(),E=y.fallback,ie=l.mode,y=op({mode:"visible",children:y.children},ie),E=Ia(E,ie,h,null),E.flags|=2,y.return=l,E.return=l,y.sibling=E,l.child=y,_c(l,o.child,null,h),y=l.child,y.memoizedState=z0(h),y.childLanes=F0(o,K,h),l.memoizedState=B0,l=E);else if(ks(l),C1(ie)){if(K=ie.nextSibling&&ie.nextSibling.dataset,K)var Ee=K.dgst;K=Ee,y=Error(r(419)),y.stack="",y.digest=K,Ms({value:y,source:null,stack:null}),l=V0(o,l,h)}else if(rr||tu(o,l,h,!1),K=(h&o.childLanes)!==0,rr||K){if(K=rn,K!==null&&(y=h&-h,y=(y&42)!==0?1:mn(y),y=(y&(K.suspendedLanes|h))!==0?0:y,y!==0&&y!==pe.retryLane))throw pe.retryLane=y,Os(o,y),gi(K,o,y),j4;ie.data==="$?"||s1(),l=V0(o,l,h)}else ie.data==="$?"?(l.flags|=192,l.child=o.child,l=null):(o=pe.treeContext,rt=ua(ie.nextSibling),tt=l,ht=!0,nn=null,xn=!1,o!==null&&(S[R++]=te,S[R++]=me,S[R++]=$,te=o.id,me=o.overflow,$=l),l=$0(l,y.children),l.flags|=4096);return l}return E?(Is(),E=y.fallback,ie=l.mode,pe=o.child,Ee=pe.sibling,y=Fi(pe,{mode:"hidden",children:y.children}),y.subtreeFlags=pe.subtreeFlags&65011712,Ee!==null?E=Fi(Ee,E):(E=Ia(E,ie,h,null),E.flags|=2),E.return=l,y.return=l,y.sibling=E,l.child=y,y=E,E=l.child,ie=o.child.memoizedState,ie===null?ie=z0(h):(pe=ie.cachePool,pe!==null?(Ee=Hn._currentValue,pe=pe.parent!==Ee?{parent:Ee,pool:Ee}:pe):pe=C3(),ie={baseLanes:ie.baseLanes|h,cachePool:pe}),E.memoizedState=ie,E.childLanes=F0(o,K,h),l.memoizedState=B0,y):(ks(l),h=o.child,o=h.sibling,h=Fi(h,{mode:"visible",children:y.children}),h.return=l,h.sibling=null,o!==null&&(K=l.deletions,K===null?(l.deletions=[o],l.flags|=16):K.push(o)),l.child=h,l.memoizedState=null,h)}function $0(o,l){return l=op({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function op(o,l){return o=Ur(22,o,null,l),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function V0(o,l,h){return _c(l,o.child,null,h),o=$0(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function B4(o,l,h){o.lanes|=l;var y=o.alternate;y!==null&&(y.lanes|=l),eu(o.return,l,h)}function q0(o,l,h,y,E){var P=o.memoizedState;P===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:y,tail:h,tailMode:E}:(P.isBackwards=l,P.rendering=null,P.renderingStartTime=0,P.last=y,P.tail=h,P.tailMode=E)}function z4(o,l,h){var y=l.pendingProps,E=y.revealOrder,P=y.tail;if(hr(o,l,y.children,h),y=Gn.current,(y&2)!==0)y=y&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&B4(o,h,l);else if(o.tag===19)B4(o,h,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}y&=1}switch(H(Gn,y),E){case"forwards":for(h=l.child,E=null;h!==null;)o=h.alternate,o!==null&&np(o)===null&&(E=h),h=h.sibling;h=E,h===null?(E=l.child,l.child=null):(E=h.sibling,h.sibling=null),q0(l,!1,E,h,P);break;case"backwards":for(h=null,E=l.child,l.child=null;E!==null;){if(o=E.alternate,o!==null&&np(o)===null){l.child=E;break}o=E.sibling,E.sibling=h,h=E,E=o}q0(l,!0,h,null,P);break;case"together":q0(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function To(o,l,h){if(o!==null&&(l.dependencies=o.dependencies),$s|=l.lanes,(h&l.childLanes)===0)if(o!==null){if(tu(o,l,h,!1),(h&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,h=Fi(o,o.pendingProps),l.child=h,h.return=l;o.sibling!==null;)o=o.sibling,h=h.sibling=Fi(o,o.pendingProps),h.return=l;h.sibling=null}return l.child}function H0(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&zm(o)))}function xU(o,l,h){switch(l.tag){case 3:k(l,l.stateNode.containerInfo),Ua(l,Hn,o.memoizedState.cache),Ps();break;case 27:case 5:G(l);break;case 4:k(l,l.stateNode.containerInfo);break;case 10:Ua(l,l.type,l.memoizedProps.value);break;case 13:var y=l.memoizedState;if(y!==null)return y.dehydrated!==null?(ks(l),l.flags|=128,null):(h&l.child.childLanes)!==0?U4(o,l,h):(ks(l),o=To(o,l,h),o!==null?o.sibling:null);ks(l);break;case 19:var E=(o.flags&128)!==0;if(y=(h&l.childLanes)!==0,y||(tu(o,l,h,!1),y=(h&l.childLanes)!==0),E){if(y)return z4(o,l,h);l.flags|=128}if(E=l.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),H(Gn,Gn.current),y)break;return null;case 22:case 23:return l.lanes=0,N4(o,l,h);case 24:Ua(l,Hn,o.memoizedState.cache)}return To(o,l,h)}function F4(o,l,h){if(o!==null)if(o.memoizedProps!==l.pendingProps)rr=!0;else{if(!H0(o,h)&&(l.flags&128)===0)return rr=!1,xU(o,l,h);rr=(o.flags&131072)!==0}else rr=!1,ht&&(l.flags&1048576)!==0&&Me(l,g,l.index);switch(l.lanes=0,l.tag){case 16:e:{o=l.pendingProps;var y=l.elementType,E=y._init;if(y=E(y._payload),l.type=y,typeof y=="function")cc(y)?(o=au(y,o),l.tag=1,l=k4(null,l,y,o,h)):(l.tag=0,l=U0(null,l,y,o,h));else{if(y!=null){if(E=y.$$typeof,E===N){l.tag=11,l=P4(null,l,y,o,h);break e}else if(E===Z){l.tag=14,l=M4(null,l,y,o,h);break e}}throw l=Q(y)||y,Error(r(306,l,""))}}return l;case 0:return U0(o,l,l.type,l.pendingProps,h);case 1:return y=l.type,E=au(y,l.pendingProps),k4(o,l,y,E,h);case 3:e:{if(k(l,l.stateNode.containerInfo),o===null)throw Error(r(387));y=l.pendingProps;var P=l.memoizedState;E=P.element,m0(o,l),ld(l,y,null,h);var K=l.memoizedState;if(y=K.cache,Ua(l,Hn,y),y!==P.cache&&dc(l,[Hn],h,!0),sd(),y=K.element,P.isDehydrated)if(P={element:y,isDehydrated:!1,cache:K.cache},l.updateQueue.baseState=P,l.memoizedState=P,l.flags&256){l=I4(o,l,y,h);break e}else if(y!==E){E=kr(Error(r(424)),l),Ms(E),l=I4(o,l,y,h);break e}else{switch(o=l.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(rt=ua(o.firstChild),tt=l,ht=!0,nn=null,xn=!0,h=b4(l,null,y,h),l.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Ps(),y===E){l=To(o,l,h);break e}hr(o,l,y,h)}l=l.child}return l;case 26:return ap(o,l),o===null?(h=HE(l.type,null,l.pendingProps,null))?l.memoizedState=h:ht||(h=l.type,o=l.pendingProps,y=_p(ce.current).createElement(h),y[Tt]=l,y[Jt]=o,pr(y,h,o),Un(y),l.stateNode=y):l.memoizedState=HE(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return G(l),o===null&&ht&&(y=l.stateNode=$E(l.type,l.pendingProps,ce.current),tt=l,xn=!0,E=rt,Gs(l.type)?(E1=E,rt=ua(y.firstChild)):rt=E),hr(o,l,l.pendingProps.children,h),ap(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&ht&&((E=y=rt)&&(y=KU(y,l.type,l.pendingProps,xn),y!==null?(l.stateNode=y,tt=l,rt=ua(y.firstChild),xn=!1,E=!0):E=!1),E||Wr(l)),G(l),E=l.type,P=l.pendingProps,K=o!==null?o.memoizedProps:null,y=P.children,x1(E,P)?y=null:K!==null&&x1(E,K)&&(l.flags|=32),l.memoizedState!==null&&(E=_0(o,l,hU,null,null,h),Pd._currentValue=E),ap(o,l),hr(o,l,y,h),l.child;case 6:return o===null&&ht&&((o=h=rt)&&(h=ZU(h,l.pendingProps,xn),h!==null?(l.stateNode=h,tt=l,rt=null,o=!0):o=!1),o||Wr(l)),null;case 13:return U4(o,l,h);case 4:return k(l,l.stateNode.containerInfo),y=l.pendingProps,o===null?l.child=_c(l,null,y,h):hr(o,l,y,h),l.child;case 11:return P4(o,l,l.type,l.pendingProps,h);case 7:return hr(o,l,l.pendingProps,h),l.child;case 8:return hr(o,l,l.pendingProps.children,h),l.child;case 12:return hr(o,l,l.pendingProps.children,h),l.child;case 10:return y=l.pendingProps,Ua(l,l.type,y.value),hr(o,l,y.children,h),l.child;case 9:return E=l.type._context,y=l.pendingProps.children,nu(l),E=Er(E),y=y(E),l.flags|=1,hr(o,l,y,h),l.child;case 14:return M4(o,l,l.type,l.pendingProps,h);case 15:return R4(o,l,l.type,l.pendingProps,h);case 19:return z4(o,l,h);case 31:return y=l.pendingProps,h=l.mode,y={mode:y.mode,children:y.children},o===null?(h=op(y,h),h.ref=l.ref,l.child=h,h.return=l,l=h):(h=Fi(o.child,y),h.ref=l.ref,l.child=h,h.return=l,l=h),l;case 22:return N4(o,l,h);case 24:return nu(l),y=Er(Hn),o===null?(E=f0(),E===null&&(E=rn,P=u0(),E.pooledCache=P,P.refCount++,P!==null&&(E.pooledCacheLanes|=h),E=P),l.memoizedState={parent:y,cache:E},h0(l),Ua(l,Hn,E)):((o.lanes&h)!==0&&(m0(o,l),ld(l,null,null,h),sd()),E=o.memoizedState,P=l.memoizedState,E.parent!==y?(E={parent:y,cache:y},l.memoizedState=E,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=E),Ua(l,Hn,y)):(y=P.cache,Ua(l,Hn,y),y!==E.cache&&dc(l,[Hn],h,!0))),hr(o,l,l.pendingProps.children,h),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Oo(o){o.flags|=4}function $4(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!ZE(l)){if(l=Vi.current,l!==null&&((Pt&4194048)===Pt?Ba!==null:(Pt&62914560)!==Pt&&(Pt&536870912)===0||l!==Ba))throw ad=d0,E3;o.flags|=8192}}function sp(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?ii():536870912,o.lanes|=l,Cc|=l)}function pd(o,l){if(!ht)switch(o.tailMode){case"hidden":l=o.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?o.tail=null:h.sibling=null;break;case"collapsed":h=o.tail;for(var y=null;h!==null;)h.alternate!==null&&(y=h),h=h.sibling;y===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:y.sibling=null}}function wn(o){var l=o.alternate!==null&&o.alternate.child===o.child,h=0,y=0;if(l)for(var E=o.child;E!==null;)h|=E.lanes|E.childLanes,y|=E.subtreeFlags&65011712,y|=E.flags&65011712,E.return=o,E=E.sibling;else for(E=o.child;E!==null;)h|=E.lanes|E.childLanes,y|=E.subtreeFlags,y|=E.flags,E.return=o,E=E.sibling;return o.subtreeFlags|=y,o.childLanes=h,l}function wU(o,l,h){var y=l.pendingProps;switch(Xe(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wn(l),null;case 1:return wn(l),null;case 3:return h=l.stateNode,y=null,o!==null&&(y=o.memoizedState.cache),l.memoizedState.cache!==y&&(l.flags|=2048),sa(Hn),F(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(Jl(l)?Oo(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Bm())),wn(l),null;case 26:return h=l.memoizedState,o===null?(Oo(l),h!==null?(wn(l),$4(l,h)):(wn(l),l.flags&=-16777217)):h?h!==o.memoizedState?(Oo(l),wn(l),$4(l,h)):(wn(l),l.flags&=-16777217):(o.memoizedProps!==y&&Oo(l),wn(l),l.flags&=-16777217),null;case 27:le(l),h=ce.current;var E=l.type;if(o!==null&&l.stateNode!=null)o.memoizedProps!==y&&Oo(l);else{if(!y){if(l.stateNode===null)throw Error(r(166));return wn(l),null}o=re.current,Jl(l)?Im(l):(o=$E(E,y,h),l.stateNode=o,Oo(l))}return wn(l),null;case 5:if(le(l),h=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==y&&Oo(l);else{if(!y){if(l.stateNode===null)throw Error(r(166));return wn(l),null}if(o=re.current,Jl(l))Im(l);else{switch(E=_p(ce.current),o){case 1:o=E.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:o=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":o=E.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":o=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":o=E.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof y.is=="string"?E.createElement("select",{is:y.is}):E.createElement("select"),y.multiple?o.multiple=!0:y.size&&(o.size=y.size);break;default:o=typeof y.is=="string"?E.createElement(h,{is:y.is}):E.createElement(h)}}o[Tt]=l,o[Jt]=y;e:for(E=l.child;E!==null;){if(E.tag===5||E.tag===6)o.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===l)break e;for(;E.sibling===null;){if(E.return===null||E.return===l)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}l.stateNode=o;e:switch(pr(o,h,y),h){case"button":case"input":case"select":case"textarea":o=!!y.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Oo(l)}}return wn(l),l.flags&=-16777217,null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==y&&Oo(l);else{if(typeof y!="string"&&l.stateNode===null)throw Error(r(166));if(o=ce.current,Jl(l)){if(o=l.stateNode,h=l.memoizedProps,y=null,E=tt,E!==null)switch(E.tag){case 27:case 5:y=E.memoizedProps}o[Tt]=l,o=!!(o.nodeValue===h||y!==null&&y.suppressHydrationWarning===!0||DE(o.nodeValue,h)),o||Wr(l)}else o=_p(o).createTextNode(y),o[Tt]=l,l.stateNode=o}return wn(l),null;case 13:if(y=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(E=Jl(l),y!==null&&y.dehydrated!==null){if(o===null){if(!E)throw Error(r(318));if(E=l.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[Tt]=l}else Ps(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;wn(l),E=!1}else E=Bm(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=E),E=!0;if(!E)return l.flags&256?(Ao(l),l):(Ao(l),null)}if(Ao(l),(l.flags&128)!==0)return l.lanes=h,l;if(h=y!==null,o=o!==null&&o.memoizedState!==null,h){y=l.child,E=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(E=y.alternate.memoizedState.cachePool.pool);var P=null;y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(P=y.memoizedState.cachePool.pool),P!==E&&(y.flags|=2048)}return h!==o&&h&&(l.child.flags|=8192),sp(l,l.updateQueue),wn(l),null;case 4:return F(),o===null&&g1(l.stateNode.containerInfo),wn(l),null;case 10:return sa(l.type),wn(l),null;case 19:if(W(Gn),E=l.memoizedState,E===null)return wn(l),null;if(y=(l.flags&128)!==0,P=E.rendering,P===null)if(y)pd(E,!1);else{if(En!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(P=np(o),P!==null){for(l.flags|=128,pd(E,!1),o=P.updateQueue,l.updateQueue=o,sp(l,o),l.subtreeFlags=0,o=h,h=l.child;h!==null;)ed(h,o),h=h.sibling;return H(Gn,Gn.current&1|2),l.child}o=o.sibling}E.tail!==null&&_e()>cp&&(l.flags|=128,y=!0,pd(E,!1),l.lanes=4194304)}else{if(!y)if(o=np(P),o!==null){if(l.flags|=128,y=!0,o=o.updateQueue,l.updateQueue=o,sp(l,o),pd(E,!0),E.tail===null&&E.tailMode==="hidden"&&!P.alternate&&!ht)return wn(l),null}else 2*_e()-E.renderingStartTime>cp&&h!==536870912&&(l.flags|=128,y=!0,pd(E,!1),l.lanes=4194304);E.isBackwards?(P.sibling=l.child,l.child=P):(o=E.last,o!==null?o.sibling=P:l.child=P,E.last=P)}return E.tail!==null?(l=E.tail,E.rendering=l,E.tail=l.sibling,E.renderingStartTime=_e(),l.sibling=null,o=Gn.current,H(Gn,y?o&1|2:o&1),l):(wn(l),null);case 22:case 23:return Ao(l),y0(),y=l.memoizedState!==null,o!==null?o.memoizedState!==null!==y&&(l.flags|=8192):y&&(l.flags|=8192),y?(h&536870912)!==0&&(l.flags&128)===0&&(wn(l),l.subtreeFlags&6&&(l.flags|=8192)):wn(l),h=l.updateQueue,h!==null&&sp(l,h.retryQueue),h=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),y=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(y=l.memoizedState.cachePool.pool),y!==h&&(l.flags|=2048),o!==null&&W(ru),null;case 24:return h=null,o!==null&&(h=o.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),sa(Hn),wn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function SU(o,l){switch(Xe(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return sa(Hn),F(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return le(l),null;case 13:if(Ao(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Ps()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return W(Gn),null;case 4:return F(),null;case 10:return sa(l.type),null;case 22:case 23:return Ao(l),y0(),o!==null&&W(ru),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return sa(Hn),null;case 25:return null;default:return null}}function V4(o,l){switch(Xe(l),l.tag){case 3:sa(Hn),F();break;case 26:case 27:case 5:le(l);break;case 4:F();break;case 13:Ao(l);break;case 19:W(Gn);break;case 10:sa(l.type);break;case 22:case 23:Ao(l),y0(),o!==null&&W(ru);break;case 24:sa(Hn)}}function gd(o,l){try{var h=l.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var E=y.next;h=E;do{if((h.tag&o)===o){y=void 0;var P=h.create,K=h.inst;y=P(),K.destroy=y}h=h.next}while(h!==E)}}catch(ie){Yt(l,l.return,ie)}}function Us(o,l,h){try{var y=l.updateQueue,E=y!==null?y.lastEffect:null;if(E!==null){var P=E.next;y=P;do{if((y.tag&o)===o){var K=y.inst,ie=K.destroy;if(ie!==void 0){K.destroy=void 0,E=l;var pe=h,Ee=ie;try{Ee()}catch(ke){Yt(E,pe,ke)}}}y=y.next}while(y!==P)}}catch(ke){Yt(l,l.return,ke)}}function q4(o){var l=o.updateQueue;if(l!==null){var h=o.stateNode;try{M3(l,h)}catch(y){Yt(o,o.return,y)}}}function H4(o,l,h){h.props=au(o.type,o.memoizedProps),h.state=o.memoizedState;try{h.componentWillUnmount()}catch(y){Yt(o,l,y)}}function vd(o,l){try{var h=o.ref;if(h!==null){switch(o.tag){case 26:case 27:case 5:var y=o.stateNode;break;case 30:y=o.stateNode;break;default:y=o.stateNode}typeof h=="function"?o.refCleanup=h(y):h.current=y}}catch(E){Yt(o,l,E)}}function za(o,l){var h=o.ref,y=o.refCleanup;if(h!==null)if(typeof y=="function")try{y()}catch(E){Yt(o,l,E)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(E){Yt(o,l,E)}else h.current=null}function G4(o){var l=o.type,h=o.memoizedProps,y=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":h.autoFocus&&y.focus();break e;case"img":h.src?y.src=h.src:h.srcSet&&(y.srcset=h.srcSet)}}catch(E){Yt(o,o.return,E)}}function G0(o,l,h){try{var y=o.stateNode;qU(y,o.type,h,l),y[Jt]=l}catch(E){Yt(o,o.return,E)}}function W4(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Gs(o.type)||o.tag===4}function W0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||W4(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Gs(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Y0(o,l,h){var y=o.tag;if(y===5||y===6)o=o.stateNode,l?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(o,l):(l=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,l.appendChild(o),h=h._reactRootContainer,h!=null||l.onclick!==null||(l.onclick=bp));else if(y!==4&&(y===27&&Gs(o.type)&&(h=o.stateNode,l=null),o=o.child,o!==null))for(Y0(o,l,h),o=o.sibling;o!==null;)Y0(o,l,h),o=o.sibling}function lp(o,l,h){var y=o.tag;if(y===5||y===6)o=o.stateNode,l?h.insertBefore(o,l):h.appendChild(o);else if(y!==4&&(y===27&&Gs(o.type)&&(h=o.stateNode),o=o.child,o!==null))for(lp(o,l,h),o=o.sibling;o!==null;)lp(o,l,h),o=o.sibling}function Y4(o){var l=o.stateNode,h=o.memoizedProps;try{for(var y=o.type,E=l.attributes;E.length;)l.removeAttributeNode(E[0]);pr(l,y,h),l[Tt]=o,l[Jt]=h}catch(P){Yt(o,o.return,P)}}var jo=!1,Ln=!1,K0=!1,K4=typeof WeakSet=="function"?WeakSet:Set,ir=null;function CU(o,l){if(o=o.containerInfo,b1=Ap,o=Gl(o),Wl(o)){if("selectionStart"in o)var h={start:o.selectionStart,end:o.selectionEnd};else e:{h=(h=o.ownerDocument)&&h.defaultView||window;var y=h.getSelection&&h.getSelection();if(y&&y.rangeCount!==0){h=y.anchorNode;var E=y.anchorOffset,P=y.focusNode;y=y.focusOffset;try{h.nodeType,P.nodeType}catch{h=null;break e}var K=0,ie=-1,pe=-1,Ee=0,ke=0,Ue=o,Oe=null;t:for(;;){for(var je;Ue!==h||E!==0&&Ue.nodeType!==3||(ie=K+E),Ue!==P||y!==0&&Ue.nodeType!==3||(pe=K+y),Ue.nodeType===3&&(K+=Ue.nodeValue.length),(je=Ue.firstChild)!==null;)Oe=Ue,Ue=je;for(;;){if(Ue===o)break t;if(Oe===h&&++Ee===E&&(ie=K),Oe===P&&++ke===y&&(pe=K),(je=Ue.nextSibling)!==null)break;Ue=Oe,Oe=Ue.parentNode}Ue=je}h=ie===-1||pe===-1?null:{start:ie,end:pe}}else h=null}h=h||{start:0,end:0}}else h=null;for(_1={focusedElem:o,selectionRange:h},Ap=!1,ir=l;ir!==null;)if(l=ir,o=l.child,(l.subtreeFlags&1024)!==0&&o!==null)o.return=l,ir=o;else for(;ir!==null;){switch(l=ir,P=l.alternate,o=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&P!==null){o=void 0,h=l,E=P.memoizedProps,P=P.memoizedState,y=h.stateNode;try{var dt=au(h.type,E,h.elementType===h.type);o=y.getSnapshotBeforeUpdate(dt,P),y.__reactInternalSnapshotBeforeUpdate=o}catch(ct){Yt(h,h.return,ct)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,h=o.nodeType,h===9)S1(o);else if(h===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":S1(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,ir=o;break}ir=l.return}}function Z4(o,l,h){var y=h.flags;switch(h.tag){case 0:case 11:case 15:Bs(o,h),y&4&&gd(5,h);break;case 1:if(Bs(o,h),y&4)if(o=h.stateNode,l===null)try{o.componentDidMount()}catch(K){Yt(h,h.return,K)}else{var E=au(h.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(E,l,o.__reactInternalSnapshotBeforeUpdate)}catch(K){Yt(h,h.return,K)}}y&64&&q4(h),y&512&&vd(h,h.return);break;case 3:if(Bs(o,h),y&64&&(o=h.updateQueue,o!==null)){if(l=null,h.child!==null)switch(h.child.tag){case 27:case 5:l=h.child.stateNode;break;case 1:l=h.child.stateNode}try{M3(o,l)}catch(K){Yt(h,h.return,K)}}break;case 27:l===null&&y&4&&Y4(h);case 26:case 5:Bs(o,h),l===null&&y&4&&G4(h),y&512&&vd(h,h.return);break;case 12:Bs(o,h);break;case 13:Bs(o,h),y&4&&J4(o,h),y&64&&(o=h.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(h=NU.bind(null,h),XU(o,h))));break;case 22:if(y=h.memoizedState!==null||jo,!y){l=l!==null&&l.memoizedState!==null||Ln,E=jo;var P=Ln;jo=y,(Ln=l)&&!P?zs(o,h,(h.subtreeFlags&8772)!==0):Bs(o,h),jo=E,Ln=P}break;case 30:break;default:Bs(o,h)}}function X4(o){var l=o.alternate;l!==null&&(o.alternate=null,X4(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&Wu(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var gn=null,Kr=!1;function Po(o,l,h){for(h=h.child;h!==null;)Q4(o,l,h),h=h.sibling}function Q4(o,l,h){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(Re,h)}catch{}switch(h.tag){case 26:Ln||za(h,l),Po(o,l,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Ln||za(h,l);var y=gn,E=Kr;Gs(h.type)&&(gn=h.stateNode,Kr=!1),Po(o,l,h),Ad(h.stateNode),gn=y,Kr=E;break;case 5:Ln||za(h,l);case 6:if(y=gn,E=Kr,gn=null,Po(o,l,h),gn=y,Kr=E,gn!==null)if(Kr)try{(gn.nodeType===9?gn.body:gn.nodeName==="HTML"?gn.ownerDocument.body:gn).removeChild(h.stateNode)}catch(P){Yt(h,l,P)}else try{gn.removeChild(h.stateNode)}catch(P){Yt(h,l,P)}break;case 18:gn!==null&&(Kr?(o=gn,zE(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,h.stateNode),Ld(o)):zE(gn,h.stateNode));break;case 4:y=gn,E=Kr,gn=h.stateNode.containerInfo,Kr=!0,Po(o,l,h),gn=y,Kr=E;break;case 0:case 11:case 14:case 15:Ln||Us(2,h,l),Ln||Us(4,h,l),Po(o,l,h);break;case 1:Ln||(za(h,l),y=h.stateNode,typeof y.componentWillUnmount=="function"&&H4(h,l,y)),Po(o,l,h);break;case 21:Po(o,l,h);break;case 22:Ln=(y=Ln)||h.memoizedState!==null,Po(o,l,h),Ln=y;break;default:Po(o,l,h)}}function J4(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ld(o)}catch(h){Yt(l,l.return,h)}}function EU(o){switch(o.tag){case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new K4),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new K4),l;default:throw Error(r(435,o.tag))}}function Z0(o,l){var h=EU(o);l.forEach(function(y){var E=LU.bind(null,o,y);h.has(y)||(h.add(y),y.then(E,E))})}function di(o,l){var h=l.deletions;if(h!==null)for(var y=0;y<h.length;y++){var E=h[y],P=o,K=l,ie=K;e:for(;ie!==null;){switch(ie.tag){case 27:if(Gs(ie.type)){gn=ie.stateNode,Kr=!1;break e}break;case 5:gn=ie.stateNode,Kr=!1;break e;case 3:case 4:gn=ie.stateNode.containerInfo,Kr=!0;break e}ie=ie.return}if(gn===null)throw Error(r(160));Q4(P,K,E),gn=null,Kr=!1,P=E.alternate,P!==null&&(P.return=null),E.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)eE(l,o),l=l.sibling}var la=null;function eE(o,l){var h=o.alternate,y=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:di(l,o),hi(o),y&4&&(Us(3,o,o.return),gd(3,o),Us(5,o,o.return));break;case 1:di(l,o),hi(o),y&512&&(Ln||h===null||za(h,h.return)),y&64&&jo&&(o=o.updateQueue,o!==null&&(y=o.callbacks,y!==null&&(h=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=h===null?y:h.concat(y))));break;case 26:var E=la;if(di(l,o),hi(o),y&512&&(Ln||h===null||za(h,h.return)),y&4){var P=h!==null?h.memoizedState:null;if(y=o.memoizedState,h===null)if(y===null)if(o.stateNode===null){e:{y=o.type,h=o.memoizedProps,E=E.ownerDocument||E;t:switch(y){case"title":P=E.getElementsByTagName("title")[0],(!P||P[us]||P[Tt]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=E.createElement(y),E.head.insertBefore(P,E.querySelector("head > title"))),pr(P,y,h),P[Tt]=o,Un(P),y=P;break e;case"link":var K=YE("link","href",E).get(y+(h.href||""));if(K){for(var ie=0;ie<K.length;ie++)if(P=K[ie],P.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&P.getAttribute("rel")===(h.rel==null?null:h.rel)&&P.getAttribute("title")===(h.title==null?null:h.title)&&P.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){K.splice(ie,1);break t}}P=E.createElement(y),pr(P,y,h),E.head.appendChild(P);break;case"meta":if(K=YE("meta","content",E).get(y+(h.content||""))){for(ie=0;ie<K.length;ie++)if(P=K[ie],P.getAttribute("content")===(h.content==null?null:""+h.content)&&P.getAttribute("name")===(h.name==null?null:h.name)&&P.getAttribute("property")===(h.property==null?null:h.property)&&P.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&P.getAttribute("charset")===(h.charSet==null?null:h.charSet)){K.splice(ie,1);break t}}P=E.createElement(y),pr(P,y,h),E.head.appendChild(P);break;default:throw Error(r(468,y))}P[Tt]=o,Un(P),y=P}o.stateNode=y}else KE(E,o.type,o.stateNode);else o.stateNode=WE(E,y,o.memoizedProps);else P!==y?(P===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):P.count--,y===null?KE(E,o.type,o.stateNode):WE(E,y,o.memoizedProps)):y===null&&o.stateNode!==null&&G0(o,o.memoizedProps,h.memoizedProps)}break;case 27:di(l,o),hi(o),y&512&&(Ln||h===null||za(h,h.return)),h!==null&&y&4&&G0(o,o.memoizedProps,h.memoizedProps);break;case 5:if(di(l,o),hi(o),y&512&&(Ln||h===null||za(h,h.return)),o.flags&32){E=o.stateNode;try{ki(E,"")}catch(je){Yt(o,o.return,je)}}y&4&&o.stateNode!=null&&(E=o.memoizedProps,G0(o,E,h!==null?h.memoizedProps:E)),y&1024&&(K0=!0);break;case 6:if(di(l,o),hi(o),y&4){if(o.stateNode===null)throw Error(r(162));y=o.memoizedProps,h=o.stateNode;try{h.nodeValue=y}catch(je){Yt(o,o.return,je)}}break;case 3:if(Sp=null,E=la,la=xp(l.containerInfo),di(l,o),la=E,hi(o),y&4&&h!==null&&h.memoizedState.isDehydrated)try{Ld(l.containerInfo)}catch(je){Yt(o,o.return,je)}K0&&(K0=!1,tE(o));break;case 4:y=la,la=xp(o.stateNode.containerInfo),di(l,o),hi(o),la=y;break;case 12:di(l,o),hi(o);break;case 13:di(l,o),hi(o),o.child.flags&8192&&o.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(n1=_e()),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,Z0(o,y)));break;case 22:E=o.memoizedState!==null;var pe=h!==null&&h.memoizedState!==null,Ee=jo,ke=Ln;if(jo=Ee||E,Ln=ke||pe,di(l,o),Ln=ke,jo=Ee,hi(o),y&8192)e:for(l=o.stateNode,l._visibility=E?l._visibility&-2:l._visibility|1,E&&(h===null||pe||jo||Ln||ou(o)),h=null,l=o;;){if(l.tag===5||l.tag===26){if(h===null){pe=h=l;try{if(P=pe.stateNode,E)K=P.style,typeof K.setProperty=="function"?K.setProperty("display","none","important"):K.display="none";else{ie=pe.stateNode;var Ue=pe.memoizedProps.style,Oe=Ue!=null&&Ue.hasOwnProperty("display")?Ue.display:null;ie.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(je){Yt(pe,pe.return,je)}}}else if(l.tag===6){if(h===null){pe=l;try{pe.stateNode.nodeValue=E?"":pe.memoizedProps}catch(je){Yt(pe,pe.return,je)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;h===l&&(h=null),l=l.return}h===l&&(h=null),l.sibling.return=l.return,l=l.sibling}y&4&&(y=o.updateQueue,y!==null&&(h=y.retryQueue,h!==null&&(y.retryQueue=null,Z0(o,h))));break;case 19:di(l,o),hi(o),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,Z0(o,y)));break;case 30:break;case 21:break;default:di(l,o),hi(o)}}function hi(o){var l=o.flags;if(l&2){try{for(var h,y=o.return;y!==null;){if(W4(y)){h=y;break}y=y.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var E=h.stateNode,P=W0(o);lp(o,P,E);break;case 5:var K=h.stateNode;h.flags&32&&(ki(K,""),h.flags&=-33);var ie=W0(o);lp(o,ie,K);break;case 3:case 4:var pe=h.stateNode.containerInfo,Ee=W0(o);Y0(o,Ee,pe);break;default:throw Error(r(161))}}catch(ke){Yt(o,o.return,ke)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function tE(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;tE(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function Bs(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Z4(o,l.alternate,l),l=l.sibling}function ou(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:Us(4,l,l.return),ou(l);break;case 1:za(l,l.return);var h=l.stateNode;typeof h.componentWillUnmount=="function"&&H4(l,l.return,h),ou(l);break;case 27:Ad(l.stateNode);case 26:case 5:za(l,l.return),ou(l);break;case 22:l.memoizedState===null&&ou(l);break;case 30:ou(l);break;default:ou(l)}o=o.sibling}}function zs(o,l,h){for(h=h&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var y=l.alternate,E=o,P=l,K=P.flags;switch(P.tag){case 0:case 11:case 15:zs(E,P,h),gd(4,P);break;case 1:if(zs(E,P,h),y=P,E=y.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(Ee){Yt(y,y.return,Ee)}if(y=P,E=y.updateQueue,E!==null){var ie=y.stateNode;try{var pe=E.shared.hiddenCallbacks;if(pe!==null)for(E.shared.hiddenCallbacks=null,E=0;E<pe.length;E++)P3(pe[E],ie)}catch(Ee){Yt(y,y.return,Ee)}}h&&K&64&&q4(P),vd(P,P.return);break;case 27:Y4(P);case 26:case 5:zs(E,P,h),h&&y===null&&K&4&&G4(P),vd(P,P.return);break;case 12:zs(E,P,h);break;case 13:zs(E,P,h),h&&K&4&&J4(E,P);break;case 22:P.memoizedState===null&&zs(E,P,h),vd(P,P.return);break;case 30:break;default:zs(E,P,h)}l=l.sibling}}function X0(o,l){var h=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==h&&(o!=null&&o.refCount++,h!=null&&nd(h))}function Q0(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&nd(o))}function Fa(o,l,h,y){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)nE(o,l,h,y),l=l.sibling}function nE(o,l,h,y){var E=l.flags;switch(l.tag){case 0:case 11:case 15:Fa(o,l,h,y),E&2048&&gd(9,l);break;case 1:Fa(o,l,h,y);break;case 3:Fa(o,l,h,y),E&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&nd(o)));break;case 12:if(E&2048){Fa(o,l,h,y),o=l.stateNode;try{var P=l.memoizedProps,K=P.id,ie=P.onPostCommit;typeof ie=="function"&&ie(K,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(pe){Yt(l,l.return,pe)}}else Fa(o,l,h,y);break;case 13:Fa(o,l,h,y);break;case 23:break;case 22:P=l.stateNode,K=l.alternate,l.memoizedState!==null?P._visibility&2?Fa(o,l,h,y):yd(o,l):P._visibility&2?Fa(o,l,h,y):(P._visibility|=2,xc(o,l,h,y,(l.subtreeFlags&10256)!==0)),E&2048&&X0(K,l);break;case 24:Fa(o,l,h,y),E&2048&&Q0(l.alternate,l);break;default:Fa(o,l,h,y)}}function xc(o,l,h,y,E){for(E=E&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var P=o,K=l,ie=h,pe=y,Ee=K.flags;switch(K.tag){case 0:case 11:case 15:xc(P,K,ie,pe,E),gd(8,K);break;case 23:break;case 22:var ke=K.stateNode;K.memoizedState!==null?ke._visibility&2?xc(P,K,ie,pe,E):yd(P,K):(ke._visibility|=2,xc(P,K,ie,pe,E)),E&&Ee&2048&&X0(K.alternate,K);break;case 24:xc(P,K,ie,pe,E),E&&Ee&2048&&Q0(K.alternate,K);break;default:xc(P,K,ie,pe,E)}l=l.sibling}}function yd(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var h=o,y=l,E=y.flags;switch(y.tag){case 22:yd(h,y),E&2048&&X0(y.alternate,y);break;case 24:yd(h,y),E&2048&&Q0(y.alternate,y);break;default:yd(h,y)}l=l.sibling}}var bd=8192;function wc(o){if(o.subtreeFlags&bd)for(o=o.child;o!==null;)rE(o),o=o.sibling}function rE(o){switch(o.tag){case 26:wc(o),o.flags&bd&&o.memoizedState!==null&&cB(la,o.memoizedState,o.memoizedProps);break;case 5:wc(o);break;case 3:case 4:var l=la;la=xp(o.stateNode.containerInfo),wc(o),la=l;break;case 22:o.memoizedState===null&&(l=o.alternate,l!==null&&l.memoizedState!==null?(l=bd,bd=16777216,wc(o),bd=l):wc(o));break;default:wc(o)}}function iE(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function _d(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var y=l[h];ir=y,oE(y,o)}iE(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)aE(o),o=o.sibling}function aE(o){switch(o.tag){case 0:case 11:case 15:_d(o),o.flags&2048&&Us(9,o,o.return);break;case 3:_d(o);break;case 12:_d(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,up(o)):_d(o);break;default:_d(o)}}function up(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var y=l[h];ir=y,oE(y,o)}iE(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:Us(8,l,l.return),up(l);break;case 22:h=l.stateNode,h._visibility&2&&(h._visibility&=-3,up(l));break;default:up(l)}o=o.sibling}}function oE(o,l){for(;ir!==null;){var h=ir;switch(h.tag){case 0:case 11:case 15:Us(8,h,l);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var y=h.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:nd(h.memoizedState.cache)}if(y=h.child,y!==null)y.return=h,ir=y;else e:for(h=o;ir!==null;){y=ir;var E=y.sibling,P=y.return;if(X4(y),y===h){ir=null;break e}if(E!==null){E.return=P,ir=E;break e}ir=P}}}var AU={getCacheForType:function(o){var l=Er(Hn),h=l.data.get(o);return h===void 0&&(h=o(),l.data.set(o,h)),h}},TU=typeof WeakMap=="function"?WeakMap:Map,$t=0,rn=null,St=null,Pt=0,Vt=0,mi=null,Fs=!1,Sc=!1,J0=!1,Mo=0,En=0,$s=0,su=0,e1=0,qi=0,Cc=0,xd=null,Zr=null,t1=!1,n1=0,cp=1/0,fp=null,Vs=null,mr=0,qs=null,Ec=null,Ac=0,r1=0,i1=null,sE=null,wd=0,a1=null;function pi(){if(($t&2)!==0&&Pt!==0)return Pt&-Pt;if(Y.T!==null){var o=hc;return o!==0?o:d1()}return Jn()}function lE(){qi===0&&(qi=(Pt&536870912)===0||ht?os():536870912);var o=Vi.current;return o!==null&&(o.flags|=32),qi}function gi(o,l,h){(o===rn&&(Vt===2||Vt===9)||o.cancelPendingCommit!==null)&&(Tc(o,0),Hs(o,Pt,qi,!1)),ja(o,h),(($t&2)===0||o!==rn)&&(o===rn&&(($t&2)===0&&(su|=h),En===4&&Hs(o,Pt,qi,!1)),$a(o))}function uE(o,l,h){if(($t&6)!==0)throw Error(r(327));var y=!h&&(l&124)===0&&(l&o.expiredLanes)===0||wr(o,l),E=y?PU(o,l):l1(o,l,!0),P=y;do{if(E===0){Sc&&!y&&Hs(o,l,0,!1);break}else{if(h=o.current.alternate,P&&!OU(h)){E=l1(o,l,!1),P=!1;continue}if(E===2){if(P=l,o.errorRecoveryDisabledLanes&P)var K=0;else K=o.pendingLanes&-536870913,K=K!==0?K:K&536870912?536870912:0;if(K!==0){l=K;e:{var ie=o;E=xd;var pe=ie.current.memoizedState.isDehydrated;if(pe&&(Tc(ie,K).flags|=256),K=l1(ie,K,!1),K!==2){if(J0&&!pe){ie.errorRecoveryDisabledLanes|=P,su|=P,E=4;break e}P=Zr,Zr=E,P!==null&&(Zr===null?Zr=P:Zr.push.apply(Zr,P))}E=K}if(P=!1,E!==2)continue}}if(E===1){Tc(o,0),Hs(o,l,0,!0);break}e:{switch(y=o,P=E,P){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Hs(y,l,qi,!Fs);break e;case 2:Zr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(E=n1+300-_e(),10<E)){if(Hs(y,l,qi,!Fs),It(y,0,!0)!==0)break e;y.timeoutHandle=UE(cE.bind(null,y,h,Zr,fp,t1,l,qi,su,Cc,Fs,P,2,-0,0),E);break e}cE(y,h,Zr,fp,t1,l,qi,su,Cc,Fs,P,0,-0,0)}}break}while(!0);$a(o)}function cE(o,l,h,y,E,P,K,ie,pe,Ee,ke,Ue,Oe,je){if(o.timeoutHandle=-1,Ue=l.subtreeFlags,(Ue&8192||(Ue&16785408)===16785408)&&(jd={stylesheets:null,count:0,unsuspend:uB},rE(l),Ue=fB(),Ue!==null)){o.cancelPendingCommit=Ue(vE.bind(null,o,l,P,h,y,E,K,ie,pe,ke,1,Oe,je)),Hs(o,P,K,!Ee);return}vE(o,l,P,h,y,E,K,ie,pe)}function OU(o){for(var l=o;;){var h=l.tag;if((h===0||h===11||h===15)&&l.flags&16384&&(h=l.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var y=0;y<h.length;y++){var E=h[y],P=E.getSnapshot;E=E.value;try{if(!Lr(P(),E))return!1}catch{return!1}}if(h=l.child,l.subtreeFlags&16384&&h!==null)h.return=l,l=h;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Hs(o,l,h,y){l&=~e1,l&=~su,o.suspendedLanes|=l,o.pingedLanes&=~l,y&&(o.warmLanes|=l),y=o.expirationTimes;for(var E=l;0<E;){var P=31-Ve(E),K=1<<P;y[P]=-1,E&=~K}h!==0&&ls(o,h,l)}function dp(){return($t&6)===0?(Sd(0),!1):!0}function o1(){if(St!==null){if(Vt===0)var o=St.return;else o=St,oa=$i=null,S0(o),bc=null,hd=0,o=St;for(;o!==null;)V4(o.alternate,o),o=o.return;St=null}}function Tc(o,l){var h=o.timeoutHandle;h!==-1&&(o.timeoutHandle=-1,GU(h)),h=o.cancelPendingCommit,h!==null&&(o.cancelPendingCommit=null,h()),o1(),rn=o,St=h=Fi(o.current,null),Pt=l,Vt=0,mi=null,Fs=!1,Sc=wr(o,l),J0=!1,Cc=qi=e1=su=$s=En=0,Zr=xd=null,t1=!1,(l&8)!==0&&(l|=l&32);var y=o.entangledLanes;if(y!==0)for(o=o.entanglements,y&=l;0<y;){var E=31-Ve(y),P=1<<E;l|=o[E],y&=~P}return Mo=l,Kl(),h}function fE(o,l){bt=null,Y.H=Jm,l===id||l===Vm?(l=O3(),Vt=3):l===E3?(l=O3(),Vt=4):Vt=l===j4?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,mi=l,St===null&&(En=1,ip(o,kr(l,o.current)))}function dE(){var o=Y.H;return Y.H=Jm,o===null?Jm:o}function hE(){var o=Y.A;return Y.A=AU,o}function s1(){En=4,Fs||(Pt&4194048)!==Pt&&Vi.current!==null||(Sc=!0),($s&134217727)===0&&(su&134217727)===0||rn===null||Hs(rn,Pt,qi,!1)}function l1(o,l,h){var y=$t;$t|=2;var E=dE(),P=hE();(rn!==o||Pt!==l)&&(fp=null,Tc(o,l)),l=!1;var K=En;e:do try{if(Vt!==0&&St!==null){var ie=St,pe=mi;switch(Vt){case 8:o1(),K=6;break e;case 3:case 2:case 9:case 6:Vi.current===null&&(l=!0);var Ee=Vt;if(Vt=0,mi=null,Oc(o,ie,pe,Ee),h&&Sc){K=0;break e}break;default:Ee=Vt,Vt=0,mi=null,Oc(o,ie,pe,Ee)}}jU(),K=En;break}catch(ke){fE(o,ke)}while(!0);return l&&o.shellSuspendCounter++,oa=$i=null,$t=y,Y.H=E,Y.A=P,St===null&&(rn=null,Pt=0,Kl()),K}function jU(){for(;St!==null;)mE(St)}function PU(o,l){var h=$t;$t|=2;var y=dE(),E=hE();rn!==o||Pt!==l?(fp=null,cp=_e()+500,Tc(o,l)):Sc=wr(o,l);e:do try{if(Vt!==0&&St!==null){l=St;var P=mi;t:switch(Vt){case 1:Vt=0,mi=null,Oc(o,l,P,1);break;case 2:case 9:if(A3(P)){Vt=0,mi=null,pE(l);break}l=function(){Vt!==2&&Vt!==9||rn!==o||(Vt=7),$a(o)},P.then(l,l);break e;case 3:Vt=7;break e;case 4:Vt=5;break e;case 7:A3(P)?(Vt=0,mi=null,pE(l)):(Vt=0,mi=null,Oc(o,l,P,7));break;case 5:var K=null;switch(St.tag){case 26:K=St.memoizedState;case 5:case 27:var ie=St;if(!K||ZE(K)){Vt=0,mi=null;var pe=ie.sibling;if(pe!==null)St=pe;else{var Ee=ie.return;Ee!==null?(St=Ee,hp(Ee)):St=null}break t}}Vt=0,mi=null,Oc(o,l,P,5);break;case 6:Vt=0,mi=null,Oc(o,l,P,6);break;case 8:o1(),En=6;break e;default:throw Error(r(462))}}MU();break}catch(ke){fE(o,ke)}while(!0);return oa=$i=null,Y.H=y,Y.A=E,$t=h,St!==null?0:(rn=null,Pt=0,Kl(),En)}function MU(){for(;St!==null&&!ge();)mE(St)}function mE(o){var l=F4(o.alternate,o,Mo);o.memoizedProps=o.pendingProps,l===null?hp(o):St=l}function pE(o){var l=o,h=l.alternate;switch(l.tag){case 15:case 0:l=D4(h,l,l.pendingProps,l.type,void 0,Pt);break;case 11:l=D4(h,l,l.pendingProps,l.type.render,l.ref,Pt);break;case 5:S0(l);default:V4(h,l),l=St=ed(l,Mo),l=F4(h,l,Mo)}o.memoizedProps=o.pendingProps,l===null?hp(o):St=l}function Oc(o,l,h,y){oa=$i=null,S0(l),bc=null,hd=0;var E=l.return;try{if(_U(o,E,l,h,Pt)){En=1,ip(o,kr(h,o.current)),St=null;return}}catch(P){if(E!==null)throw St=E,P;En=1,ip(o,kr(h,o.current)),St=null;return}l.flags&32768?(ht||y===1?o=!0:Sc||(Pt&536870912)!==0?o=!1:(Fs=o=!0,(y===2||y===9||y===3||y===6)&&(y=Vi.current,y!==null&&y.tag===13&&(y.flags|=16384))),gE(l,o)):hp(l)}function hp(o){var l=o;do{if((l.flags&32768)!==0){gE(l,Fs);return}o=l.return;var h=wU(l.alternate,l,Mo);if(h!==null){St=h;return}if(l=l.sibling,l!==null){St=l;return}St=l=o}while(l!==null);En===0&&(En=5)}function gE(o,l){do{var h=SU(o.alternate,o);if(h!==null){h.flags&=32767,St=h;return}if(h=o.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!l&&(o=o.sibling,o!==null)){St=o;return}St=o=h}while(o!==null);En=6,St=null}function vE(o,l,h,y,E,P,K,ie,pe){o.cancelPendingCommit=null;do mp();while(mr!==0);if(($t&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(P=l.lanes|l.childLanes,P|=fi,Gu(o,h,P,K,ie,pe),o===rn&&(St=rn=null,Pt=0),Ec=l,qs=o,Ac=h,r1=P,i1=E,sE=y,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,DU(Be,function(){return wE(),null})):(o.callbackNode=null,o.callbackPriority=0),y=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||y){y=Y.T,Y.T=null,E=U.p,U.p=2,K=$t,$t|=4;try{CU(o,l,h)}finally{$t=K,U.p=E,Y.T=y}}mr=1,yE(),bE(),_E()}}function yE(){if(mr===1){mr=0;var o=qs,l=Ec,h=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||h){h=Y.T,Y.T=null;var y=U.p;U.p=2;var E=$t;$t|=4;try{eE(l,o);var P=_1,K=Gl(o.containerInfo),ie=P.focusedElem,pe=P.selectionRange;if(K!==ie&&ie&&ie.ownerDocument&&ac(ie.ownerDocument.documentElement,ie)){if(pe!==null&&Wl(ie)){var Ee=pe.start,ke=pe.end;if(ke===void 0&&(ke=Ee),"selectionStart"in ie)ie.selectionStart=Ee,ie.selectionEnd=Math.min(ke,ie.value.length);else{var Ue=ie.ownerDocument||document,Oe=Ue&&Ue.defaultView||window;if(Oe.getSelection){var je=Oe.getSelection(),dt=ie.textContent.length,ct=Math.min(pe.start,dt),Wt=pe.end===void 0?ct:Math.min(pe.end,dt);!je.extend&&ct>Wt&&(K=Wt,Wt=ct,ct=K);var xe=Qf(ie,ct),ye=Qf(ie,Wt);if(xe&&ye&&(je.rangeCount!==1||je.anchorNode!==xe.node||je.anchorOffset!==xe.offset||je.focusNode!==ye.node||je.focusOffset!==ye.offset)){var Ce=Ue.createRange();Ce.setStart(xe.node,xe.offset),je.removeAllRanges(),ct>Wt?(je.addRange(Ce),je.extend(ye.node,ye.offset)):(Ce.setEnd(ye.node,ye.offset),je.addRange(Ce))}}}}for(Ue=[],je=ie;je=je.parentNode;)je.nodeType===1&&Ue.push({element:je,left:je.scrollLeft,top:je.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<Ue.length;ie++){var Ie=Ue[ie];Ie.element.scrollLeft=Ie.left,Ie.element.scrollTop=Ie.top}}Ap=!!b1,_1=b1=null}finally{$t=E,U.p=y,Y.T=h}}o.current=l,mr=2}}function bE(){if(mr===2){mr=0;var o=qs,l=Ec,h=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||h){h=Y.T,Y.T=null;var y=U.p;U.p=2;var E=$t;$t|=4;try{Z4(o,l.alternate,l)}finally{$t=E,U.p=y,Y.T=h}}mr=3}}function _E(){if(mr===4||mr===3){mr=0,de();var o=qs,l=Ec,h=Ac,y=sE;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?mr=5:(mr=0,Ec=qs=null,xE(o,o.pendingLanes));var E=o.pendingLanes;if(E===0&&(Vs=null),sn(h),l=l.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(Re,l,void 0,(l.current.flags&128)===128)}catch{}if(y!==null){l=Y.T,E=U.p,U.p=2,Y.T=null;try{for(var P=o.onRecoverableError,K=0;K<y.length;K++){var ie=y[K];P(ie.value,{componentStack:ie.stack})}}finally{Y.T=l,U.p=E}}(Ac&3)!==0&&mp(),$a(o),E=o.pendingLanes,(h&4194090)!==0&&(E&42)!==0?o===a1?wd++:(wd=0,a1=o):wd=0,Sd(0)}}function xE(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,nd(l)))}function mp(o){return yE(),bE(),_E(),wE()}function wE(){if(mr!==5)return!1;var o=qs,l=r1;r1=0;var h=sn(Ac),y=Y.T,E=U.p;try{U.p=32>h?32:h,Y.T=null,h=i1,i1=null;var P=qs,K=Ac;if(mr=0,Ec=qs=null,Ac=0,($t&6)!==0)throw Error(r(331));var ie=$t;if($t|=4,aE(P.current),nE(P,P.current,K,h),$t=ie,Sd(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(Re,P)}catch{}return!0}finally{U.p=E,Y.T=y,xE(o,l)}}function SE(o,l,h){l=kr(h,l),l=I0(o.stateNode,l,2),o=Ls(o,l,2),o!==null&&(ja(o,2),$a(o))}function Yt(o,l,h){if(o.tag===3)SE(o,o,h);else for(;l!==null;){if(l.tag===3){SE(l,o,h);break}else if(l.tag===1){var y=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Vs===null||!Vs.has(y))){o=kr(h,o),h=T4(2),y=Ls(l,h,2),y!==null&&(O4(h,y,l,o),ja(y,2),$a(y));break}}l=l.return}}function u1(o,l,h){var y=o.pingCache;if(y===null){y=o.pingCache=new TU;var E=new Set;y.set(l,E)}else E=y.get(l),E===void 0&&(E=new Set,y.set(l,E));E.has(h)||(J0=!0,E.add(h),o=RU.bind(null,o,l,h),l.then(o,o))}function RU(o,l,h){var y=o.pingCache;y!==null&&y.delete(l),o.pingedLanes|=o.suspendedLanes&h,o.warmLanes&=~h,rn===o&&(Pt&h)===h&&(En===4||En===3&&(Pt&62914560)===Pt&&300>_e()-n1?($t&2)===0&&Tc(o,0):e1|=h,Cc===Pt&&(Cc=0)),$a(o)}function CE(o,l){l===0&&(l=ii()),o=Os(o,l),o!==null&&(ja(o,l),$a(o))}function NU(o){var l=o.memoizedState,h=0;l!==null&&(h=l.retryLane),CE(o,h)}function LU(o,l){var h=0;switch(o.tag){case 13:var y=o.stateNode,E=o.memoizedState;E!==null&&(h=E.retryLane);break;case 19:y=o.stateNode;break;case 22:y=o.stateNode._retryCache;break;default:throw Error(r(314))}y!==null&&y.delete(l),CE(o,h)}function DU(o,l){return ae(o,l)}var pp=null,jc=null,c1=!1,gp=!1,f1=!1,lu=0;function $a(o){o!==jc&&o.next===null&&(jc===null?pp=jc=o:jc=jc.next=o),gp=!0,c1||(c1=!0,IU())}function Sd(o,l){if(!f1&&gp){f1=!0;do for(var h=!1,y=pp;y!==null;){if(o!==0){var E=y.pendingLanes;if(E===0)var P=0;else{var K=y.suspendedLanes,ie=y.pingedLanes;P=(1<<31-Ve(42|o)+1)-1,P&=E&~(K&~ie),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(h=!0,OE(y,P))}else P=Pt,P=It(y,y===rn?P:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(P&3)===0||wr(y,P)||(h=!0,OE(y,P));y=y.next}while(h);f1=!1}}function kU(){EE()}function EE(){gp=c1=!1;var o=0;lu!==0&&(HU()&&(o=lu),lu=0);for(var l=_e(),h=null,y=pp;y!==null;){var E=y.next,P=AE(y,l);P===0?(y.next=null,h===null?pp=E:h.next=E,E===null&&(jc=h)):(h=y,(o!==0||(P&3)!==0)&&(gp=!0)),y=E}Sd(o)}function AE(o,l){for(var h=o.suspendedLanes,y=o.pingedLanes,E=o.expirationTimes,P=o.pendingLanes&-62914561;0<P;){var K=31-Ve(P),ie=1<<K,pe=E[K];pe===-1?((ie&h)===0||(ie&y)!==0)&&(E[K]=Vn(ie,l)):pe<=l&&(o.expiredLanes|=ie),P&=~ie}if(l=rn,h=Pt,h=It(o,o===l?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y=o.callbackNode,h===0||o===l&&(Vt===2||Vt===9)||o.cancelPendingCommit!==null)return y!==null&&y!==null&&fe(y),o.callbackNode=null,o.callbackPriority=0;if((h&3)===0||wr(o,h)){if(l=h&-h,l===o.callbackPriority)return l;switch(y!==null&&fe(y),sn(h)){case 2:case 8:h=He;break;case 32:h=Be;break;case 268435456:h=be;break;default:h=Be}return y=TE.bind(null,o),h=ae(h,y),o.callbackPriority=l,o.callbackNode=h,l}return y!==null&&y!==null&&fe(y),o.callbackPriority=2,o.callbackNode=null,2}function TE(o,l){if(mr!==0&&mr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var h=o.callbackNode;if(mp()&&o.callbackNode!==h)return null;var y=Pt;return y=It(o,o===rn?y:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y===0?null:(uE(o,y,l),AE(o,_e()),o.callbackNode!=null&&o.callbackNode===h?TE.bind(null,o):null)}function OE(o,l){if(mp())return null;uE(o,l,!0)}function IU(){WU(function(){($t&6)!==0?ae(Le,kU):EE()})}function d1(){return lu===0&&(lu=os()),lu}function jE(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:ps(""+o)}function PE(o,l){var h=l.ownerDocument.createElement("input");return h.name=l.name,h.value=l.value,o.id&&h.setAttribute("form",o.id),l.parentNode.insertBefore(h,l),o=new FormData(o),h.parentNode.removeChild(h),o}function UU(o,l,h,y,E){if(l==="submit"&&h&&h.stateNode===E){var P=jE((E[Jt]||null).action),K=y.submitter;K&&(l=(l=K[Jt]||null)?jE(l.formAction):K.getAttribute("formAction"),l!==null&&(P=l,K=null));var ie=new Fl("action","action",null,y,E);o.push({event:ie,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(lu!==0){var pe=K?PE(E,K):new FormData(E);R0(h,{pending:!0,data:pe,method:E.method,action:P},null,pe)}}else typeof P=="function"&&(ie.preventDefault(),pe=K?PE(E,K):new FormData(E),R0(h,{pending:!0,data:pe,method:E.method,action:P},P,pe))},currentTarget:E}]})}}for(var h1=0;h1<_o.length;h1++){var m1=_o[h1],BU=m1.toLowerCase(),zU=m1[0].toUpperCase()+m1.slice(1);ci(BU,"on"+zU)}ci(Lm,"onAnimationEnd"),ci(ui,"onAnimationIteration"),ci(Yl,"onAnimationStart"),ci("dblclick","onDoubleClick"),ci("focusin","onFocus"),ci("focusout","onBlur"),ci(s0,"onTransitionRun"),ci(uc,"onTransitionStart"),ci(l0,"onTransitionCancel"),ci(Jf,"onTransitionEnd"),so("onMouseEnter",["mouseout","mouseover"]),so("onMouseLeave",["mouseout","mouseover"]),so("onPointerEnter",["pointerout","pointerover"]),so("onPointerLeave",["pointerout","pointerover"]),oo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),oo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),oo("onBeforeInput",["compositionend","keypress","textInput","paste"]),oo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),oo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),oo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),FU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cd));function ME(o,l){l=(l&4)!==0;for(var h=0;h<o.length;h++){var y=o[h],E=y.event;y=y.listeners;e:{var P=void 0;if(l)for(var K=y.length-1;0<=K;K--){var ie=y[K],pe=ie.instance,Ee=ie.currentTarget;if(ie=ie.listener,pe!==P&&E.isPropagationStopped())break e;P=ie,E.currentTarget=Ee;try{P(E)}catch(ke){rp(ke)}E.currentTarget=null,P=pe}else for(K=0;K<y.length;K++){if(ie=y[K],pe=ie.instance,Ee=ie.currentTarget,ie=ie.listener,pe!==P&&E.isPropagationStopped())break e;P=ie,E.currentTarget=Ee;try{P(E)}catch(ke){rp(ke)}E.currentTarget=null,P=pe}}}}function Ct(o,l){var h=l[Rn];h===void 0&&(h=l[Rn]=new Set);var y=o+"__bubble";h.has(y)||(RE(l,o,2,!1),h.add(y))}function p1(o,l,h){var y=0;l&&(y|=4),RE(h,o,y,l)}var vp="_reactListening"+Math.random().toString(36).slice(2);function g1(o){if(!o[vp]){o[vp]=!0,mm.forEach(function(h){h!=="selectionchange"&&(FU.has(h)||p1(h,!1,o),p1(h,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[vp]||(l[vp]=!0,p1("selectionchange",!1,l))}}function RE(o,l,h,y){switch(nA(l)){case 2:var E=mB;break;case 8:E=pB;break;default:E=P1}h=E.bind(null,l,h,o),E=void 0,!zl||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(E=!0),y?E!==void 0?o.addEventListener(l,h,{capture:!0,passive:E}):o.addEventListener(l,h,!0):E!==void 0?o.addEventListener(l,h,{passive:E}):o.addEventListener(l,h,!1)}function v1(o,l,h,y,E){var P=y;if((l&1)===0&&(l&2)===0&&y!==null)e:for(;;){if(y===null)return;var K=y.tag;if(K===3||K===4){var ie=y.stateNode.containerInfo;if(ie===E)break;if(K===4)for(K=y.return;K!==null;){var pe=K.tag;if((pe===3||pe===4)&&K.stateNode.containerInfo===E)return;K=K.return}for(;ie!==null;){if(K=Ma(ie),K===null)return;if(pe=K.tag,pe===5||pe===6||pe===26||pe===27){y=P=K;continue e}ie=ie.parentNode}}y=y.return}ai(function(){var Ee=P,ke=gs(h),Ue=[];e:{var Oe=Dm.get(o);if(Oe!==void 0){var je=Fl,dt=o;switch(o){case"keypress":if(Cn(h)===0)break e;case"keydown":case"keyup":je=Jy;break;case"focusin":dt="focus",je=Vf;break;case"focusout":dt="blur",je=Vf;break;case"beforeblur":case"afterblur":je=Vf;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":je=bs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":je=Yy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":je=t0;break;case Lm:case ui:case Yl:je=Ky;break;case Jf:je=n0;break;case"scroll":case"scrollend":je=Wy;break;case"wheel":je=Em;break;case"copy":case"cut":case"paste":je=qf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":je=Gf;break;case"toggle":case"beforetoggle":je=go}var ct=(l&4)!==0,Wt=!ct&&(o==="scroll"||o==="scrollend"),xe=ct?Oe!==null?Oe+"Capture":null:Oe;ct=[];for(var ye=Ee,Ce;ye!==null;){var Ie=ye;if(Ce=Ie.stateNode,Ie=Ie.tag,Ie!==5&&Ie!==26&&Ie!==27||Ce===null||xe===null||(Ie=Ut(ye,xe),Ie!=null&&ct.push(Ed(ye,Ie,Ce))),Wt)break;ye=ye.return}0<ct.length&&(Oe=new je(Oe,dt,null,h,ke),Ue.push({event:Oe,listeners:ct}))}}if((l&7)===0){e:{if(Oe=o==="mouseover"||o==="pointerover",je=o==="mouseout"||o==="pointerout",Oe&&h!==Bl&&(dt=h.relatedTarget||h.fromElement)&&(Ma(dt)||dt[er]))break e;if((je||Oe)&&(Oe=ke.window===ke?ke:(Oe=ke.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,je?(dt=h.relatedTarget||h.toElement,je=Ee,dt=dt?Ma(dt):null,dt!==null&&(Wt=a(dt),ct=dt.tag,dt!==Wt||ct!==5&&ct!==27&&ct!==6)&&(dt=null)):(je=null,dt=Ee),je!==dt)){if(ct=bs,Ie="onMouseLeave",xe="onMouseEnter",ye="mouse",(o==="pointerout"||o==="pointerover")&&(ct=Gf,Ie="onPointerLeave",xe="onPointerEnter",ye="pointer"),Wt=je==null?Oe:Di(je),Ce=dt==null?Oe:Di(dt),Oe=new ct(Ie,ye+"leave",je,h,ke),Oe.target=Wt,Oe.relatedTarget=Ce,Ie=null,Ma(ke)===Ee&&(ct=new ct(xe,ye+"enter",dt,h,ke),ct.target=Ce,ct.relatedTarget=Wt,Ie=ct),Wt=Ie,je&&dt)t:{for(ct=je,xe=dt,ye=0,Ce=ct;Ce;Ce=Pc(Ce))ye++;for(Ce=0,Ie=xe;Ie;Ie=Pc(Ie))Ce++;for(;0<ye-Ce;)ct=Pc(ct),ye--;for(;0<Ce-ye;)xe=Pc(xe),Ce--;for(;ye--;){if(ct===xe||xe!==null&&ct===xe.alternate)break t;ct=Pc(ct),xe=Pc(xe)}ct=null}else ct=null;je!==null&&NE(Ue,Oe,je,ct,!1),dt!==null&&Wt!==null&&NE(Ue,Wt,dt,ct,!0)}}e:{if(Oe=Ee?Di(Ee):window,je=Oe.nodeName&&Oe.nodeName.toLowerCase(),je==="select"||je==="input"&&Oe.type==="file")var nt=ws;else if(yo(Oe))if(Kf)nt=o0;else{nt=a0;var wt=Xf}else je=Oe.nodeName,!je||je.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Ee&&Ul(Ee.elementType)&&(nt=ws):nt=aa;if(nt&&(nt=nt(o,Ee))){Pm(Ue,nt,h,ke);break e}wt&&wt(o,Oe,Ee),o==="focusout"&&Ee&&Oe.type==="number"&&Ee.memoizedProps.value!=null&&hs(Oe,"number",Oe.value)}switch(wt=Ee?Di(Ee):window,o){case"focusin":(yo(wt)||wt.contentEditable==="true")&&(li=wt,Es=Ee,bo=null);break;case"focusout":bo=Es=li=null;break;case"mousedown":sc=!0;break;case"contextmenu":case"mouseup":case"dragend":sc=!1,Rm(Ue,h,ke);break;case"selectionchange":if(oc)break;case"keydown":case"keyup":Rm(Ue,h,ke)}var st;if(vo)e:{switch(o){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else _s?rc(o,h)&&(ft="onCompositionEnd"):o==="keydown"&&h.keyCode===229&&(ft="onCompositionStart");ft&&(Yf&&h.locale!=="ko"&&(_s||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&_s&&(st=ys()):(Ui=ke,ra="value"in Ui?Ui.value:Ui.textContent,_s=!0)),wt=yp(Ee,ft),0<wt.length&&(ft=new oi(ft,o,null,h,ke),Ue.push({event:ft,listeners:wt}),st?ft.data=st:(st=Om(h),st!==null&&(ft.data=st)))),(st=Am?jm(o,h):i0(o,h))&&(ft=yp(Ee,"onBeforeInput"),0<ft.length&&(wt=new oi("onBeforeInput","beforeinput",null,h,ke),Ue.push({event:wt,listeners:ft}),wt.data=st)),UU(Ue,o,Ee,h,ke)}ME(Ue,l)})}function Ed(o,l,h){return{instance:o,listener:l,currentTarget:h}}function yp(o,l){for(var h=l+"Capture",y=[];o!==null;){var E=o,P=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||P===null||(E=Ut(o,h),E!=null&&y.unshift(Ed(o,E,P)),E=Ut(o,l),E!=null&&y.push(Ed(o,E,P))),o.tag===3)return y;o=o.return}return[]}function Pc(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function NE(o,l,h,y,E){for(var P=l._reactName,K=[];h!==null&&h!==y;){var ie=h,pe=ie.alternate,Ee=ie.stateNode;if(ie=ie.tag,pe!==null&&pe===y)break;ie!==5&&ie!==26&&ie!==27||Ee===null||(pe=Ee,E?(Ee=Ut(h,P),Ee!=null&&K.unshift(Ed(h,Ee,pe))):E||(Ee=Ut(h,P),Ee!=null&&K.push(Ed(h,Ee,pe)))),h=h.return}K.length!==0&&o.push({event:l,listeners:K})}var $U=/\r\n?/g,VU=/\u0000|\uFFFD/g;function LE(o){return(typeof o=="string"?o:""+o).replace($U,`
|
||
`).replace(VU,"")}function DE(o,l){return l=LE(l),LE(o)===l}function bp(){}function Gt(o,l,h,y,E,P){switch(h){case"children":typeof y=="string"?l==="body"||l==="textarea"&&y===""||ki(o,y):(typeof y=="number"||typeof y=="bigint")&&l!=="body"&&ki(o,""+y);break;case"className":Ku(o,"class",y);break;case"tabIndex":Ku(o,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":Ku(o,h,y);break;case"style":ms(o,y,P);break;case"data":if(l!=="object"){Ku(o,"data",y);break}case"src":case"href":if(y===""&&(l!=="a"||h!=="href")){o.removeAttribute(h);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(h);break}y=ps(""+y),o.setAttribute(h,y);break;case"action":case"formAction":if(typeof y=="function"){o.setAttribute(h,"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 P=="function"&&(h==="formAction"?(l!=="input"&&Gt(o,l,"name",E.name,E,null),Gt(o,l,"formEncType",E.formEncType,E,null),Gt(o,l,"formMethod",E.formMethod,E,null),Gt(o,l,"formTarget",E.formTarget,E,null)):(Gt(o,l,"encType",E.encType,E,null),Gt(o,l,"method",E.method,E,null),Gt(o,l,"target",E.target,E,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(h);break}y=ps(""+y),o.setAttribute(h,y);break;case"onClick":y!=null&&(o.onclick=bp);break;case"onScroll":y!=null&&Ct("scroll",o);break;case"onScrollEnd":y!=null&&Ct("scrollend",o);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(h=y.__html,h!=null){if(E.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"multiple":o.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":o.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){o.removeAttribute("xlink:href");break}h=ps(""+y),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(h,""+y):o.removeAttribute(h);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":y&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(h,""):o.removeAttribute(h);break;case"capture":case"download":y===!0?o.setAttribute(h,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(h,y):o.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?o.setAttribute(h,y):o.removeAttribute(h);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?o.removeAttribute(h):o.setAttribute(h,y);break;case"popover":Ct("beforetoggle",o),Ct("toggle",o),Yu(o,"popover",y);break;case"xlinkActuate":na(o,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":na(o,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":na(o,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":na(o,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":na(o,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":na(o,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":na(o,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":na(o,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":na(o,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":Yu(o,"is",y);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=zf.get(h)||h,Yu(o,h,y))}}function y1(o,l,h,y,E,P){switch(h){case"style":ms(o,y,P);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(h=y.__html,h!=null){if(E.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"children":typeof y=="string"?ki(o,y):(typeof y=="number"||typeof y=="bigint")&&ki(o,""+y);break;case"onScroll":y!=null&&Ct("scroll",o);break;case"onScrollEnd":y!=null&&Ct("scrollend",o);break;case"onClick":y!=null&&(o.onclick=bp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pm.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(E=h.endsWith("Capture"),l=h.slice(2,E?h.length-7:void 0),P=o[Jt]||null,P=P!=null?P[h]:null,typeof P=="function"&&o.removeEventListener(l,P,E),typeof y=="function")){typeof P!="function"&&P!==null&&(h in o?o[h]=null:o.hasAttribute(h)&&o.removeAttribute(h)),o.addEventListener(l,y,E);break e}h in o?o[h]=y:y===!0?o.setAttribute(h,""):Yu(o,h,y)}}}function pr(o,l,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",o),Ct("load",o);var y=!1,E=!1,P;for(P in h)if(h.hasOwnProperty(P)){var K=h[P];if(K!=null)switch(P){case"src":y=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Gt(o,l,P,K,h,null)}}E&&Gt(o,l,"srcSet",h.srcSet,h,null),y&&Gt(o,l,"src",h.src,h,null);return;case"input":Ct("invalid",o);var ie=P=K=E=null,pe=null,Ee=null;for(y in h)if(h.hasOwnProperty(y)){var ke=h[y];if(ke!=null)switch(y){case"name":E=ke;break;case"type":K=ke;break;case"checked":pe=ke;break;case"defaultChecked":Ee=ke;break;case"value":P=ke;break;case"defaultValue":ie=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(r(137,l));break;default:Gt(o,l,y,ke,h,null)}}vm(o,P,ie,pe,Ee,K,E,!1),ds(o);return;case"select":Ct("invalid",o),y=K=P=null;for(E in h)if(h.hasOwnProperty(E)&&(ie=h[E],ie!=null))switch(E){case"value":P=ie;break;case"defaultValue":K=ie;break;case"multiple":y=ie;default:Gt(o,l,E,ie,h,null)}l=P,h=K,o.multiple=!!y,l!=null?Gr(o,!!y,l,!1):h!=null&&Gr(o,!!y,h,!0);return;case"textarea":Ct("invalid",o),P=E=y=null;for(K in h)if(h.hasOwnProperty(K)&&(ie=h[K],ie!=null))switch(K){case"value":y=ie;break;case"defaultValue":E=ie;break;case"children":P=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(91));break;default:Gt(o,l,K,ie,h,null)}Ra(o,y,E,P),ds(o);return;case"option":for(pe in h)if(h.hasOwnProperty(pe)&&(y=h[pe],y!=null))switch(pe){case"selected":o.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:Gt(o,l,pe,y,h,null)}return;case"dialog":Ct("beforetoggle",o),Ct("toggle",o),Ct("cancel",o),Ct("close",o);break;case"iframe":case"object":Ct("load",o);break;case"video":case"audio":for(y=0;y<Cd.length;y++)Ct(Cd[y],o);break;case"image":Ct("error",o),Ct("load",o);break;case"details":Ct("toggle",o);break;case"embed":case"source":case"link":Ct("error",o),Ct("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ee in h)if(h.hasOwnProperty(Ee)&&(y=h[Ee],y!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Gt(o,l,Ee,y,h,null)}return;default:if(Ul(l)){for(ke in h)h.hasOwnProperty(ke)&&(y=h[ke],y!==void 0&&y1(o,l,ke,y,h,void 0));return}}for(ie in h)h.hasOwnProperty(ie)&&(y=h[ie],y!=null&&Gt(o,l,ie,y,h,null))}function qU(o,l,h,y){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,P=null,K=null,ie=null,pe=null,Ee=null,ke=null;for(je in h){var Ue=h[je];if(h.hasOwnProperty(je)&&Ue!=null)switch(je){case"checked":break;case"value":break;case"defaultValue":pe=Ue;default:y.hasOwnProperty(je)||Gt(o,l,je,null,y,Ue)}}for(var Oe in y){var je=y[Oe];if(Ue=h[Oe],y.hasOwnProperty(Oe)&&(je!=null||Ue!=null))switch(Oe){case"type":P=je;break;case"name":E=je;break;case"checked":Ee=je;break;case"defaultChecked":ke=je;break;case"value":K=je;break;case"defaultValue":ie=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(r(137,l));break;default:je!==Ue&&Gt(o,l,Oe,je,y,Ue)}}Sr(o,K,ie,pe,Ee,ke,P,E);return;case"select":je=K=ie=Oe=null;for(P in h)if(pe=h[P],h.hasOwnProperty(P)&&pe!=null)switch(P){case"value":break;case"multiple":je=pe;default:y.hasOwnProperty(P)||Gt(o,l,P,null,y,pe)}for(E in y)if(P=y[E],pe=h[E],y.hasOwnProperty(E)&&(P!=null||pe!=null))switch(E){case"value":Oe=P;break;case"defaultValue":ie=P;break;case"multiple":K=P;default:P!==pe&&Gt(o,l,E,P,y,pe)}l=ie,h=K,y=je,Oe!=null?Gr(o,!!h,Oe,!1):!!y!=!!h&&(l!=null?Gr(o,!!h,l,!0):Gr(o,!!h,h?[]:"",!1));return;case"textarea":je=Oe=null;for(ie in h)if(E=h[ie],h.hasOwnProperty(ie)&&E!=null&&!y.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:Gt(o,l,ie,null,y,E)}for(K in y)if(E=y[K],P=h[K],y.hasOwnProperty(K)&&(E!=null||P!=null))switch(K){case"value":Oe=E;break;case"defaultValue":je=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==P&&Gt(o,l,K,E,y,P)}_n(o,Oe,je);return;case"option":for(var dt in h)if(Oe=h[dt],h.hasOwnProperty(dt)&&Oe!=null&&!y.hasOwnProperty(dt))switch(dt){case"selected":o.selected=!1;break;default:Gt(o,l,dt,null,y,Oe)}for(pe in y)if(Oe=y[pe],je=h[pe],y.hasOwnProperty(pe)&&Oe!==je&&(Oe!=null||je!=null))switch(pe){case"selected":o.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol";break;default:Gt(o,l,pe,Oe,y,je)}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 ct in h)Oe=h[ct],h.hasOwnProperty(ct)&&Oe!=null&&!y.hasOwnProperty(ct)&&Gt(o,l,ct,null,y,Oe);for(Ee in y)if(Oe=y[Ee],je=h[Ee],y.hasOwnProperty(Ee)&&Oe!==je&&(Oe!=null||je!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(r(137,l));break;default:Gt(o,l,Ee,Oe,y,je)}return;default:if(Ul(l)){for(var Wt in h)Oe=h[Wt],h.hasOwnProperty(Wt)&&Oe!==void 0&&!y.hasOwnProperty(Wt)&&y1(o,l,Wt,void 0,y,Oe);for(ke in y)Oe=y[ke],je=h[ke],!y.hasOwnProperty(ke)||Oe===je||Oe===void 0&&je===void 0||y1(o,l,ke,Oe,y,je);return}}for(var xe in h)Oe=h[xe],h.hasOwnProperty(xe)&&Oe!=null&&!y.hasOwnProperty(xe)&&Gt(o,l,xe,null,y,Oe);for(Ue in y)Oe=y[Ue],je=h[Ue],!y.hasOwnProperty(Ue)||Oe===je||Oe==null&&je==null||Gt(o,l,Ue,Oe,y,je)}var b1=null,_1=null;function _p(o){return o.nodeType===9?o:o.ownerDocument}function kE(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function IE(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function x1(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var w1=null;function HU(){var o=window.event;return o&&o.type==="popstate"?o===w1?!1:(w1=o,!0):(w1=null,!1)}var UE=typeof setTimeout=="function"?setTimeout:void 0,GU=typeof clearTimeout=="function"?clearTimeout:void 0,BE=typeof Promise=="function"?Promise:void 0,WU=typeof queueMicrotask=="function"?queueMicrotask:typeof BE<"u"?function(o){return BE.resolve(null).then(o).catch(YU)}:UE;function YU(o){setTimeout(function(){throw o})}function Gs(o){return o==="head"}function zE(o,l){var h=l,y=0,E=0;do{var P=h.nextSibling;if(o.removeChild(h),P&&P.nodeType===8)if(h=P.data,h==="/$"){if(0<y&&8>y){h=y;var K=o.ownerDocument;if(h&1&&Ad(K.documentElement),h&2&&Ad(K.body),h&4)for(h=K.head,Ad(h),K=h.firstChild;K;){var ie=K.nextSibling,pe=K.nodeName;K[us]||pe==="SCRIPT"||pe==="STYLE"||pe==="LINK"&&K.rel.toLowerCase()==="stylesheet"||h.removeChild(K),K=ie}}if(E===0){o.removeChild(P),Ld(l);return}E--}else h==="$"||h==="$?"||h==="$!"?E++:y=h.charCodeAt(0)-48;else y=0;h=P}while(h);Ld(l)}function S1(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var h=l;switch(l=l.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":S1(h),Wu(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}o.removeChild(h)}}function KU(o,l,h,y){for(;o.nodeType===1;){var E=h;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!y&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(y){if(!o[us])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(P=o.getAttribute("rel"),P==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(P!==E.rel||o.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||o.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||o.getAttribute("title")!==(E.title==null?null:E.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(P=o.getAttribute("src"),(P!==(E.src==null?null:E.src)||o.getAttribute("type")!==(E.type==null?null:E.type)||o.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&P&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var P=E.name==null?null:""+E.name;if(E.type==="hidden"&&o.getAttribute("name")===P)return o}else return o;if(o=ua(o.nextSibling),o===null)break}return null}function ZU(o,l,h){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!h||(o=ua(o.nextSibling),o===null))return null;return o}function C1(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function XU(o,l){var h=o.ownerDocument;if(o.data!=="$?"||h.readyState==="complete")l();else{var y=function(){l(),h.removeEventListener("DOMContentLoaded",y)};h.addEventListener("DOMContentLoaded",y),o._reactRetry=y}}function ua(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return o}var E1=null;function FE(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var h=o.data;if(h==="$"||h==="$!"||h==="$?"){if(l===0)return o;l--}else h==="/$"&&l++}o=o.previousSibling}return null}function $E(o,l,h){switch(l=_p(h),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Ad(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);Wu(o)}var Hi=new Map,VE=new Set;function xp(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Ro=U.d;U.d={f:QU,r:JU,D:eB,C:tB,L:nB,m:rB,X:aB,S:iB,M:oB};function QU(){var o=Ro.f(),l=dp();return o||l}function JU(o){var l=io(o);l!==null&&l.tag===5&&l.type==="form"?u4(l):Ro.r(o)}var Mc=typeof document>"u"?null:document;function qE(o,l,h){var y=Mc;if(y&&typeof l=="string"&&l){var E=fr(l);E='link[rel="'+o+'"][href="'+E+'"]',typeof h=="string"&&(E+='[crossorigin="'+h+'"]'),VE.has(E)||(VE.add(E),o={rel:o,crossOrigin:h,href:l},y.querySelector(E)===null&&(l=y.createElement("link"),pr(l,"link",o),Un(l),y.head.appendChild(l)))}}function eB(o){Ro.D(o),qE("dns-prefetch",o,null)}function tB(o,l){Ro.C(o,l),qE("preconnect",o,l)}function nB(o,l,h){Ro.L(o,l,h);var y=Mc;if(y&&o&&l){var E='link[rel="preload"][as="'+fr(l)+'"]';l==="image"&&h&&h.imageSrcSet?(E+='[imagesrcset="'+fr(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(E+='[imagesizes="'+fr(h.imageSizes)+'"]')):E+='[href="'+fr(o)+'"]';var P=E;switch(l){case"style":P=Rc(o);break;case"script":P=Nc(o)}Hi.has(P)||(o=m({rel:"preload",href:l==="image"&&h&&h.imageSrcSet?void 0:o,as:l},h),Hi.set(P,o),y.querySelector(E)!==null||l==="style"&&y.querySelector(Td(P))||l==="script"&&y.querySelector(Od(P))||(l=y.createElement("link"),pr(l,"link",o),Un(l),y.head.appendChild(l)))}}function rB(o,l){Ro.m(o,l);var h=Mc;if(h&&o){var y=l&&typeof l.as=="string"?l.as:"script",E='link[rel="modulepreload"][as="'+fr(y)+'"][href="'+fr(o)+'"]',P=E;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=Nc(o)}if(!Hi.has(P)&&(o=m({rel:"modulepreload",href:o},l),Hi.set(P,o),h.querySelector(E)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Od(P)))return}y=h.createElement("link"),pr(y,"link",o),Un(y),h.head.appendChild(y)}}}function iB(o,l,h){Ro.S(o,l,h);var y=Mc;if(y&&o){var E=ao(y).hoistableStyles,P=Rc(o);l=l||"default";var K=E.get(P);if(!K){var ie={loading:0,preload:null};if(K=y.querySelector(Td(P)))ie.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":l},h),(h=Hi.get(P))&&A1(o,h);var pe=K=y.createElement("link");Un(pe),pr(pe,"link",o),pe._p=new Promise(function(Ee,ke){pe.onload=Ee,pe.onerror=ke}),pe.addEventListener("load",function(){ie.loading|=1}),pe.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,wp(K,l,y)}K={type:"stylesheet",instance:K,count:1,state:ie},E.set(P,K)}}}function aB(o,l){Ro.X(o,l);var h=Mc;if(h&&o){var y=ao(h).hoistableScripts,E=Nc(o),P=y.get(E);P||(P=h.querySelector(Od(E)),P||(o=m({src:o,async:!0},l),(l=Hi.get(E))&&T1(o,l),P=h.createElement("script"),Un(P),pr(P,"link",o),h.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},y.set(E,P))}}function oB(o,l){Ro.M(o,l);var h=Mc;if(h&&o){var y=ao(h).hoistableScripts,E=Nc(o),P=y.get(E);P||(P=h.querySelector(Od(E)),P||(o=m({src:o,async:!0,type:"module"},l),(l=Hi.get(E))&&T1(o,l),P=h.createElement("script"),Un(P),pr(P,"link",o),h.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},y.set(E,P))}}function HE(o,l,h,y){var E=(E=ce.current)?xp(E):null;if(!E)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(l=Rc(h.href),h=ao(E).hoistableStyles,y=h.get(l),y||(y={type:"style",instance:null,count:0,state:null},h.set(l,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){o=Rc(h.href);var P=ao(E).hoistableStyles,K=P.get(o);if(K||(E=E.ownerDocument||E,K={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(o,K),(P=E.querySelector(Td(o)))&&!P._p&&(K.instance=P,K.state.loading=5),Hi.has(o)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Hi.set(o,h),P||sB(E,o,h,K.state))),l&&y===null)throw Error(r(528,""));return K}if(l&&y!==null)throw Error(r(529,""));return null;case"script":return l=h.async,h=h.src,typeof h=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Nc(h),h=ao(E).hoistableScripts,y=h.get(l),y||(y={type:"script",instance:null,count:0,state:null},h.set(l,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Rc(o){return'href="'+fr(o)+'"'}function Td(o){return'link[rel="stylesheet"]['+o+"]"}function GE(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function sB(o,l,h,y){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?y.loading=1:(l=o.createElement("link"),y.preload=l,l.addEventListener("load",function(){return y.loading|=1}),l.addEventListener("error",function(){return y.loading|=2}),pr(l,"link",h),Un(l),o.head.appendChild(l))}function Nc(o){return'[src="'+fr(o)+'"]'}function Od(o){return"script[async]"+o}function WE(o,l,h){if(l.count++,l.instance===null)switch(l.type){case"style":var y=o.querySelector('style[data-href~="'+fr(h.href)+'"]');if(y)return l.instance=y,Un(y),y;var E=m({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return y=(o.ownerDocument||o).createElement("style"),Un(y),pr(y,"style",E),wp(y,h.precedence,o),l.instance=y;case"stylesheet":E=Rc(h.href);var P=o.querySelector(Td(E));if(P)return l.state.loading|=4,l.instance=P,Un(P),P;y=GE(h),(E=Hi.get(E))&&A1(y,E),P=(o.ownerDocument||o).createElement("link"),Un(P);var K=P;return K._p=new Promise(function(ie,pe){K.onload=ie,K.onerror=pe}),pr(P,"link",y),l.state.loading|=4,wp(P,h.precedence,o),l.instance=P;case"script":return P=Nc(h.src),(E=o.querySelector(Od(P)))?(l.instance=E,Un(E),E):(y=h,(E=Hi.get(P))&&(y=m({},h),T1(y,E)),o=o.ownerDocument||o,E=o.createElement("script"),Un(E),pr(E,"link",y),o.head.appendChild(E),l.instance=E);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(y=l.instance,l.state.loading|=4,wp(y,h.precedence,o));return l.instance}function wp(o,l,h){for(var y=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=y.length?y[y.length-1]:null,P=E,K=0;K<y.length;K++){var ie=y[K];if(ie.dataset.precedence===l)P=ie;else if(P!==E)break}P?P.parentNode.insertBefore(o,P.nextSibling):(l=h.nodeType===9?h.head:h,l.insertBefore(o,l.firstChild))}function A1(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function T1(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var Sp=null;function YE(o,l,h){if(Sp===null){var y=new Map,E=Sp=new Map;E.set(h,y)}else E=Sp,y=E.get(h),y||(y=new Map,E.set(h,y));if(y.has(o))return y;for(y.set(o,null),h=h.getElementsByTagName(o),E=0;E<h.length;E++){var P=h[E];if(!(P[us]||P[Tt]||o==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var K=P.getAttribute(l)||"";K=o+K;var ie=y.get(K);ie?ie.push(P):y.set(K,[P])}}return y}function KE(o,l,h){o=o.ownerDocument||o,o.head.insertBefore(h,l==="title"?o.querySelector("head > title"):null)}function lB(o,l,h){if(h===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return o=l.disabled,typeof l.precedence=="string"&&o==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function ZE(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var jd=null;function uB(){}function cB(o,l,h){if(jd===null)throw Error(r(475));var y=jd;if(l.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var E=Rc(h.href),P=o.querySelector(Td(E));if(P){o=P._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(y.count++,y=Cp.bind(y),o.then(y,y)),l.state.loading|=4,l.instance=P,Un(P);return}P=o.ownerDocument||o,h=GE(h),(E=Hi.get(E))&&A1(h,E),P=P.createElement("link"),Un(P);var K=P;K._p=new Promise(function(ie,pe){K.onload=ie,K.onerror=pe}),pr(P,"link",h),l.instance=P}y.stylesheets===null&&(y.stylesheets=new Map),y.stylesheets.set(l,o),(o=l.state.preload)&&(l.state.loading&3)===0&&(y.count++,l=Cp.bind(y),o.addEventListener("load",l),o.addEventListener("error",l))}}function fB(){if(jd===null)throw Error(r(475));var o=jd;return o.stylesheets&&o.count===0&&O1(o,o.stylesheets),0<o.count?function(l){var h=setTimeout(function(){if(o.stylesheets&&O1(o,o.stylesheets),o.unsuspend){var y=o.unsuspend;o.unsuspend=null,y()}},6e4);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(h)}}:null}function Cp(){if(this.count--,this.count===0){if(this.stylesheets)O1(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Ep=null;function O1(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Ep=new Map,l.forEach(dB,o),Ep=null,Cp.call(o))}function dB(o,l){if(!(l.state.loading&4)){var h=Ep.get(o);if(h)var y=h.get(null);else{h=new Map,Ep.set(o,h);for(var E=o.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<E.length;P++){var K=E[P];(K.nodeName==="LINK"||K.getAttribute("media")!=="not all")&&(h.set(K.dataset.precedence,K),y=K)}y&&h.set(null,y)}E=l.instance,K=E.getAttribute("data-precedence"),P=h.get(K)||y,P===y&&h.set(null,E),h.set(K,E),this.count++,y=Cp.bind(this),E.addEventListener("load",y),E.addEventListener("error",y),P?P.parentNode.insertBefore(E,P.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(E,o.firstChild)),l.state.loading|=4}}var Pd={$$typeof:O,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function hB(o,l,h,y,E,P,K,ie){this.tag=1,this.containerInfo=o,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=ss(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ss(0),this.hiddenUpdates=ss(null),this.identifierPrefix=y,this.onUncaughtError=E,this.onCaughtError=P,this.onRecoverableError=K,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ie,this.incompleteTransitions=new Map}function XE(o,l,h,y,E,P,K,ie,pe,Ee,ke,Ue){return o=new hB(o,l,h,K,ie,pe,Ee,Ue),l=1,P===!0&&(l|=24),P=Ur(3,null,null,l),o.current=P,P.stateNode=o,l=u0(),l.refCount++,o.pooledCache=l,l.refCount++,P.memoizedState={element:y,isDehydrated:h,cache:l},h0(P),o}function QE(o){return o?(o=So,o):So}function JE(o,l,h,y,E,P){E=QE(E),y.context===null?y.context=E:y.pendingContext=E,y=Ns(l),y.payload={element:h},P=P===void 0?null:P,P!==null&&(y.callback=P),h=Ls(o,y,l),h!==null&&(gi(h,o,l),od(h,o,l))}function eA(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h<l?h:l}}function j1(o,l){eA(o,l),(o=o.alternate)&&eA(o,l)}function tA(o){if(o.tag===13){var l=Os(o,67108864);l!==null&&gi(l,o,67108864),j1(o,67108864)}}var Ap=!0;function mB(o,l,h,y){var E=Y.T;Y.T=null;var P=U.p;try{U.p=2,P1(o,l,h,y)}finally{U.p=P,Y.T=E}}function pB(o,l,h,y){var E=Y.T;Y.T=null;var P=U.p;try{U.p=8,P1(o,l,h,y)}finally{U.p=P,Y.T=E}}function P1(o,l,h,y){if(Ap){var E=M1(y);if(E===null)v1(o,l,y,Tp,h),rA(o,y);else if(vB(E,o,l,h,y))y.stopPropagation();else if(rA(o,y),l&4&&-1<gB.indexOf(o)){for(;E!==null;){var P=io(E);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var K=kt(P.pendingLanes);if(K!==0){var ie=P;for(ie.pendingLanes|=2,ie.entangledLanes|=2;K;){var pe=1<<31-Ve(K);ie.entanglements[1]|=pe,K&=~pe}$a(P),($t&6)===0&&(cp=_e()+500,Sd(0))}}break;case 13:ie=Os(P,2),ie!==null&&gi(ie,P,2),dp(),j1(P,2)}if(P=M1(y),P===null&&v1(o,l,y,Tp,h),P===E)break;E=P}E!==null&&y.stopPropagation()}else v1(o,l,y,null,h)}}function M1(o){return o=gs(o),R1(o)}var Tp=null;function R1(o){if(Tp=null,o=Ma(o),o!==null){var l=a(o);if(l===null)o=null;else{var h=l.tag;if(h===13){if(o=s(l),o!==null)return o;o=null}else if(h===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return Tp=o,null}function nA(o){switch(o){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 He:return 8;case Be:case qe:return 32;case be:return 268435456;default:return 32}default:return 32}}var N1=!1,Ws=null,Ys=null,Ks=null,Md=new Map,Rd=new Map,Zs=[],gB="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 rA(o,l){switch(o){case"focusin":case"focusout":Ws=null;break;case"dragenter":case"dragleave":Ys=null;break;case"mouseover":case"mouseout":Ks=null;break;case"pointerover":case"pointerout":Md.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rd.delete(l.pointerId)}}function Nd(o,l,h,y,E,P){return o===null||o.nativeEvent!==P?(o={blockedOn:l,domEventName:h,eventSystemFlags:y,nativeEvent:P,targetContainers:[E]},l!==null&&(l=io(l),l!==null&&tA(l)),o):(o.eventSystemFlags|=y,l=o.targetContainers,E!==null&&l.indexOf(E)===-1&&l.push(E),o)}function vB(o,l,h,y,E){switch(l){case"focusin":return Ws=Nd(Ws,o,l,h,y,E),!0;case"dragenter":return Ys=Nd(Ys,o,l,h,y,E),!0;case"mouseover":return Ks=Nd(Ks,o,l,h,y,E),!0;case"pointerover":var P=E.pointerId;return Md.set(P,Nd(Md.get(P)||null,o,l,h,y,E)),!0;case"gotpointercapture":return P=E.pointerId,Rd.set(P,Nd(Rd.get(P)||null,o,l,h,y,E)),!0}return!1}function iA(o){var l=Ma(o.target);if(l!==null){var h=a(l);if(h!==null){if(l=h.tag,l===13){if(l=s(h),l!==null){o.blockedOn=l,qn(o.priority,function(){if(h.tag===13){var y=pi();y=mn(y);var E=Os(h,y);E!==null&&gi(E,h,y),j1(h,y)}});return}}else if(l===3&&h.stateNode.current.memoizedState.isDehydrated){o.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Op(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var h=M1(o.nativeEvent);if(h===null){h=o.nativeEvent;var y=new h.constructor(h.type,h);Bl=y,h.target.dispatchEvent(y),Bl=null}else return l=io(h),l!==null&&tA(l),o.blockedOn=h,!1;l.shift()}return!0}function aA(o,l,h){Op(o)&&h.delete(l)}function yB(){N1=!1,Ws!==null&&Op(Ws)&&(Ws=null),Ys!==null&&Op(Ys)&&(Ys=null),Ks!==null&&Op(Ks)&&(Ks=null),Md.forEach(aA),Rd.forEach(aA)}function jp(o,l){o.blockedOn===l&&(o.blockedOn=null,N1||(N1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,yB)))}var Pp=null;function oA(o){Pp!==o&&(Pp=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pp===o&&(Pp=null);for(var l=0;l<o.length;l+=3){var h=o[l],y=o[l+1],E=o[l+2];if(typeof y!="function"){if(R1(y||h)===null)continue;break}var P=io(h);P!==null&&(o.splice(l,3),l-=3,R0(P,{pending:!0,data:E,method:h.method,action:y},y,E))}}))}function Ld(o){function l(pe){return jp(pe,o)}Ws!==null&&jp(Ws,o),Ys!==null&&jp(Ys,o),Ks!==null&&jp(Ks,o),Md.forEach(l),Rd.forEach(l);for(var h=0;h<Zs.length;h++){var y=Zs[h];y.blockedOn===o&&(y.blockedOn=null)}for(;0<Zs.length&&(h=Zs[0],h.blockedOn===null);)iA(h),h.blockedOn===null&&Zs.shift();if(h=(o.ownerDocument||o).$$reactFormReplay,h!=null)for(y=0;y<h.length;y+=3){var E=h[y],P=h[y+1],K=E[Jt]||null;if(typeof P=="function")K||oA(h);else if(K){var ie=null;if(P&&P.hasAttribute("formAction")){if(E=P,K=P[Jt]||null)ie=K.formAction;else if(R1(E)!==null)continue}else ie=K.action;typeof ie=="function"?h[y+1]=ie:(h.splice(y,3),y-=3),oA(h)}}}function L1(o){this._internalRoot=o}Mp.prototype.render=L1.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var h=l.current,y=pi();JE(h,y,o,l,null,null)},Mp.prototype.unmount=L1.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;JE(o.current,2,null,o,null,null),dp(),l[er]=null}};function Mp(o){this._internalRoot=o}Mp.prototype.unstable_scheduleHydration=function(o){if(o){var l=Jn();o={blockedOn:null,target:o,priority:l};for(var h=0;h<Zs.length&&l!==0&&l<Zs[h].priority;h++);Zs.splice(h,0,o),h===0&&iA(o)}};var sA=t.version;if(sA!=="19.1.1")throw Error(r(527,sA,"19.1.1"));U.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(l),o=o!==null?f(o):null,o=o===null?null:o.stateNode,o};var bB={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rp.isDisabled&&Rp.supportsFiber)try{Re=Rp.inject(bB),Ae=Rp}catch{}}return kd.createRoot=function(o,l){if(!i(o))throw Error(r(299));var h=!1,y="",E=S4,P=C4,K=E4,ie=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onUncaughtError!==void 0&&(E=l.onUncaughtError),l.onCaughtError!==void 0&&(P=l.onCaughtError),l.onRecoverableError!==void 0&&(K=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(ie=l.unstable_transitionCallbacks)),l=XE(o,1,!1,null,null,h,y,E,P,K,ie,null),o[er]=l.current,g1(o),new L1(l)},kd.hydrateRoot=function(o,l,h){if(!i(o))throw Error(r(299));var y=!1,E="",P=S4,K=C4,ie=E4,pe=null,Ee=null;return h!=null&&(h.unstable_strictMode===!0&&(y=!0),h.identifierPrefix!==void 0&&(E=h.identifierPrefix),h.onUncaughtError!==void 0&&(P=h.onUncaughtError),h.onCaughtError!==void 0&&(K=h.onCaughtError),h.onRecoverableError!==void 0&&(ie=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(pe=h.unstable_transitionCallbacks),h.formState!==void 0&&(Ee=h.formState)),l=XE(o,1,!0,l,h??null,y,E,P,K,ie,pe,Ee),l.context=QE(null),h=l.current,y=pi(),y=mn(y),E=Ns(y),E.callback=null,Ls(h,E,y),h=y,l.current.lanes=h,ja(l,h),$a(l),o[er]=l.current,g1(o),new Mp(l)},kd.version="19.1.1",kd}var vA;function jB(){if(vA)return k1.exports;vA=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(),k1.exports=OB(),k1.exports}var PB=jB(),T=mf();const Xc=ri(T),F2=xB({__proto__:null,default:Xc},[T]);var F1={exports:{}},$1={};/**
|
||
* @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 yA;function MB(){if(yA)return $1;yA=1;var e=mf();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,u=e.useDebugValue;return $1.useSyncExternalStoreWithSelector=function(d,f,m,p,b){var _=i(null);if(_.current===null){var w={hasValue:!1,value:null};_.current=w}else w=_.current;_=s(function(){function A(B){if(!C){if(C=!0,j=B,B=p(B),b!==void 0&&w.hasValue){var V=w.value;if(b(V,B))return O=V}return O=B}if(V=O,n(j,B))return V;var Z=p(B);return b!==void 0&&b(V,Z)?(j=B,V):(j=B,O=Z)}var C=!1,j,O,N=m===void 0?null:m;return[function(){return A(f())},N===null?void 0:function(){return A(N())}]},[f,m,p,b]);var x=r(d,_[0],_[1]);return a(function(){w.hasValue=!0,w.value=x},[x]),u(x),x},$1}var bA;function RB(){return bA||(bA=1,F1.exports=MB()),F1.exports}RB();var NB=T.version.startsWith("19"),LB=Symbol.for(NB?"react.transitional.element":"react.element"),DB=Symbol.for("react.portal"),kB=Symbol.for("react.fragment"),IB=Symbol.for("react.strict_mode"),UB=Symbol.for("react.profiler"),BB=Symbol.for("react.consumer"),zB=Symbol.for("react.context"),h5=Symbol.for("react.forward_ref"),FB=Symbol.for("react.suspense"),$B=Symbol.for("react.suspense_list"),$2=Symbol.for("react.memo"),VB=Symbol.for("react.lazy"),qB=h5,HB=$2;function GB(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case LB:switch(e=e.type,e){case kB:case UB:case IB:case FB:case $B:return e;default:switch(e=e&&e.$$typeof,e){case zB:case h5:case VB:case $2:return e;case BB:return e;default:return t}}case DB:return t}}}function WB(e){return GB(e)===$2}function YB(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:s}){let u=!1,d,f,m,p,b;function _(j,O){return d=j,f=O,m=e(d,f),p=t(r,f),b=n(m,p,f),u=!0,b}function w(){return m=e(d,f),t.dependsOnOwnProps&&(p=t(r,f)),b=n(m,p,f),b}function x(){return e.dependsOnOwnProps&&(m=e(d,f)),t.dependsOnOwnProps&&(p=t(r,f)),b=n(m,p,f),b}function A(){const j=e(d,f),O=!s(j,m);return m=j,O&&(b=n(m,p,f)),b}function C(j,O){const N=!a(O,f),B=!i(j,d,O,f);return d=j,f=O,N&&B?w():N?x():B?A():b}return function(O,N){return u?C(O,N):_(O,N)}}function KB(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const a=t(e,i),s=n(e,i),u=r(e,i);return YB(a,s,u,e,i)}function ZB(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 lx(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function _A(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function m5(e,t){return function(r,{displayName:i}){const a=function(u,d){return a.dependsOnOwnProps?a.mapToProps(u,d):a.mapToProps(u,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(u,d){a.mapToProps=e,a.dependsOnOwnProps=_A(e);let f=a(u,d);return typeof f=="function"&&(a.mapToProps=f,a.dependsOnOwnProps=_A(f),f=a(u,d)),f},a}}function V2(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function XB(e){return e&&typeof e=="object"?lx(t=>ZB(e,t)):e?typeof e=="function"?m5(e):V2(e,"mapDispatchToProps"):lx(t=>({dispatch:t}))}function QB(e){return e?typeof e=="function"?m5(e):V2(e,"mapStateToProps"):lx(()=>({}))}function JB(e,t,n){return{...n,...e,...t}}function ez(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let a=!1,s;return function(d,f,m){const p=e(d,f,m);return a?i(p,s)||(s=p):(a=!0,s=p),s}}}function tz(e){return e?typeof e=="function"?ez(e):V2(e,"mergeProps"):()=>JB}function nz(e){e()}function rz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){nz(()=>{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 xA={notify(){},get:()=>[]};function p5(e,t){let n,r=xA,i=0,a=!1;function s(x){m();const A=r.subscribe(x);let C=!1;return()=>{C||(C=!0,A(),p())}}function u(){r.notify()}function d(){w.onStateChange&&w.onStateChange()}function f(){return a}function m(){i++,n||(n=t?t.addNestedSub(d):e.subscribe(d),r=rz())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=xA)}function b(){a||(a=!0,m())}function _(){a&&(a=!1,p())}const w={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:f,trySubscribe:b,tryUnsubscribe:_,getListeners:()=>r};return w}var iz=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",az=iz(),oz=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sz=oz(),lz=()=>az||sz?T.useLayoutEffect:T.useEffect,wg=lz();function wA(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function V1(e,t){if(wA(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])||!wA(e[n[i]],t[n[i]]))return!1;return!0}var uz={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cz={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},g5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dz={[qB]:fz,[HB]:g5};function SA(e){return WB(e)?g5:dz[e.$$typeof]||uz}var hz=Object.defineProperty,mz=Object.getOwnPropertyNames,CA=Object.getOwnPropertySymbols,pz=Object.getOwnPropertyDescriptor,gz=Object.getPrototypeOf,EA=Object.prototype;function ux(e,t){if(typeof t!="string"){if(EA){const a=gz(t);a&&a!==EA&&ux(e,a)}let n=mz(t);CA&&(n=n.concat(CA(t)));const r=SA(e),i=SA(t);for(let a=0;a<n.length;++a){const s=n[a];if(!cz[s]&&!(i&&i[s])&&!(r&&r[s])){const u=pz(t,s);try{hz(e,s,u)}catch{}}}}return e}var vz=Symbol.for("react-redux-context"),yz=typeof globalThis<"u"?globalThis:{};function bz(){if(!T.createContext)return{};const e=yz[vz]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),e.set(T.createContext,t)),t}var v5=bz(),_z=[null,null];function xz(e,t,n){wg(()=>e(...t),n)}function wz(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function Sz(e,t,n,r,i,a,s,u,d,f,m){if(!e)return()=>{};let p=!1,b=null;const _=()=>{if(p||!u.current)return;const x=t.getState();let A,C;try{A=r(x,i.current)}catch(j){C=j,b=j}C||(b=null),A===a.current?s.current||f():(a.current=A,d.current=A,s.current=!0,m())};return n.onStateChange=_,n.trySubscribe(),_(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,b)throw b}}function Cz(e,t){return e===t}function Ez(e,t,n,{pure:r,areStatesEqual:i=Cz,areOwnPropsEqual:a=V1,areStatePropsEqual:s=V1,areMergedPropsEqual:u=V1,forwardRef:d=!1,context:f=v5}={}){const m=f,p=QB(e),b=XB(t),_=tz(n),w=!!e;return A=>{const C=A.displayName||A.name||"Component",j=`Connect(${C})`,O={shouldHandleStateChanges:w,displayName:j,wrappedComponentName:C,WrappedComponent:A,initMapStateToProps:p,initMapDispatchToProps:b,initMergeProps:_,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:u};function N(Z){const[X,oe,ee]=T.useMemo(()=>{const{reactReduxForwardedRef:q,...ae}=Z;return[Z.context,q,ae]},[Z]),J=T.useMemo(()=>{let q=m;return X?.Consumer,q},[X,m]),ne=T.useContext(J),he=!!Z.store&&!!Z.store.getState&&!!Z.store.dispatch,Q=!!ne&&!!ne.store,se=he?Z.store:ne.store,Y=Q?ne.getServerState:se.getState,U=T.useMemo(()=>KB(se.dispatch,O),[se]),[I,z]=T.useMemo(()=>{if(!w)return _z;const q=p5(se,he?void 0:ne.subscription),ae=q.notifyNestedSubs.bind(q);return[q,ae]},[se,he,ne]),M=T.useMemo(()=>he?ne:{...ne,subscription:I},[he,ne,I]),D=T.useRef(void 0),W=T.useRef(ee),H=T.useRef(void 0),re=T.useRef(!1),ue=T.useRef(!1),ce=T.useRef(void 0);wg(()=>(ue.current=!0,()=>{ue.current=!1}),[]);const ve=T.useMemo(()=>()=>H.current&&ee===W.current?H.current:U(se.getState(),ee),[se,ee]),k=T.useMemo(()=>ae=>I?Sz(w,se,I,U,W,D,re,ue,H,z,ae):()=>{},[I]);xz(wz,[W,D,re,ee,H,z]);let F;try{F=T.useSyncExternalStore(k,ve,Y?()=>U(Y(),ee):ve)}catch(q){throw ce.current&&(q.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ce.current.stack}
|
||
|
||
`),q}wg(()=>{ce.current=void 0,H.current=void 0,D.current=F});const G=T.useMemo(()=>T.createElement(A,{...F,ref:oe}),[oe,A,F]);return T.useMemo(()=>w?T.createElement(J.Provider,{value:M},G):G,[J,G,M])}const V=T.memo(N);if(V.WrappedComponent=A,V.displayName=N.displayName=j,d){const X=T.forwardRef(function(ee,J){return T.createElement(V,{...ee,reactReduxForwardedRef:J})});return X.displayName=j,X.WrappedComponent=A,ux(X,A)}return ux(V,A)}}var y5=Ez;function Az(e){const{children:t,context:n,serverState:r,store:i}=e,a=T.useMemo(()=>{const d=p5(i);return{store:i,subscription:d,getServerState:r?()=>r:void 0}},[i,r]),s=T.useMemo(()=>i.getState(),[i]);wg(()=>{const{subscription:d}=a;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),s!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[a,s]);const u=n||v5;return T.createElement(u.Provider,{value:a},t)}var q2=Az;/**
|
||
* react-router v7.8.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 AA="popstate";function Tz(e={}){function t(r,i){let{pathname:a,search:s,hash:u}=r.location;return cx("",{pathname:a,search:s,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:hh(i)}return jz(t,n,null,e)}function yn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function va(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Oz(){return Math.random().toString(36).substring(2,10)}function TA(e,t){return{usr:e.state,key:e.key,idx:t}}function cx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pf(t):t,state:n,key:t&&t.key||r||Oz()}}function hh({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 pf(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 jz(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,u="POP",d=null,f=m();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function m(){return(s.state||{idx:null}).idx}function p(){u="POP";let A=m(),C=A==null?null:A-f;f=A,d&&d({action:u,location:x.location,delta:C})}function b(A,C){u="PUSH";let j=cx(x.location,A,C);f=m()+1;let O=TA(j,f),N=x.createHref(j);try{s.pushState(O,"",N)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;i.location.assign(N)}a&&d&&d({action:u,location:x.location,delta:1})}function _(A,C){u="REPLACE";let j=cx(x.location,A,C);f=m();let O=TA(j,f),N=x.createHref(j);s.replaceState(O,"",N),a&&d&&d({action:u,location:x.location,delta:0})}function w(A){return Pz(A)}let x={get action(){return u},get location(){return e(i,s)},listen(A){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(AA,p),d=A,()=>{i.removeEventListener(AA,p),d=null}},createHref(A){return t(i,A)},createURL:w,encodeLocation(A){let C=w(A);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:b,replace:_,go(A){return s.go(A)}};return x}function Pz(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),yn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:hh(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function b5(e,t,n="/"){return Mz(e,t,n,!1)}function Mz(e,t,n,r){let i=typeof t=="string"?pf(t):t,a=zo(i.pathname||"/",n);if(a==null)return null;let s=_5(e);Rz(s);let u=null;for(let d=0;u==null&&d<s.length;++d){let f=Vz(a);u=Fz(s[d],f,r)}return u}function _5(e,t=[],n=[],r=""){let i=(a,s,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};d.relativePath.startsWith("/")&&(yn(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=Io([r,d.relativePath]),m=n.concat(d);a.children&&a.children.length>0&&(yn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),_5(a.children,t,m,f)),!(a.path==null&&!a.index)&&t.push({path:f,score:Bz(f,a.index),routesMeta:m})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))i(a,s);else for(let u of x5(a.path))i(a,s,u)}),t}function x5(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 s=x5(r.join("/")),u=[];return u.push(...s.map(d=>d===""?a:[a,d].join("/"))),i&&u.push(...s),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function Rz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Nz=/^:[\w-]+$/,Lz=3,Dz=2,kz=1,Iz=10,Uz=-2,OA=e=>e==="*";function Bz(e,t){let n=e.split("/"),r=n.length;return n.some(OA)&&(r+=Uz),t&&(r+=Dz),n.filter(i=>!OA(i)).reduce((i,a)=>i+(Nz.test(a)?Lz:a===""?kz:Iz),r)}function zz(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="/",s=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=a==="/"?t:t.slice(a.length)||"/",p=Sg({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),b=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=Sg({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Io([a,p.pathname]),pathnameBase:Wz(Io([a,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(a=Io([a,p.pathnameBase]))}return s}function Sg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$z(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},b)=>{if(m==="*"){let w=u[b]||"";s=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const _=u[b];return p&&!_?f[m]=void 0:f[m]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function $z(e,t=!1,n=!0){va(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,(s,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Vz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return va(!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 zo(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 qz(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pf(e):e;return{pathname:n?n.startsWith("/")?n:Hz(n,t):t,search:Yz(r),hash:Kz(i)}}function Hz(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 q1(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 Gz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function H2(e){let t=Gz(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function G2(e,t,n,r=!1){let i;typeof e=="string"?i=pf(e):(i={...e},yn(!i.pathname||!i.pathname.includes("?"),q1("?","pathname","search",i)),yn(!i.pathname||!i.pathname.includes("#"),q1("#","pathname","hash",i)),yn(!i.search||!i.search.includes("#"),q1("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,u;if(s==null)u=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),p-=1;i.pathname=b.join("/")}u=p>=0?t[p]:"/"}let d=qz(i,u),f=s&&s!=="/"&&s.endsWith("/"),m=(a||s===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Io=e=>e.join("/").replace(/\/\/+/g,"/"),Wz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Yz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Zz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var w5=["POST","PUT","PATCH","DELETE"];new Set(w5);var Xz=["GET",...w5];new Set(Xz);var gf=T.createContext(null);gf.displayName="DataRouter";var Nv=T.createContext(null);Nv.displayName="DataRouterState";T.createContext(!1);var S5=T.createContext({isTransitioning:!1});S5.displayName="ViewTransition";var Qz=T.createContext(new Map);Qz.displayName="Fetchers";var Jz=T.createContext(null);Jz.displayName="Await";var xa=T.createContext(null);xa.displayName="Navigation";var Nh=T.createContext(null);Nh.displayName="Location";var wa=T.createContext({outlet:null,matches:[],isDataRoute:!1});wa.displayName="Route";var W2=T.createContext(null);W2.displayName="RouteError";function eF(e,{relative:t}={}){yn(Bu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=T.useContext(xa),{hash:i,pathname:a,search:s}=Lh(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:Io([n,a])),r.createHref({pathname:u,search:s,hash:i})}function Bu(){return T.useContext(Nh)!=null}function xr(){return yn(Bu(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Nh).location}var C5="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function E5(e){T.useContext(xa).static||T.useLayoutEffect(e)}function eo(){let{isDataRoute:e}=T.useContext(wa);return e?hF():tF()}function tF(){yn(Bu(),"useNavigate() may be used only in the context of a <Router> component.");let e=T.useContext(gf),{basename:t,navigator:n}=T.useContext(xa),{matches:r}=T.useContext(wa),{pathname:i}=xr(),a=JSON.stringify(H2(r)),s=T.useRef(!1);return E5(()=>{s.current=!0}),T.useCallback((d,f={})=>{if(va(s.current,C5),!s.current)return;if(typeof d=="number"){n.go(d);return}let m=G2(d,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Io([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,a,i,e])}T.createContext(null);function vf(){let{matches:e}=T.useContext(wa),t=e[e.length-1];return t?t.params:{}}function Lh(e,{relative:t}={}){let{matches:n}=T.useContext(wa),{pathname:r}=xr(),i=JSON.stringify(H2(n));return T.useMemo(()=>G2(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function nF(e,t){return A5(e,t)}function A5(e,t,n,r){yn(Bu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=T.useContext(xa),{matches:a}=T.useContext(wa),s=a[a.length-1],u=s?s.params:{},d=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;{let C=m&&m.path||"";T5(d,!m||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let p=xr(),b;if(t){let C=typeof t=="string"?pf(t):t;yn(f==="/"||C.pathname?.startsWith(f),`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 "${f}" but pathname "${C.pathname}" was given in the \`location\` prop.`),b=C}else b=p;let _=b.pathname||"/",w=_;if(f!=="/"){let C=f.replace(/^\//,"").split("/");w="/"+_.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=b5(e,{pathname:w});va(m||x!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),va(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 A=sF(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:Io([f,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?f:Io([f,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,n,r);return t&&A?T.createElement(Nh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},A):A}function rF(){let e=dF(),t=Zz(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},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:a},"ErrorBoundary")," or"," ",T.createElement("code",{style:a},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,s)}var iF=T.createElement(rF,null),aF=class extends T.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?T.createElement(wa.Provider,{value:this.props.routeContext},T.createElement(W2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function oF({routeContext:e,match:t,children:n}){let r=T.useContext(gf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),T.createElement(wa.Provider,{value:e},n)}function sF(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?.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&a?.[f.route.id]!==void 0);yn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,u=-1;if(n)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:p}=n,b=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||b){s=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let p,b=!1,_=null,w=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,_=f.route.errorElement||iF,s&&(u<0&&m===0?(T5("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,w=null):u===m&&(b=!0,w=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,m+1)),A=()=>{let C;return p?C=_:b?C=w:f.route.Component?C=T.createElement(f.route.Component,null):f.route.element?C=f.route.element:C=d,T.createElement(oF,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:C})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?T.createElement(aF,{location:n.location,revalidation:n.revalidation,component:_,error:p,children:A(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):A()},null)}function Y2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lF(e){let t=T.useContext(gf);return yn(t,Y2(e)),t}function uF(e){let t=T.useContext(Nv);return yn(t,Y2(e)),t}function cF(e){let t=T.useContext(wa);return yn(t,Y2(e)),t}function K2(e){let t=cF(e),n=t.matches[t.matches.length-1];return yn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function fF(){return K2("useRouteId")}function dF(){let e=T.useContext(W2),t=uF("useRouteError"),n=K2("useRouteError");return e!==void 0?e:t.errors?.[n]}function hF(){let{router:e}=lF("useNavigate"),t=K2("useNavigate"),n=T.useRef(!1);return E5(()=>{n.current=!0}),T.useCallback(async(i,a={})=>{va(n.current,C5),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var jA={};function T5(e,t,n){!t&&!jA[e]&&(jA[e]=!0,va(!1,n))}T.memo(mF);function mF({routes:e,future:t,state:n}){return A5(e,void 0,n,t)}function Z2({to:e,replace:t,state:n,relative:r}){yn(Bu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=T.useContext(xa);va(!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}=T.useContext(wa),{pathname:s}=xr(),u=eo(),d=G2(e,H2(a),s,r==="path"),f=JSON.stringify(d);return T.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:r})},[u,f,r,t,n]),null}function gt(e){yn(!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 pF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){yn(!Bu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=T.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);typeof n=="string"&&(n=pf(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:b="default"}=n,_=T.useMemo(()=>{let w=zo(d,s);return w==null?null:{location:{pathname:w,search:f,hash:m,state:p,key:b},navigationType:r}},[s,d,f,m,p,b,r]);return va(_!=null,`<Router basename="${s}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:T.createElement(xa.Provider,{value:u},T.createElement(Nh.Provider,{children:t,value:_}))}function Lv({children:e,location:t}){return nF(fx(e),t)}function fx(e,t=[]){let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let a=[...t,i];if(r.type===T.Fragment){n.push.apply(n,fx(r.props.children,a));return}yn(r.type===gt,`[${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>`),yn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={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&&(s.children=fx(r.props.children,a)),n.push(s)}),n}var cg="get",fg="application/x-www-form-urlencoded";function Dv(e){return e!=null&&typeof e.tagName=="string"}function gF(e){return Dv(e)&&e.tagName.toLowerCase()==="button"}function vF(e){return Dv(e)&&e.tagName.toLowerCase()==="form"}function yF(e){return Dv(e)&&e.tagName.toLowerCase()==="input"}function bF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _F(e,t){return e.button===0&&(!t||t==="_self")&&!bF(e)}var Np=null;function xF(){if(Np===null)try{new FormData(document.createElement("form"),0),Np=!1}catch{Np=!0}return Np}var wF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function H1(e){return e!=null&&!wF.has(e)?(va(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fg}"`),null):e}function SF(e,t){let n,r,i,a,s;if(vF(e)){let u=e.getAttribute("action");r=u?zo(u,t):null,n=e.getAttribute("method")||cg,i=H1(e.getAttribute("enctype"))||fg,a=new FormData(e)}else if(gF(e)||yF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?zo(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||cg,i=H1(e.getAttribute("formenctype"))||H1(u.getAttribute("enctype"))||fg,a=new FormData(u,e),!xF()){let{name:f,type:m,value:p}=e;if(m==="image"){let b=f?`${f}.`:"";a.append(`${b}x`,"0"),a.append(`${b}y`,"0")}else f&&a.append(f,p)}}else{if(Dv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=cg,r=null,i=fg,s=e}return a&&i==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function X2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function CF(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&zo(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function EF(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 AF(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 TF(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let s=await EF(a,n);return s.links?s.links():[]}return[]}));return MF(r.flat(1).filter(AF).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function PA(e,t,n,r,i,a){let s=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return a==="assets"?t.filter((d,f)=>s(d,f)||u(d,f)):a==="data"?t.filter((d,f)=>{let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(s(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let p=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function OF(e,t,{includeHydrateFallback:n}={}){return jF(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 jF(e){return[...new Set(e)]}function PF(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function MF(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(PF(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function O5(){let e=T.useContext(gf);return X2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function RF(){let e=T.useContext(Nv);return X2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Q2=T.createContext(void 0);Q2.displayName="FrameworkContext";function j5(){let e=T.useContext(Q2);return X2(e,"You must render this element inside a <HydratedRouter> element"),e}function NF(e,t){let n=T.useContext(Q2),[r,i]=T.useState(!1),[a,s]=T.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,b=T.useRef(null);T.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=C=>{C.forEach(j=>{s(j.isIntersecting)})},A=new IntersectionObserver(x,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),T.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let _=()=>{i(!0)},w=()=>{i(!1),s(!1)};return n?e!=="intent"?[a,b,{}]:[a,b,{onFocus:Id(u,_),onBlur:Id(d,w),onMouseEnter:Id(f,_),onMouseLeave:Id(m,w),onTouchStart:Id(p,_)}]:[!1,b,{}]}function Id(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function LF({page:e,...t}){let{router:n}=O5(),r=T.useMemo(()=>b5(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?T.createElement(kF,{page:e,matches:r,...t}):null}function DF(e){let{manifest:t,routeModules:n}=j5(),[r,i]=T.useState([]);return T.useEffect(()=>{let a=!1;return TF(e,t,n).then(s=>{a||i(s)}),()=>{a=!0}},[e,t,n]),r}function kF({page:e,matches:t,...n}){let r=xr(),{manifest:i,routeModules:a}=j5(),{basename:s}=O5(),{loaderData:u,matches:d}=RF(),f=T.useMemo(()=>PA(e,t,d,i,r,"data"),[e,t,d,i,r]),m=T.useMemo(()=>PA(e,t,d,i,r,"assets"),[e,t,d,i,r]),p=T.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,x=!1;if(t.forEach(C=>{let j=i.routes[C.route.id];!j||!j.hasLoader||(!f.some(O=>O.route.id===C.route.id)&&C.route.id in u&&a[C.route.id]?.shouldRevalidate||j.hasClientLoader?x=!0:w.add(C.route.id))}),w.size===0)return[];let A=CF(e,s,"data");return x&&w.size>0&&A.searchParams.set("_routes",t.filter(C=>w.has(C.route.id)).map(C=>C.route.id).join(",")),[A.pathname+A.search]},[s,u,r,i,f,t,e,a]),b=T.useMemo(()=>OF(m,i),[m,i]),_=DF(m);return T.createElement(T.Fragment,null,p.map(w=>T.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),b.map(w=>T.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),_.map(({key:w,link:x})=>T.createElement("link",{key:w,nonce:n.nonce,...x})))}function IF(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var P5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{P5&&(window.__reactRouterVersion="7.8.0")}catch{}function M5({basename:e,children:t,window:n}){let r=T.useRef();r.current==null&&(r.current=Tz({window:n,v5Compat:!0}));let i=r.current,[a,s]=T.useState({action:i.action,location:i.location}),u=T.useCallback(d=>{T.startTransition(()=>s(d))},[s]);return T.useLayoutEffect(()=>i.listen(u),[i,u]),T.createElement(pF,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var R5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mr=T.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:s,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,...b},_){let{basename:w}=T.useContext(xa),x=typeof f=="string"&&R5.test(f),A,C=!1;if(typeof f=="string"&&x&&(A=f,P5))try{let oe=new URL(window.location.href),ee=f.startsWith("//")?new URL(oe.protocol+f):new URL(f),J=zo(ee.pathname,w);ee.origin===oe.origin&&J!=null?f=J+ee.search+ee.hash:C=!0}catch{va(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=eF(f,{relative:i}),[O,N,B]=NF(r,b),V=zF(f,{replace:s,state:u,target:d,preventScrollReset:m,relative:i,viewTransition:p});function Z(oe){t&&t(oe),oe.defaultPrevented||V(oe)}let X=T.createElement("a",{...b,...B,href:A||j,onClick:C||a?t:Z,ref:IF(_,N),target:d,"data-discover":!x&&n==="render"?"true":void 0});return O&&!x?T.createElement(T.Fragment,null,X,T.createElement(LF,{page:j})):X});Mr.displayName="Link";var J2=T.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:s,viewTransition:u,children:d,...f},m){let p=Lh(s,{relative:f.relative}),b=xr(),_=T.useContext(Nv),{navigator:w,basename:x}=T.useContext(xa),A=_!=null&&HF(p)&&u===!0,C=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,j=b.pathname,O=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(j=j.toLowerCase(),O=O?O.toLowerCase():null,C=C.toLowerCase()),O&&x&&(O=zo(O,x)||O);const N=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let B=j===C||!i&&j.startsWith(C)&&j.charAt(N)==="/",V=O!=null&&(O===C||!i&&O.startsWith(C)&&O.charAt(C.length)==="/"),Z={isActive:B,isPending:V,isTransitioning:A},X=B?t:void 0,oe;typeof r=="function"?oe=r(Z):oe=[r,B?"active":null,V?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let ee=typeof a=="function"?a(Z):a;return T.createElement(Mr,{...f,"aria-current":X,className:oe,ref:m,style:ee,to:s,viewTransition:u},typeof d=="function"?d(Z):d)});J2.displayName="NavLink";var UF=T.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:s=cg,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...b},_)=>{let w=VF(),x=qF(u,{relative:f}),A=s.toLowerCase()==="get"?"get":"post",C=typeof u=="string"&&R5.test(u),j=O=>{if(d&&d(O),O.defaultPrevented)return;O.preventDefault();let N=O.nativeEvent.submitter,B=N?.getAttribute("formmethod")||s;w(N||O.currentTarget,{fetcherKey:t,method:B,navigate:n,replace:i,state:a,relative:f,preventScrollReset:m,viewTransition:p})};return T.createElement("form",{ref:_,method:A,action:x,onSubmit:r?d:j,...b,"data-discover":!C&&e==="render"?"true":void 0})});UF.displayName="Form";function BF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function N5(e){let t=T.useContext(gf);return yn(t,BF(e)),t}function zF(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:s}={}){let u=eo(),d=xr(),f=Lh(e,{relative:a});return T.useCallback(m=>{if(_F(m,t)){m.preventDefault();let p=n!==void 0?n:hh(d)===hh(f);u(e,{replace:p,state:r,preventScrollReset:i,relative:a,viewTransition:s})}},[d,u,f,n,r,t,e,i,a,s])}var FF=0,$F=()=>`__${String(++FF)}__`;function VF(){let{router:e}=N5("useSubmit"),{basename:t}=T.useContext(xa),n=fF();return T.useCallback(async(r,i={})=>{let{action:a,method:s,encType:u,formData:d,body:f}=SF(r,t);if(i.navigate===!1){let m=i.fetcherKey||$F();await e.fetch(m,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||s,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function qF(e,{relative:t}={}){let{basename:n}=T.useContext(xa),r=T.useContext(wa);yn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...Lh(e||".",{relative:t})},s=xr();if(e==null){a.search=s.search;let u=new URLSearchParams(a.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();a.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Io([n,a.pathname])),hh(a)}function HF(e,{relative:t}={}){let n=T.useContext(S5);yn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=N5("useViewTransitionState"),i=Lh(e,{relative:t});if(!n.isTransitioning)return!1;let a=zo(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=zo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sg(i.pathname,s)!=null||Sg(i.pathname,a)!=null}var Dh=d5();const GF="/shlink-web-client/develop",Cg={homepage:GF};var ya,Za=".",L5="function",D5="string",k5="__global__",ew="Provider",WF=0,tw=Array.prototype.slice,YF=function(t,n){var r=t[n];if(r===void 0&&ya.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},kv=function(t){var n;return this.nested[t]||(n=ya.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},I5=function(t){return t.split(Za).reduce(YF,this)},KF=function(t,n,r,i){var a={configurable:!0,enumerable:!0};return t.length?a.get=function(){var u=0,d=function(m){if(m)throw m;t[u]&&t[u++](r,d)};return d(),r}:(a.value=r,a.writable=!0),Object.defineProperty(i,n,a),i[n]},ZF=function(t,n){var r,i;return typeof t===L5&&(n=t,t=k5),r=t.split(Za),i=r.shift(),r.length?kv.call(this,i).middleware(r.join(Za),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},XF=function(t,n){return n(t)},MA=function(t,n){return(t[n]||[]).concat(t.__global__||[])},QF=function(t,n){var r,i,a,s,u;return this.id,a=this.container,s=this.decorators,u=this.middlewares,r=t+ew,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var f=new n;return delete a[r],a[r]=f,f}},i[t]={configurable:!0,enumerable:!0,get:function(){var f=a[r],m;return f&&(m=MA(s,t).reduce(XF,f.$get(a)),delete a[r],delete a[t]),m===void 0?m:KF(MA(u,t),t,m,a)}},Object.defineProperties(a,i),this},U5=function(t,n){var r,i;return r=t.split(Za),this.providerMap[t]&&r.length===1&&!this.container[t+ew]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(kv.call(this,i).provider(r.join(Za),n),this):QF.call(this,i,n))},nw=function(t,n){return U5.call(this,t,function(){this.$get=n})},B5=function(t,n,r){var i=arguments.length>3?tw.call(arguments,3):[],a=this;return nw.call(this,t,function(){var u=n,d=i.map(I5,a.container);return r?new(n.bind.apply(n,[null].concat(d))):u.apply(null,d)})},JF=function(t,n){return B5.apply(this,[t,n,!0].concat(tw.call(arguments,2)))},e$=function(t,n){return B5.apply(this,[t,n,!1].concat(tw.call(arguments,2)))},z5=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},F5=function(t,n){var r=t[n];return r||(r={},z5.call(t,n,r)),r},t$=function(t,n){var r;return r=t.split(Za),t=r.pop(),z5.call(r.reduce(F5,this.container),t,n),this},n$=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},r$=function(t,n){var r=t.split(Za);return t=r.pop(),n$.call(r.reduce(F5,this.container),t,n),this},$5=function(t,n){var r,i;return typeof t===L5&&(n=t,t=k5),r=t.split(Za),i=r.shift(),r.length?kv.call(this,i).decorator(r.join(Za),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},i$=function(t){return this.deferred.push(t),this},a$=function(t){return(t||[]).map(I5,this.container)},o$=function(t,n){return nw.call(this,t,function(i){return{instance:n.bind(n,i)}})},s$=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},rw=function(t){return Object.keys(t||this.container||{}).filter(s$)},Eg={},l$=function(t){var n;return typeof t===D5?(n=Eg[t],n||(Eg[t]=n=new ya,n.constant("BOTTLE_NAME",t)),n):new ya},u$=function(t){typeof t===D5?delete Eg[t]:Eg={}},V5=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},RA=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+ew]},c$=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(a){if(!(r&&t.indexOf(a)===-1)){var s=a.split(Za);s.length>1&&s.forEach(RA,kv.call(this,s[0])),RA.call(this,a),this.provider(a,n[a])}},this)},f$=function(t){return this.deferred.forEach(function(r){r(t)}),this};ya=function e(t){if(!(this instanceof e))return e.pop(t);this.id=WF++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:$5.bind(this),$register:V5.bind(this),$list:rw.bind(this)}};ya.prototype={constant:r$,decorator:$5,defer:i$,digest:a$,factory:nw,instanceFactory:o$,list:rw,middleware:ZF,provider:U5,resetProviders:c$,register:V5,resolve:f$,service:JF,serviceFactory:e$,value:t$};ya.pop=l$;ya.clear=u$;ya.list=rw;ya.config={strict:!1};const q5=ya,d$=(e,t)=>`${e}/rest/v${t}`,h$=e=>e.dir?`${e.field}-${e.dir}`:void 0,m$=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:h$(e)}),p$=(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}`},g$=(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()};let v$=class{#t;#r;#n;#o;constructor(t,n,r={}){this.#r=t,this.#n=n,this.#o=r,this.#t=3}async listShortUrls({signal:t,...n}={}){return this.#e({url:"/short-urls",query:m$(n),signal:t}).then(({shortUrls:r})=>r)}async createShortUrl({signal:t,...n}){const r=Object.entries(n).reduce((i,[a,s])=>(s&&(i[a]=s),i),{});return this.#e({url:"/short-urls",method:"POST",body:r,signal:t})}async getShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.#e({url:`/short-urls/${t}`,query:{domain:n},signal:r})}async deleteShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.#a({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n},signal:r})}async updateShortUrl({shortCode:t,domain:n},{signal:r,...i}){return this.#e({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:i,signal:r})}async getShortUrlRedirectRules({shortCode:t,domain:n},{signal:r}={}){return this.#e({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n},signal:r})}async setShortUrlRedirectRules({shortCode:t,domain:n},{signal:r,...i}){return this.#e({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:i,signal:r})}async getVisitsOverview({signal:t}={}){return this.#e({url:"/visits",signal:t}).then(({visits:n})=>n)}async getShortUrlVisits({shortCode:t,domain:n},{signal:r,...i}={}){return this.#i({url:`/short-urls/${t}/visits`,query:{...i,domain:n},signal:r})}async getTagVisits(t,{signal:n,...r}={}){return this.#i({url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,{signal:n,...r}={}){return this.#i({url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits({signal:t,...n}={}){return this.#i({url:"/visits/orphan",query:n,signal:t})}async getNonOrphanVisits({signal:t,...n}={}){return this.#i({url:"/visits/non-orphan",query:n,signal:t})}async#i(t){return this.#e(t).then(({visits:n})=>n)}async deleteShortUrlVisits({shortCode:t,domain:n},{signal:r}={}){const i=n?{domain:n}:void 0;return this.#e({method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:r})}async deleteOrphanVisits({signal:t}={}){return this.#e({method:"DELETE",url:"/visits/orphan",signal:t})}async listTags({signal:t}={}){return this.#e({url:"/tags",signal:t}).then(({tags:n})=>n)}async tagsStats({signal:t}={}){return this.#e({url:"/tags/stats",signal:t}).then(({tags:n})=>n)}async deleteTags(t,{signal:n}={}){return this.#a({url:"/tags",method:"DELETE",query:{tags:t},signal:n}).then(()=>({tags:t}))}async editTag({oldName:t,newName:n},{signal:r}={}){return this.#a({url:"/tags",method:"PUT",body:{oldName:t,newName:n},signal:r}).then(()=>({oldName:t,newName:n}))}async listDomains({signal:t}={}){return this.#e({url:"/domains",signal:t}).then(({domains:n})=>n)}async editDomainRedirects(t,{signal:n}={}){return this.#e({url:"/domains/redirects",method:"PATCH",body:t,signal:n})}async health({domain:t,signal:n}={}){return this.#e({url:"/health",domain:t,signal:n})}async mercureInfo({signal:t}={}){return this.#e({url:"/mercure-info",signal:t})}async#e(t){return this.#r.jsonRequest(...this.#s(t))}async#a(t){return this.#r.emptyRequest(...this.#s(t))}#s({url:t,method:n="GET",query:r,body:i,domain:a,signal:s}){const u=g$(r??{}),d=u?`?${u}`:"",f=a?p$(this.#n.baseUrl,a):this.#n.baseUrl;return[`${d$(f,this.#t)}${t}${d}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.#n.apiKey},credentials:this.#o.requestCredentials,signal:s}]}};const H5=e=>!!e?.url&&!!e?.apiKey,ah=e=>!!e?.id,iw=e=>!!e?.version,y$=e=>!!e?.serverNotFound,b$=e=>ah(e)?e.id:"",_$=({name:e,url:t,apiKey:n,forwardCredentials:r})=>({name:e,url:t,apiKey:n,forwardCredentials:r?"true":"false"}),x$=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",w$=e=>{const{forwardCredentials:t,...n}=e;if(!x$(n))throw new Error('Server is missing required "url", "apiKey" and/or "name" properties');return{...n,forwardCredentials:t==="true"}},NA=new Map,S$=e=>typeof e=="function",C$=e=>{const{selectedServer:t}=e();if(!H5(t))throw new Error("There's no selected server or it is not found");return t},E$=e=>t=>{const{url:n,apiKey:r,forwardCredentials:i}=S$(t)?C$(t):t,a=`${r}_${n}_${i?"forward":"no-forward"}`,s=NA.get(a);if(s)return s;const u=new v$(e,{apiKey:r,baseUrl:n},{requestCredentials:i?"include":void 0});return NA.set(a,u),u},A$=e=>{e.serviceFactory("buildShlinkApiClient",E$,"HttpClient")};function G5(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=G5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ne(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=G5(e))&&(r&&(r+=" "),r+=t);return r}/*!
|
||
* Font Awesome Free 7.0.0 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 2025 Fonticons, Inc.
|
||
*/var T$={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M480.1 192l7.9 0c13.3 0 24-10.7 24-24l0-144c0-9.7-5.8-18.5-14.8-22.2S477.9 .2 471 7L419.3 58.8C375 22.1 318 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1C79.2 135.5 159.3 64 256 64 300.4 64 341.2 79 373.7 104.3L327 151c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 192 344 192l136.1 0zm29.4 100.5c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-44.4 0-85.2-15-117.7-40.3L185 361c6.9-6.9 8.9-17.2 5.2-26.2S177.7 320 168 320L24 320c-13.3 0-24 10.7-24 24L0 488c0 9.7 5.8 18.5 14.8 22.2S34.1 511.8 41 505l51.8-51.8C137 489.9 194 512 256 512 385 512 491.7 416.6 509.4 292.5z"]},O$=T$,W5={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M415.9 210.5c12.2-3.3 25 2.5 30.5 13.8L465 261.9c10.3 1.4 20.4 4.2 29.9 8.1l35-23.3c10.5-7 24.4-5.6 33.3 3.3l19.2 19.2c8.9 8.9 10.3 22.9 3.3 33.3l-23.3 34.9c1.9 4.7 3.6 9.6 5 14.7 1.4 5.1 2.3 10.1 3 15.2l37.7 18.6c11.3 5.6 17.1 18.4 13.8 30.5l-7 26.2c-3.3 12.1-14.6 20.3-27.2 19.5l-42-2.7c-6.3 8.1-13.6 15.6-21.9 22l2.7 41.9c.8 12.6-7.4 24-19.5 27.2l-26.2 7c-12.2 3.3-24.9-2.5-30.5-13.8l-18.6-37.6c-10.3-1.4-20.4-4.2-29.9-8.1l-35 23.3c-10.5 7-24.4 5.6-33.3-3.3l-19.2-19.2c-8.9-8.9-10.3-22.8-3.3-33.3l23.3-35c-1.9-4.7-3.6-9.6-5-14.7s-2.3-10.2-3-15.2l-37.7-18.6c-11.3-5.6-17-18.4-13.8-30.5l7-26.2c3.3-12.1 14.6-20.3 27.2-19.5l41.9 2.7c6.3-8.1 13.6-15.6 21.9-22l-2.7-41.8c-.8-12.6 7.4-24 19.5-27.2l26.2-7zM448.4 340a44 44 0 1 0 .1 88 44 44 0 1 0 -.1-88zM224.9-45.5l26.2 7c12.1 3.3 20.3 14.7 19.5 27.2l-2.7 41.8c8.3 6.4 15.6 13.8 21.9 22l42-2.7c12.5-.8 23.9 7.4 27.2 19.5l7 26.2c3.2 12.1-2.5 24.9-13.8 30.5l-37.7 18.6c-.7 5.1-1.7 10.2-3 15.2s-3.1 10-5 14.7l23.3 35c7 10.5 5.6 24.4-3.3 33.3L307.3 262c-8.9 8.9-22.8 10.3-33.3 3.3L239 242c-9.5 3.9-19.6 6.7-29.9 8.1l-18.6 37.6c-5.6 11.3-18.4 17-30.5 13.8l-26.2-7c-12.2-3.3-20.3-14.7-19.5-27.2l2.7-41.9c-8.3-6.4-15.6-13.8-21.9-22l-42 2.7c-12.5 .8-23.9-7.4-27.2-19.5l-7-26.2c-3.2-12.1 2.5-24.9 13.8-30.5l37.7-18.6c.7-5.1 1.7-10.1 3-15.2 1.4-5.1 3-10 5-14.7L55.1 46.5c-7-10.5-5.6-24.4 3.3-33.3L77.6-6c8.9-8.9 22.8-10.3 33.3-3.3l35 23.3c9.5-3.9 19.6-6.7 29.9-8.1l18.6-37.6c5.6-11.3 18.3-17 30.5-13.8zM192.4 84a44 44 0 1 0 0 88 44 44 0 1 0 0-88z"]},j$=W5,P$={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM175 441c9.4 9.4 24.6 9.4 33.9 0l64-64c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-23 23 0-86.1c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 86.1-23-23c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64z"]},Y5=P$,M$={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 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-32c0-17.7 14.3-32 32-32zM64 240l0 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 368l0 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"]},R$=M$,N$={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},L$=N$,D$={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},dx=D$,k$={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 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},I$=k$,U$={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},B$={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 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"]},z$={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},F$={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 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-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},$$={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.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 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},aw={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8-79.3 23.6-137.1 97.1-137.1 184.1 0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256 512 397.4 397.4 512 256 512S0 397.4 0 256c0-116 77.1-213.9 182.9-245.4 16.9-5 34.8 4.6 39.8 21.5z"]},V$={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},q$=V$,H$={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM209 263c-9.4-9.4-24.6-9.4-33.9 0l-64 64c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l23-23 0 86.1c0 13.3 10.7 24 24 24s24-10.7 24-24l0-86.1 23 23c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-64-64z"]},G$=H$,W$={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 0L368 46.1 465.9 144 490.3 119.6c21.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.5L432 177.9 334.1 80 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"]},ow=W$,Ag={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 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.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},K5={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M342.6-22.6c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l41.4-41.4 0 195.9c-18.8-10.9-40.7-17.1-64-17.1l-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 320 224 320c35.3 0 64 28.7 64 64 0 70.7 57.3 128 128 128l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-35.3 0-64-28.7-64-64l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z"]},Y$={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M150.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L96 141.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-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"]},K$=Y$,Z$={prefix:"fas",iconName:"sun",icon:[576,512,[9728],"f185","M178.2-10.1c7.4-3.1 15.8-2.2 22.5 2.2l87.8 58.2 87.8-58.2c6.7-4.4 15.1-5.2 22.5-2.2S411.4-.5 413 7.3l20.9 103.2 103.2 20.9c7.8 1.6 14.4 7 17.4 14.3s2.2 15.8-2.2 22.5l-58.2 87.8 58.2 87.8c4.4 6.7 5.2 15.1 2.2 22.5s-9.6 12.8-17.4 14.3L433.8 401.4 413 504.7c-1.6 7.8-7 14.4-14.3 17.4s-15.8 2.2-22.5-2.2l-87.8-58.2-87.8 58.2c-6.7 4.4-15.1 5.2-22.5 2.2s-12.8-9.6-14.3-17.4L143 401.4 39.7 380.5c-7.8-1.6-14.4-7-17.4-14.3s-2.2-15.8 2.2-22.5L82.7 256 24.5 168.2c-4.4-6.7-5.2-15.1-2.2-22.5s9.6-12.8 17.4-14.3L143 110.6 163.9 7.3c1.6-7.8 7-14.4 14.3-17.4zM207.6 256a80.4 80.4 0 1 1 160.8 0 80.4 80.4 0 1 1 -160.8 0zm208.8 0a128.4 128.4 0 1 0 -256.8 0 128.4 128.4 0 1 0 256.8 0z"]},X$={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 353.2c4.1-14.6 11.8-27.9 22.6-38.7l181.2-181.2 33.9-33.9c16.6 16.6 51.3 51.3 104 104l33.9 33.9-33.9 33.9-181.2 181.2c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 510.6c-8.3 2.3-17.3 0-23.4-6.2S-1.4 489.3 .9 481L36.4 353.2zm55.6-3.7c-4.4 4.7-7.6 10.4-9.3 16.6l-24.1 86.9 86.9-24.1c6.4-1.8 12.2-5.1 17-9.7L91.9 349.5zm354-146.1c-16.6-16.6-51.3-51.3-104-104L308 65.5C334.5 39 349.4 24.1 352.9 20.6 366.4 7 384.8-.6 404-.6S441.6 7 455.1 20.6l35.7 35.7C504.4 69.9 512 88.3 512 107.4s-7.6 37.6-21.2 51.1c-3.5 3.5-18.4 18.4-44.9 44.9z"]},Z5=X$,Q$={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},Iv={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.7 262.6 153.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l73.4-73.4 57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},J$={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-87-39-39c-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.2S34.1 320.2 41 327l39 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.2S177.7 512 168 512z"]},eV={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 17.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 117.3 160 488c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},tV={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.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 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"]},Tu={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},nV={prefix:"fas",iconName:"house",icon:[512,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"]},rV=nV,LA={prefix:"fas",iconName:"server",icon:[448,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 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 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 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"]},DA={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 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-32c0-17.7 14.3-32 32-32zM291.9 220.1c-9.4-9.4-24.6-9.4-33.9 0l-33.9 33.9-33.9-33.9c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l33.9 33.9-33.9 33.9c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l33.9-33.9 33.9 33.9c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-33.9-33.9 33.9-33.9c9.4-9.4 9.4-24.6 0-33.9z"]},Uv={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},sw=Uv,iV=Uv,X5={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},aV={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]},lw={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"]},oV={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.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 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},sV={prefix:"fas",iconName:"plug",icon:[448,512,[128268],"f1e6","M128-32c17.7 0 32 14.3 32 32l0 96 128 0 0-96c0-17.7 14.3-32 32-32s32 14.3 32 32l0 96 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 64c0 95.1-69.2 174.1-160 189.3l0 66.7c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-66.7C101.2 398.1 32 319.1 32 224l0-64c-17.7 0-32-14.3-32-32S14.3 96 32 96l64 0 0-96c0-17.7 14.3-32 32-32z"]},uw={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M512.4 240l-176 0c-17.7 0-32-14.3-32-32l0-176c0-17.7 14.4-32.2 31.9-29.9 107 14.2 191.8 99 206 206 2.3 17.5-12.2 31.9-29.9 31.9zM222.6 37.2c18.1-3.8 33.8 11 33.8 29.5l0 197.3c0 5.6 2 11 5.5 15.3L394 438.7c11.7 14.1 9.2 35.4-6.9 44.1-34.1 18.6-73.2 29.2-114.7 29.2-132.5 0-240-107.5-240-240 0-115.5 81.5-211.9 190.2-234.8zM477.8 288l64 0c18.5 0 33.3 15.7 29.5 33.8-10.2 48.4-35 91.4-69.6 124.2-12.3 11.7-31.6 9.2-42.4-3.9L374.9 340.4c-17.3-20.9-2.4-52.4 24.6-52.4l78.2 0z"]},lV={prefix:"fas",iconName:"file-csv",icon:[576,512,[],"f6dd","M96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l80 0 0-112c0-35.3 28.7-64 64-64l176 0 0-165.5c0-17-6.7-33.3-18.7-45.3L290.7 18.7C278.7 6.7 262.5 0 245.5 0L96 0zM357.5 176L264 176c-13.3 0-24-10.7-24-24L240 58.5 357.5 176zM264 380c-24.3 0-44 19.7-44 44l0 80c0 24.3 19.7 44 44 44l16 0c24.3 0 44-19.7 44-44l0-8c0-11-9-20-20-20s-20 9-20 20l0 8c0 2.2-1.8 4-4 4l-16 0c-2.2 0-4-1.8-4-4l0-80c0-2.2 1.8-4 4-4l16 0c2.2 0 4 1.8 4 4l0 8c0 11 9 20 20 20s20-9 20-20l0-8c0-24.3-19.7-44-44-44l-16 0zm136 0c-28.7 0-52 23.3-52 52s23.3 52 52 52c6.6 0 12 5.4 12 12s-5.4 12-12 12l-32 0c-11 0-20 9-20 20s9 20 20 20l32 0c28.7 0 52-23.3 52-52s-23.3-52-52-52c-6.6 0-12-5.4-12-12s5.4-12 12-12l24 0c11 0 20-9 20-20s-9-20-20-20l-24 0zm96 0c-11 0-20 9-20 20l0 31.6c0 35.5 10.5 70.3 30.2 99.8l5.1 7.7c3.7 5.6 10 8.9 16.6 8.9s12.9-3.3 16.6-8.9l5.1-7.7c19.7-29.6 30.2-64.3 30.2-99.8l0-31.6c0-11-9-20-20-20s-20 9-20 20l0 31.6c0 19.6-4.1 38.9-12 56.7-7.9-17.8-12-37.1-12-56.7l0-31.6c0-11-9-20-20-20z"]},kA={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},uV={prefix:"fas",iconName:"grip-vertical",icon:[320,512,["grid-vertical"],"f58e","M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 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 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 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 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z"]},cV={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.1-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 168c-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-24zm26.7 216a26.7 26.7 0 1 0 -53.3 0 26.7 26.7 0 1 0 53.3 0z"]},fV=cV,dV={prefix:"fas",iconName:"caret-up",icon:[384,512,[],"f0d8","M32 352c-12.9 0-24.6-7.8-29.6-19.8S.2 306.5 9.4 297.4l160-160c12.5-12.5 32.8-12.5 45.3 0l160 160c9.2 9.2 11.9 22.9 6.9 34.9S364.9 352 352 352L32 352z"]},hV={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M351.9 280l-190.9 0c2.9 64.5 17.2 123.9 37.5 167.4 11.4 24.5 23.7 41.8 35.1 52.4 11.2 10.5 18.9 12.2 22.9 12.2s11.7-1.7 22.9-12.2c11.4-10.6 23.7-28 35.1-52.4 20.3-43.5 34.6-102.9 37.5-167.4zM160.9 232l190.9 0C349 167.5 334.7 108.1 314.4 64.6 303 40.2 290.7 22.8 279.3 12.2 268.1 1.7 260.4 0 256.4 0s-11.7 1.7-22.9 12.2c-11.4 10.6-23.7 28-35.1 52.4-20.3 43.5-34.6 102.9-37.5 167.4zm-48 0C116.4 146.4 138.5 66.9 170.8 14.7 78.7 47.3 10.9 131.2 1.5 232l111.4 0zM1.5 280c9.4 100.8 77.2 184.7 169.3 217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5 280zm398.4 0c-3.5 85.6-25.6 165.1-57.9 217.3 92.1-32.7 159.9-116.5 169.3-217.3l-111.4 0zm111.4-48C501.9 131.2 434.1 47.3 342 14.7 374.3 66.9 396.4 146.4 399.9 232l111.4 0z"]},mV={prefix:"fas",iconName:"arrow-left",icon:[512,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.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},pV={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439.5 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.2S450.2 240 440.5 240l-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 39 87-87zM72.5 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-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-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z"]},Q5={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M352 0c0-17.7-14.3-32-32-32S288-17.7 288 0l0 64-96 0c-53 0-96 43-96 96l0 224c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-224c0-53-43-96-96-96l-96 0 0-64zM160 368c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zM224 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm144 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM64 224c0-17.7-14.3-32-32-32S0 206.3 0 224l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96zm544-32c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32z"]},kh={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},gV={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},vV={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 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"]},yV=vV,J5={prefix:"fas",iconName:"caret-down",icon:[384,512,[],"f0d7","M352 160c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-9.2-9.2-11.9-22.9-6.9-34.9S19.1 160 32 160l320 0z"]},bV={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},_V={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},xV=_V,wV={prefix:"fas",iconName:"tag",icon:[512,512,[127991],"f02b","M32.5 96l0 149.5c0 17 6.7 33.3 18.7 45.3l192 192c25 25 65.5 25 90.5 0L483.2 333.3c25-25 25-65.5 0-90.5l-192-192C279.2 38.7 263 32 246 32L96.5 32c-35.3 0-64 28.7-64 64zm112 16a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},SV={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},CV={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.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 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},EV={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"]},AV={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},TV=AV,OV={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M64 160l64 0 0-64-64 0 0 64zM0 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 416l64 0 0-64-64 0 0 64zM0 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-96zM320 96l0 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-48zM288 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm96 32c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm32-96a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm-32 32a32 32 0 1 1 -64 0 32 32 0 1 1 64 0z"]},jV={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM168 232l176 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-176 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},e6=jV,PV={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 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-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Bv=PV;/*!
|
||
* Font Awesome Free 7.0.0 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 2025 Fonticons, Inc.
|
||
*/function hx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function MV(e){if(Array.isArray(e))return e}function RV(e){if(Array.isArray(e))return hx(e)}function NV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LV(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,t6(r.key),r)}}function DV(e,t,n){return t&&LV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dg(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=cw(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return s=d.done,d},e:function(d){u=!0,a=d},f:function(){try{s||n.return==null||n.return()}finally{if(u)throw a}}}}function Ot(e,t,n){return(t=t6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],d=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,i=m}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function UV(){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 BV(){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 IA(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?IA(Object(n),!0).forEach(function(r){Ot(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zv(e,t){return MV(e)||IV(e,t)||cw(e,t)||UV()}function ba(e){return RV(e)||kV(e)||cw(e)||BV()}function zV(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 t6(e){var t=zV(e,"string");return typeof t=="symbol"?t:t+""}function Tg(e){"@babel/helpers - typeof";return Tg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tg(e)}function cw(e,t){if(e){if(typeof e=="string")return hx(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hx(e,t):void 0}}var UA=function(){},fw={},n6={},r6=null,i6={mark:UA,measure:UA};try{typeof window<"u"&&(fw=window),typeof document<"u"&&(n6=document),typeof MutationObserver<"u"&&(r6=MutationObserver),typeof performance<"u"&&(i6=performance)}catch{}var FV=fw.navigator||{},BA=FV.userAgent,zA=BA===void 0?"":BA,hl=fw,un=n6,FA=r6,Lp=i6;hl.document;var Zo=!!un.documentElement&&!!un.head&&typeof un.addEventListener=="function"&&typeof un.createElement=="function",a6=~zA.indexOf("MSIE")||~zA.indexOf("Trident/"),G1,$V=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,VV=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Slab Press|Slab|Whiteboard)?.*/i,o6={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"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"}},qV={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},s6=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press"],Rr="classic",Ih="duotone",l6="sharp",u6="sharp-duotone",c6="chisel",f6="etch",d6="jelly",h6="jelly-duo",m6="jelly-fill",p6="notdog",g6="notdog-duo",v6="slab",y6="slab-press",b6="thumbprint",_6="whiteboard",HV="Classic",GV="Duotone",WV="Sharp",YV="Sharp Duotone",KV="Chisel",ZV="Etch",XV="Jelly",QV="Jelly Duo",JV="Jelly Fill",eq="Notdog",tq="Notdog Duo",nq="Slab",rq="Slab Press",iq="Thumbprint",aq="Whiteboard",x6=[Rr,Ih,l6,u6,c6,f6,d6,h6,m6,p6,g6,v6,y6,b6,_6];G1={},Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(G1,Rr,HV),Ih,GV),l6,WV),u6,YV),c6,KV),f6,ZV),d6,XV),h6,QV),m6,JV),p6,eq),Ot(Ot(Ot(Ot(Ot(G1,g6,tq),v6,nq),y6,rq),b6,iq),_6,aq);var oq={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"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"}},sq={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"}},lq=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),uq={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},whiteboard:{semibold:"fawsb"}},w6=["fak","fa-kit","fakd","fa-kit-duotone"],$A={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},cq=["kit"],fq="kit",dq="kit-duotone",hq="Kit",mq="Kit Duotone";Ot(Ot({},fq,hq),dq,mq);var pq={kit:{"fa-kit":"fak"}},gq={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},vq={kit:{fak:"fa-kit"}},VA={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},W1,Dp={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},yq=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press"],bq="classic",_q="duotone",xq="sharp",wq="sharp-duotone",Sq="chisel",Cq="etch",Eq="jelly",Aq="jelly-duo",Tq="jelly-fill",Oq="notdog",jq="notdog-duo",Pq="slab",Mq="slab-press",Rq="thumbprint",Nq="whiteboard",Lq="Classic",Dq="Duotone",kq="Sharp",Iq="Sharp Duotone",Uq="Chisel",Bq="Etch",zq="Jelly",Fq="Jelly Duo",$q="Jelly Fill",Vq="Notdog",qq="Notdog Duo",Hq="Slab",Gq="Slab Press",Wq="Thumbprint",Yq="Whiteboard";W1={},Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(Ot(W1,bq,Lq),_q,Dq),xq,kq),wq,Iq),Sq,Uq),Cq,Bq),Eq,zq),Aq,Fq),Tq,$q),Oq,Vq),Ot(Ot(Ot(Ot(Ot(W1,jq,qq),Pq,Hq),Mq,Gq),Rq,Wq),Nq,Yq);var Kq="kit",Zq="kit-duotone",Xq="Kit",Qq="Kit Duotone";Ot(Ot({},Kq,Xq),Zq,Qq);var Jq={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"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"}},eH={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"]},mx={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"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"}},tH=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],S6=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr"].concat(yq,tH),nH=["solid","regular","light","thin","duotone","brands","semibold"],C6=[1,2,3,4,5,6,7,8,9,10],rH=C6.concat([11,12,13,14,15,16,17,18,19,20]),iH=["aw","fw","pull-left","pull-right"],aH=[].concat(ba(Object.keys(eH)),nH,iH,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Dp.GROUP,Dp.SWAP_OPACITY,Dp.PRIMARY,Dp.SECONDARY]).concat(C6.map(function(e){return"".concat(e,"x")})).concat(rH.map(function(e){return"w-".concat(e)})),oH={"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"}},Fo="___FONT_AWESOME___",px=16,E6="fa",A6="svg-inline--fa",Ou="data-fa-i2svg",gx="data-fa-pseudo-element",sH="data-fa-pseudo-element-pending",dw="data-prefix",hw="data-icon",qA="fontawesome-i2svg",lH="async",uH=["HTML","HEAD","STYLE","SCRIPT"],T6=["::before","::after",":before",":after"],O6=function(){try{return!0}catch{return!1}}();function Uh(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Rr]}})}var j6=Ye({},o6);j6[Rr]=Ye(Ye(Ye(Ye({},{"fa-duotone":"duotone"}),o6[Rr]),$A.kit),$A["kit-duotone"]);var cH=Uh(j6),vx=Ye({},uq);vx[Rr]=Ye(Ye(Ye(Ye({},{duotone:"fad"}),vx[Rr]),VA.kit),VA["kit-duotone"]);var HA=Uh(vx),yx=Ye({},mx);yx[Rr]=Ye(Ye({},yx[Rr]),vq.kit);var P6=Uh(yx),bx=Ye({},Jq);bx[Rr]=Ye(Ye({},bx[Rr]),pq.kit);Uh(bx);var fH=$V,M6="fa-layers-text",dH=VV,hH=Ye({},oq);Uh(hH);var mH=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Y1=qV,pH=[].concat(ba(cq),ba(aH)),oh=hl.FontAwesomeConfig||{};function gH(e){var t=un.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function vH(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(un&&typeof un.querySelector=="function"){var yH=[["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-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];yH.forEach(function(e){var t=zv(e,2),n=t[0],r=t[1],i=vH(gH(n));i!=null&&(oh[r]=i)})}var R6={styleDefault:"solid",familyDefault:Rr,cssPrefix:E6,replacementClass:A6,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};oh.familyPrefix&&(oh.cssPrefix=oh.familyPrefix);var Qc=Ye(Ye({},R6),oh);Qc.autoReplaceSvg||(Qc.observeMutations=!1);var lt={};Object.keys(R6).forEach(function(e){Object.defineProperty(lt,e,{enumerable:!0,set:function(n){Qc[e]=n,sh.forEach(function(r){return r(lt)})},get:function(){return Qc[e]}})});Object.defineProperty(lt,"familyPrefix",{enumerable:!0,set:function(t){Qc.cssPrefix=t,sh.forEach(function(n){return n(lt)})},get:function(){return Qc.cssPrefix}});hl.FontAwesomeConfig=lt;var sh=[];function bH(e){return sh.push(e),function(){sh.splice(sh.indexOf(e),1)}}var Lc=px,Ha={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function _H(e){if(!(!e||!Zo)){var t=un.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=un.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=a)}return un.head.insertBefore(t,r),e}}var xH="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function GA(){for(var e=12,t="";e-- >0;)t+=xH[Math.random()*62|0];return t}function yf(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function mw(e){return e.classList?yf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function N6(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function wH(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(N6(e[n]),'" ')},"").trim()}function Fv(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function pw(e){return e.size!==Ha.size||e.x!==Ha.x||e.y!==Ha.y||e.rotate!==Ha.rotate||e.flipX||e.flipY}function SH(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)"),d={transform:"".concat(a," ").concat(s," ").concat(u)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:d,path:f}}function CH(e){var t=e.transform,n=e.width,r=n===void 0?px:n,i=e.height,a=i===void 0?px:i,s="";return a6?s+="translate(".concat(t.x/Lc-r/2,"em, ").concat(t.y/Lc-a/2,"em) "):s+="translate(calc(-50% + ".concat(t.x/Lc,"em), calc(-50% + ").concat(t.y/Lc,"em)) "),s+="scale(".concat(t.size/Lc*(t.flipX?-1:1),", ").concat(t.size/Lc*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var EH=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
|
||
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
|
||
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
|
||
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
|
||
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
|
||
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
|
||
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
|
||
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
|
||
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
|
||
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
|
||
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
|
||
--fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
|
||
--fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
|
||
--fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
|
||
--fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
|
||
--fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
|
||
--fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
|
||
--fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
|
||
--fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
|
||
--fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
|
||
--fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
|
||
--fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
box-sizing: content-box;
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
width: var(--fa-width, 1.25em);
|
||
}
|
||
.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.0714285714em;
|
||
}
|
||
.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,
|
||
.svg-inline--fa .fa-pull-start {
|
||
float: inline-start;
|
||
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
.svg-inline--fa.fa-pull-right,
|
||
.svg-inline--fa .fa-pull-end {
|
||
float: inline-end;
|
||
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
||
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
|
||
}
|
||
|
||
.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: var(--fa-width, 1.25em);
|
||
}
|
||
.fa-layers .svg-inline--fa {
|
||
inset: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
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: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-width-auto {
|
||
--fa-width: auto;
|
||
}
|
||
|
||
.fa-fw,
|
||
.fa-width-fixed {
|
||
--fa-width: 1.25em;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-inline-start: var(--fa-li-margin, 2.5em);
|
||
padding-inline-start: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
/* Heads Up: Bordered Icons will not be supported in the future!
|
||
- This feature will be deprecated in the next major release of Font Awesome (v8)!
|
||
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
|
||
*/
|
||
/* Notes:
|
||
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
|
||
* --@{v.$css-prefix}-border-padding =
|
||
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
|
||
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
|
||
*/
|
||
.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.0625em);
|
||
box-sizing: var(--fa-border-box-sizing, content-box);
|
||
padding: var(--fa-border-padding, 0.1875em 0.25em);
|
||
}
|
||
|
||
.fa-pull-left,
|
||
.fa-pull-start {
|
||
float: inline-start;
|
||
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right,
|
||
.fa-pull-end {
|
||
float: inline-end;
|
||
margin-inline-start: 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: none !important;
|
||
transition: none !important;
|
||
}
|
||
}
|
||
@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));
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
.svg-inline--fa.fa-inverse {
|
||
fill: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.fa-stack {
|
||
display: inline-block;
|
||
height: 2em;
|
||
line-height: 2em;
|
||
position: relative;
|
||
vertical-align: middle;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.svg-inline--fa.fa-stack-1x {
|
||
height: 1em;
|
||
width: 1.25em;
|
||
}
|
||
.svg-inline--fa.fa-stack-2x {
|
||
height: 2em;
|
||
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);
|
||
}`;function L6(){var e=E6,t=A6,n=lt.cssPrefix,r=lt.replacementClass,i=EH;if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(u,".".concat(r))}return i}var WA=!1;function K1(){lt.autoAddCss&&!WA&&(_H(L6()),WA=!0)}var AH={mixout:function(){return{dom:{css:L6,insertCss:K1}}},hooks:function(){return{beforeDOMElementCreation:function(){K1()},beforeI2svg:function(){K1()}}}},$o=hl||{};$o[Fo]||($o[Fo]={});$o[Fo].styles||($o[Fo].styles={});$o[Fo].hooks||($o[Fo].hooks={});$o[Fo].shims||($o[Fo].shims=[]);var ga=$o[Fo],D6=[],k6=function(){un.removeEventListener("DOMContentLoaded",k6),Og=1,D6.map(function(t){return t()})},Og=!1;Zo&&(Og=(un.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(un.readyState),Og||un.addEventListener("DOMContentLoaded",k6));function TH(e){Zo&&(Og?setTimeout(e,0):D6.push(e))}function Bh(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?N6(e):"<".concat(t," ").concat(wH(r),">").concat(a.map(Bh).join(""),"</").concat(t,">")}function YA(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Z1=function(t,n,r,i){var a=Object.keys(t),s=a.length,u=n,d,f,m;for(r===void 0?(d=1,m=t[a[0]]):(d=0,m=r);d<s;d++)f=a[d],m=u(m,t[f],f,t);return m};function I6(e){return ba(e).length!==1?null:e.codePointAt(0).toString(16)}function KA(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function U6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,a=KA(t);typeof ga.hooks.addPack=="function"&&!i?ga.hooks.addPack(e,KA(t)):ga.styles[e]=Ye(Ye({},ga.styles[e]||{}),a),e==="fas"&&U6("fa",t)}var mh=ga.styles,OH=ga.shims,B6=Object.keys(P6),jH=B6.reduce(function(e,t){return e[t]=Object.keys(P6[t]),e},{}),gw=null,z6={},F6={},$6={},V6={},q6={};function PH(e){return~pH.indexOf(e)}function MH(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!PH(i)?i:null}var H6=function(){var t=function(a){return Z1(mh,function(s,u,d){return s[d]=Z1(u,a,{}),s},{})};z6=t(function(i,a,s){if(a[3]&&(i[a[3]]=s),a[2]){var u=a[2].filter(function(d){return typeof d=="number"});u.forEach(function(d){i[d.toString(16)]=s})}return i}),F6=t(function(i,a,s){if(i[s]=s,a[2]){var u=a[2].filter(function(d){return typeof d=="string"});u.forEach(function(d){i[d]=s})}return i}),q6=t(function(i,a,s){var u=a[2];return i[s]=s,u.forEach(function(d){i[d]=s}),i});var n="far"in mh||lt.autoFetchSvg,r=Z1(OH,function(i,a){var s=a[0],u=a[1],d=a[2];return u==="far"&&!n&&(u="fas"),typeof s=="string"&&(i.names[s]={prefix:u,iconName:d}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:u,iconName:d}),i},{names:{},unicodes:{}});$6=r.names,V6=r.unicodes,gw=$v(lt.styleDefault,{family:lt.familyDefault})};bH(function(e){gw=$v(e.styleDefault,{family:lt.familyDefault})});H6();function vw(e,t){return(z6[e]||{})[t]}function RH(e,t){return(F6[e]||{})[t]}function pu(e,t){return(q6[e]||{})[t]}function G6(e){return $6[e]||{prefix:null,iconName:null}}function NH(e){var t=V6[e],n=vw("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ml(){return gw}var W6=function(){return{prefix:null,iconName:null,rest:[]}};function LH(e){var t=Rr,n=B6.reduce(function(r,i){return r[i]="".concat(lt.cssPrefix,"-").concat(i),r},{});return x6.forEach(function(r){(e.includes(n[r])||e.some(function(i){return jH[r].includes(i)}))&&(t=r)}),t}function $v(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Rr:n,i=cH[r][e];if(r===Ih&&!e)return"fad";var a=HA[r][e]||HA[r][i],s=e in ga.styles?e:null,u=a||s||null;return u}function DH(e){var t=[],n=null;return e.forEach(function(r){var i=MH(lt.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function ZA(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var XA=S6.concat(w6);function Vv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,a=ZA(e.filter(function(_){return XA.includes(_)})),s=ZA(e.filter(function(_){return!XA.includes(_)})),u=a.filter(function(_){return i=_,!s6.includes(_)}),d=zv(u,1),f=d[0],m=f===void 0?null:f,p=LH(a),b=Ye(Ye({},DH(s)),{},{prefix:$v(m,{family:p})});return Ye(Ye(Ye({},b),BH({values:e,family:p,styles:mh,config:lt,canonical:b,givenPrefix:i})),kH(r,i,b))}function kH(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t==="fa"?G6(i):{},s=pu(r,i);return i=a.iconName||s||i,r=a.prefix||r,r==="far"&&!mh.far&&mh.fas&&!lt.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var IH=x6.filter(function(e){return e!==Rr||e!==Ih}),UH=Object.keys(mx).filter(function(e){return e!==Rr}).map(function(e){return Object.keys(mx[e])}).flat();function BH(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,a=i===void 0?"":i,s=e.styles,u=s===void 0?{}:s,d=e.config,f=d===void 0?{}:d,m=n===Ih,p=t.includes("fa-duotone")||t.includes("fad"),b=f.familyDefault==="duotone",_=r.prefix==="fad"||r.prefix==="fa-duotone";if(!m&&(p||b||_)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&IH.includes(n)){var w=Object.keys(u).find(function(A){return UH.includes(A)});if(w||f.autoFetchSvg){var x=lq.get(n).defaultShortPrefixId;r.prefix=x,r.iconName=pu(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||a==="fa")&&(r.prefix=ml()||"fas"),r}var zH=function(){function e(){NV(this,e),this.definitions={}}return DV(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(u){n.definitions[u]=Ye(Ye({},n.definitions[u]||{}),s[u]),U6(u,s[u]),H6()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(a){var s=i[a],u=s.prefix,d=s.iconName,f=s.icon,m=f[2];n[u]||(n[u]={}),m.length>0&&m.forEach(function(p){typeof p=="string"&&(n[u][p]=f)}),n[u][d]=f}),n}}])}(),QA=[],zc={},qc={},FH=Object.keys(qc);function $H(e,t){var n=t.mixoutsTo;return QA=e,zc={},Object.keys(qc).forEach(function(r){FH.indexOf(r)===-1&&delete qc[r]}),QA.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),Tg(i[s])==="object"&&Object.keys(i[s]).forEach(function(u){n[s]||(n[s]={}),n[s][u]=i[s][u]})}),r.hooks){var a=r.hooks();Object.keys(a).forEach(function(s){zc[s]||(zc[s]=[]),zc[s].push(a[s])})}r.provides&&r.provides(qc)}),n}function _x(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=zc[e]||[];return a.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function ju(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=zc[e]||[];i.forEach(function(a){a.apply(null,n)})}function pl(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qc[e]?qc[e].apply(null,t):void 0}function xx(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ml();if(t)return t=pu(n,t)||t,YA(Y6.definitions,n,t)||YA(ga.styles,n,t)}var Y6=new zH,VH=function(){lt.autoReplaceSvg=!1,lt.observeMutations=!1,ju("noAuto")},qH={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Zo?(ju("beforeI2svg",t),pl("pseudoElements2svg",t),pl("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;lt.autoReplaceSvg===!1&&(lt.autoReplaceSvg=!0),lt.observeMutations=!0,TH(function(){GH({autoReplaceSvgRoot:n}),ju("watch",t)})}},HH={icon:function(t){if(t===null)return null;if(Tg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:pu(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=$v(t[0]);return{prefix:r,iconName:pu(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(lt.cssPrefix,"-"))>-1||t.match(fH))){var i=Vv(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||ml(),iconName:pu(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=ml();return{prefix:a,iconName:pu(a,t)||t}}}},Ri={noAuto:VH,config:lt,dom:qH,parse:HH,library:Y6,findIconDefinition:xx,toHtml:Bh},GH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?un:n;(Object.keys(ga.styles).length>0||lt.autoFetchSvg)&&Zo&<.autoReplaceSvg&&Ri.dom.i2svg({node:r})};function qv(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Bh(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Zo){var r=un.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function WH(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,s=e.transform;if(pw(s)&&n.found&&!r.found){var u=n.width,d=n.height,f={x:u/d/2,y:.5};i.style=Fv(Ye(Ye({},a),{},{"transform-origin":"".concat(f.x+s.x/16,"em ").concat(f.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function YH(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,s=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:s}),children:r}]}]}function KH(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function yw(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,s=e.transform,u=e.symbol,d=e.maskId,f=e.extra,m=e.watchable,p=m===void 0?!1:m,b=r.found?r:n,_=b.width,w=b.height,x=[lt.replacementClass,a?"".concat(lt.cssPrefix,"-").concat(a):""].filter(function(B){return f.classes.indexOf(B)===-1}).filter(function(B){return B!==""||!!B}).concat(f.classes).join(" "),A={children:[],attributes:Ye(Ye({},f.attributes),{},{"data-prefix":i,"data-icon":a,class:x,role:f.attributes.role||"img",viewBox:"0 0 ".concat(_," ").concat(w)})};!KH(f.attributes)&&!f.attributes["aria-hidden"]&&(A.attributes["aria-hidden"]="true"),p&&(A.attributes[Ou]="");var C=Ye(Ye({},A),{},{prefix:i,iconName:a,main:n,mask:r,maskId:d,transform:s,symbol:u,styles:Ye({},f.styles)}),j=r.found&&n.found?pl("generateAbstractMask",C)||{children:[],attributes:{}}:pl("generateAbstractIcon",C)||{children:[],attributes:{}},O=j.children,N=j.attributes;return C.children=O,C.attributes=N,u?YH(C):WH(C)}function JA(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.extra,s=e.watchable,u=s===void 0?!1:s,d=Ye(Ye({},a.attributes),{},{class:a.classes.join(" ")});u&&(d[Ou]="");var f=Ye({},a.styles);pw(i)&&(f.transform=CH({transform:i,width:n,height:r}),f["-webkit-transform"]=f.transform);var m=Fv(f);m.length>0&&(d.style=m);var p=[];return p.push({tag:"span",attributes:d,children:[t]}),p}function ZH(e){var t=e.content,n=e.extra,r=Ye(Ye({},n.attributes),{},{class:n.classes.join(" ")}),i=Fv(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:"span",attributes:r,children:[t]}),a}var X1=ga.styles;function wx(e){var t=e[0],n=e[1],r=e.slice(4),i=zv(r,1),a=i[0],s=null;return Array.isArray(a)?s={tag:"g",attributes:{class:"".concat(lt.cssPrefix,"-").concat(Y1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(Y1.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(Y1.PRIMARY),fill:"currentColor",d:a[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:s}}var XH={found:!1,width:512,height:512};function QH(e,t){!O6&&!lt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Sx(e,t){var n=t;return t==="fa"&<.styleDefault!==null&&(t=ml()),new Promise(function(r,i){if(n==="fa"){var a=G6(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&X1[t]&&X1[t][e]){var s=X1[t][e];return r(wx(s))}QH(e,t),r(Ye(Ye({},XH),{},{icon:lt.showMissingIcons&&e?pl("missingIconAbstract")||{}:{}}))})}var eT=function(){},Cx=lt.measurePerformance&&Lp&&Lp.mark&&Lp.measure?Lp:{mark:eT,measure:eT},Xd='FA "7.0.0"',JH=function(t){return Cx.mark("".concat(Xd," ").concat(t," begins")),function(){return K6(t)}},K6=function(t){Cx.mark("".concat(Xd," ").concat(t," ends")),Cx.measure("".concat(Xd," ").concat(t),"".concat(Xd," ").concat(t," begins"),"".concat(Xd," ").concat(t," ends"))},bw={begin:JH,end:K6},hg=function(){};function tT(e){var t=e.getAttribute?e.getAttribute(Ou):null;return typeof t=="string"}function eG(e){var t=e.getAttribute?e.getAttribute(dw):null,n=e.getAttribute?e.getAttribute(hw):null;return t&&n}function tG(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(lt.replacementClass)}function nG(){if(lt.autoReplaceSvg===!0)return mg.replace;var e=mg[lt.autoReplaceSvg];return e||mg.replace}function rG(e){return un.createElementNS("http://www.w3.org/2000/svg",e)}function iG(e){return un.createElement(e)}function Z6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?rG:iG:n;if(typeof e=="string")return un.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var a=e.children||[];return a.forEach(function(s){i.appendChild(Z6(s,{ceFn:r}))}),i}function aG(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var mg={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(Z6(i),n)}),n.getAttribute(Ou)===null&<.keepOriginalSource){var r=un.createComment(aG(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~mw(n).indexOf(lt.replacementClass))return mg.replace(t);var i=new RegExp("".concat(lt.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var a=r[0].attributes.class.split(" ").reduce(function(u,d){return d===lt.replacementClass||d.match(i)?u.toSvg.push(d):u.toNode.push(d),u},{toNode:[],toSvg:[]});r[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",a.toNode.join(" "))}var s=r.map(function(u){return Bh(u)}).join(`
|
||
`);n.setAttribute(Ou,""),n.innerHTML=s}};function nT(e){e()}function X6(e,t){var n=typeof t=="function"?t:hg;if(e.length===0)n();else{var r=nT;lt.mutateApproach===lH&&(r=hl.requestAnimationFrame||nT),r(function(){var i=nG(),a=bw.begin("mutate");e.map(i),a(),n()})}}var _w=!1;function Q6(){_w=!0}function Ex(){_w=!1}var jg=null;function rT(e){if(FA&<.observeMutations){var t=e.treeCallback,n=t===void 0?hg:t,r=e.nodeCallback,i=r===void 0?hg:r,a=e.pseudoElementsCallback,s=a===void 0?hg:a,u=e.observeMutationsRoot,d=u===void 0?un:u;jg=new FA(function(f){if(!_w){var m=ml();yf(f).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!tT(p.addedNodes[0])&&(lt.searchPseudoElements&&s(p.target),n(p.target)),p.type==="attributes"&&p.target.parentNode&<.searchPseudoElements&&s([p.target],!0),p.type==="attributes"&&tT(p.target)&&~mH.indexOf(p.attributeName))if(p.attributeName==="class"&&eG(p.target)){var b=Vv(mw(p.target)),_=b.prefix,w=b.iconName;p.target.setAttribute(dw,_||m),w&&p.target.setAttribute(hw,w)}else tG(p.target)&&i(p.target)})}}),Zo&&jg.observe(d,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function oG(){jg&&jg.disconnect()}function sG(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var a=i.split(":"),s=a[0],u=a.slice(1);return s&&u.length>0&&(r[s]=u.join(":").trim()),r},{})),n}function lG(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Vv(mw(e));return i.prefix||(i.prefix=ml()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=RH(i.prefix,e.innerText)||vw(i.prefix,I6(e.innerText))),!i.iconName&<.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function uG(e){var t=yf(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function cG(){return{iconName:null,prefix:null,transform:Ha,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function iT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=lG(e),r=n.iconName,i=n.prefix,a=n.rest,s=uG(e),u=_x("parseNodeAttributes",{},e),d=t.styleParser?sG(e):[];return Ye({iconName:r,prefix:i,transform:Ha,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:d,attributes:s}},u)}var fG=ga.styles;function J6(e){var t=lt.autoReplaceSvg==="nest"?iT(e,{styleParser:!1}):iT(e);return~t.extra.classes.indexOf(M6)?pl("generateLayersText",e,t):pl("generateSvgReplacementMutation",e,t)}function dG(){return[].concat(ba(w6),ba(S6))}function aT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Zo)return Promise.resolve();var n=un.documentElement.classList,r=function(p){return n.add("".concat(qA,"-").concat(p))},i=function(p){return n.remove("".concat(qA,"-").concat(p))},a=lt.autoFetchSvg?dG():s6.concat(Object.keys(fG));a.includes("fa")||a.push("fa");var s=[".".concat(M6,":not([").concat(Ou,"])")].concat(a.map(function(m){return".".concat(m,":not([").concat(Ou,"])")})).join(", ");if(s.length===0)return Promise.resolve();var u=[];try{u=yf(e.querySelectorAll(s))}catch{}if(u.length>0)r("pending"),i("complete");else return Promise.resolve();var d=bw.begin("onTree"),f=u.reduce(function(m,p){try{var b=J6(p);b&&m.push(b)}catch(_){O6||_.name==="MissingIcon"&&console.error(_)}return m},[]);return new Promise(function(m,p){Promise.all(f).then(function(b){X6(b,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),d(),m()})}).catch(function(b){d(),p(b)})})}function hG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;J6(e).then(function(n){n&&X6([n],t)})}function mG(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:xx(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:xx(i||{})),e(r,Ye(Ye({},n),{},{mask:i}))}}var pG=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Ha:r,a=n.symbol,s=a===void 0?!1:a,u=n.mask,d=u===void 0?null:u,f=n.maskId,m=f===void 0?null:f,p=n.classes,b=p===void 0?[]:p,_=n.attributes,w=_===void 0?{}:_,x=n.styles,A=x===void 0?{}:x;if(t){var C=t.prefix,j=t.iconName,O=t.icon;return qv(Ye({type:"icon"},t),function(){return ju("beforeDOMElementCreation",{iconDefinition:t,params:n}),yw({icons:{main:wx(O),mask:d?wx(d.icon):{found:!1,width:null,height:null,icon:{}}},prefix:C,iconName:j,transform:Ye(Ye({},Ha),i),symbol:s,maskId:m,extra:{attributes:w,styles:A,classes:b}})})}},gG={mixout:function(){return{icon:mG(pG)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=aT,n.nodeCallback=hG,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?un:r,a=n.callback,s=a===void 0?function(){}:a;return aT(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,a=r.prefix,s=r.transform,u=r.symbol,d=r.mask,f=r.maskId,m=r.extra;return new Promise(function(p,b){Promise.all([Sx(i,a),d.iconName?Sx(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var w=zv(_,2),x=w[0],A=w[1];p([n,yw({icons:{main:x,mask:A},prefix:a,iconName:i,transform:s,symbol:u,maskId:f,extra:m,watchable:!0})])}).catch(b)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,a=n.main,s=n.transform,u=n.styles,d=Fv(u);d.length>0&&(i.style=d);var f;return pw(s)&&(f=pl("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),r.push(f||a.icon),{children:r,attributes:i}}}},vG={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,a=i===void 0?[]:i;return qv({type:"layer"},function(){ju("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(u){Array.isArray(u)?u.map(function(d){s=s.concat(d.abstract)}):s=s.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(lt.cssPrefix,"-layers")].concat(ba(a)).join(" ")},children:s}]})}}}},yG={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,a=i===void 0?[]:i,s=r.attributes,u=s===void 0?{}:s,d=r.styles,f=d===void 0?{}:d;return qv({type:"counter",content:n},function(){return ju("beforeDOMElementCreation",{content:n,params:r}),ZH({content:n.toString(),extra:{attributes:u,styles:f,classes:["".concat(lt.cssPrefix,"-layers-counter")].concat(ba(a))}})})}}}},bG={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,a=i===void 0?Ha:i,s=r.classes,u=s===void 0?[]:s,d=r.attributes,f=d===void 0?{}:d,m=r.styles,p=m===void 0?{}:m;return qv({type:"text",content:n},function(){return ju("beforeDOMElementCreation",{content:n,params:r}),JA({content:n,transform:Ye(Ye({},Ha),a),extra:{attributes:f,styles:p,classes:["".concat(lt.cssPrefix,"-layers-text")].concat(ba(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,a=r.extra,s=null,u=null;if(a6){var d=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/d,u=f.height/d}return Promise.resolve([n,JA({content:n.innerHTML,width:s,height:u,transform:i,extra:a,watchable:!0})])}}},eN=new RegExp('"',"ug"),oT=[1105920,1112319],sT=Ye(Ye(Ye(Ye({},{FontAwesome:{normal:"fas",400:"fas"}}),sq),oH),gq),Ax=Object.keys(sT).reduce(function(e,t){return e[t.toLowerCase()]=sT[t],e},{}),_G=Object.keys(Ax).reduce(function(e,t){var n=Ax[t];return e[t]=n[900]||ba(Object.entries(n))[0][1],e},{});function xG(e){var t=e.replace(eN,"");return I6(ba(t)[0]||"")}function wG(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(eN,""),i=r.codePointAt(0),a=i>=oT[0]&&i<=oT[1],s=r.length===2?r[0]===r[1]:!1;return a||s||t}function SG(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Ax[n]||{})[i]||_G[n]}function lT(e,t){var n="".concat(sH).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=yf(e.children),s=a.filter(function(V){return V.getAttribute(gx)===t})[0],u=hl.getComputedStyle(e,t),d=u.getPropertyValue("font-family"),f=d.match(dH),m=u.getPropertyValue("font-weight"),p=u.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&p!=="none"&&p!==""){var b=u.getPropertyValue("content"),_=SG(d,m),w=xG(b),x=f[0].startsWith("FontAwesome"),A=wG(u),C=vw(_,w),j=C;if(x){var O=NH(w);O.iconName&&O.prefix&&(C=O.iconName,_=O.prefix)}if(C&&!A&&(!s||s.getAttribute(dw)!==_||s.getAttribute(hw)!==j)){e.setAttribute(n,j),s&&e.removeChild(s);var N=cG(),B=N.extra;B.attributes[gx]=t,Sx(C,_).then(function(V){var Z=yw(Ye(Ye({},N),{},{icons:{main:V,mask:W6()},prefix:_,iconName:j,extra:B,watchable:!0})),X=un.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(X,e.firstChild):e.appendChild(X),X.outerHTML=Z.map(function(oe){return Bh(oe)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function CG(e){return Promise.all([lT(e,"::before"),lT(e,"::after")])}function EG(e){return e.parentNode!==document.head&&!~uH.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(gx)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var AG=function(t){return!!t&&T6.some(function(n){return t.includes(n)})},TG=function(t){if(!t)return[];for(var n=new Set,r=[t],i=[/(?=\s:)/,new RegExp("(?<=\\)\\)?[^,]*,)")],a=function(){var _=u[s];r=r.flatMap(function(w){return w.split(_).map(function(x){return x.replace(/,\s*$/,"").trim()})})},s=0,u=i;s<u.length;s++)a();r=r.flatMap(function(b){return b.includes("(")?b:b.split(",").map(function(_){return _.trim()})});var d=dg(r),f;try{for(d.s();!(f=d.n()).done;){var m=f.value;if(AG(m)){var p=T6.reduce(function(b,_){return b.replace(_,"")},m);p!==""&&p!=="*"&&n.add(p)}}}catch(b){d.e(b)}finally{d.f()}return n};function uT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Zo){var n;if(t)n=e;else if(lt.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=dg(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;try{var u=dg(s.cssRules),d;try{for(u.s();!(d=u.n()).done;){var f=d.value,m=TG(f.selectorText),p=dg(m),b;try{for(p.s();!(b=p.n()).done;){var _=b.value;r.add(_)}}catch(x){p.e(x)}finally{p.f()}}}catch(x){u.e(x)}finally{u.f()}}catch(x){lt.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href," (").concat(x.message,`)
|
||
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(x){i.e(x)}finally{i.f()}if(!r.size)return;var w=Array.from(r).join(", ");try{n=e.querySelectorAll(w)}catch{}}return new Promise(function(x,A){var C=yf(n).filter(EG).map(CG),j=bw.begin("searchPseudoElements");Q6(),Promise.all(C).then(function(){j(),Ex(),x()}).catch(function(){j(),Ex(),A()})})}}var OG={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=uT,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?un:r;lt.searchPseudoElements&&uT(i)}}},cT=!1,jG={mixout:function(){return{dom:{unwatch:function(){Q6(),cT=!0}}}},hooks:function(){return{bootstrap:function(){rT(_x("mutationObserverCallbacks",{}))},noAuto:function(){oG()},watch:function(n){var r=n.observeMutationsRoot;cT?Ex():rT(_x("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},fT=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var a=i.toLowerCase().split("-"),s=a[0],u=a.slice(1).join("-");if(s&&u==="h")return r.flipX=!0,r;if(s&&u==="v")return r.flipY=!0,r;if(u=parseFloat(u),isNaN(u))return r;switch(s){case"grow":r.size=r.size+u;break;case"shrink":r.size=r.size-u;break;case"left":r.x=r.x-u;break;case"right":r.x=r.x+u;break;case"up":r.y=r.y-u;break;case"down":r.y=r.y+u;break;case"rotate":r.rotate=r.rotate+u;break}return r},n)},PG={mixout:function(){return{parse:{transform:function(n){return fT(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=fT(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,a=n.containerWidth,s=n.iconWidth,u={transform:"translate(".concat(a/2," 256)")},d="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),m="rotate(".concat(i.rotate," 0 0)"),p={transform:"".concat(d," ").concat(f," ").concat(m)},b={transform:"translate(".concat(s/2*-1," -256)")},_={outer:u,inner:p,path:b};return{tag:"g",attributes:Ye({},_.outer),children:[{tag:"g",attributes:Ye({},_.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Ye(Ye({},r.icon.attributes),_.path)}]}]}}}},Q1={x:0,y:0,width:"100%",height:"100%"};function dT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function MG(e){return e.tag==="g"?e.children:[e]}var RG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),a=i?Vv(i.split(" ").map(function(s){return s.trim()})):W6();return a.prefix||(a.prefix=ml()),n.mask=a,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,a=n.main,s=n.mask,u=n.maskId,d=n.transform,f=a.width,m=a.icon,p=s.width,b=s.icon,_=SH({transform:d,containerWidth:p,iconWidth:f}),w={tag:"rect",attributes:Ye(Ye({},Q1),{},{fill:"white"})},x=m.children?{children:m.children.map(dT)}:{},A={tag:"g",attributes:Ye({},_.inner),children:[dT(Ye({tag:m.tag,attributes:Ye(Ye({},m.attributes),_.path)},x))]},C={tag:"g",attributes:Ye({},_.outer),children:[A]},j="mask-".concat(u||GA()),O="clip-".concat(u||GA()),N={tag:"mask",attributes:Ye(Ye({},Q1),{},{id:j,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,C]},B={tag:"defs",children:[{tag:"clipPath",attributes:{id:O},children:MG(b)},N]};return r.push(B,{tag:"rect",attributes:Ye({fill:"currentColor","clip-path":"url(#".concat(O,")"),mask:"url(#".concat(j,")")},Q1)}),{children:r,attributes:i}}}},NG={provides:function(t){var n=!1;hl.matchMedia&&(n=hl.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Ye(Ye({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=Ye(Ye({},a),{},{attributeName:"opacity"}),u={tag:"circle",attributes:Ye(Ye({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||u.children.push({tag:"animate",attributes:Ye(Ye({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ye(Ye({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(u),r.push({tag:"path",attributes:Ye(Ye({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Ye(Ye({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Ye(Ye({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ye(Ye({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},LG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return n.symbol=a,n}}}},DG=[AH,gG,vG,yG,bG,OG,jG,PG,RG,NG,LG];$H(DG,{mixoutsTo:Ri});Ri.noAuto;Ri.config;Ri.library;Ri.dom;var Tx=Ri.parse;Ri.findIconDefinition;Ri.toHtml;var kG=Ri.icon;Ri.layer;Ri.text;Ri.counter;var J1={exports:{}},eb,hT;function IG(){if(hT)return eb;hT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return eb=e,eb}var tb,mT;function UG(){if(mT)return tb;mT=1;var e=IG();function t(){}function n(){}return n.resetWarningCache=t,tb=function(){function r(s,u,d,f,m,p){if(p!==e){var b=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 b.name="Invariant Violation",b}}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},tb}var pT;function BG(){return pT||(pT=1,J1.exports=UG()()),J1.exports}var zG=BG();const _t=ri(zG);var FG={};function Ox(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $G(e){if(Array.isArray(e))return e}function VG(e){if(Array.isArray(e))return Ox(e)}function rl(e,t,n){return(t=XG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],d=!0,f=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(d=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,i=m}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function GG(){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 WG(){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 gT(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 qa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gT(Object(n),!0).forEach(function(r){rl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YG(e,t){if(e==null)return{};var n,r,i=KG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function KG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vT(e,t){return $G(e)||HG(e,t)||tN(e,t)||GG()}function jx(e){return VG(e)||qG(e)||tN(e)||WG()}function ZG(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 XG(e){var t=ZG(e,"string");return typeof t=="symbol"?t:t+""}function Pg(e){"@babel/helpers - typeof";return Pg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pg(e)}function tN(e,t){if(e){if(typeof e=="string")return Ox(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ox(e,t):void 0}}var QG="7.0.0-alpha1",Px;try{var JG=require("@fortawesome/fontawesome-svg-core/package.json");Px=JG.version}catch{Px=FG.FA_VERSION||"7.0.0-alpha8"}function eW(e){var t=e.beat,n=e.fade,r=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,u=e.spin,d=e.spinPulse,f=e.spinReverse,m=e.pulse,p=e.fixedWidth,b=e.inverse,_=e.border,w=e.listItem,x=e.flip,A=e.size,C=e.rotation,j=e.pull,O=e.swapOpacity,N=e.rotateBy,B=e.widthAuto,V=tW(Px,QG),Z=rl(rl(rl(rl(rl(rl({"fa-beat":t,"fa-fade":n,"fa-beat-fade":r,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":u,"fa-spin-reverse":f,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":p,"fa-inverse":b,"fa-border":_,"fa-li":w,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},"fa-".concat(A),typeof A<"u"&&A!==null),"fa-rotate-".concat(C),typeof C<"u"&&C!==null&&C!==0),"fa-pull-".concat(j),typeof j<"u"&&j!==null),"fa-swap-opacity",O),"fa-rotate-by",V&&N),"fa-width-auto",V&&B);return Object.keys(Z).map(function(X){return Z[X]?X:null}).filter(function(X){return X})}function tW(e,t){for(var n=e.split("-"),r=vT(n,2),i=r[0],a=r[1],s=t.split("-"),u=vT(s,2),d=u[0],f=u[1],m=i.split("."),p=d.split("."),b=0;b<Math.max(m.length,p.length);b++){var _=m[b]||"0",w=p[b]||"0",x=parseInt(_,10),A=parseInt(w,10);if(x!==A)return x>A}for(var C=0;C<Math.max(m.length,p.length);C++){var j=m[C]||"0",O=p[C]||"0";if(j!==O&&j.length!==O.length)return j.length<O.length}return!(a&&!f)}function nW(e){return e=e-0,e===e}function nN(e){return nW(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var rW=["style"];function iW(e){return e.charAt(0).toUpperCase()+e.slice(1)}function aW(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=nN(n.slice(0,r)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[iW(i)]=a:t[i]=a,t},{})}function rN(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(d){return rN(e,d)}),i=Object.keys(t.attributes||{}).reduce(function(d,f){var m=t.attributes[f];switch(f){case"class":d.attrs.className=m,delete t.attributes.class;break;case"style":d.attrs.style=aW(m);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?d.attrs[f.toLowerCase()]=m:d.attrs[nN(f)]=m}return d},{attrs:{}}),a=n.style,s=a===void 0?{}:a,u=YG(n,rW);return i.attrs.style=qa(qa({},i.attrs.style),s),e.apply(void 0,[t.tag,qa(qa({},i.attrs),u)].concat(jx(r)))}var iN=!1;try{iN=!0}catch{}function oW(){if(!iN&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function yT(e){if(e&&Pg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Tx.icon)return Tx.icon(e);if(e===null)return null;if(e&&Pg(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 nb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?rl({},e,t):{}}var bT={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,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,widthAuto:!1},We=Xc.forwardRef(function(e,t){var n=qa(qa({},bT),e),r=n.icon,i=n.mask,a=n.symbol,s=n.className,u=n.title,d=n.titleId,f=n.maskId,m=yT(r),p=nb("classes",[].concat(jx(eW(n)),jx((s||"").split(" ")))),b=nb("transform",typeof n.transform=="string"?Tx.transform(n.transform):n.transform),_=nb("mask",yT(i)),w=kG(m,qa(qa(qa(qa({},p),b),_),{},{symbol:a,title:u,titleId:d,maskId:f}));if(!w)return oW("Could not find icon",m),null;var x=w.abstract,A={ref:t};return Object.keys(n).forEach(function(C){bT.hasOwnProperty(C)||(A[C]=n[C])}),sW(x[0],A)});We.displayName="FontAwesomeIcon";We.propTypes={beat:_t.bool,border:_t.bool,beatFade:_t.bool,bounce:_t.bool,className:_t.string,fade:_t.bool,flash:_t.bool,mask:_t.oneOfType([_t.object,_t.array,_t.string]),maskId:_t.string,fixedWidth:_t.bool,inverse:_t.bool,flip:_t.oneOf([!0,!1,"horizontal","vertical","both"]),icon:_t.oneOfType([_t.object,_t.array,_t.string]),listItem:_t.bool,pull:_t.oneOf(["right","left"]),pulse:_t.bool,rotation:_t.oneOf([0,90,180,270]),rotateBy:_t.bool,shake:_t.bool,size:_t.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:_t.bool,spinPulse:_t.bool,spinReverse:_t.bool,symbol:_t.oneOfType([_t.bool,_t.string]),title:_t.string,titleId:_t.string,transform:_t.oneOfType([_t.string,_t.object]),swapOpacity:_t.bool,widthAuto:_t.bool};var sW=rN.bind(null,Xc.createElement);function Hv(){return typeof window<"u"}function bf(e){return aN(e)?(e.nodeName||"").toLowerCase():"#document"}function Si(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xo(e){var t;return(t=(aN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function aN(e){return Hv()?e instanceof Node||e instanceof Si(e).Node:!1}function yr(e){return Hv()?e instanceof Element||e instanceof Si(e).Element:!1}function Ai(e){return Hv()?e instanceof HTMLElement||e instanceof Si(e).HTMLElement:!1}function Mx(e){return!Hv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Si(e).ShadowRoot}const lW=new Set(["inline","contents"]);function zh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=_a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lW.has(i)}const uW=new Set(["table","td","th"]);function cW(e){return uW.has(bf(e))}const fW=[":popover-open",":modal"];function Gv(e){return fW.some(t=>{try{return e.matches(t)}catch{return!1}})}const dW=["transform","translate","scale","rotate","perspective"],hW=["transform","translate","scale","rotate","perspective","filter"],mW=["paint","layout","strict","content"];function xw(e){const t=ww(),n=yr(e)?_a(e):e;return dW.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||hW.some(r=>(n.willChange||"").includes(r))||mW.some(r=>(n.contain||"").includes(r))}function pW(e){let t=gl(e);for(;Ai(t)&&!Jc(t);){if(xw(t))return t;if(Gv(t))return null;t=gl(t)}return null}function ww(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gW=new Set(["html","body","#document"]);function Jc(e){return gW.has(bf(e))}function _a(e){return Si(e).getComputedStyle(e)}function Wv(e){return yr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gl(e){if(bf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mx(e)&&e.host||Xo(e);return Mx(t)?t.host:t}function oN(e){const t=gl(e);return Jc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ai(t)&&zh(t)?t:oN(t)}function sN(e,t,n){var r;t===void 0&&(t=[]);const i=oN(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Si(i);return a?(Rx(s),t.concat(s,s.visualViewport||[],zh(i)?i:[],[])):t.concat(i,sN(i,[]))}function Rx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const vW=["top","right","bottom","left"],_T=["start","end"],xT=vW.reduce((e,t)=>e.concat(t,t+"-"+_T[0],t+"-"+_T[1]),[]),ph=Math.min,Hc=Math.max,Mg=Math.round,Wa=e=>({x:e,y:e}),yW={left:"right",right:"left",bottom:"top",top:"bottom"},bW={start:"end",end:"start"};function _W(e,t,n){return Hc(e,ph(t,n))}function Fh(e,t){return typeof e=="function"?e(t):e}function vl(e){return e.split("-")[0]}function Ya(e){return e.split("-")[1]}function xW(e){return e==="x"?"y":"x"}function Sw(e){return e==="y"?"height":"width"}const wW=new Set(["top","bottom"]);function gu(e){return wW.has(vl(e))?"y":"x"}function Cw(e){return xW(gu(e))}function lN(e,t,n){n===void 0&&(n=!1);const r=Ya(e),i=Cw(e),a=Sw(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ng(s)),[s,Ng(s)]}function SW(e){const t=Ng(e);return[Rg(e),t,Rg(t)]}function Rg(e){return e.replace(/start|end/g,t=>bW[t])}const wT=["left","right"],ST=["right","left"],CW=["top","bottom"],EW=["bottom","top"];function AW(e,t,n){switch(e){case"top":case"bottom":return n?t?ST:wT:t?wT:ST;case"left":case"right":return t?CW:EW;default:return[]}}function TW(e,t,n,r){const i=Ya(e);let a=AW(vl(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(Rg)))),a}function Ng(e){return e.replace(/left|right|bottom|top/g,t=>yW[t])}function OW(e){return{top:0,right:0,bottom:0,left:0,...e}}function uN(e){return typeof e!="number"?OW(e):{top:e,right:e,bottom:e,left:e}}function Lg(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const jW="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function PW(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mx(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function kp(e){return e?.ownerDocument||document}function MW(e){return Ai(e)&&e.matches(jW)}function gh(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var RW=typeof document<"u",NW=function(){},yl=RW?T.useLayoutEffect:NW;const LW={...F2};function sl(e){const t=T.useRef(e);return yl(()=>{t.current=e}),t}const DW=LW.useInsertionEffect,kW=DW||(e=>e());function Qd(e){const t=T.useRef(()=>{});return kW(()=>{t.current=e}),T.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function CT(e,t,n){let{reference:r,floating:i}=e;const a=gu(t),s=Cw(t),u=Sw(s),d=vl(t),f=a==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,b=r[u]/2-i[u]/2;let _;switch(d){case"top":_={x:m,y:r.y-i.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:p};break;case"left":_={x:r.x-i.width,y:p};break;default:_={x:r.x,y:r.y}}switch(Ya(t)){case"start":_[s]-=b*(n&&f?-1:1);break;case"end":_[s]+=b*(n&&f?-1:1);break}return _}const IW=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,u=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=CT(f,r,d),b=r,_={},w=0;for(let x=0;x<u.length;x++){const{name:A,fn:C}=u[x],{x:j,y:O,data:N,reset:B}=await C({x:m,y:p,initialPlacement:r,placement:b,strategy:i,middlewareData:_,rects:f,platform:s,elements:{reference:e,floating:t}});m=j??m,p=O??p,_={..._,[A]:{..._[A],...N}},B&&w<=50&&(w++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(f=B.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):B.rects),{x:m,y:p}=CT(f,b,d)),x=-1)}return{x:m,y:p,placement:b,strategy:i,middlewareData:_}};async function cN(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:b=!1,padding:_=0}=Fh(t,e),w=uN(_),A=u[b?p==="floating"?"reference":"floating":p],C=Lg(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(A)))==null||n?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),j=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),N=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},B=Lg(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:j,offsetParent:O,strategy:d}):j);return{top:(C.top-B.top+w.top)/N.y,bottom:(B.bottom-C.bottom+w.bottom)/N.y,left:(C.left-B.left+w.left)/N.x,right:(B.right-C.right+w.right)/N.x}}const UW=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=Fh(e,t)||{};if(f==null)return{};const p=uN(m),b={x:n,y:r},_=Cw(i),w=Sw(_),x=await s.getDimensions(f),A=_==="y",C=A?"top":"left",j=A?"bottom":"right",O=A?"clientHeight":"clientWidth",N=a.reference[w]+a.reference[_]-b[_]-a.floating[w],B=b[_]-a.reference[_],V=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let Z=V?V[O]:0;(!Z||!await(s.isElement==null?void 0:s.isElement(V)))&&(Z=u.floating[O]||a.floating[w]);const X=N/2-B/2,oe=Z/2-x[w]/2-1,ee=ph(p[C],oe),J=ph(p[j],oe),ne=ee,he=Z-x[w]-J,Q=Z/2-x[w]/2+X,se=_W(ne,Q,he),Y=!d.arrow&&Ya(i)!=null&&Q!==se&&a.reference[w]/2-(Q<ne?ee:J)-x[w]/2<0,U=Y?Q<ne?Q-ne:Q-he:0;return{[_]:b[_]+U,data:{[_]:se,centerOffset:Q-se-U,...Y&&{alignmentOffset:U}},reset:Y}}});function BW(e,t,n){return(e?[...n.filter(i=>Ya(i)===e),...n.filter(i=>Ya(i)!==e)]:n.filter(i=>vl(i)===i)).filter(i=>e?Ya(i)===e||(t?Rg(i)!==i:!1):!0)}const zW=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:s,placement:u,platform:d,elements:f}=t,{crossAxis:m=!1,alignment:p,allowedPlacements:b=xT,autoAlignment:_=!0,...w}=Fh(e,t),x=p!==void 0||b===xT?BW(p||null,_,b):b,A=await cN(t,w),C=((n=s.autoPlacement)==null?void 0:n.index)||0,j=x[C];if(j==null)return{};const O=lN(j,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(u!==j)return{reset:{placement:x[0]}};const N=[A[vl(j)],A[O[0]],A[O[1]]],B=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:j,overflows:N}],V=x[C+1];if(V)return{data:{index:C+1,overflows:B},reset:{placement:V}};const Z=B.map(ee=>{const J=Ya(ee.placement);return[ee.placement,J&&m?ee.overflows.slice(0,2).reduce((ne,he)=>ne+he,0):ee.overflows[0],ee.overflows]}).sort((ee,J)=>ee[1]-J[1]),oe=((i=Z.filter(ee=>ee[2].slice(0,Ya(ee[0])?2:3).every(J=>J<=0))[0])==null?void 0:i[0])||Z[0][0];return oe!==u?{data:{index:C+1,overflows:B},reset:{placement:oe}}:{}}}},FW=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...A}=Fh(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const C=vl(i),j=gu(u),O=vl(u)===u,N=await(d.isRTL==null?void 0:d.isRTL(f.floating)),B=b||(O||!x?[Ng(u)]:SW(u)),V=w!=="none";!b&&V&&B.push(...TW(u,x,w,N));const Z=[u,...B],X=await cN(t,A),oe=[];let ee=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&oe.push(X[C]),p){const Q=lN(i,s,N);oe.push(X[Q[0]],X[Q[1]])}if(ee=[...ee,{placement:i,overflows:oe}],!oe.every(Q=>Q<=0)){var J,ne;const Q=(((J=a.flip)==null?void 0:J.index)||0)+1,se=Z[Q];if(se&&(!(p==="alignment"?j!==gu(se):!1)||ee.every(I=>I.overflows[0]>0&&gu(I.placement)===j)))return{data:{index:Q,overflows:ee},reset:{placement:se}};let Y=(ne=ee.filter(U=>U.overflows[0]<=0).sort((U,I)=>U.overflows[1]-I.overflows[1])[0])==null?void 0:ne.placement;if(!Y)switch(_){case"bestFit":{var he;const U=(he=ee.filter(I=>{if(V){const z=gu(I.placement);return z===j||z==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(z=>z>0).reduce((z,M)=>z+M,0)]).sort((I,z)=>I[1]-z[1])[0])==null?void 0:he[0];U&&(Y=U);break}case"initialPlacement":Y=u;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}},$W=new Set(["left","top"]);async function VW(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=vl(n),u=Ya(n),d=gu(n)==="y",f=$W.has(s)?-1:1,m=a&&d?-1:1,p=Fh(t,e);let{mainAxis:b,crossAxis:_,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof w=="number"&&(_=u==="end"?w*-1:w),d?{x:_*m,y:b*f}:{x:b*f,y:_*m}}const qW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:u}=t,d=await VW(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}};function fN(e){const t=_a(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ai(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=Mg(n)!==a||Mg(r)!==s;return u&&(n=a,r=s),{width:n,height:r,$:u}}function dN(e){return yr(e)?e:e.contextElement}function Gc(e){const t=dN(e);if(!Ai(t))return Wa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=fN(t);let s=(a?Mg(n.width):n.width)/r,u=(a?Mg(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const HW=Wa(0);function hN(e){const t=Si(e);return!ww()||!t.visualViewport?HW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function GW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Si(e)?!1:t}function vh(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=dN(e);let s=Wa(1);t&&(r?yr(r)&&(s=Gc(r)):s=Gc(e));const u=GW(a,n,r)?hN(a):Wa(0);let d=(i.left+u.x)/s.x,f=(i.top+u.y)/s.y,m=i.width/s.x,p=i.height/s.y;if(a){const b=Si(a),_=r&&yr(r)?Si(r):r;let w=b,x=Rx(w);for(;x&&r&&_!==w;){const A=Gc(x),C=x.getBoundingClientRect(),j=_a(x),O=C.left+(x.clientLeft+parseFloat(j.paddingLeft))*A.x,N=C.top+(x.clientTop+parseFloat(j.paddingTop))*A.y;d*=A.x,f*=A.y,m*=A.x,p*=A.y,d+=O,f+=N,w=Si(x),x=Rx(w)}}return Lg({width:m,height:p,x:d,y:f})}function Ew(e,t){const n=Wv(e).scrollLeft;return t?t.left+n:vh(Xo(e)).left+n}function mN(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Ew(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function WW(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=Xo(r),u=t?Gv(t.floating):!1;if(r===s||u&&a)return n;let d={scrollLeft:0,scrollTop:0},f=Wa(1);const m=Wa(0),p=Ai(r);if((p||!p&&!a)&&((bf(r)!=="body"||zh(s))&&(d=Wv(r)),Ai(r))){const _=vh(r);f=Gc(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const b=s&&!p&&!a?mN(s,d,!0):Wa(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+b.x,y:n.y*f.y-d.scrollTop*f.y+m.y+b.y}}function YW(e){return Array.from(e.getClientRects())}function KW(e){const t=Xo(e),n=Wv(e),r=e.ownerDocument.body,i=Hc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Hc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ew(e);const u=-n.scrollTop;return _a(r).direction==="rtl"&&(s+=Hc(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:u}}function ZW(e,t){const n=Si(e),r=Xo(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,u=0,d=0;if(i){a=i.width,s=i.height;const f=ww();(!f||f&&t==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:u,y:d}}const XW=new Set(["absolute","fixed"]);function QW(e,t){const n=vh(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ai(e)?Gc(e):Wa(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,d=i*a.x,f=r*a.y;return{width:s,height:u,x:d,y:f}}function ET(e,t,n){let r;if(t==="viewport")r=ZW(e,n);else if(t==="document")r=KW(Xo(e));else if(yr(t))r=QW(t,n);else{const i=hN(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Lg(r)}function pN(e,t){const n=gl(e);return n===t||!yr(n)||Jc(n)?!1:_a(n).position==="fixed"||pN(n,t)}function JW(e,t){const n=t.get(e);if(n)return n;let r=sN(e,[]).filter(u=>yr(u)&&bf(u)!=="body"),i=null;const a=_a(e).position==="fixed";let s=a?gl(e):e;for(;yr(s)&&!Jc(s);){const u=_a(s),d=xw(s);!d&&u.position==="fixed"&&(i=null),(a?!d&&!i:!d&&u.position==="static"&&!!i&&XW.has(i.position)||zh(s)&&!d&&pN(e,s))?r=r.filter(m=>m!==s):i=u,s=gl(s)}return t.set(e,r),r}function eY(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Gv(t)?[]:JW(t,this._c):[].concat(n),r],u=s[0],d=s.reduce((f,m)=>{const p=ET(t,m,i);return f.top=Hc(p.top,f.top),f.right=ph(p.right,f.right),f.bottom=ph(p.bottom,f.bottom),f.left=Hc(p.left,f.left),f},ET(t,u,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function tY(e){const{width:t,height:n}=fN(e);return{width:t,height:n}}function nY(e,t,n){const r=Ai(t),i=Xo(t),a=n==="fixed",s=vh(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const d=Wa(0);function f(){d.x=Ew(i)}if(r||!r&&!a)if((bf(t)!=="body"||zh(i))&&(u=Wv(t)),r){const _=vh(t,!0,a,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else i&&f();a&&!r&&i&&f();const m=i&&!r&&!a?mN(i,u):Wa(0),p=s.left+u.scrollLeft-d.x-m.x,b=s.top+u.scrollTop-d.y-m.y;return{x:p,y:b,width:s.width,height:s.height}}function rb(e){return _a(e).position==="static"}function AT(e,t){if(!Ai(e)||_a(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xo(e)===n&&(n=n.ownerDocument.body),n}function gN(e,t){const n=Si(e);if(Gv(e))return n;if(!Ai(e)){let i=gl(e);for(;i&&!Jc(i);){if(yr(i)&&!rb(i))return i;i=gl(i)}return n}let r=AT(e,t);for(;r&&cW(r)&&rb(r);)r=AT(r,t);return r&&Jc(r)&&rb(r)&&!xw(r)?n:r||pW(e)||n}const rY=async function(e){const t=this.getOffsetParent||gN,n=this.getDimensions,r=await n(e.floating);return{reference:nY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function iY(e){return _a(e).direction==="rtl"}const aY={convertOffsetParentRelativeRectToViewportRelativeRect:WW,getDocumentElement:Xo,getClippingRect:eY,getOffsetParent:gN,getElementRects:rY,getClientRects:YW,getDimensions:tY,getScale:Gc,isElement:yr,isRTL:iY},oY=qW,sY=zW,lY=FW,TT=UW,uY=(e,t,n)=>{const r=new Map,i={platform:aY,...n},a={...i.platform,_c:r};return IW(e,t,{...i,platform:a})};var cY=typeof document<"u",fY=function(){},pg=cY?T.useLayoutEffect:fY;function Dg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Dg(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Dg(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function vN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function OT(e,t){const n=vN(e);return Math.round(t*n)/n}function ib(e){const t=T.useRef(e);return pg(()=>{t.current=e}),t}function dY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,p]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,_]=T.useState(r);Dg(b,r)||_(r);const[w,x]=T.useState(null),[A,C]=T.useState(null),j=T.useCallback(I=>{I!==V.current&&(V.current=I,x(I))},[]),O=T.useCallback(I=>{I!==Z.current&&(Z.current=I,C(I))},[]),N=a||w,B=s||A,V=T.useRef(null),Z=T.useRef(null),X=T.useRef(m),oe=d!=null,ee=ib(d),J=ib(i),ne=ib(f),he=T.useCallback(()=>{if(!V.current||!Z.current)return;const I={placement:t,strategy:n,middleware:b};J.current&&(I.platform=J.current),uY(V.current,Z.current,I).then(z=>{const M={...z,isPositioned:ne.current!==!1};Q.current&&!Dg(X.current,M)&&(X.current=M,Dh.flushSync(()=>{p(M)}))})},[b,t,n,J,ne]);pg(()=>{f===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[f]);const Q=T.useRef(!1);pg(()=>(Q.current=!0,()=>{Q.current=!1}),[]),pg(()=>{if(N&&(V.current=N),B&&(Z.current=B),N&&B){if(ee.current)return ee.current(N,B,he);he()}},[N,B,he,ee,oe]);const se=T.useMemo(()=>({reference:V,floating:Z,setReference:j,setFloating:O}),[j,O]),Y=T.useMemo(()=>({reference:N,floating:B}),[N,B]),U=T.useMemo(()=>{const I={position:n,left:0,top:0};if(!Y.floating)return I;const z=OT(Y.floating,m.x),M=OT(Y.floating,m.y);return u?{...I,transform:"translate("+z+"px, "+M+"px)",...vN(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:M}},[n,u,Y.floating,m.x,m.y]);return T.useMemo(()=>({...m,update:he,refs:se,elements:Y,floatingStyles:U}),[m,he,se,Y,U])}const hY=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?TT({element:r.current,padding:i}).fn(n):{}:r?TT({element:r,padding:i}).fn(n):{}}}},mY=(e,t)=>({...oY(e),options:[e,t]}),pY=(e,t)=>({...lY(e),options:[e,t]}),gY=(e,t)=>({...sY(e),options:[e,t]}),vY=(e,t)=>({...hY(e),options:[e,t]}),yY="data-floating-ui-focusable",jT="active",PT="selected",bY={...F2};let MT=!1,_Y=0;const RT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+_Y++;function xY(){const[e,t]=T.useState(()=>MT?RT():void 0);return yl(()=>{e==null&&t(RT())},[]),T.useEffect(()=>{MT=!0},[]),e}const wY=bY.useId,SY=wY||xY;function CY(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const EY=T.createContext(null),AY=T.createContext(null),yN=()=>{var e;return((e=T.useContext(EY))==null?void 0:e.id)||null},bN=()=>T.useContext(AY);function TY(e){return"data-floating-ui-"+e}function ca(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const NT=TY("safe-polygon");function ab(e,t,n){if(n&&!gh(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function ob(e){return typeof e=="function"?e():e}function OY(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=e,{enabled:u=!0,delay:d=0,handleClose:f=null,mouseOnly:m=!1,restMs:p=0,move:b=!0}=t,_=bN(),w=yN(),x=sl(f),A=sl(d),C=sl(n),j=sl(p),O=T.useRef(),N=T.useRef(-1),B=T.useRef(),V=T.useRef(-1),Z=T.useRef(!0),X=T.useRef(!1),oe=T.useRef(()=>{}),ee=T.useRef(!1),J=Qd(()=>{var U;const I=(U=i.current.openEvent)==null?void 0:U.type;return I?.includes("mouse")&&I!=="mousedown"});T.useEffect(()=>{if(!u)return;function U(I){let{open:z}=I;z||(ca(N),ca(V),Z.current=!0,ee.current=!1)}return a.on("openchange",U),()=>{a.off("openchange",U)}},[u,a]),T.useEffect(()=>{if(!u||!x.current||!n)return;function U(z){J()&&r(!1,z,"hover")}const I=kp(s.floating).documentElement;return I.addEventListener("mouseleave",U),()=>{I.removeEventListener("mouseleave",U)}},[s.floating,n,r,u,x,J]);const ne=T.useCallback(function(U,I,z){I===void 0&&(I=!0),z===void 0&&(z="hover");const M=ab(A.current,"close",O.current);M&&!B.current?(ca(N),N.current=window.setTimeout(()=>r(!1,U,z),M)):I&&(ca(N),r(!1,U,z))},[A,r]),he=Qd(()=>{oe.current(),B.current=void 0}),Q=Qd(()=>{if(X.current){const U=kp(s.floating).body;U.style.pointerEvents="",U.removeAttribute(NT),X.current=!1}}),se=Qd(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);T.useEffect(()=>{if(!u)return;function U(W){if(ca(N),Z.current=!1,m&&!gh(O.current)||ob(j.current)>0&&!ab(A.current,"open"))return;const H=ab(A.current,"open",O.current);H?N.current=window.setTimeout(()=>{C.current||r(!0,W,"hover")},H):n||r(!0,W,"hover")}function I(W){if(se()){Q();return}oe.current();const H=kp(s.floating);if(ca(V),ee.current=!1,x.current&&i.current.floatingContext){n||ca(N),B.current=x.current({...i.current.floatingContext,tree:_,x:W.clientX,y:W.clientY,onClose(){Q(),he(),se()||ne(W,!0,"safe-polygon")}});const ue=B.current;H.addEventListener("mousemove",ue),oe.current=()=>{H.removeEventListener("mousemove",ue)};return}(O.current==="touch"?!PW(s.floating,W.relatedTarget):!0)&&ne(W)}function z(W){se()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:_,x:W.clientX,y:W.clientY,onClose(){Q(),he(),se()||ne(W)}})(W))}function M(){ca(N)}function D(W){se()||ne(W,!1)}if(yr(s.domReference)){const W=s.domReference,H=s.floating;return n&&W.addEventListener("mouseleave",z),b&&W.addEventListener("mousemove",U,{once:!0}),W.addEventListener("mouseenter",U),W.addEventListener("mouseleave",I),H&&(H.addEventListener("mouseleave",z),H.addEventListener("mouseenter",M),H.addEventListener("mouseleave",D)),()=>{n&&W.removeEventListener("mouseleave",z),b&&W.removeEventListener("mousemove",U),W.removeEventListener("mouseenter",U),W.removeEventListener("mouseleave",I),H&&(H.removeEventListener("mouseleave",z),H.removeEventListener("mouseenter",M),H.removeEventListener("mouseleave",D))}}},[s,u,e,m,b,ne,he,Q,r,n,C,_,A,x,i,se,j]),yl(()=>{var U;if(u&&n&&(U=x.current)!=null&&(U=U.__options)!=null&&U.blockPointerEvents&&J()){X.current=!0;const z=s.floating;if(yr(s.domReference)&&z){var I;const M=kp(s.floating).body;M.setAttribute(NT,"");const D=s.domReference,W=_==null||(I=_.nodesRef.current.find(H=>H.id===w))==null||(I=I.context)==null?void 0:I.elements.floating;return W&&(W.style.pointerEvents=""),M.style.pointerEvents="none",D.style.pointerEvents="auto",z.style.pointerEvents="auto",()=>{M.style.pointerEvents="",D.style.pointerEvents="",z.style.pointerEvents=""}}}},[u,n,w,s,_,x,J]),yl(()=>{n||(O.current=void 0,ee.current=!1,he(),Q())},[n,he,Q]),T.useEffect(()=>()=>{he(),ca(N),ca(V),Q()},[u,s.domReference,he,Q]);const Y=T.useMemo(()=>{function U(I){O.current=I.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(I){const{nativeEvent:z}=I;function M(){!Z.current&&!C.current&&r(!0,z,"hover")}m&&!gh(O.current)||n||ob(j.current)===0||ee.current&&I.movementX**2+I.movementY**2<2||(ca(V),O.current==="touch"?M():(ee.current=!0,V.current=window.setTimeout(M,ob(j.current))))}}},[m,r,n,C,j]);return T.useMemo(()=>u?{reference:Y}:{},[u,Y])}function LT(e){return Ai(e.target)&&e.target.tagName==="BUTTON"}function jY(e){return Ai(e.target)&&e.target.tagName==="A"}function DT(e){return MW(e)}function PY(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:s=!0,event:u="click",toggle:d=!0,ignoreMouse:f=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,b=T.useRef(),_=T.useRef(!1),w=T.useMemo(()=>({onPointerDown(x){b.current=x.pointerType},onMouseDown(x){const A=b.current;x.button===0&&u!=="click"&&(gh(A,!0)&&f||(n&&d&&(!(i.current.openEvent&&p)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const A=b.current;if(u==="mousedown"&&b.current){b.current=void 0;return}gh(A,!0)&&f||(n&&d&&(!(i.current.openEvent&&p)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){b.current=void 0,!(x.defaultPrevented||!m||LT(x))&&(x.key===" "&&!DT(a)&&(x.preventDefault(),_.current=!0),!jY(x)&&x.key==="Enter"&&r(!(n&&d),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!m||LT(x)||DT(a)||x.key===" "&&_.current&&(_.current=!1,r(!(n&&d),x.nativeEvent,"click"))}}),[i,a,u,f,m,r,n,p,d]);return T.useMemo(()=>s?{reference:w}:{},[s,w])}function MY(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=SY(),a=T.useRef({}),[s]=T.useState(()=>CY()),u=yN()!=null,[d,f]=T.useState(r.reference),m=Qd((_,w,x)=>{a.current.openEvent=_?w:void 0,s.emit("openchange",{open:_,event:w,reason:x,nested:u}),n?.(_,w,x)}),p=T.useMemo(()=>({setPositionReference:f}),[]),b=T.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return T.useMemo(()=>({dataRef:a,open:t,onOpenChange:m,elements:b,events:s,floatingId:i,refs:p}),[t,m,b,s,i,p])}function _N(e){e===void 0&&(e={});const{nodeId:t}=e,n=MY({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=T.useState(null),[u,d]=T.useState(null),m=i?.domReference||a,p=T.useRef(null),b=bN();yl(()=>{m&&(p.current=m)},[m]);const _=dY({...e,elements:{...i,...u&&{reference:u}}}),w=T.useCallback(O=>{const N=yr(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;d(N),_.refs.setReference(N)},[_.refs]),x=T.useCallback(O=>{(yr(O)||O===null)&&(p.current=O,s(O)),(yr(_.refs.reference.current)||_.refs.reference.current===null||O!==null&&!yr(O))&&_.refs.setReference(O)},[_.refs]),A=T.useMemo(()=>({..._.refs,setReference:x,setPositionReference:w,domReference:p}),[_.refs,x,w]),C=T.useMemo(()=>({..._.elements,domReference:m}),[_.elements,m]),j=T.useMemo(()=>({..._,...r,refs:A,elements:C,nodeId:t}),[_,A,C,t,r]);return yl(()=>{r.dataRef.current.floatingContext=j;const O=b?.nodesRef.current.find(N=>N.id===t);O&&(O.context=j)}),T.useMemo(()=>({..._,context:j,refs:A,elements:C}),[_,A,C,j])}function sb(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[jT]:s,[PT]:u,...d}=e;a=d}return{...n==="floating"&&{tabIndex:-1,[yY]:""},...a,...t.map(s=>{const u=s?s[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((s,u)=>(u&&Object.entries(u).forEach(d=>{let[f,m]=d;if(!(i&&[jT,PT].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof m=="function"){var p;(p=r.get(f))==null||p.push(m),s[f]=function(){for(var b,_=arguments.length,w=new Array(_),x=0;x<_;x++)w[x]=arguments[x];return(b=r.get(f))==null?void 0:b.map(A=>A(...w)).find(A=>A!==void 0)}}}else s[f]=m}),s),{})}}function xN(e){e===void 0&&(e=[]);const t=e.map(u=>u?.reference),n=e.map(u=>u?.floating),r=e.map(u=>u?.item),i=T.useCallback(u=>sb(u,e,"reference"),t),a=T.useCallback(u=>sb(u,e,"floating"),n),s=T.useCallback(u=>sb(u,e,"item"),r);return T.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const kT=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Dc(e,t){return typeof e=="function"?e(t):e}function RY(e,t){const[n,r]=T.useState(e);return e&&!n&&r(!0),T.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function NY(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,s=(typeof i=="number"?i:i.close)||0,[u,d]=T.useState("unmounted"),f=RY(n,s);return!f&&u==="close"&&d("unmounted"),yl(()=>{if(r){if(n){d("initial");const m=requestAnimationFrame(()=>{Dh.flushSync(()=>{d("open")})});return()=>{cancelAnimationFrame(m)}}d("close")}},[n,r]),{isMounted:f,status:u}}function LY(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:s=250}=t,u=e.placement,d=u.split("-")[0],f=T.useMemo(()=>({side:d,placement:u}),[d,u]),m=typeof s=="number",p=(m?s:s.open)||0,b=(m?s:s.close)||0,[_,w]=T.useState(()=>({...Dc(a,f),...Dc(n,f)})),{isMounted:x,status:A}=NY(e,{duration:s}),C=sl(n),j=sl(r),O=sl(i),N=sl(a);return yl(()=>{const B=Dc(C.current,f),V=Dc(O.current,f),Z=Dc(N.current,f),X=Dc(j.current,f)||Object.keys(B).reduce((oe,ee)=>(oe[ee]="",oe),{});if(A==="initial"&&w(oe=>({transitionProperty:oe.transitionProperty,...Z,...B})),A==="open"&&w({transitionProperty:Object.keys(X).map(kT).join(","),transitionDuration:p+"ms",...Z,...X}),A==="close"){const oe=V||B;w({transitionProperty:Object.keys(oe).map(kT).join(","),transitionDuration:b+"ms",...Z,...oe})}},[b,O,C,j,N,p,A,f]),{isMounted:x,styles:_}}/*!
|
||
* Font Awesome Free 7.0.0 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 2025 Fonticons, Inc.
|
||
*/var wN={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M288 464L64 464c-8.8 0-16-7.2-16-16l0-224c0-8.8 7.2-16 16-16l48 0 0-48-48 0c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-48-48 0 0 48c0 8.8-7.2 16-16 16zM224 304c-8.8 0-16-7.2-16-16l0-224c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 224c0 8.8-7.2 16-16 16l-224 0zm-64-16c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L224 0c-35.3 0-64 28.7-64 64l0 224z"]},DY={prefix:"far",iconName:"image",icon:[448,512,[],"f03e","M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm128 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm136 72c8.5 0 16.4 4.5 20.7 11.8l80 136c4.4 7.4 4.4 16.6 .1 24.1S352.6 384 344 384l-240 0c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l17.2 24.6 46.5-79c4.3-7.3 12.2-11.8 20.7-11.8z"]},kY={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 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},IY={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zm387.3 11.3c6.2-6.2 6.2-16.4 0-22.6l-104-104c-4.6-4.6-11.5-5.9-17.4-3.5S256 145.5 256 152l0 72-104 0c-13.3 0-24 10.7-24 24l0 16c0 13.3 10.7 24 24 24l104 0 0 72c0 6.5 3.9 12.3 9.9 14.8s12.9 1.1 17.4-3.5l104-104z"]},UY=IY;const BY=({children:e,summary:t,summaryClasses:n,...r})=>{const i=T.useRef(null),[a,s]=T.useState(!1);return T.useEffect(()=>{const u=i.current,d=()=>s(!!u?.open);return u?.addEventListener("toggle",d),()=>u?.removeEventListener("toggle",d)},[]),v.jsxs("details",{ref:i,...r,children:[v.jsx("summary",{className:Ne("focus-ring px-1 -mx-1 rounded-sm",n),children:t}),a&&v.jsx("div",{className:"mt-3 flex flex-col gap-y-3",children:e})]})},zY=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:Ne("px-4 py-3 rounded-t-md","bg-lm-primary dark:bg-dm-primary border-b border-lm-border dark:border-dm-border",e),...t,ref:n})),FY=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:Ne("p-4 bg-lm-primary dark:bg-dm-primary first:rounded-t-md","first:rounded-t-md last:rounded-b-md",e),...t,ref:n})),$Y=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:Ne("px-4 py-3 rounded-b-md","bg-lm-primary dark:bg-dm-primary border-t border-lm-border dark:border-dm-border",e),...t,ref:n})),VY=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:Ne("group/card rounded-md shadow-md","border border-lm-border dark:border-dm-border bg-lm-primary dark:bg-dm-primary",e),...t,ref:n})),cn=Object.assign(VY,{Body:FY,Header:zY,Footer:$Y}),Mt=T.forwardRef(({bodyClassName:e,children:t,...n},r)=>{const{title:i,titleSize:a="md",...s}="title"in n?n:{...n,title:void 0,titleSize:void 0};return v.jsxs(cn,{...s,ref:r,children:[i&&v.jsxs(cn.Header,{children:[a==="lg"&&v.jsx("h4",{children:i}),a==="md"&&v.jsx("h5",{children:i}),a==="sm"&&v.jsx("h6",{children:i})]}),v.jsx(cn.Body,{className:e,children:t})]})});function qY({id:e,items:t,onSelectItem:n,onActiveItemChange:r,renderItem:i,className:a,noItemsMessage:s="No items",anchor:u,"aria-label":d="Items",...f}){const[m,p]=T.useState(0),b=T.useCallback(_=>{if(p(_),r){const[w,x]=[...t.entries()][_];r(w,x)}},[t,r]);return T.useEffect(()=>{const _=u?.current;if(!_)return;const w=x=>{["Enter","ArrowUp","ArrowDown"].includes(x.key)&&x.preventDefault(),x.key==="ArrowDown"?b(Math.min(m+1,t.size-1)):x.key==="ArrowUp"?b(Math.max(m-1,0)):x.key==="Enter"&&n([...t.values()][m])};return _.addEventListener("keydown",w),()=>_.removeEventListener("keydown",w)},[m,u,b,t,n]),v.jsxs(cn,{id:e,className:Ne("py-1 flex flex-col",a),role:"listbox","aria-orientation":"vertical","aria-label":d,...f,children:[t.size===0&&v.jsx("i",{role:"option","aria-disabled":!0,"aria-selected":!1,"data-testid":"no-items",className:"px-2 py-1",children:s}),[...t.entries()].map(([_,w],x)=>v.jsx("button",{id:`${e}_${_}`,type:"button",role:"option","aria-selected":x===m,className:Ne("px-2 py-1 text-left truncate",{"bg-lm-secondary dark:bg-dm-secondary":x===m}),tabIndex:-1,onClick:()=>n(w),onMouseOver:()=>b(x),children:i(w)},_))]})}const $h=T.createContext(void 0),_f=T.createContext({responsive:!0,size:"md"}),HY=({children:e,className:t})=>{const{responsive:n}=T.useContext(_f);return v.jsx($h.Provider,{value:{section:"head"},children:v.jsx("thead",{className:Ne({"hidden lg:table-header-group":n},t),children:e})})},GY=({children:e,className:t})=>{const{responsive:n}=T.useContext(_f);return v.jsx($h.Provider,{value:{section:"body"},children:v.jsx("tbody",{className:Ne({"lg:table-row-group flex flex-col gap-y-3":n},t),children:e})})},WY=({children:e,className:t})=>{const{responsive:n}=T.useContext(_f);return v.jsx($h.Provider,{value:{section:"footer"},children:v.jsx("tfoot",{className:Ne({"lg:table-row-group flex flex-col gap-y-3 mt-4":n},t),children:e})})},YY=({children:e,className:t,...n})=>{const r=T.useContext($h)?.section==="body",{responsive:i}=T.useContext(_f);return v.jsx("tr",{className:Ne("group",{"lg:table-row flex flex-col":i,"lg:border-0 border-y-2 border-lm-border dark:border-dm-border":i,"hover:bg-lm-primary dark:hover:bg-dm-primary":r,"group-[&]/card:hover:bg-lm-secondary dark:group-[&]/card:hover:bg-dm-secondary":r},t),...n,children:e})},KY=({children:e,className:t,columnName:n,type:r,...i})=>{const a=T.useContext($h),s=r??(a?.section!=="body"?"th":"td"),{responsive:u,size:d}=T.useContext(_f);return v.jsx(s,{"data-column":u?n:void 0,className:Ne("border-lm-border dark:border-dm-border",{"p-1":d==="sm","p-2":d==="md","p-3":d==="lg","border-b-1":!u,"block lg:table-cell not-last:border-b-1 lg:border-b-1":u,"text-left":s==="th","before:lg:hidden before:content-[attr(data-column)] before:font-bold before:mr-1":u&&s==="td"},t),...i,children:e})},ZY=({header:e,footer:t,children:n,responsive:r=!0,size:i="md",...a})=>v.jsx(_f.Provider,{value:{responsive:r,size:i},children:v.jsxs("table",{className:"w-full",...a,children:[v.jsx(HY,{children:e}),v.jsx(GY,{children:n}),t&&v.jsx(WY,{children:t})]})}),Ke=Object.assign(ZY,{Row:YY,Cell:KY}),Rt=T.forwardRef(({className:e,disabled:t,variant:n="primary",size:r="md",inline:i=!1,solid:a=!1,type:s="button",...u},d)=>{const f="to"in u&&typeof u.to=="string",m=f?Mr:"button",p=f?void 0:s;return v.jsx(m,{ref:d,className:Ne({"inline-flex":i,flex:!i},"gap-2 items-center justify-center","border rounded-md no-underline","transition-colors",{"focus-ring":n==="primary","focus-ring-secondary":n==="secondary","focus-ring-danger":n==="danger"},{"px-1.5 py-1 text-sm":r==="sm","px-3 py-1.5":r==="md","px-4 py-2 text-lg":r==="lg"},{"border-lm-brand dark:border-dm-brand":n==="primary","text-lm-brand dark:text-dm-brand":n==="primary"&&!a,"border-zinc-500":n==="secondary","text-zinc-500":n==="secondary"&&!a,"border-danger":n==="danger","text-danger":n==="danger"&&!a},a&&{"text-white":!0,"bg-lm-brand dark:bg-dm-brand":n==="primary","highlight:bg-lm-brand-dark dark:highlight:bg-dm-brand-dark":n==="primary","highlight:border-lm-brand-dark dark:highlight:border-dm-brand-dark":n==="primary","bg-zinc-500":n==="secondary","highlight:bg-zinc-600 highlight:border-zinc-600":n==="secondary","bg-danger":n==="danger","highlight:bg-danger-dark highlight:border-danger-dark":n==="danger"},!t&&{"highlight:text-white":!a,"highlight:bg-lm-brand dark:highlight:bg-dm-brand":n==="primary","highlight:bg-zinc-500":n==="secondary","highlight:bg-danger":n==="danger"},{"cursor-pointer":!t,"pointer-events-none opacity-65":t},e),disabled:f?void 0:t,"aria-disabled":f?t:void 0,type:p,...u})}),SN=T.forwardRef(({className:e,onChange:t,...n},r)=>{const i=T.useCallback(a=>t?.(a.target.checked,a),[t]);return v.jsx("input",{ref:r,type:"checkbox",className:Ne("appearance-none focus-ring cursor-[inherit]","border-1 border-lm-input-border dark:border-dm-input-border","bg-lm-primary dark:bg-dm-primary checked:bg-lm-brand dark:checked:bg-dm-brand bg-no-repeat","group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input",e),onChange:i,...n})}),Aw=T.forwardRef(({className:e,...t},n)=>v.jsx(SN,{ref:n,className:Ne("rounded-sm w-4 h-4 checked:bg-(image:--tick) bg-center",e),...t})),Pu=T.forwardRef(({onClick:e,className:t,label:n="Close",size:r="lg",solid:i},a)=>v.jsx("button",{ref:a,type:"button",onClick:e,className:Ne("rounded-md focus-ring cursor-pointer",{"opacity-50 highlight:opacity-80 transition-opacity":!i},t),"aria-label":n,children:v.jsx(We,{icon:sw,size:r==="lg"?"xl":r==="md"?"lg":void 0})})),Jr=T.forwardRef(({borderless:e=!1,size:t="md",feedback:n,variant:r="default",className:i,disabled:a,...s},u)=>v.jsx("input",{ref:u,className:Ne("outline-none",r==="default"&&["w-full",{"focus-ring":!n,"focus-ring-danger":n==="error","px-2 py-1 text-sm":t==="sm","px-3 py-1.5":t==="md","px-4 py-2 text-xl":t==="lg","rounded-md border":!e,"border-lm-input-border dark:border-dm-input-border":!e&&!n,"border-danger":!e&&n==="error","bg-lm-disabled-input dark:bg-dm-disabled-input":a,"bg-lm-primary dark:bg-dm-primary":!a,"group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!a}],i),disabled:a,...s})),Sa=({required:e,children:t,className:n,...r})=>v.jsxs("label",{className:Ne("cursor-pointer",n),...r,children:[t,e&&v.jsx("span",{className:"text-danger ml-1","data-testid":"required-indicator",children:"*"})]}),Tw=({children:e,helpText:t,error:n,"data-testid":r})=>v.jsxs("div",{className:"flex flex-col gap-1","data-testid":r,children:[e,t&&v.jsx("small",{"data-testid":r?`${r}-help-text`:"help-text",className:"text-gray-500 dark:text-gray-400",children:t}),n&&v.jsx("span",{"data-testid":r?`${r}-error`:"error",className:"text-danger",children:n})]}),ni=T.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":s,...u},d)=>{const f=T.useId();return v.jsxs(Tw,{error:i,helpText:a,"data-testid":s,children:[v.jsx(Sa,{htmlFor:f,required:n,children:e}),v.jsx(Jr,{ref:d,id:f,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),XY=T.forwardRef(({containerClassName:e,className:t,size:n,...r},i)=>{const{flag:a,toggle:s,setToFalse:u}=Sn(),d=T.useRef(null),f=T.useCallback(({relatedTarget:m})=>{d.current?.contains(m)||u()},[d,u]);return v.jsxs("div",{className:Ne("group relative",e),ref:d,onBlurCapture:f,children:[v.jsx(Jr,{ref:i,type:a?"text":"password",className:Ne({"pr-10":n!=="sm","pr-8":n==="sm"},t),size:n,"data-testid":"input",...r}),v.jsx("button",{type:"button",onClick:s,title:a?"Hide password":"Show password","aria-label":a?"Hide password":"Show password",className:Ne("absolute top-[50%] translate-y-[-50%] px-1 cursor-pointer","text-placeholder hover:text-lm-text hover:dark:text-dm-text transition-colors",{"right-1.5":n!=="sm","scale-85 right-1":n==="sm"}),tabIndex:-1,children:v.jsx(We,{icon:a?bV:z$})})]})}),QY=T.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":s,...u},d)=>{const f=T.useId();return v.jsxs(Tw,{error:i,helpText:a,"data-testid":s,children:[v.jsx(Sa,{htmlFor:f,required:n,children:e}),v.jsx(XY,{ref:d,id:f,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),JY=T.forwardRef(({className:e,size:t="md",feedback:n,disabled:r,...i},a)=>v.jsx("select",{ref:a,className:Ne("w-full rounded-md border appearance-none pr-9","bg-(image:--chevron-down) bg-no-repeat bg-position-[right_0.75rem_center] bg-size-[16px_12px]",{"focus-ring":!n,"focus-ring-danger":n==="error","border-lm-input-border dark:border-dm-input-border":!n,"border-danger":n==="error","pl-2 py-1 text-sm":t==="sm","pl-3 py-1.5":t==="md","pl-4 py-2 text-xl":t==="lg","bg-lm-disabled-input dark:bg-dm-disabled-input":r,"bg-lm-primary dark:bg-dm-primary group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!r},e),disabled:r,...i})),Ow=T.forwardRef(({selectClassName:e,label:t,error:n,helpText:r,required:i,hiddenRequired:a,"data-testid":s,...u},d)=>{const f=T.useId();return v.jsxs(Tw,{error:n,helpText:r,"data-testid":s,children:[v.jsx(Sa,{htmlFor:f,required:i,children:t}),v.jsx(JY,{ref:d,id:f,className:e,required:i||a,feedback:n?"error":void 0,...u})]})}),xf=T.forwardRef(({onChange:e,containerClassName:t,inputClassName:n,size:r="lg",loading:i=!1,variant:a="default",immediate:s=!1,...u},d)=>{const{setTimeout:f,clearCurrentTimeout:m}=AN(500),p=T.useCallback(b=>{!b||s?(m(),e(b)):f(()=>e(b))},[m,s,e,f]);return v.jsxs("div",{className:Ne("group relative focus-within:z-10",t),children:[a==="default"&&v.jsx(We,{icon:i?aw:I$,spin:i,className:Ne("absolute top-[50%] translate-y-[-50%] transition-colors","text-placeholder group-focus-within:text-lm-text dark:group-focus-within:text-dm-text",{"left-3":r!=="sm","scale-85 left-2":r==="sm"})}),v.jsx(Jr,{ref:d,variant:a,type:"search",className:Ne(a==="default"&&{"pl-9":r!=="sm","pl-7":r==="sm"},n),placeholder:"Search...",onChange:b=>p(b.target.value),size:r,...u})]})});function eK({searchResults:e,onSearch:t,onSelectSearchResult:n,renderSearchResult:r,size:i="md",listboxSpan:a="full",onFocus:s,containerClassName:u,listboxClassName:d,...f},m){const p=T.useId(),[b,_]=T.useState(),w=T.useRef(null);T.useImperativeHandle(m,()=>w.current);const x=T.useMemo(()=>e?b??[...e.keys()][0]:void 0,[b,e]),A=T.useCallback(C=>{n(C),t(""),w.current.value=""},[t,n,w]);return v.jsxs("div",{className:Ne("relative",u),onBlur:C=>{C.currentTarget.contains(C.relatedTarget)||t("")},children:[v.jsx(xf,{onChange:t,size:i,ref:w,role:"combobox","aria-autocomplete":"list","aria-expanded":!!e,"aria-controls":p,"aria-activedescendant":x?`${p}_${x}`:void 0,autoComplete:"off",autoCorrect:"off",onFocus:C=>{s?.(C),t(C.target.value)},...f}),e&&v.jsx(qY,{id:p,items:e,anchor:w,onSelectItem:A,onActiveItemChange:_,renderItem:r,className:Ne("absolute top-full mt-1 z-10",{"min-w-60":a==="auto","w-full":a==="full"},d),"aria-label":"Matching items",noItemsMessage:"No results found matching search"})]})}const tK=T.forwardRef(eK),nK=({name:e,color:t})=>v.jsxs("div",{className:"inline-flex items-center gap-2",children:[v.jsx("div",{"aria-hidden":!0,className:"w-4 h-4 rounded-full",style:{backgroundColor:t}}),e]}),rK=({tag:e,color:t,size:n,onRemove:r})=>v.jsxs("li",{className:Ne("inline-flex items-center gap-1 font-bold [&]:rounded-md",{"px-1 text-sm":n==="sm","py-0.25 px-1.5":n==="md","py-0.5 px-1.5":n==="lg"}),style:{backgroundColor:t,color:jw(t)?"#000":"#fff"},onClick:i=>i.stopPropagation(),children:[e,v.jsx(Pu,{label:`Remove ${e}`,solid:!0,size:"sm",onClick:()=>r(e)})]}),iK=/\s+/g,IT="#99a1af",UT=e=>e.trim().toLowerCase().replace(iK,"-"),aK=({tags:e,selectedTags:t=[],onTagsChange:n,getColorForTag:r,searchMode:i="startsWith",immutable:a=!1,size:s="md",disabled:u,containerClassName:d,...f})=>{const[m,p]=T.useState(),b=T.useCallback(A=>{const C=A.toLowerCase().trim();if(!C){p(void 0);return}const j=e.filter(O=>{if(t.includes(O))return!1;const N=O.toLowerCase();return i==="startsWith"?N.startsWith(C):N.includes(C)}).slice(0,5);a||j.push(`Add "${C.split(",").map(UT).join(",")}" tag`),p(new Map(j.map(O=>[O,O])))},[a,i,t,e]),_=T.useCallback(A=>{const C=(A.match(/Add\s+"([^"]+)"\s+tag/)?.[1]??A).split(",").map(UT);n?.([...new Set([...t,...C])])},[n,t]),w=T.useCallback(A=>n?.(t.filter(C=>C!==A)),[n,t]),x=T.useRef(null);return v.jsxs("div",{className:Ne("rounded-md flex flex-wrap gap-1","border border-lm-input-border dark:border-dm-input-border","cursor-text focus-within:focus-within-ring",{"p-0.5":s==="sm","p-1.25":s==="md","p-2":s==="lg","bg-lm-disabled-input dark:bg-dm-disabled-input":u,"bg-lm-primary dark:bg-dm-primary":!u,"group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!u},d),onClick:A=>{A.target!==x.current&&x.current?.focus()},children:[v.jsx("ul",{className:"m-0 p-0 flex flex-wrap gap-1",children:t.map((A,C)=>{const j=r?.(A)??IT;return v.jsx(rK,{tag:A,color:j,onRemove:w,size:s},`${A}${C}`)})}),v.jsx(tK,{variant:"unstyled",listboxSpan:"auto",containerClassName:"flex items-center",listboxClassName:"whitespace-nowrap",inputClassName:Ne("no-clear-button",{"px-1 text-sm":s==="sm","px-2 h-[26px]":s==="md","px-3 text-xl":s==="lg"}),searchResults:m,onSearch:b,onSelectSearchResult:_,renderSearchResult:A=>A.match(/Add\s+"([^"]+)"\s+tag/)?A:v.jsx(nK,{name:A,color:r?.(A)??IT}),onKeyDown:A=>{A.key==="Backspace"&&!m&&w(t[t.length-1])},size:s,disabled:u,ref:x,immediate:!0,...f})]})},oK=T.forwardRef(({className:e,...t},n)=>v.jsx(SN,{ref:n,className:Ne("rounded-full w-8 h-4","bg-(image:--circle-grey-dark) dark:bg-(image:--circle-grey-light) checked:bg-(image:--circle-white)","focus-visible:not-checked:bg-(image:--circle-blue-light)","checked:bg-right transition-[background-position]",e),...t}));function sK(e,{elementsSelector:t,focusFirstItem:n=!1,vertical:r=!0,horizontal:i=!0}){const a=T.useMemo(()=>{const d=[];return r&&d.push("ArrowDown"),i&&d.push("ArrowRight"),d},[i,r]),s=T.useMemo(()=>{const d=[];return r&&d.push("ArrowUp"),i&&d.push("ArrowLeft"),d},[i,r]),u=T.useMemo(()=>[...a,...s],[a,s]);T.useEffect(()=>{const d=e.current;if(!d)return()=>{};const f=new AbortController,m=()=>[...d.querySelectorAll(t)],p=m(),b=Math.max(p.findIndex(_=>_.dataset.selected==="true"),0);return p.forEach((_,w)=>{_.tabIndex=w===b?0:-1,n&&w===b&&_.focus()}),d.addEventListener("keydown",_=>{if(!u.includes(_.key))return;_.preventDefault();const w=m(),x=w.findIndex(C=>C.tabIndex===0),A=a.includes(_.key)?w[x+1]??w[0]:w[x-1]??w[w.length-1];w.forEach(C=>{C.tabIndex=-1}),A.tabIndex=0,A.focus()},{signal:f.signal}),()=>f.abort()},[u,e,t,n,a])}const lK=()=>{const e=eo();return T.useCallback(()=>e(-1),[e])},uK=128;function jw(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return Math.round(Math.sqrt(.299*t**2+.587*n**2+.114*r**2))>=uK}const CN=({text:e,className:t,size:n="lg",initialCopied:r=!1,navigator_:i=globalThis.navigator,...a})=>{const[s,u]=Yv({initialValue:r}),d=T.useCallback(()=>i.clipboard.writeText(e).then(u),[i.clipboard,e,u]);return v.jsx("button",{type:"button",className:Ne("focus-ring rounded-sm cursor-pointer",{"text-md":n==="sm","text-lg":n==="md","text-xl":n==="lg"},t),"aria-label":`Copy ${e} to clipboard`,title:"Copy to clipboard",onClick:d,...a,children:v.jsx(We,{icon:s?Tu:wN})})},EN=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].push(r)}else n[i]=r}),n},Pw=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()},wf=()=>{const{search:e}=xr();return T.useMemo(()=>EN(e),[e])};function AN(e,t=globalThis.setTimeout,n=globalThis.clearTimeout){const r=T.useRef(null),i=T.useCallback(()=>{r.current&&n(r.current)},[n]),a=T.useCallback((s,u)=>{i(),r.current=t(()=>{s(),r.current=null},u??e)},[i,e,t]);return T.useEffect(()=>i,[i]),T.useMemo(()=>({setTimeout:a,clearCurrentTimeout:i}),[i,a])}const cK=2e3,Yv=({initialValue:e=!1,delay:t=cK}={},n=globalThis.setTimeout,r=globalThis.clearTimeout)=>{const{setTimeout:i}=AN(t,n,r),[a,s]=T.useState(e),u=T.useRef(e),d=T.useCallback(()=>{s(!u.current),i(()=>s(u.current))},[i]);return[a,d]};function Sn(e=!1){const[t,n]=T.useState(e),r=T.useCallback(()=>n(s=>!s),[]),i=T.useCallback(()=>n(!0),[]),a=T.useCallback(()=>n(!1),[]);return{flag:t,toggle:r,setToTrue:i,setToFalse:a}}const TN=T.createContext({}),fK=({className:e,selected:t,disabled:n,onClick:r,...i})=>{const a="to"in i&&typeof i.to=="string",s=a?Mr:"button",{onItemClick:u}=T.useContext(TN);return v.jsx(s,{role:"menuitem","data-selected":t,className:Ne("flex items-center gap-2","w-full px-3 py-1.5 focus-ring","no-underline text-inherit",{"cursor-pointer":!n,"pointer-events-none opacity-50":n,"bg-lm-secondary dark:bg-dm-secondary":t&&!n,"highlight:bg-lm-secondary dark:highlight:bg-dm-secondary highlight:z-1 relative":!t&&!n},e),tabIndex:-1,disabled:a?void 0:n,"aria-disabled":a?n:void 0,type:a?void 0:"button",onClick:d=>{r?.(d),u?.()},...i})},dK=()=>v.jsx("div",{role:"separator","aria-hidden":!0,className:"border-b border-lm-border dark:border-dm-border my-2"}),hK=({children:e})=>v.jsx("div",{role:"heading","aria-level":6,"aria-hidden":!0,className:Ne("flex items-center w-full px-3 py-1.5","text-gray-500 text-sm font-semibold"),onClick:t=>t.stopPropagation(),children:e}),mK=({className:e,...t})=>v.jsx("div",{className:Ne("px-3 py-1.5",e),...t}),pK=({children:e,className:t,focusableElementsSelector:n='[role="menuitem"]:not([disabled]):not([aria-disabled])',focusFirstItem:r=!1,onItemClick:i,...a})=>{const s=T.useRef(null);return sK(s,{elementsSelector:n,focusFirstItem:r}),v.jsx(cn,{ref:s,role:"menu",className:Ne("py-2 whitespace-nowrap",t),...a,children:v.jsx(TN.Provider,{value:{onItemClick:i},children:e})})},Jd=Object.assign(pK,{Item:fK,Separator:dK,Title:hK,Misc:mK}),gK=({children:e,menuAlignment:t="left",buttonVariant:n="button",buttonContent:r,buttonClassName:i,buttonSize:a="md",buttonDisabled:s=!1,containerClassName:u,menuClassName:d,caretless:f,buttonLabel:m,menuOffset:p=3})=>{const[b,_]=T.useState(!1),w=T.useCallback(()=>_(!1),[]),x=T.useRef(null),{refs:A,floatingStyles:C,context:j}=_N({open:b,onOpenChange:_,placement:t==="right"?"bottom-end":"bottom-start",middleware:[pY(),mY(p)],elements:{reference:x.current}}),O=PY(j),{getReferenceProps:N,getFloatingProps:B}=xN([O]),V=T.useId(),Z=T.useRef(null);return T.useEffect(()=>{const X=Z.current;if(!X||!b)return()=>{};const oe=new AbortController;return document.body.addEventListener("click",ee=>{ee.composedPath().includes(X)||w()},{signal:oe.signal}),()=>oe.abort()},[w,b]),v.jsxs("div",{ref:Z,className:Ne("relative inline-block",u),onKeyDown:X=>{X.key==="Escape"&&w()},onBlur:X=>{X.relatedTarget&&!Z.current.contains(X.relatedTarget)&&w()},children:[v.jsxs("button",{ref:x,...N(),type:"button","aria-haspopup":!0,"aria-expanded":b,"aria-controls":V,"aria-label":m,disabled:s,className:Ne("flex items-center rounded-md focus-ring",{"justify-between":!f,"cursor-pointer":!s,"pointer-events-none opacity-50":s,"border border-lm-border dark:border-dm-border":n==="button","bg-lm-primary dark:bg-dm-primary":n==="button","group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":n==="button","text-lm-brand dark:text-dm-brand":n==="link","highlight:text-lm-brand-dark dark:highlight:text-dm-brand-dark highlight:underline":n==="link","px-1.5 py-1 text-sm":n!=="text"&&a==="sm","px-3 py-1.5":n!=="text"&&a==="md","px-4 py-2 text-lg":n!=="text"&&a==="lg","gap-x-1.5":a==="sm","gap-x-2":a!=="sm"},i),onKeyDown:X=>{X.key==="ArrowDown"&&(X.preventDefault(),_(!0))},children:[r,!f&&v.jsx(We,{icon:J5,size:"xs",widthAuto:!0})]}),b&&v.jsx("div",{ref:A.setFloating,style:C,className:"min-w-full z-500",...B(),children:v.jsx(Jd,{className:d,id:V,focusableElementsSelector:'[role="menuitem"]:not([disabled]):not([aria-disabled]),input:not([disabled]),select:not([disabled])',focusFirstItem:!0,onItemClick:w,children:e})})]})},Qe=Object.assign(gK,{Item:Jd.Item,Separator:Jd.Separator,Title:Jd.Title,Misc:Jd.Misc}),Kv=T.forwardRef(({className:e,disabled:t,size:n="md",type:r="button",...i},a)=>v.jsx("button",{className:Ne("inline-flex rounded-md focus-ring","text-lm-brand dark:text-dm-brand","highlight:text-lm-brand-dark dark:highlight:text-dm-brand-dark highlight:underline",{"px-1.5 py-1 text-sm":n==="sm","px-3 py-1.5":n==="md","px-4 py-2 text-lg":n==="lg","cursor-pointer":!t,"pointer-events-none opacity-65":t},e),disabled:t,type:r,...i,ref:a})),vK=({className:e,active:t,...n})=>v.jsx("li",{role:"menuitem",className:"w-full flex","data-active":t,children:v.jsx(Mr,{className:Ne("px-2 py-3","max-md:w-full max-md:px-3 max-md:py-2","text-white no-underline highlight:opacity-100 transition-opacity",{"opacity-60":!t,"opacity-100":t},e),...n})}),yK=({containerClassName:e,buttonClassName:t,menuClassName:n,active:r,...i})=>v.jsx("li",{role:"menuitem","aria-haspopup":!0,className:"w-full flex","data-active":r,children:v.jsx(Qe,{containerClassName:Ne("max-md:w-full",e),buttonVariant:"text",buttonClassName:Ne("px-2 py-3","max-md:w-full max-md:px-3 max-md:py-2","text-white highlight:opacity-100 transition-opacity",{"opacity-60":!r,"opacity-100":r},t),menuAlignment:"right",menuOffset:-3,menuClassName:Ne("mx-2",n),...i})}),bK=({className:e,brand:t,children:n})=>{const{flag:r,toggle:i,setToFalse:a}=Sn(),s=T.useId(),u=T.useId(),{pathname:d}=xr();return T.useEffect(()=>a(),[d,a]),v.jsxs("nav",{className:Ne("w-full relative","bg-lm-main dark:bg-dm-main","flex max-md:flex-col items-center justify-between",e),children:[v.jsxs("div",{className:"w-full relative",children:[v.jsx("h4",{className:Ne("text-white px-4 py-3","max-md:w-full max-md:flex max-md:flex-col items-center"),children:t}),v.jsx(Rt,{id:u,variant:"secondary",className:Ne("absolute right-0 top-[50%] translate-y-[-50%]","md:hidden mx-2 [&]:px-2","opacity-60 highlight:opacity-100 transition-opacity","[&]:text-white [&]:border-white [&]:highlight:bg-transparent"),onClick:i,"aria-label":`${r?"Hide":"Show"} menu`,"aria-controls":s,children:v.jsx(We,{icon:r?$$:oV})})]}),v.jsx("ul",{id:s,"aria-labelledby":u,role:"menu",className:Ne("m-0 p-0","max-md:w-full md:mr-2 max-md:absolute max-md:top-full z-2000","flex max-md:flex-col items-center","bg-lm-main dark:bg-dm-main",{"max-md:hidden":!r}),children:n})]})},Nx=Object.assign(bK,{MenuItem:vK,Dropdown:yK}),ON=T.createContext(null),_K=({className:e,to:t,...n})=>{const r=T.useContext(ON);return v.jsx(J2,{role:"menuitem",to:t,className:({isActive:i})=>Ne("px-4 pt-2 pb-[calc(0.5rem-3px)] border-b-3","highlight:text-lm-brand dark:highlight:text-dm-brand","font-bold text-center no-underline transition-colors","rounded-none outline-none focus-visible:inset-ring-2","focus-visible:inset-ring-lm-brand/50 dark:focus-visible:inset-ring-dm-brand/50",{"text-lm-brand dark:text-dm-brand":i,"border-b-lm-brand dark:border-b-dm-brand active":i,"border-b-transparent text-gray-500":!i,"flex-grow":r?.fill},e),...n})},xK=({children:e,className:t,fill:n})=>v.jsx(ON.Provider,{value:{fill:n},children:v.jsx(cn,{role:"menubar",className:Ne("flex overflow-hidden",t),children:e})}),il=Object.assign(xK,{Pill:_K}),wK=new Intl.NumberFormat("en-US"),On=e=>wK.format(Number(e)),BT=10,SK=e=>Math.ceil(e/BT)*BT,kc=2,kg="...",CK=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),EK=(e,t)=>{const n=CK(Math.max(kc,e-kc),Math.min(t-1,e+kc)+1);return e-kc>kc&&n.unshift(kg),e+kc<t-1&&n.push(kg),n.unshift(1),n.push(t),n},lh=e=>e===kg,AK=e=>lh(e)?e:On(e),TK=(e,t)=>lh(e)?`${e}_${t}`:`${e}`,jN=["border border-r-0 last:border-r border-lm-border dark:border-dm-border","rounded-none first:rounded-l last:rounded-r"],PN=(e=!1)=>Ne(jN,"px-3 py-2 cursor-pointer no-underline","focus-ring focus-visible:z-1",!e&&["text-lm-brand dark:text-dm-brand","bg-lm-primary dark:bg-dm-primary","highlight:bg-lm-secondary dark:highlight:bg-dm-secondary"],e&&"bg-lm-main dark:bg-dm-main text-white"),Lx=({children:e})=>v.jsx("span",{"aria-hidden":!0,className:Ne(jN,"px-3 py-2 text-gray-400"),children:e}),MN=()=>v.jsx(Lx,{children:kg});function OK({children:e,active:t,isEllipsis:n,href:r,...i}){const a=T.useMemo(()=>PN(t),[t]);return n?v.jsx(MN,{}):v.jsx(Mr,{className:a,to:r,...i,"data-active":t,children:e})}function jK({children:e,active:t,isEllipsis:n,...r}){const i=T.useMemo(()=>PN(t),[t]);return n?v.jsx(MN,{}):v.jsx("button",{type:"button",className:i,...r,"data-active":t,children:e})}const Zv=({currentPage:e,pagesCount:t,...n})=>{const r="urlForPage"in n,i=r?OK:jK,a=T.useCallback(s=>r?{href:lh(s)?void 0:n.urlForPage(s)}:{onClick:()=>!lh(s)&&n.onPageChange(s)},[r,n]);return t<2?null:v.jsxs("div",{className:"select-none flex","data-testid":"paginator",children:[e===1?v.jsx(Lx,{children:v.jsx(We,{size:"xs",icon:kA})}):v.jsx(i,{...a(Math.max(1,e-1)),"aria-label":"Previous",children:v.jsx(We,{size:"xs",icon:kA})}),EK(e,t).map((s,u)=>v.jsx(i,{active:s===e,isEllipsis:lh(s),...a(s),children:AK(s)},TK(s,u))),e===t?v.jsx(Lx,{children:v.jsx(We,{size:"xs",icon:Ag})}):v.jsx(i,{...a(Math.min(t,e+1)),"aria-label":"Next",children:v.jsx(We,{size:"xs",icon:Ag})})]})},PK=({buttonLabel:e="Options",buttonSize:t="md",...n})=>v.jsx(Qe,{buttonContent:v.jsx(We,{icon:q$,widthAuto:!0,className:Ne({"px-1":t==="sm"})}),caretless:!0,buttonLabel:e,buttonSize:t,...n}),on=Object.assign(PK,{Item:Qe.Item,Separator:Qe.Separator,Title:Qe.Title,Misc:Qe.Misc}),MK=({open:e,children:t,className:n,onClose:r,...i})=>{const a=T.useRef(null);return T.useEffect(()=>{const s=document.body,u=s.style.overflow,d=s.style.paddingRight;if(e){const f=window.outerWidth-s.clientWidth,m=s.scrollHeight>s.clientHeight;s.style.overflow="hidden",m&&(s.style.paddingRight=`${f}px`),a.current?.showModal()}else a.current?.close();return()=>{s.style.overflow=u,s.style.paddingRight=d}},[e]),Dh.createPortal(v.jsx("dialog",{ref:a,className:Ne("bg-transparent backdrop:bg-black/50",n),onCancel:s=>{s.preventDefault(),r()},...i,children:e&&t}),document.body)},to=({open:e,onClose:t,variant:n="default",title:r,children:i,className:a,...s})=>{const{size:u="md",confirmText:d="Confirm",cancelText:f="Cancel",confirmDisabled:m,onConfirm:p,onClosed:b,..._}="onConfirm"in s?s:{...s},[w,x]=T.useState(e),A=T.useRef(null),C=T.useRef("cancel"),j=T.useCallback(O=>{O.preventDefault(),O.stopPropagation(),C.current="confirm",p?.()},[p]);return T.useEffect(()=>{if(e){C.current="cancel",x(!0);return}const O=A.current;if(O){delete A.current.dataset.open;let N=!1;const B=V=>{N||V.target!==O||(N=!0,x(!1),b?.(C.current))};return O.addEventListener("transitionend",B),()=>{O.removeEventListener("transitionend",B)}}},[b,e]),T.useEffect(()=>{const O=A.current;w&&O&&(O.dataset.open="")},[w]),v.jsx(MK,{open:w,onClose:t,className:Ne({"flex w-screen h-screen max-w-screen max-h-screen":w,"overflow-hidden":n==="cover"},a),..._,children:v.jsx("form",{"data-testid":"transition-container",ref:A,className:Ne("w-full m-auto p-4 sm:p-6","-translate-y-4 data-open:translate-y-0 opacity-0 data-open:opacity-100","transition-[opacity_,_translate] duration-300",n!=="cover"&&{"sm:w-sm":u==="sm","md:w-lg":u==="md","md:w-4xl":u==="lg","md:w-6xl":u==="xl"},{"h-full":n==="cover"}),onSubmit:j,children:v.jsx(cn,{className:Ne("w-full",{"h-full relative overflow-auto":n==="cover"}),children:n==="cover"?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Ne("px-4 py-3 absolute top-0 left-0 right-0 z-3000","flex items-center justify-between","text-white bg-linear-to-b from-black/70 to-black/10","[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"),children:[v.jsx("h5",{children:r}),v.jsx(Pu,{onClick:t,label:"Close dialog"})]}),i]}):v.jsxs(v.Fragment,{children:[v.jsxs(cn.Header,{className:Ne("sticky top-0","flex items-center justify-between gap-x-2"),children:[v.jsx("h5",{className:Ne({"text-danger":n==="danger"}),children:r}),v.jsx(Pu,{onClick:t,label:"Close dialog"})]}),v.jsx(cn.Body,{children:i}),p&&v.jsxs(cn.Footer,{"data-testid":"footer",className:Ne("flex justify-end items-center gap-x-2","[&]:px-3 sticky bottom-0"),children:[v.jsx(Kv,{onClick:t,children:f}),v.jsx(Rt,{solid:!0,variant:n==="danger"?"danger":"primary",disabled:m,type:"submit",children:d})]})]})})})})},Vo=({className:e,children:t,loading:n=!1,variant:r="default"})=>v.jsx(Mt,{className:Ne({"[&]:border-danger":r==="error"},e),children:v.jsxs("h3",{className:Ne("text-center",{"text-gray-500 dark:text-gray-400":r==="default","text-danger":r==="error"}),children:[n&&v.jsxs(v.Fragment,{children:[v.jsx(We,{icon:aw,spin:!0}),v.jsx("span",{className:"ml-2",children:t??"Loading..."})]}),!n&&t]})}),Fr=({variant:e,className:t,size:n="md",children:r})=>v.jsx("div",{className:Ne("rounded-md text-center",{"p-2":n==="sm","p-4":n==="md","p-6":n==="lg","[&]:text-white":e!=="warning","bg-lm-brand dark:bg-dm-brand":e==="success","bg-danger":e==="error","bg-warning text-black":e==="warning"},t),children:r}),no=({placement:e="auto"}={})=>{const t=T.useRef(null),n=(()=>{const x=[];return e==="auto"&&x.push(gY()),x.push(vY({element:t})),x})(),[r,i]=T.useState(!1),{refs:a,floatingStyles:s,context:u,middlewareData:d}=_N({placement:e==="auto"?void 0:e,open:r,onOpenChange:i,middleware:n}),f=OY(u,{delay:{open:300},move:!0}),{getFloatingProps:m,getReferenceProps:p}=xN([f]),{isMounted:b,styles:_}=LY(u,{duration:200}),w=T.useMemo(()=>{const x=u.placement.split("-")[0];return{top:"bottom",right:"left",bottom:"top",left:"right"}[x]??""},[u.placement]);return{anchor:{...p(),ref:a.setReference},tooltip:{...m(),refSetter:a.setFloating,isMounted:b,styles:{...s,..._},arrowPos:d.arrow,arrowRef:t,arrowSide:w}}},ro=({children:e,isMounted:t,styles:n,refSetter:r,arrowRef:i,arrowPos:a,arrowSide:s,...u})=>t&&v.jsx("div",{role:"tooltip","aria-live":"polite",className:Ne("z-500 max-w-64",{"pt-2.5":s==="top","pb-2.5":s==="bottom","pr-2.5":s==="right","pl-2.5":s==="left"}),ref:r,style:n,...u,children:v.jsxs("div",{className:"relative px-1.5 py-1 rounded bg-black/90 text-white text-center",children:[v.jsx("span",{className:"sr-only",children:"Tooltip: "}),e,v.jsx("div",{ref:i,className:Ne("absolute","border-l-6 border-r-6 border-b-6 border-l-transparent border-r-transparent border-b-black/90",{"rotate-180":s==="bottom","rotate-90 mr-[-3px]":s==="right","rotate-270 ml-[-3px]":s==="left"}),style:{left:a?.x,top:a?.y,[s]:`${-(i.current?.offsetWidth??0)/2}px`},"data-testid":"arrow"})]})});function RN(e){if(e.currentField!==e.newField)return"ASC";const t={ASC:"DESC",DESC:void 0};return e.currentOrderDir?t[e.currentOrderDir]:"ASC"}function Mw(e){const t=RN(e);return{field:t?e.newField:void 0,dir:t}}const NN=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const a=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?a:s}),RK=e=>e.dir?`${e.field}-${e.dir}`:void 0,NK=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Vh({items:e,order:t,onChange:n,prefixed:r=!0,buttonVariant:i="button",...a}){const s=T.useCallback(d=>{const f=Mw({currentOrderDir:t.dir,currentField:t.field,newField:d});n(f)},[n,t.dir,t.field]),u=i==="button";return v.jsxs(Qe,{buttonContent:v.jsxs(v.Fragment,{children:[!u&&"Order by",u&&!t.field&&v.jsx("i",{children:"Order by..."}),u&&t.field&&v.jsxs(v.Fragment,{children:[r&&"Order by: ",e[t.field]," - ",t.dir??"DESC"]})]}),buttonVariant:i,...a,children:[Object.entries(e).map(([d,f])=>v.jsxs(Qe.Item,{selected:t.field===d,onClick:()=>s(d),className:"flex items-center justify-between gap-2",children:[f,t.field===d&&v.jsx(We,{icon:t.dir==="ASC"?K$:yV})]},d)),v.jsx(Qe.Separator,{}),v.jsx(Qe.Item,{disabled:!t.field,onClick:()=>n({}),children:v.jsx("i",{children:"Clear selection"})})]})}const LK="#4696e5",DK="rgba(70, 150, 229, 0.4)",kK="#2078CF",IK="rgba(32, 120, 207, 0.4)",yh=()=>Qo()?LK:kK,UK=()=>Qo()?DK:IK,Dx="#f77f28",BK="rgba(247, 127, 40, 0.4)",zK="white",FK="#161b22",$K=e=>document.querySelector("html")?.setAttribute("data-theme",e),Qo=()=>document.querySelector("html")?.getAttribute("data-theme")==="dark",Rw=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",VK=({isOpen:e,onClose:t,forceUpdate:n})=>{const{flag:r,setToTrue:i}=Sn(),a=T.useCallback(()=>{i(),n()},[n,i]);return e?v.jsxs(cn,{role:"alert",className:Ne("w-[700px] max-w-[calc(100%-30px)]","fixed top-[35px] left-[50%] translate-x-[-50%] z-[1040]"),children:[v.jsxs(cn.Header,{className:"flex items-center justify-between",children:[v.jsx("h5",{children:"This app has just been updated!"}),v.jsx(Pu,{onClick:t})]}),v.jsxs(cn.Body,{className:"flex gap-4 items-center justify-between max-md:flex-col",children:["Restart it to enjoy the new features.",v.jsxs(Rt,{disabled:r,variant:"secondary",solid:!0,onClick:a,children:[!r&&v.jsxs(v.Fragment,{children:["Restart now ",v.jsx(We,{icon:O$})]}),r&&v.jsx(v.Fragment,{children:"Restarting..."})]})]})]}):null},LN=({children:e,title:t})=>v.jsx("div",{className:"pt-4",children:v.jsxs(Mt,{className:"p-4 w-full lg:w-[65%] m-auto",children:[v.jsx("h2",{children:t}),e]})}),DN=({to:e="/",children:t="Home"})=>v.jsxs(LN,{title:"Oops! We could not find requested route.",children:[v.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),v.jsx("br",{}),v.jsx(Rt,{inline:!0,to:e,size:"lg",children:t})]});function Ca(e){return T.useMemo(()=>e,[e])}function Ea(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const qK=async()=>{(await navigator.serviceWorker?.getRegistrations()??[]).forEach(({waiting:t})=>{t?.addEventListener("statechange",n=>{n.target?.state==="activated"&&window.location.reload()}),t?.postMessage({type:"SKIP_WAITING"})})},kN=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{const{MainHeader:a,Home:s,ShlinkWebComponentContainer:u,CreateServer:d,EditServer:f,Settings:m,ManageServers:p,ShlinkVersionsContainer:b}=Ca(kN),_=xr(),w=T.useRef(t),x=_.pathname==="/";return T.useEffect(()=>{Object.keys(w.current).length===0&&e()},[e]),T.useEffect(()=>{$K(n.ui?.theme??Rw())},[n.ui?.theme]),v.jsxs("div",{className:"h-full",children:[v.jsxs(v.Fragment,{children:[v.jsx(a,{}),v.jsxs("div",{className:"h-full pt-(--header-height)",children:[v.jsx("div",{"data-testid":"shlink-wrapper",className:Ne("min-h-full pb-[calc(var(--footer-height)+var(--footer-margin))] -mb-[calc(var(--footer-height)+var(--footer-margin))]",{"flex items-center pt-4":x}),children:v.jsxs(Lv,{children:[v.jsx(gt,{index:!0,element:v.jsx(s,{})}),v.jsx(gt,{path:"/settings",children:["","*"].map(A=>v.jsx(gt,{path:A,element:v.jsx(m,{})},A))}),v.jsx(gt,{path:"/manage-servers",element:v.jsx(p,{})}),v.jsx(gt,{path:"/server/create",element:v.jsx(d,{})}),v.jsx(gt,{path:"/server/:serverId/edit",element:v.jsx(f,{})}),v.jsx(gt,{path:"/server/:serverId",children:["","*"].map(A=>v.jsx(gt,{path:A,element:v.jsx(u,{})},A))}),v.jsx(gt,{path:"*",element:v.jsx(DN,{})})]})}),v.jsx("div",{className:"h-(--footer-height) mt-(--footer-margin) md:px-4",children:v.jsx(b,{})})]})]}),v.jsx(VK,{isOpen:r,onClose:i,forceUpdate:qK})]})},HK=Ea(kN,["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 GK=typeof Symbol=="function"&&Symbol.observable||"@@observable",zT=GK,lb=()=>Math.random().toString(36).substring(7).split("").join("."),WK={INIT:`@@redux/INIT${lb()}`,REPLACE:`@@redux/REPLACE${lb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lb()}`},Ig=WK;function Nw(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 IN(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(IN)(e,t)}let r=e,i=t,a=new Map,s=a,u=0,d=!1;function f(){s===a&&(s=new Map,a.forEach((A,C)=>{s.set(C,A)}))}function m(){if(d)throw new Error(gr(3));return i}function p(A){if(typeof A!="function")throw new Error(gr(4));if(d)throw new Error(gr(5));let C=!0;f();const j=u++;return s.set(j,A),function(){if(C){if(d)throw new Error(gr(6));C=!1,f(),s.delete(j),a=null}}}function b(A){if(!Nw(A))throw new Error(gr(7));if(typeof A.type>"u")throw new Error(gr(8));if(typeof A.type!="string")throw new Error(gr(17));if(d)throw new Error(gr(9));try{d=!0,i=r(i,A)}finally{d=!1}return(a=s).forEach(j=>{j()}),A}function _(A){if(typeof A!="function")throw new Error(gr(10));r=A,b({type:Ig.REPLACE})}function w(){const A=p;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(gr(11));function j(){const N=C;N.next&&N.next(m())}return j(),{unsubscribe:A(j)}},[zT](){return this}}}return b({type:Ig.INIT}),{dispatch:b,subscribe:p,getState:m,replaceReducer:_,[zT]:w}}function YK(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ig.INIT})>"u")throw new Error(gr(12));if(typeof n(void 0,{type:Ig.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gr(13))})}function Xv(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const s=t[a];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{YK(n)}catch(a){i=a}return function(s={},u){if(i)throw i;let d=!1;const f={};for(let m=0;m<r.length;m++){const p=r[m],b=n[p],_=s[p],w=b(_,u);if(typeof w>"u")throw u&&u.type,new Error(gr(14));f[p]=w,d=d||w!==_}return d=d||r.length!==Object.keys(s).length,d?f:s}}function Ug(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function KK(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(gr(15))};const s={getState:i.getState,dispatch:(d,...f)=>a(d,...f)},u=e.map(d=>d(s));return a=Ug(...u)(i.dispatch),{...i,dispatch:a}}}function UN(e){return Nw(e)&&"type"in e&&typeof e.type=="string"}var BN=Symbol.for("immer-nothing"),FT=Symbol.for("immer-draftable"),Ti=Symbol.for("immer-state");function ma(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ef=Object.getPrototypeOf;function Mu(e){return!!e&&!!e[Ti]}function qo(e){return e?zN(e)||Array.isArray(e)||!!e[FT]||!!e.constructor?.[FT]||Jv(e)||ey(e):!1}var ZK=Object.prototype.constructor.toString();function zN(e){if(!e||typeof e!="object")return!1;const t=ef(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)===ZK}function Bg(e,t){Qv(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Qv(e){const t=e[Ti];return t?t.type_:Array.isArray(e)?1:Jv(e)?2:ey(e)?3:0}function kx(e,t){return Qv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function FN(e,t,n){const r=Qv(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function XK(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Jv(e){return e instanceof Map}function ey(e){return e instanceof Set}function cu(e){return e.copy_||e.base_}function Ix(e,t){if(Jv(e))return new Map(e);if(ey(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=zN(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ti];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],u=r[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[s]})}return Object.create(ef(e),r)}else{const r=ef(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Lw(e,t=!1){return ty(e)||Mu(e)||!qo(e)||(Qv(e)>1&&(e.set=e.add=e.clear=e.delete=QK),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Lw(r,!0))),e}function QK(){ma(2)}function ty(e){return Object.isFrozen(e)}var JK={};function Ru(e){const t=JK[e];return t||ma(0,e),t}var bh;function $N(){return bh}function eZ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function $T(e,t){t&&(Ru("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ux(e){Bx(e),e.drafts_.forEach(tZ),e.drafts_=null}function Bx(e){e===bh&&(bh=e.parent_)}function VT(e){return bh=eZ(bh,e)}function tZ(e){const t=e[Ti];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function qT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ti].modified_&&(Ux(t),ma(4)),qo(e)&&(e=zg(t,e),t.parent_||Fg(t,e)),t.patches_&&Ru("Patches").generateReplacementPatches_(n[Ti].base_,e,t.patches_,t.inversePatches_)):e=zg(t,n,[]),Ux(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==BN?e:void 0}function zg(e,t,n){if(ty(t))return t;const r=t[Ti];if(!r)return Bg(t,(i,a)=>HT(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Fg(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),Bg(a,(u,d)=>HT(e,r,i,u,d,n,s)),Fg(e,i,!1),n&&e.patches_&&Ru("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function HT(e,t,n,r,i,a,s){if(Mu(i)){const u=a&&t&&t.type_!==3&&!kx(t.assigned_,r)?a.concat(r):void 0,d=zg(e,i,u);if(FN(n,r,d),Mu(d))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(qo(i)&&!ty(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;zg(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Fg(e,i)}}function Fg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Lw(t,n)}function nZ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$N(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Dw;n&&(i=[r],a=_h);const{revoke:s,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=s,u}var Dw={get(e,t){if(t===Ti)return e;const n=cu(e);if(!kx(n,t))return rZ(e,n,t);const r=n[t];return e.finalized_||!qo(r)?r:r===ub(e.base_,t)?(cb(e),e.copy_[t]=Fx(r,e)):r},has(e,t){return t in cu(e)},ownKeys(e){return Reflect.ownKeys(cu(e))},set(e,t,n){const r=VN(cu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ub(cu(e),t),a=i?.[Ti];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(XK(n,i)&&(n!==void 0||kx(e.base_,t)))return!0;cb(e),zx(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 ub(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,cb(e),zx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=cu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ma(11)},getPrototypeOf(e){return ef(e.base_)},setPrototypeOf(){ma(12)}},_h={};Bg(Dw,(e,t)=>{_h[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});_h.deleteProperty=function(e,t){return _h.set.call(this,e,t,void 0)};_h.set=function(e,t,n){return Dw.set.call(this,e[0],t,n,e[0])};function ub(e,t){const n=e[Ti];return(n?cu(n):e)[t]}function rZ(e,t,n){const r=VN(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function VN(e,t){if(!(t in e))return;let n=ef(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ef(n)}}function zx(e){e.modified_||(e.modified_=!0,e.parent_&&zx(e.parent_))}function cb(e){e.copy_||(e.copy_=Ix(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var iZ=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 s=this;return function(d=a,...f){return s.produce(d,m=>n.call(this,m,...f))}}typeof n!="function"&&ma(6),r!==void 0&&typeof r!="function"&&ma(7);let i;if(qo(t)){const a=VT(this),s=Fx(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?Ux(a):Bx(a)}return $T(a,r),qT(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===BN&&(i=void 0),this.autoFreeze_&&Lw(i,!0),r){const a=[],s=[];Ru("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else ma(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,d=>t(d,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){qo(e)||ma(8),Mu(e)&&(e=Uo(e));const t=VT(this),n=Fx(e,void 0);return n[Ti].isManual_=!0,Bx(t),n}finishDraft(e,t){const n=e&&e[Ti];(!n||!n.isManual_)&&ma(9);const{scope_:r}=n;return $T(r,t),qT(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=Ru("Patches").applyPatches_;return Mu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Fx(e,t){const n=Jv(e)?Ru("MapSet").proxyMap_(e,t):ey(e)?Ru("MapSet").proxySet_(e,t):nZ(e,t);return(t?t.scope_:$N()).drafts_.push(n),n}function Uo(e){return Mu(e)||ma(10,e),qN(e)}function qN(e){if(!qo(e)||ty(e))return e;const t=e[Ti];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ix(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ix(e,!0);return Bg(n,(r,i)=>{FN(n,r,qN(i))}),t&&(t.finalized_=!1),n}var Oi=new iZ,HN=Oi.produce;Oi.produceWithPatches.bind(Oi);Oi.setAutoFreeze.bind(Oi);Oi.setUseStrictShallowCopy.bind(Oi);Oi.applyPatches.bind(Oi);Oi.createDraft.bind(Oi);Oi.finishDraft.bind(Oi);function aZ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function oZ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function sZ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var GT=e=>Array.isArray(e)?e:[e];function lZ(e){const t=Array.isArray(e[0])?e[0]:e;return sZ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function uZ(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var cZ=class{constructor(e){this.value=e}deref(){return this.value}},fZ=typeof WeakRef<"u"?WeakRef:cZ,dZ=0,WT=1;function Ip(){return{s:dZ,v:void 0,o:null,p:null}}function GN(e,t={}){let n=Ip();const{resultEqualityCheck:r}=t;let i,a=0;function s(){let u=n;const{length:d}=arguments;for(let p=0,b=d;p<b;p++){const _=arguments[p];if(typeof _=="function"||typeof _=="object"&&_!==null){let w=u.o;w===null&&(u.o=w=new WeakMap);const x=w.get(_);x===void 0?(u=Ip(),w.set(_,u)):u=x}else{let w=u.p;w===null&&(u.p=w=new Map);const x=w.get(_);x===void 0?(u=Ip(),w.set(_,u)):u=x}}const f=u;let m;if(u.s===WT)m=u.v;else if(m=e.apply(null,arguments),a++,r){const p=i?.deref?.()??i;p!=null&&r(p,m)&&(m=p,a!==0&&a--),i=typeof m=="object"&&m!==null||typeof m=="function"?new fZ(m):m}return f.s=WT,f.v=m,m}return s.clearCache=()=>{n=Ip(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function hZ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,s=0,u,d={},f=i.pop();typeof f=="object"&&(d=f,f=i.pop()),aZ(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const m={...n,...d},{memoize:p,memoizeOptions:b=[],argsMemoize:_=GN,argsMemoizeOptions:w=[]}=m,x=GT(b),A=GT(w),C=lZ(i),j=p(function(){return a++,f.apply(null,arguments)},...x),O=_(function(){s++;const B=uZ(C,arguments);return u=j.apply(null,B),u},...A);return Object.assign(O,{resultFunc:f,memoizedResultFunc:j,dependencies:C,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:p,argsMemoize:_})};return Object.assign(r,{withTypes:()=>r}),r}var Pe=hZ(GN),mZ=Object.assign((e,t=Pe)=>{oZ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((s,u,d)=>(s[n[d]]=u,s),{}))},{withTypes:()=>mZ});function WN(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var pZ=WN(),gZ=WN,vZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ug:Ug.apply(null,arguments)},yZ=e=>e&&typeof e.match=="function";function dn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Ci(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=>UN(r)&&r.type===e,n}var YN=class eh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,eh.prototype)}static get[Symbol.species](){return eh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new eh(...t[0].concat(this)):new eh(...t.concat(this))}};function YT(e){return qo(e)?HN(e,()=>{}):e}function Up(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function bZ(e){return typeof e=="boolean"}var _Z=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new YN;return n&&(bZ(n)?s.push(pZ):s.push(gZ(n.extraArgument))),s},xZ="RTK_autoBatch",KT=e=>t=>{setTimeout(t,e)},wZ=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:KT(10):e.type==="callback"?e.queueNotification:KT(e.timeout),f=()=>{s=!1,a&&(a=!1,u.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const p=()=>i&&m(),b=r.subscribe(p);return u.add(m),()=>{b(),u.delete(m)}},dispatch(m){try{return i=!m?.meta?.[xZ],a=!i,a&&(s||(s=!0,d(f))),r.dispatch(m)}finally{i=!0}}})},SZ=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new YN(e);return r&&i.push(wZ(typeof r=="object"?r:void 0)),i};function kw(e){const t=_Z(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:u=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Nw(n))d=Xv(n);else throw new Error(Ci(1));let f;typeof r=="function"?f=r(t):f=t();let m=Ug;i&&(m=vZ({trace:!1,...typeof i=="object"&&i}));const p=KK(...f),b=SZ(p);let _=typeof u=="function"?u(b):b();const w=m(..._);return IN(d,s,w)}function KN(e){const t={},n=[];let r;const i={addCase(a,s){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ci(28));if(u in t)throw new Error(Ci(29));return t[u]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function CZ(e){return typeof e=="function"}function EZ(e,t){let[n,r,i]=KN(t),a;if(CZ(e))a=()=>YT(e());else{const u=YT(e);a=()=>u}function s(u=a(),d){let f=[n[d.type],...r.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return f.filter(m=>!!m).length===0&&(f=[i]),f.reduce((m,p)=>{if(p)if(Mu(m)){const _=p(m,d);return _===void 0?m:_}else{if(qo(m))return HN(m,b=>p(b,d));{const b=p(m,d);if(b===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return m},u)}return s.getInitialState=a,s}var AZ=(e,t)=>yZ(e)?e.match(t):e(t);function TZ(...e){return t=>e.some(n=>AZ(n,t))}var OZ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ZN=(e=21)=>{let t="",n=e;for(;n--;)t+=OZ[Math.random()*64|0];return t},jZ=["name","message","stack","code"],fb=class{constructor(e,t){this.payload=e,this.meta=t}_type},ZT=class{constructor(e,t){this.payload=e,this.meta=t}_type},PZ=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of jZ)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},XT="External signal was aborted",XN=(()=>{function e(t,n,r){const i=dn(t+"/fulfilled",(d,f,m,p)=>({payload:d,meta:{...p||{},arg:m,requestId:f,requestStatus:"fulfilled"}})),a=dn(t+"/pending",(d,f,m)=>({payload:void 0,meta:{...m||{},arg:f,requestId:d,requestStatus:"pending"}})),s=dn(t+"/rejected",(d,f,m,p,b)=>({payload:p,error:(r&&r.serializeError||PZ)(d||"Rejected"),meta:{...b||{},arg:m,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function u(d,{signal:f}={}){return(m,p,b)=>{const _=r?.idGenerator?r.idGenerator(d):ZN(),w=new AbortController;let x,A;function C(O){A=O,w.abort()}f&&(f.aborted?C(XT):f.addEventListener("abort",()=>C(XT),{once:!0}));const j=async function(){let O;try{let B=r?.condition?.(d,{getState:p,extra:b});if(RZ(B)&&(B=await B),B===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const V=new Promise((Z,X)=>{x=()=>{X({name:"AbortError",message:A||"Aborted"})},w.signal.addEventListener("abort",x)});m(a(_,d,r?.getPendingMeta?.({requestId:_,arg:d},{getState:p,extra:b}))),O=await Promise.race([V,Promise.resolve(n(d,{dispatch:m,getState:p,extra:b,requestId:_,signal:w.signal,abort:C,rejectWithValue:(Z,X)=>new fb(Z,X),fulfillWithValue:(Z,X)=>new ZT(Z,X)})).then(Z=>{if(Z instanceof fb)throw Z;return Z instanceof ZT?i(Z.payload,_,d,Z.meta):i(Z,_,d)})])}catch(B){O=B instanceof fb?s(null,_,d,B.payload,B.meta):s(B,_,d)}finally{x&&w.signal.removeEventListener("abort",x)}return r&&!r.dispatchConditionRejection&&s.match(O)&&O.meta.condition||m(O),O}();return Object.assign(j,{abort:C,requestId:_,arg:d,unwrap(){return j.then(MZ)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,settled:TZ(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function MZ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function RZ(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var NZ=Symbol.for("rtk-slice-createasyncthunk");function LZ(e,t){return`${e}/${t}`}function DZ({creators:e}={}){const t=e?.asyncThunk?.[NZ];return function(r){const{name:i,reducerPath:a=i}=r;if(!i)throw new Error(Ci(11));const s=(typeof r.reducers=="function"?r.reducers(IZ()):r.reducers)||{},u=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(O,N){const B=typeof O=="string"?O:O.type;if(!B)throw new Error(Ci(12));if(B in d.sliceCaseReducersByType)throw new Error(Ci(13));return d.sliceCaseReducersByType[B]=N,f},addMatcher(O,N){return d.sliceMatchers.push({matcher:O,reducer:N}),f},exposeAction(O,N){return d.actionCreators[O]=N,f},exposeCaseReducer(O,N){return d.sliceCaseReducersByName[O]=N,f}};u.forEach(O=>{const N=s[O],B={reducerName:O,type:LZ(i,O),createNotation:typeof r.reducers=="function"};BZ(N)?FZ(B,N,f,t):UZ(B,N,f)});function m(){const[O={},N=[],B=void 0]=typeof r.extraReducers=="function"?KN(r.extraReducers):[r.extraReducers],V={...O,...d.sliceCaseReducersByType};return EZ(r.initialState,Z=>{for(let X in V)Z.addCase(X,V[X]);for(let X of d.sliceMatchers)Z.addMatcher(X.matcher,X.reducer);for(let X of N)Z.addMatcher(X.matcher,X.reducer);B&&Z.addDefaultCase(B)})}const p=O=>O,b=new Map,_=new WeakMap;let w;function x(O,N){return w||(w=m()),w(O,N)}function A(){return w||(w=m()),w.getInitialState()}function C(O,N=!1){function B(Z){let X=Z[O];return typeof X>"u"&&N&&(X=Up(_,B,A)),X}function V(Z=p){const X=Up(b,N,()=>new WeakMap);return Up(X,Z,()=>{const oe={};for(const[ee,J]of Object.entries(r.selectors??{}))oe[ee]=kZ(J,Z,()=>Up(_,Z,A),N);return oe})}return{reducerPath:O,getSelectors:V,get selectors(){return V(B)},selectSlice:B}}const j={name:i,reducer:x,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:A,...C(a),injectInto(O,{reducerPath:N,...B}={}){const V=N??a;return O.inject({reducerPath:V,reducer:x},B),{...j,...C(V,!0)}}};return j}}function kZ(e,t,n,r){function i(a,...s){let u=t(a);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var Nt=DZ();function IZ(){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 UZ({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!zZ(r))throw new Error(Ci(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?dn(e,s):dn(e))}function BZ(e){return e._reducerDefinitionType==="asyncThunk"}function zZ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function FZ({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Ci(18));const{payloadCreator:a,fulfilled:s,pending:u,rejected:d,settled:f,options:m}=n,p=i(e,a,m);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),u&&r.addCase(p.pending,u),d&&r.addCase(p.rejected,d),f&&r.addMatcher(p.settled,f),r.exposeCaseReducer(t,{fulfilled:s||Bp,pending:u||Bp,rejected:d||Bp,settled:f||Bp})}function Bp(){}var $Z="task",QN="listener",JN="completed",Iw="cancelled",VZ=`task-${Iw}`,qZ=`task-${JN}`,$x=`${QN}-${Iw}`,HZ=`${QN}-${JN}`,ny=class{constructor(e){this.code=e,this.message=`${$Z} ${Iw} (reason: ${e})`}name="TaskAbortError";message},Uw=(e,t)=>{if(typeof e!="function")throw new TypeError(Ci(32))},$g=()=>{},eL=(e,t=$g)=>(e.catch(t),e),tL=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),wu=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Su=e=>{if(e.aborted){const{reason:t}=e;throw new ny(t)}};function nL(e,t){let n=$g;return new Promise((r,i)=>{const a=()=>i(new ny(e.reason));if(e.aborted){a();return}n=tL(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=$g})}var GZ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof ny?"cancelled":"rejected",error:n}}finally{t?.()}},Vg=e=>t=>eL(nL(e,t).then(n=>(Su(e),n))),rL=e=>{const t=Vg(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Wc}=Object,QT={},ry="listenerMiddleware",WZ=(e,t)=>{const n=r=>tL(e,()=>wu(r,e.reason));return(r,i)=>{Uw(r);const a=new AbortController;n(a);const s=GZ(async()=>{Su(e),Su(a.signal);const u=await r({pause:Vg(a.signal),delay:rL(a.signal),signal:a.signal});return Su(a.signal),u},()=>wu(a,qZ));return i?.autoJoin&&t.push(s.catch($g)),{result:Vg(e)(s),cancel(){wu(a,VZ)}}}},YZ=(e,t)=>{const n=async(r,i)=>{Su(t);let a=()=>{};const u=[new Promise((d,f)=>{let m=e({predicate:r,effect:(p,b)=>{b.unsubscribe(),d([p,b.getState(),b.getOriginalState()])}});a=()=>{m(),f()}})];i!=null&&u.push(new Promise(d=>setTimeout(d,i,null)));try{const d=await nL(t,Promise.race(u));return Su(t),d}finally{a()}};return(r,i)=>eL(n(r,i))},iL=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=dn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Ci(21));return Uw(a),{predicate:i,type:t,effect:a}},aL=Wc(e=>{const{type:t,predicate:n,effect:r}=iL(e);return{id:ZN(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ci(22))}}},{withTypes:()=>aL}),JT=(e,t)=>{const{type:n,effect:r,predicate:i}=iL(t);return Array.from(e.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},Vx=e=>{e.pending.forEach(t=>{wu(t,$x)})},KZ=e=>()=>{e.forEach(Vx),e.clear()},eO=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},oL=Wc(dn(`${ry}/add`),{withTypes:()=>oL}),ZZ=dn(`${ry}/removeAll`),sL=Wc(dn(`${ry}/remove`),{withTypes:()=>sL}),XZ=(...e)=>{console.error(`${ry}/error`,...e)},qh=(e={})=>{const t=new Map,{extra:n,onError:r=XZ}=e;Uw(r);const i=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),p=>{m.unsubscribe(),p?.cancelActive&&Vx(m)}),a=m=>{const p=JT(t,m)??aL(m);return i(p)};Wc(a,{withTypes:()=>a});const s=m=>{const p=JT(t,m);return p&&(p.unsubscribe(),m.cancelActive&&Vx(p)),!!p};Wc(s,{withTypes:()=>s});const u=async(m,p,b,_)=>{const w=new AbortController,x=YZ(a,w.signal),A=[];try{m.pending.add(w),await Promise.resolve(m.effect(p,Wc({},b,{getOriginalState:_,condition:(C,j)=>x(C,j).then(Boolean),take:x,delay:rL(w.signal),pause:Vg(w.signal),extra:n,signal:w.signal,fork:WZ(w.signal,A),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((C,j,O)=>{C!==w&&(wu(C,$x),O.delete(C))})},cancel:()=>{wu(w,$x),m.pending.delete(w)},throwIfCancelled:()=>{Su(w.signal)}})))}catch(C){C instanceof ny||eO(r,C,{raisedBy:"effect"})}finally{await Promise.all(A),wu(w,HZ),m.pending.delete(w)}},d=KZ(t);return{middleware:m=>p=>b=>{if(!UN(b))return p(b);if(oL.match(b))return a(b.payload);if(ZZ.match(b)){d();return}if(sL.match(b))return s(b.payload);let _=m.getState();const w=()=>{if(_===QT)throw new Error(Ci(23));return _};let x;try{if(x=p(b),t.size>0){const A=m.getState(),C=Array.from(t.values());for(const j of C){let O=!1;try{O=j.predicate(b,A,_)}catch(N){O=!1,eO(r,N,{raisedBy:"predicate"})}O&&u(j,b,m,w)}}}finally{_=QT}return x},startListening:a,stopListening:s,clearListeners:d}};function Ci(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:QZ,reducer:JZ}=Nt({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:eX,resetAppUpdate:tX}=QZ,nX=JZ,rX=(e,t)=>{e.factory("App",HK),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>eX),e.serviceFactory("resetAppUpdate",()=>tX)},tO={"Content-Type":"application/json"},nO=e=>e?.body?e?{...e,headers:{...e.headers??{},...tO}}:{headers:tO}:e;let iX=class{#t;constructor(t=globalThis.fetch.bind(globalThis)){this.#t=t}async jsonRequest(t,n){const r=await this.#t(t,nO(n)),i=await r.json();if(!r.ok)throw i;return i}async emptyRequest(t,n){const r=await this.#t(t,nO(n));if(!r.ok)throw await r.json()}};function qg(e){return t=>{const{resetSelectedServer:n}=t;return T.useEffect(()=>{n()},[n]),v.jsx(e,{...t})}}let aX=class extends T.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 v.jsxs(LN,{title:"Oops! This is awkward :S",children:[v.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),v.jsx("br",{}),v.jsx(Rt,{size:"lg",onClick:()=>n.reload(),children:"Take me back"})]});const{children:r}=this.props;return r}};const Ei=({href:e,children:t,rel:n,...r})=>v.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),oX=({id:e,name:t})=>v.jsxs(Mr,{to:`/server/${e}`,className:Ne("servers-list__server-item","flex items-center justify-between gap-x-2 px-4 py-3","rounded-none hover:bg-lm-secondary hover:dark:bg-dm-secondary","border-b last:border-0 border-lm-border dark:border-dm-border"),children:[v.jsx("span",{className:"truncate",children:t}),v.jsx(We,{icon:Ag})]}),lL=({servers:e,borderless:t})=>v.jsx(v.Fragment,{children:e.length>0&&v.jsx("div",{"data-testid":"list",className:Ne("w-full border-lm-border dark:border-dm-border","md:max-h-56 md:overflow-y-auto -mb-1 scroll-thin",{"border-y":!t}),children:e.map(({id:n,name:r})=>v.jsx(oX,{id:n,name:r},n))})}),uL=({color:e=yh(),className:t})=>v.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:v.jsxs("g",{fill:e,children:[v.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"}),v.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"}),v.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"}),v.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"})]})}),sX=({servers:e})=>{const t=eo(),n=Object.values(e),r=n.length>0;return T.useEffect(()=>{const i=n.find(({autoConnect:a})=>a);i&&t(`/server/${i.id}`)},[n,t]),v.jsx("div",{className:"px-3 w-full",children:v.jsx(cn,{className:"mx-auto max-w-[720px] overflow-hidden",children:v.jsxs("div",{className:"flex flex-col md:flex-row",children:[v.jsx("div",{className:"p-6 hidden md:flex items-center w-[40%]",children:v.jsx("div",{className:"w-full",children:v.jsx(uL,{})})}),v.jsxs("div",{className:"md:border-l border-lm-border dark:border-dm-border flex-grow",children:[v.jsx("h1",{className:Ne("p-4 text-center border-lm-border dark:border-dm-border",{"border-b":!r}),children:"Welcome!"}),r?v.jsx(lL,{servers:n}):v.jsxs("div",{className:"p-6 text-center flex flex-col gap-12 text-xl",children:[v.jsx("p",{children:"This application will help you manage your Shlink servers."}),v.jsx("p",{children:v.jsxs(Rt,{to:"/server/create",size:"lg",inline:!0,children:[v.jsx(We,{icon:kh,widthAuto:!0})," Add a server"]})}),v.jsx("p",{children:v.jsx(Ei,{href:"https://shlink.io/documentation",children:v.jsxs("small",{children:[v.jsx("span",{className:"mr-2",children:"Learn more about Shlink"}),v.jsx(We,{icon:L$})]})})})]})]})]})})})},cL=()=>{const{ServersDropdown:e}=Ca(cL),{pathname:t}=xr(),n="/settings";return v.jsxs(Nx,{className:"[&]:fixed top-0 z-900",brand:v.jsxs(Mr,{to:"/",className:"[&]:text-white no-underline flex items-center gap-2",children:[v.jsx(uL,{className:"w-7",color:"white"})," ",v.jsx("small",{className:"font-normal",children:"Shlink"})]}),children:[v.jsxs(Nx.MenuItem,{to:n,active:t.startsWith(n),className:"flex items-center gap-1.5",children:[v.jsx(We,{icon:j$})," Settings"]}),v.jsx(e,{})]})},lX=Ea(cL,["ServersDropdown"]),uX=({children:e})=>{const t=xr();return T.useEffect(()=>{scrollTo(0,0)},[t]),v.jsx(v.Fragment,{children:e})},fL=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),dL=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),db=e=>Object.prototype.toString.call(e)==="[object Object]",hL=(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}},Sf=(e,t)=>{const n={...e};return!db(e)||!db(t)||Object.keys(t).forEach(r=>{db(t[r])?n[r]=r in e&&e[r]!==void 0?Sf(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},mL=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),cX=(e,t)=>[...e].sort((n,r)=>{const i=t(n),a=t(r);return i===a?0:i<a?-1:1}),Yc=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},rO=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),fX=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,iO=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(fX);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},aO=e=>e==="*"||e==="x"||e==="X",oO=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},dX=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],hX=(e,t)=>{if(aO(e)||aO(t))return 0;const[n,r]=dX(oO(e),oO(t));return n>r?1:n<r?-1:0},sO=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=hX(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},mX=(e,t)=>{const n=iO(e),r=iO(t),i=n.pop(),a=r.pop(),s=sO(n,r);return s!==0?s:i&&a?sO(i.split("."),a.split(".")):i||a?i?-1:1:0},qx=(e,t,n)=>{pX(n);const r=mX(e,t);return pL[n].includes(r)},pL={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},lO=Object.keys(pL),pX=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(lO.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${lO.join("|")}`)},gL=hL(e=>e,e=>{try{return qx(e,e,"=")}catch{return!1}}),vL=e=>gL(e)?`v${e}`:e,yL=(e,t="latest")=>gL(e)?e:t,gX="%_VERSION_%",vX=e=>vL(yL(e)),uO=({project:e,version:t})=>v.jsx(Ei,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-gray-500",children:v.jsx("b",{children:t})}),yX=({selectedServer:e,clientVersion:t=gX})=>{const n=vX(t);return v.jsxs("small",{className:"text-gray-500",children:[iw(e)&&v.jsxs(v.Fragment,{children:["Server: ",v.jsx(uO,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",v.jsx(uO,{project:"shlink-web-client",version:n})]})},bX=({selectedServer:e})=>v.jsx("div",{className:Ne("text-center",{"md:ml-(--aside-menu-width)":iw(e)}),children:v.jsx(yX,{selectedServer:e})}),Bw={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(Bw);const zw=(e,t,n=1)=>mL(n,e+1).map(t),_X=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,mu=e=>e!=null&&!_X(e),hb=e=>e||null,Hx=e=>e?"true":"false",mb=e=>e===void 0?void 0:Hx(e),xX=e=>{if(e.length<2)return e[0]??"";const[t,...n]=e.reverse();return`${n.reverse().join(", ")} and ${t}`},cO="[&]:p-0 [&]:md:w-1/4 [&]:rounded-none",wX=({onChange:e,className:t})=>{const n=kn("qrCodes",Cf),{color:r,bgColor:i}=n;return v.jsxs(Mt,{title:"Colors",className:t,bodyClassName:"flex flex-col gap-4",children:[v.jsx(ni,{label:"Default color:",helpText:v.jsxs(v.Fragment,{children:["QR codes will initially use ",v.jsx("b",{"data-testid":"color",children:r})," color."]}),type:"color",value:r,onChange:a=>e({...n,color:a.target.value}),inputClassName:cO}),v.jsx(ni,{label:"Default background color:",helpText:v.jsxs(v.Fragment,{children:["QR codes will initially use ",v.jsx("b",{"data-testid":"bg-color",children:i})," background color."]}),type:"color",value:i,onChange:a=>e({...n,bgColor:a.target.value}),inputClassName:cO})]})},bL=({errorCorrection:e,onChange:t})=>v.jsxs(Qe,{buttonContent:e?`Error correction (${e})`:v.jsx("i",{children:"Default error correction"}),buttonClassName:"w-full",children:[v.jsxs(Qe.Item,{selected:e==="L",onClick:()=>t("L"),children:[v.jsx("b",{children:"L"}),"ow"]}),v.jsxs(Qe.Item,{selected:e==="M",onClick:()=>t("M"),children:[v.jsx("b",{children:"M"}),"edium"]}),v.jsxs(Qe.Item,{selected:e==="Q",onClick:()=>t("Q"),children:[v.jsx("b",{children:"Q"}),"uartile"]}),v.jsxs(Qe.Item,{selected:e==="H",onClick:()=>t("H"),children:[v.jsx("b",{children:"H"}),"igh"]})]}),SX=["png","svg","webp","jpeg"],_L=({format:e,onChange:t})=>v.jsx(Qe,{buttonContent:`Format (${e})`,buttonClassName:"w-full",children:SX.map(n=>v.jsx(Qe.Item,{selected:e===n,onClick:()=>t(n),children:n},n))}),Nu=({className:e,size:t,...n})=>v.jsx("span",{className:Ne("text-gray-500 dark:text-gray-400",{"text-sm":t==="sm","text-lg":t==="lg"},e),...n}),CX=({onChange:e})=>{const t=kn("qrCodes",Cf),{format:n,errorCorrection:r}=t;return v.jsxs(Mt,{title:"Format",className:"card",bodyClassName:"flex flex-col gap-4",children:[v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsx(_L,{format:n,onChange:i=>e({...t,format:i})}),v.jsxs(Nu,{size:"sm",children:["When downloading a QR code, it will use ",v.jsx("b",{"data-testid":"format",children:n})," format by default."]})]}),v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsx(bL,{errorCorrection:r,onChange:i=>e({...t,errorCorrection:i})}),v.jsxs(Nu,{size:"sm",children:["QR codes will initially have a ",v.jsx("b",{"data-testid":"error-correction",children:r})," error correction."]})]})]})},EX=({onChange:e,className:t})=>{const n=kn("qrCodes",Cf),{size:r,margin:i}=n;return v.jsxs(Mt,{title:"Size",className:t,bodyClassName:"flex flex-col gap-4",children:[v.jsx(ni,{label:"Default dimensions:",helpText:v.jsxs(v.Fragment,{children:["QR codes will be initially generated with ",v.jsxs("b",{"data-testid":"size",children:[r,"x",r,"px"]}),"."]}),type:"range",value:r,step:10,min:50,max:1e3,onChange:a=>e({...n,size:Number(a.target.value)}),inputClassName:"[&]:p-0"}),v.jsx(ni,{label:"Default margin:",helpText:v.jsxs(v.Fragment,{children:["QR codes will be initially generated with a ",v.jsxs("b",{"data-testid":"margin",children:[i,"px"]})," margin."]}),type:"range",value:i,step:1,min:0,max:100,onChange:a=>e({...n,margin:Number(a.target.value)}),inputClassName:"[&]:p-0"})]})},Ho=({children:e,helpText:t,"data-testid":n,...r})=>v.jsxs("div",{"data-testid":n,children:[v.jsxs(Sa,{className:"flex items-center gap-x-2",children:[v.jsx(oK,{...r}),e]}),t&&v.jsx(Nu,{size:"sm","data-testid":n?`${n}-help-text`:"help-text",className:"pl-10",children:t})]}),AX=({toggleRealTimeUpdates:e,onIntervalChange:t})=>{const{enabled:n,interval:r}=kn("realTimeUpdates",{enabled:!0});return v.jsxs(Mt,{title:"Real-time updates",className:"h-full",bodyClassName:"flex flex-col gap-y-4",children:[v.jsx(Ho,{checked:n,onChange:e,helpText:v.jsxs(v.Fragment,{children:["Real-time updates are currently being ",v.jsx("b",{children:n?"processed":"ignored"}),"."]}),children:"Enable or disable real-time updates."}),v.jsxs("div",{children:[v.jsx(ni,{label:v.jsx("span",{className:Ne({"dark:text-gray-400":!n}),children:"Real-time updates frequency (in minutes):"}),type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,onChange:({target:i})=>t(Number(i.value))}),n&&v.jsx(Nu,{size:"sm",children:r?v.jsxs("span",{children:["Updates will be reflected in the UI every ",v.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},pb=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",TX=e=>e==="includes"?v.jsxs(v.Fragment,{children:["The list of suggested tags will contain those ",v.jsx("b",{children:"including"})," provided input."]}):v.jsxs(v.Fragment,{children:["The list of suggested tags will contain those ",v.jsx("b",{children:"starting with"})," provided input."]}),OX=({onChange:e})=>{const t=kn("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return v.jsxs(Mt,{title:"Short URLs form",className:"card",bodyClassName:"flex flex-col gap-4",children:[v.jsxs(Ho,{"data-testid":"validate-url",checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),helpText:v.jsxs(v.Fragment,{children:["The initial state of the ",v.jsx("b",{children:"Validate URL"})," checkbox will be ",v.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]}),children:["Request validation on long URLs when creating new short URLs."," ",v.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]})]}),v.jsx(Ho,{"data-testid":"forward-query",checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),helpText:v.jsxs(v.Fragment,{children:["The initial state of the ",v.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",v.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]}),children:"Make all new short URLs forward their query params to the long URL."}),v.jsxs("div",{className:"flex flex-col",children:[v.jsx(Sa,{className:"mb-1.5",children:"Tag suggestions search mode:"}),v.jsxs(Qe,{buttonContent:pb(t.tagFilteringMode),buttonClassName:"w-full",children:[v.jsx(Qe.Item,{selected:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:pb("startsWith")}),v.jsx(Qe.Item,{selected:t.tagFilteringMode==="includes",onClick:n("includes"),children:pb("includes")})]}),v.jsx(Nu,{size:"sm",className:"mt-0.5",children:TX(t.tagFilteringMode)})]})]})},jX={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},PX=({onChange:e,defaultOrdering:t})=>{const n=kn("shortUrlsList"),r=n?.confirmDeletions??!0;return v.jsxs(Mt,{title:"Short URLs list",className:"card",bodyClassName:"flex flex-col gap-4",children:[v.jsx(Ho,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),helpText:v.jsxs(v.Fragment,{children:["When deleting a short URL, confirmation ",v.jsx("b",{children:r?"will":"won't"})," be required."]}),children:"Request confirmation before deleting a short URL."}),v.jsxs("div",{className:"flex flex-col gap-1.5",children:[v.jsx(Sa,{children:"Default ordering for short URLs list:"}),v.jsx(Vh,{buttonClassName:"w-full",items:jX,order:n?.defaultOrdering??t,onChange:i=>e({defaultOrdering:!i.dir&&!i.field?void 0:i})})]})]})},MX={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},RX=({onChange:e})=>{const t=kn("tags",{});return v.jsx(Mt,{title:"Tags",className:"card",children:v.jsxs("div",{className:"flex flex-col gap-1.5",children:[v.jsx(Sa,{children:"Default ordering for tags list:"}),v.jsx(Vh,{buttonClassName:"w-full",items:MX,order:t.defaultOrdering??{},onChange:n=>e({...t,defaultOrdering:!n.field&&!n.dir?void 0:n})})]})})},NX=({onChange:e,_matchMedia:t})=>{const n=kn("ui"),r=T.useMemo(()=>n?.theme??Rw(t),[n?.theme,t]);return v.jsxs(Mt,{title:"User interface",bodyClassName:"flex justify-between items-center",children:[v.jsx(Ho,{checked:r==="dark",onChange:i=>e({...n,theme:i?"dark":"light"}),children:"Use dark theme."}),v.jsx(We,{icon:r==="dark"?aV:Z$})]})},fO={potentialBot:"Potential bot",date:"Date",country:"Country",region:"Region",city:"City",browser:"Browser",os:"OS",userAgent:"User agent",referer:"Referrer",visitedUrl:"Visited URL"},gg={browser:["userAgent"],os:["userAgent"],userAgent:["browser","os"]};Object.freeze(gg);const LX=({onChange:e})=>{const t=kn("visitsList"),n=T.useMemo(()=>Sf(iy,t?.columns??{}),[t?.columns]),r=T.useCallback((i,a)=>{const s={...n,[i]:a};a&&gg[i]?.forEach(u=>{s[u]=!1}),e({columns:s})},[n,e]);return v.jsxs(Mt,{title:"Visits list",children:[v.jsx("p",{className:"mb-2",children:"Columns to show in visits table:"}),v.jsx("ul",{className:"flex flex-col gap-y-1",children:Object.entries(fO).map(([i,a])=>v.jsx("li",{children:v.jsx(Ho,{checked:n[i],onChange:s=>r(i,s),children:v.jsxs("span",{className:"inline-flex gap-2",children:[a,gg[i]&&v.jsxs(Nu,{children:["(excludes ",xX(gg[i].map(s=>fO[s])),")"]})]})})},i))})]})},xL={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},DX=(e,t)=>!e||e==="all"?t:xL[e],kX=({onChange:e,active:t,allText:n})=>v.jsxs(Qe,{buttonContent:DX(t,n),buttonClassName:"w-full",children:[v.jsx(Qe.Item,{selected:t==="all",onClick:()=>e("all"),children:n}),v.jsx(Qe.Separator,{}),Object.entries(xL).map(([r,i])=>v.jsx(Qe.Item,{selected:t===r,onClick:()=>e(r),children:i},r))]}),dO=e=>e?.defaultInterval??"last30Days",IX=({onChange:e})=>{const t=kn("visits"),n=T.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??dO(t),...i}),[e,t]);return v.jsxs(Mt,{title:"Visits",className:"card",bodyClassName:"flex flex-col gap-4",children:[v.jsx(Ho,{"data-testid":"exclude-bots",checked:!!t?.excludeBots,onChange:r=>n({excludeBots:r}),helpText:v.jsxs(v.Fragment,{children:["The visits coming from potential bots will be ",v.jsx("b",{children:t?.excludeBots?"excluded":"included"}),"."]}),children:"Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version)."}),v.jsx(Ho,{"data-testid":"compare-visits",checked:!!t?.loadPrevInterval,onChange:r=>n({loadPrevInterval:r}),helpText:v.jsxs(v.Fragment,{children:["When loading visits, previous period ",v.jsx("b",{children:t?.loadPrevInterval?"will":"won't"})," be loaded by default."]}),children:"Compare visits with previous period."}),v.jsxs("div",{className:"flex flex-col",children:[v.jsx(Sa,{className:"mb-1.5",children:"Default interval to load on visits sections:"}),v.jsx(kX,{allText:"All visits",active:dO(t),onChange:r=>n({defaultInterval:r})})]})]})},Ud=({children:e,className:t})=>v.jsx("div",{className:Ne("flex flex-col gap-4",t),children:e}),UX=({settings:e,onUpdateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=T.useCallback(d=>t?.(Sf(e,d)),[e,t]),i=T.useCallback(d=>r({realTimeUpdates:{enabled:d}}),[r]),a=T.useCallback(d=>r({realTimeUpdates:{interval:d}}),[r]),s=T.useCallback((d,f)=>r({[d]:f}),[r]),u=T.useCallback(d=>s("qrCodes",d),[s]);return v.jsxs(CL,{value:e,children:[v.jsxs(il,{className:"mb-4 sticky top-(--header-height) z-2",children:[v.jsx(il.Pill,{to:"../general",children:"General"}),v.jsx(il.Pill,{to:"../short-urls",children:"Short URLs"}),v.jsx(il.Pill,{to:"../visits",children:"Visits"}),v.jsx(il.Pill,{to:"../tags",children:"Tags"}),v.jsx(il.Pill,{to:"../qr-codes",children:"QR codes"})]}),v.jsxs(Lv,{children:[v.jsx(gt,{path:"general",element:v.jsxs(Ud,{children:[v.jsx(NX,{onChange:d=>s("ui",d)}),v.jsx(AX,{toggleRealTimeUpdates:i,onIntervalChange:a})]})}),v.jsx(gt,{path:"short-urls",element:v.jsxs(Ud,{children:[v.jsx(OX,{onChange:d=>s("shortUrlCreation",d)}),v.jsx(PX,{defaultOrdering:n,onChange:d=>s("shortUrlsList",d)})]})}),v.jsx(gt,{path:"visits",element:v.jsxs(Ud,{children:[v.jsx(IX,{onChange:d=>s("visits",d)}),v.jsx(LX,{onChange:d=>s("visitsList",d)})]})}),v.jsx(gt,{path:"tags",element:v.jsx(Ud,{children:v.jsx(RX,{onChange:d=>s("tags",d)})})}),v.jsx(gt,{path:"qr-codes",element:v.jsxs(Ud,{children:[v.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[v.jsx(EX,{onChange:u,className:"w-full"}),v.jsx(wX,{onChange:u,className:"w-full"})]}),v.jsx(CX,{onChange:u})]})}),v.jsx(gt,{path:"*",element:v.jsx(Z2,{replace:!0,to:"../general"})})]})]})},Cf={size:300,margin:0,color:"#000000",bgColor:"#ffffff",errorCorrection:"L",format:"png"};Object.freeze(Cf);const iy={potentialBot:!0,date:!0,country:!0,region:!1,city:!0,browser:!0,os:!0,userAgent:!1,referer:!0,visitedUrl:!0};Object.freeze(iy);const wL={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},visitsList:{columns:iy},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}},qrCodes:Cf},SL=T.createContext(wL),{Provider:CL}=SL,Fw=()=>T.useContext(SL)??wL;function kn(e,t){return Fw()[e]??t}var th={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/var BX=th.exports,hO;function zX(){return hO||(hO=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,s=n.XDomainRequest,u=n.ActiveXObject,d=n.EventSource,f=n.document,m=n.Promise,p=n.fetch,b=n.Response,_=n.TextDecoder,w=n.TextEncoder,x=n.AbortController;if(typeof window<"u"&&typeof f<"u"&&!("readyState"in f)&&f.body==null&&(f.readyState="loading",window.addEventListener("load",function(de){f.readyState="complete"},!1)),a==null&&u!=null&&(a=function(){return new u("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(de){function _e(){}return _e.prototype=de,new _e}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var A=p;p=function(de,_e){var Te=_e.signal;return A(de,{headers:_e.headers,credentials:_e.credentials,cache:_e.cache}).then(function(Le){var He=Le.body.getReader();return Te._reader=He,Te._aborted&&Te._reader.cancel(),{status:Le.status,statusText:Le.statusText,headers:Le.headers,body:{getReader:function(){return He}}}})},x=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function C(){this.bitsNeeded=0,this.codePoint=0}C.prototype.decode=function(de){function _e(De,Re,Ae){if(Ae===1)return De>=128>>Re&&De<<Re<=2047;if(Ae===2)return De>=2048>>Re&&De<<Re<=55295||De>=57344>>Re&&De<<Re<=65535;if(Ae===3)return De>=65536>>Re&&De<<Re<=1114111;throw new Error}function Te(De,Re){if(De===6*1)return Re>>6>15?3:Re>31?2:1;if(De===6*2)return Re>15?3:2;if(De===6*3)return 3;throw new Error}for(var Le=65533,He="",Be=this.bitsNeeded,qe=this.codePoint,be=0;be<de.length;be+=1){var we=de[be];Be!==0&&(we<128||we>191||!_e(qe<<6|we&63,Be-6,Te(Be,qe)))&&(Be=0,qe=Le,He+=String.fromCharCode(qe)),Be===0?(we>=0&&we<=127?(Be=0,qe=we):we>=192&&we<=223?(Be=6*1,qe=we&31):we>=224&&we<=239?(Be=6*2,qe=we&15):we>=240&&we<=247?(Be=6*3,qe=we&7):(Be=0,qe=Le),Be!==0&&!_e(qe,Be,Te(Be,qe))&&(Be=0,qe=Le)):(Be-=6,qe=qe<<6|we&63),Be===0&&(qe<=65535?He+=String.fromCharCode(qe):(He+=String.fromCharCode(55296+(qe-65535-1>>10)),He+=String.fromCharCode(56320+(qe-65535-1&1023))))}return this.bitsNeeded=Be,this.codePoint=qe,He};var j=function(){try{return new _().decode(new w().encode("test"),{stream:!0})==="test"}catch(de){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+de)}return!1};(_==null||w==null||!j())&&(_=C);var O=function(){};function N(de){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=de,this._sendTimeout=0,this._abort=O}N.prototype.open=function(de,_e){this._abort(!0);var Te=this,Le=this._xhr,He=1,Be=0;this._abort=function(Ae){Te._sendTimeout!==0&&(i(Te._sendTimeout),Te._sendTimeout=0),(He===1||He===2||He===3)&&(He=4,Le.onload=O,Le.onerror=O,Le.onabort=O,Le.onprogress=O,Le.onreadystatechange=O,Le.abort(),Be!==0&&(i(Be),Be=0),Ae||(Te.readyState=4,Te.onabort(null),Te.onreadystatechange())),He=0};var qe=function(){if(He===1){var Ae=0,ze="",Ve=void 0;if("contentType"in Le)Ae=200,ze="OK",Ve=Le.contentType;else try{Ae=Le.status,ze=Le.statusText,Ve=Le.getResponseHeader("Content-Type")}catch{Ae=0,ze="",Ve=void 0}Ae!==0&&(He=2,Te.readyState=2,Te.status=Ae,Te.statusText=ze,Te._contentType=Ve,Te.onreadystatechange())}},be=function(){if(qe(),He===2||He===3){He=3;var Ae="";try{Ae=Le.responseText}catch{}Te.readyState=3,Te.responseText=Ae,Te.onprogress()}},we=function(Ae,ze){if((ze==null||ze.preventDefault==null)&&(ze={preventDefault:O}),be(),He===1||He===2||He===3){if(He=4,Be!==0&&(i(Be),Be=0),Te.readyState=4,Ae==="load")Te.onload(ze);else if(Ae==="error")Te.onerror(ze);else if(Ae==="abort")Te.onabort(ze);else throw new TypeError;Te.onreadystatechange()}},De=function(Ae){Le!=null&&(Le.readyState===4?(!("onload"in Le)||!("onerror"in Le)||!("onabort"in Le))&&we(Le.responseText===""?"error":"load",Ae):Le.readyState===3?"onprogress"in Le||be():Le.readyState===2&&qe())},Re=function(){Be=r(function(){Re()},500),Le.readyState===3&&be()};"onload"in Le&&(Le.onload=function(Ae){we("load",Ae)}),"onerror"in Le&&(Le.onerror=function(Ae){we("error",Ae)}),"onabort"in Le&&(Le.onabort=function(Ae){we("abort",Ae)}),"onprogress"in Le&&(Le.onprogress=be),"onreadystatechange"in Le&&(Le.onreadystatechange=function(Ae){De(Ae)}),("contentType"in Le||!("ontimeout"in a.prototype))&&(_e+=(_e.indexOf("?")===-1?"?":"&")+"padding=true"),Le.open(de,_e,!0),"readyState"in Le&&(Be=r(function(){Re()},0))},N.prototype.abort=function(){this._abort(!1)},N.prototype.getResponseHeader=function(de){return this._contentType},N.prototype.setRequestHeader=function(de,_e){var Te=this._xhr;"setRequestHeader"in Te&&Te.setRequestHeader(de,_e)},N.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},N.prototype.send=function(){if((!("ontimeout"in a.prototype)||!("sendAsBinary"in a.prototype)&&!("mozAnon"in a.prototype))&&f!=null&&f.readyState!=null&&f.readyState!=="complete"){var de=this;de._sendTimeout=r(function(){de._sendTimeout=0,de.send()},4);return}var _e=this._xhr;"withCredentials"in _e&&(_e.withCredentials=this.withCredentials);try{_e.send(void 0)}catch(Te){throw Te}};function B(de){return de.replace(/[A-Z]/g,function(_e){return String.fromCharCode(_e.charCodeAt(0)+32)})}function V(de){for(var _e=Object.create(null),Te=de.split(`\r
|
||
`),Le=0;Le<Te.length;Le+=1){var He=Te[Le],Be=He.split(": "),qe=Be.shift(),be=Be.join(": ");_e[B(qe)]=be}this._map=_e}V.prototype.get=function(de){return this._map[B(de)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function Z(){}Z.prototype.open=function(de,_e,Te,Le,He,Be,qe){de.open("GET",He);var be=0;de.onprogress=function(){var De=de.responseText,Re=De.slice(be);be+=Re.length,Te(Re)},de.onerror=function(De){De.preventDefault(),Le(new Error("NetworkError"))},de.onload=function(){Le(null)},de.onabort=function(){Le(null)},de.onreadystatechange=function(){if(de.readyState===a.HEADERS_RECEIVED){var De=de.status,Re=de.statusText,Ae=de.getResponseHeader("Content-Type"),ze=de.getAllResponseHeaders();_e(De,Re,Ae,new V(ze))}},de.withCredentials=Be;for(var we in qe)Object.prototype.hasOwnProperty.call(qe,we)&&de.setRequestHeader(we,qe[we]);return de.send(),de};function X(de){this._headers=de}X.prototype.get=function(de){return this._headers.get(de)};function oe(){}oe.prototype.open=function(de,_e,Te,Le,He,Be,qe){var be=null,we=new x,De=we.signal,Re=new _;return p(He,{headers:qe,credentials:Be?"include":"same-origin",signal:De,cache:"no-store"}).then(function(Ae){return be=Ae.body.getReader(),_e(Ae.status,Ae.statusText,Ae.headers.get("Content-Type"),new X(Ae.headers)),new m(function(ze,Ve){var Ze=function(){be.read().then(function(ut){if(ut.done)ze(void 0);else{var at=Re.decode(ut.value,{stream:!0});Te(at),Ze()}}).catch(function(ut){Ve(ut)})};Ze()})}).catch(function(Ae){if(Ae.name!=="AbortError")return Ae}).then(function(Ae){Le(Ae)}),{abort:function(){be?.cancel(),we.abort()}}};function ee(){this._listeners=Object.create(null)}function J(de){r(function(){throw de},0)}ee.prototype.dispatchEvent=function(de){de.target=this;var _e=this._listeners[de.type];if(_e!=null)for(var Te=_e.length,Le=0;Le<Te;Le+=1){var He=_e[Le];try{typeof He.handleEvent=="function"?He.handleEvent(de):He.call(this,de)}catch(Be){J(Be)}}},ee.prototype.addEventListener=function(de,_e){de=String(de);var Te=this._listeners,Le=Te[de];Le==null&&(Le=[],Te[de]=Le);for(var He=!1,Be=0;Be<Le.length;Be+=1)Le[Be]===_e&&(He=!0);He||Le.push(_e)},ee.prototype.removeEventListener=function(de,_e){de=String(de);var Te=this._listeners,Le=Te[de];if(Le!=null){for(var He=[],Be=0;Be<Le.length;Be+=1)Le[Be]!==_e&&He.push(Le[Be]);He.length===0?delete Te[de]:Te[de]=He}};function ne(de){this.type=de,this.target=void 0}function he(de,_e){ne.call(this,de),this.data=_e.data,this.lastEventId=_e.lastEventId}he.prototype=Object.create(ne.prototype);function Q(de,_e){ne.call(this,de),this.status=_e.status,this.statusText=_e.statusText,this.headers=_e.headers}Q.prototype=Object.create(ne.prototype);function se(de,_e){ne.call(this,de),this.error=_e.error}se.prototype=Object.create(ne.prototype);var Y=-1,U=0,I=1,z=2,M=-1,D=0,W=1,H=2,re=3,ue=/^text\/event\-stream(;.*)?$/i,ce=1e3,ve=18e6,k=function(de,_e){var Te=de==null?_e:parseInt(de,10);return Te!==Te&&(Te=_e),F(Te)},F=function(de){return Math.min(Math.max(de,ce),ve)},G=function(de,_e,Te){try{typeof _e=="function"&&_e.call(de,Te)}catch(Le){J(Le)}};function le(de,_e){ee.call(this),_e=_e||{},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,fe(this,de,_e)}function q(){return a!=null&&"withCredentials"in a.prototype||s==null?new a:new s}var ae=p!=null&&b!=null&&"body"in b.prototype;function fe(de,_e,Te){_e=String(_e);var Le=!!Te.withCredentials,He=Te.lastEventIdQueryParameterName||"lastEventId",Be=F(1e3),qe=k(Te.heartbeatTimeout,45e3),be="",we=Be,De=!1,Re=0,Ae=Te.headers||{},ze=Te.Transport,Ve=ae&&ze==null?void 0:new N(ze!=null?new ze:q()),Ze=ze!=null&&typeof ze!="string"?new ze:Ve==null?new oe:new Z,ut=void 0,at=0,pt=Y,Dt="",kt="",It="",wr="",Vn=D,os=0,ii=0,ss=function(mn,sn,Jn,qn){if(pt===U)if(mn===200&&Jn!=null&&ue.test(Jn)){pt=I,De=Date.now(),we=Be,de.readyState=I;var Qt=new Q("open",{status:mn,statusText:sn,headers:qn});de.dispatchEvent(Qt),G(de,de.onopen,Qt)}else{var Tt="";mn!==200?(sn&&(sn=sn.replace(/\s+/g," ")),Tt="EventSource's response has a status "+mn+" "+sn+" that is not 200. Aborting the connection."):Tt="EventSource's response has a Content-Type specifying an unsupported type: "+(Jn==null?"-":Jn.replace(/\s+/g," "))+". Aborting the connection.",ls();var Qt=new Q("error",{status:mn,statusText:sn,headers:qn});de.dispatchEvent(Qt),G(de,de.onerror,Qt),console.error(Tt)}},ja=function(mn){if(pt===I){for(var sn=-1,Jn=0;Jn<mn.length;Jn+=1){var qn=mn.charCodeAt(Jn);(qn===10||qn===13)&&(sn=Jn)}var Qt=(sn!==-1?wr:"")+mn.slice(0,sn+1);wr=(sn===-1?wr:"")+mn.slice(sn+1),mn!==""&&(De=Date.now(),Re+=mn.length);for(var Tt=0;Tt<Qt.length;Tt+=1){var qn=Qt.charCodeAt(Tt);if(Vn===M&&qn===10)Vn=D;else if(Vn===M&&(Vn=D),qn===13||qn===10){if(Vn!==D){Vn===W&&(ii=Tt+1);var Jt=Qt.slice(os,ii-1),er=Qt.slice(ii+(ii<Tt&&Qt.charCodeAt(ii)===32?1:0),Tt);Jt==="data"?(Dt+=`
|
||
`,Dt+=er):Jt==="id"?kt=er:Jt==="event"?It=er:Jt==="retry"?(Be=k(er,Be),we=Be):Jt==="heartbeatTimeout"&&(qe=k(er,qe),at!==0&&(i(at),at=r(function(){Pa()},qe)))}if(Vn===D){if(Dt!==""){be=kt,It===""&&(It="message");var Rn=new he(It,{data:Dt.slice(1),lastEventId:kt});if(de.dispatchEvent(Rn),It==="open"?G(de,de.onopen,Rn):It==="message"?G(de,de.onmessage,Rn):It==="error"&&G(de,de.onerror,Rn),pt===z)return}Dt="",It=""}Vn=qn===13?M:D}else Vn===D&&(os=Tt,Vn=W),Vn===W?qn===58&&(ii=Tt+1,Vn=H):Vn===H&&(Vn=re)}}},Gu=function(mn){if(pt===I||pt===U){pt=Y,at!==0&&(i(at),at=0),at=r(function(){Pa()},we),we=F(Math.min(Be*16,we*2)),de.readyState=U;var sn=new se("error",{error:mn});de.dispatchEvent(sn),G(de,de.onerror,sn),mn!=null&&console.error(mn)}},ls=function(){pt=z,ut!=null&&(ut.abort(),ut=void 0),at!==0&&(i(at),at=0),de.readyState=z},Pa=function(){if(at=0,pt!==Y){if(!De&&ut!=null)Gu(new Error("No activity within "+qe+" milliseconds. "+(pt===U?"No response received.":Re+" chars received.")+" Reconnecting.")),ut!=null&&(ut.abort(),ut=void 0);else{var mn=Math.max((De||Date.now())+qe-Date.now(),1);De=!1,at=r(function(){Pa()},mn)}return}De=!1,Re=0,at=r(function(){Pa()},qe),pt=U,Dt="",It="",kt=be,wr="",os=0,ii=0,Vn=D;var sn=_e;if(_e.slice(0,5)!=="data:"&&_e.slice(0,5)!=="blob:"&&be!==""){var Jn=_e.indexOf("?");sn=Jn===-1?_e:_e.slice(0,Jn+1)+_e.slice(Jn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(er,Rn){return Rn===He?"":er}),sn+=(_e.indexOf("?")===-1?"?":"&")+He+"="+encodeURIComponent(be)}var qn=de.withCredentials,Qt={};Qt.Accept="text/event-stream";var Tt=de.headers;if(Tt!=null)for(var Jt in Tt)Object.prototype.hasOwnProperty.call(Tt,Jt)&&(Qt[Jt]=Tt[Jt]);try{ut=Ze.open(Ve,ss,ja,Gu,sn,qn,Qt)}catch(er){throw ls(),er}};de.url=_e,de.readyState=U,de.withCredentials=Le,de.headers=Ae,de._close=ls,Pa()}le.prototype=Object.create(ee.prototype),le.prototype.CONNECTING=U,le.prototype.OPEN=I,le.prototype.CLOSED=z,le.prototype.close=function(){this._close()},le.CONNECTING=U,le.OPEN=I,le.CLOSED=z,le.prototype.withCredentials=void 0;var ge=d;a!=null&&(d==null||!("withCredentials"in d.prototype))&&(ge=le),function(de){{var _e=de(t);_e!==void 0&&(e.exports=_e)}}(function(de){de.EventSourcePolyfill=le,de.NativeEventSource=d,de.EventSource=ge})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:BX:globalThis)}(th,th.exports)),th.exports}var FX=zX();const $w=6048e5,$X=864e5,EL=6e4,Vw=36e5,zp=43200,mO=1440,pO=Symbol.for("constructDateFrom");function br(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&pO in e?e[pO](t):e instanceof Date?new e.constructor(t):new Date(t)}function At(e,t){return br(t||e,e)}function qw(e,t,n){const r=At(e,n?.in);return isNaN(t)?br(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function VX(e,t,n){const r=At(e,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 s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function qX(e,t,n){const{years:r=0,months:i=0,weeks:a=0,days:s=0,hours:u=0,minutes:d=0,seconds:f=0}=t,m=At(e,n?.in),p=i||r?VX(m,i+r*12):m,b=s||a?qw(p,s+a*7):p,_=d+u*60,x=(f+_*60)*1e3;return br(e,+b+x)}let HX={};function Hh(){return HX}function Lu(e,t){const n=Hh(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=At(e,t?.in),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function xh(e,t){return Lu(e,{...t,weekStartsOn:1})}function AL(e,t){const n=At(e,t?.in),r=n.getFullYear(),i=br(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=xh(i),s=br(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=xh(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function tf(e){const t=At(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 zu(e,...t){const n=br.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Du(e,t){const n=At(e,t?.in);return n.setHours(0,0,0,0),n}function ay(e,t,n){const[r,i]=zu(n?.in,e,t),a=Du(r),s=Du(i),u=+a-tf(a),d=+s-tf(s);return Math.round((u-d)/$X)}function GX(e,t){const n=AL(e,t),r=br(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),xh(r)}function TL(e,t){let n,r=t?.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=br.bind(null,i));const a=At(i,r);(!n||n<a||isNaN(+a))&&(n=a)}),br(r,n||NaN)}function WX(e,t){let n,r=t?.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=br.bind(null,i));const a=At(i,r);(!n||n>a||isNaN(+a))&&(n=a)}),br(r,n||NaN)}function vg(e,t){const n=+At(e)-+At(t);return n<0?-1:n>0?1:n}function YX(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function KX(e){return!(!YX(e)&&typeof e!="number"||isNaN(+At(e)))}function Hg(e,t,n){const[r,i]=zu(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),s=r.getMonth()-i.getMonth();return a*12+s}function ZX(e,t,n){const[r,i]=zu(n?.in,e,t),a=Lu(r,n),s=Lu(i,n),u=+a-tf(a),d=+s-tf(s);return Math.round((u-d)/$w)}function OL(e,t,n){const[r,i]=zu(n?.in,e,t),a=gO(r,i),s=Math.abs(ay(r,i));r.setDate(r.getDate()-a*s);const u=+(gO(r,i)===-a),d=a*(s-u);return d===0?0:d}function gO(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 jL(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function XX(e,t,n){const[r,i]=zu(n?.in,e,t),a=(+r-+i)/Vw;return jL(n?.roundingMethod)(a)}function QX(e,t){return+At(e)-+At(t)}function nf(e,t){const n=At(e,t?.in);return n.setHours(23,59,59,999),n}function JX(e,t){const n=At(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function eQ(e,t){const n=At(e,t?.in);return+nf(n,t)==+JX(n,t)}function tQ(e,t,n){const[r,i,a]=zu(n?.in,e,e,t),s=vg(i,a),u=Math.abs(Hg(i,a));if(u<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-s*u);let d=vg(i,a)===-s;eQ(r)&&u===1&&vg(r,a)===1&&(d=!1);const f=s*(u-+d);return f===0?0:f}function nQ(e,t,n){const r=QX(e,t)/1e3;return jL(n?.roundingMethod)(r)}function rQ(e,t){const n=At(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function iQ(e,t){const n=t?.weekStartsOn,r=At(e,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 aQ(e,t){return iQ(e,{...t,weekStartsOn:1})}const oQ={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"}},sQ=(e,t,n)=>{let r;const i=oQ[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function gb(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const lQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fQ={date:gb({formats:lQ,defaultWidth:"full"}),time:gb({formats:uQ,defaultWidth:"full"}),dateTime:gb({formats:cQ,defaultWidth:"full"})},dQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hQ=(e,t,n,r)=>dQ[e];function Bd(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,u=n?.width?String(n.width):s;i=e.formattingValues[u]||e.formattingValues[s]}else{const s=e.defaultWidth,u=n?.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const mQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pQ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gQ={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"]},vQ={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"]},yQ={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"}},bQ={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"}},_Q=(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"},xQ={ordinalNumber:_Q,era:Bd({values:mQ,defaultWidth:"wide"}),quarter:Bd({values:pQ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Bd({values:gQ,defaultWidth:"wide"}),day:Bd({values:vQ,defaultWidth:"wide"}),dayPeriod:Bd({values:yQ,defaultWidth:"wide",formattingValues:bQ,defaultFormattingWidth:"wide"})};function zd(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 s=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?SQ(u,p=>p.test(s)):wQ(u,p=>p.test(s));let f;f=e.valueCallback?e.valueCallback(d):d,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(s.length);return{value:f,rest:m}}}function wQ(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function SQ(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function CQ(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 s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const u=t.slice(i.length);return{value:s,rest:u}}}const EQ=/^(\d+)(th|st|nd|rd)?/i,AQ=/\d+/i,TQ={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},OQ={any:[/^b/i,/^(a|c)/i]},jQ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PQ={any:[/1/i,/2/i,/3/i,/4/i]},MQ={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},RQ={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]},NQ={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},LQ={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]},DQ={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},kQ={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}},IQ={ordinalNumber:CQ({matchPattern:EQ,parsePattern:AQ,valueCallback:e=>parseInt(e,10)}),era:zd({matchPatterns:TQ,defaultMatchWidth:"wide",parsePatterns:OQ,defaultParseWidth:"any"}),quarter:zd({matchPatterns:jQ,defaultMatchWidth:"wide",parsePatterns:PQ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zd({matchPatterns:MQ,defaultMatchWidth:"wide",parsePatterns:RQ,defaultParseWidth:"any"}),day:zd({matchPatterns:NQ,defaultMatchWidth:"wide",parsePatterns:LQ,defaultParseWidth:"any"}),dayPeriod:zd({matchPatterns:DQ,defaultMatchWidth:"any",parsePatterns:kQ,defaultParseWidth:"any"})},PL={code:"en-US",formatDistance:sQ,formatLong:fQ,formatRelative:hQ,localize:xQ,match:IQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function UQ(e,t){const n=At(e,t?.in);return ay(n,rQ(n))+1}function BQ(e,t){const n=At(e,t?.in),r=+xh(n)-+GX(n);return Math.round(r/$w)+1}function ML(e,t){const n=At(e,t?.in),r=n.getFullYear(),i=Hh(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=br(t?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const u=Lu(s,t),d=br(t?.in||e,0);d.setFullYear(r,0,a),d.setHours(0,0,0,0);const f=Lu(d,t);return+n>=+u?r+1:+n>=+f?r:r-1}function zQ(e,t){const n=Hh(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ML(e,t),a=br(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Lu(a,t)}function FQ(e,t){const n=At(e,t?.in),r=+Lu(n,t)-+zQ(n,t);return Math.round(r/$w)+1}function Et(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Qs={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Et(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Et(n+1,2)},d(e,t){return Et(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 Et(e.getHours()%12||12,t.length)},H(e,t){return Et(e.getHours(),t.length)},m(e,t){return Et(e.getMinutes(),t.length)},s(e,t){return Et(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Et(i,t.length)}},Ic={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vO={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 Qs.y(e,t)},Y:function(e,t,n,r){const i=ML(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return Et(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Et(a,t.length)},R:function(e,t){const n=AL(e);return Et(n,t.length)},u:function(e,t){const n=e.getFullYear();return Et(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 Et(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 Et(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 Qs.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 Et(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=FQ(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Et(i,t.length)},I:function(e,t,n){const r=BQ(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Et(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Qs.d(e,t)},D:function(e,t,n){const r=UQ(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Et(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 Et(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 Et(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 Et(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=Ic.noon:r===0?i=Ic.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=Ic.evening:r>=12?i=Ic.afternoon:r>=4?i=Ic.morning:i=Ic.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 Qs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Qs.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Et(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Et(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Qs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Qs.s(e,t)},S:function(e,t){return Qs.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return bO(r);case"XXXX":case"XX":return fu(r);case"XXXXX":case"XXX":default:return fu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return bO(r);case"xxxx":case"xx":return fu(r);case"xxxxx":case"xxx":default:return fu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yO(r,":");case"OOOO":default:return"GMT"+fu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yO(r,":");case"zzzz":default:return"GMT"+fu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Et(r,t.length)},T:function(e,t,n){return Et(+e,t.length)}};function yO(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+Et(a,2)}function bO(e,t){return e%60===0?(e>0?"-":"+")+Et(Math.abs(e)/60,2):fu(e,t)}function fu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Et(Math.trunc(r/60),2),a=Et(r%60,2);return n+i+t+a}const _O=(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"})}},RL=(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"})}},$Q=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return _O(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}}",_O(r,t)).replace("{{time}}",RL(i,t))},VQ={p:RL,P:$Q},qQ=/^D+$/,HQ=/^Y+$/,GQ=["D","DD","YY","YYYY"];function WQ(e){return qQ.test(e)}function YQ(e){return HQ.test(e)}function KQ(e,t,n){const r=ZQ(e,t,n);if(console.warn(r),GQ.includes(e))throw new RangeError(r)}function ZQ(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 XQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JQ=/^'([^]*?)'?$/,eJ=/''/g,tJ=/[a-zA-Z]/;function Gg(e,t,n){const r=Hh(),i=r.locale??PL,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=At(e,n?.in);if(!KX(u))throw new RangeError("Invalid time value");let d=t.match(QQ).map(m=>{const p=m[0];if(p==="p"||p==="P"){const b=VQ[p];return b(m,i.formatLong)}return m}).join("").match(XQ).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const p=m[0];if(p==="'")return{isToken:!1,value:nJ(m)};if(vO[p])return{isToken:!0,value:m};if(p.match(tJ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:m}});i.localize.preprocessor&&(d=i.localize.preprocessor(u,d));const f={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return d.map(m=>{if(!m.isToken)return m.value;const p=m.value;(YQ(p)||WQ(p))&&KQ(p,t,String(e));const b=vO[p[0]];return b(u,p,i.localize,f)}).join("")}function nJ(e){const t=e.match(JQ);return t?t[1].replace(eJ,"'"):e}function rJ(e,t,n){const r=Hh(),i=n?.locale??r.locale??PL,a=2520,s=vg(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[d,f]=zu(n?.in,...s>0?[t,e]:[e,t]),m=nQ(f,d),p=(tf(f)-tf(d))/1e3,b=Math.round((m-p)/60);let _;if(b<2)return b===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",b,u);if(b<45)return i.formatDistance("xMinutes",b,u);if(b<90)return i.formatDistance("aboutXHours",1,u);if(b<mO){const w=Math.round(b/60);return i.formatDistance("aboutXHours",w,u)}else{if(b<a)return i.formatDistance("xDays",1,u);if(b<zp){const w=Math.round(b/mO);return i.formatDistance("xDays",w,u)}else if(b<zp*2)return _=Math.round(b/zp),i.formatDistance("aboutXMonths",_,u)}if(_=tQ(f,d),_<12){const w=Math.round(b/zp);return i.formatDistance("xMonths",w,u)}else{const w=_%12,x=Math.trunc(_/12);return w<3?i.formatDistance("aboutXYears",x,u):w<9?i.formatDistance("overXYears",x,u):i.formatDistance("almostXYears",x+1,u)}}function iJ(e,t){const n=At(e,t?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const a="-",s=":";{const u=Et(n.getDate(),2),d=Et(n.getMonth()+1,2);r=`${Et(n.getFullYear(),4)}${a}${d}${a}${u}`}{const u=n.getTimezoneOffset();if(u!==0){const _=Math.abs(u),w=Et(Math.trunc(_/60),2),x=Et(_%60,2);i=`${u<0?"+":"-"}${w}:${x}`}else i="Z";const d=Et(n.getHours(),2),f=Et(n.getMinutes(),2),m=Et(n.getSeconds(),2),p=r===""?"":"T",b=[d,f,m].join(s);r=`${r}${p}${b}${i}`}return r}function aJ(e){return Math.trunc(+At(e)/1e3)}function oJ(e,t){return+At(e)>+At(t)}function Wg(e,t){return+At(e)<+At(t)}function Gx(e,t){return+At(e)==+At(t)}function sJ(e,t,n){const r=+At(e,n?.in),[i,a]=[+At(t.start,n?.in),+At(t.end,n?.in)].sort((s,u)=>s-u);return r>=i&&r<=a}function Yg(e,t,n){return qw(e,-t,n)}function bl(e,t){const n=()=>br(t?.in,NaN),i=fJ(e);let a;if(i.date){const f=dJ(i.date,2);a=hJ(f.restDateString,f.year)}if(!a||isNaN(+a))return n();const s=+a;let u=0,d;if(i.time&&(u=mJ(i.time),isNaN(u)))return n();if(i.timezone){if(d=pJ(i.timezone),isNaN(d))return n()}else{const f=new Date(s+u),m=At(0,t?.in);return m.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),m.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),m}return At(s+u+d,t?.in)}const Fp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lJ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,uJ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,cJ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fJ(e){const t={},n=e.split(Fp.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Fp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Fp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Fp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function dJ(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 hJ(e,t){if(t===null)return new Date(NaN);const n=e.match(lJ);if(!n)return new Date(NaN);const r=!!n[4],i=Fd(n[1]),a=Fd(n[2])-1,s=Fd(n[3]),u=Fd(n[4]),d=Fd(n[5])-1;if(r)return _J(t,u,d)?gJ(t,u,d):new Date(NaN);{const f=new Date(0);return!yJ(t,a,s)||!bJ(t,i)?new Date(NaN):(f.setUTCFullYear(t,a,Math.max(i,s)),f)}}function Fd(e){return e?parseInt(e):1}function mJ(e){const t=e.match(uJ);if(!t)return NaN;const n=vb(t[1]),r=vb(t[2]),i=vb(t[3]);return xJ(n,r,i)?n*Vw+r*EL+i*1e3:NaN}function vb(e){return e&&parseFloat(e.replace(",","."))||0}function pJ(e){if(e==="Z")return 0;const t=e.match(cJ);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return wJ(r,i)?n*(r*Vw+i*EL):NaN}function gJ(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 vJ=[31,null,31,30,31,30,31,31,30,31,30,31];function NL(e){return e%400===0||e%4===0&&e%100!==0}function yJ(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(vJ[t]||(NL(e)?29:28))}function bJ(e,t){return t>=1&&t<=(NL(e)?366:365)}function _J(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function xJ(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function wJ(e,t){return t>=0&&t<=59}var yg={exports:{}},SJ=yg.exports,xO;function CJ(){return xO||(xO=1,function(e,t){(function(n,r){e.exports=r()})(SJ,()=>(()=>{var n={873:(s,u)=>{var d,f,m=function(){var p=function(Q,se){var Y=Q,U=C[se],I=null,z=0,M=null,D=[],W={},H=function(q,ae){I=function(fe){for(var ge=new Array(fe),de=0;de<fe;de+=1){ge[de]=new Array(fe);for(var _e=0;_e<fe;_e+=1)ge[de][_e]=null}return ge}(z=4*Y+17),re(0,0),re(z-7,0),re(0,z-7),ce(),ue(),k(q,ae),Y>=7&&ve(q),M==null&&(M=G(Y,U,D)),F(M,ae)},re=function(q,ae){for(var fe=-1;fe<=7;fe+=1)if(!(q+fe<=-1||z<=q+fe))for(var ge=-1;ge<=7;ge+=1)ae+ge<=-1||z<=ae+ge||(I[q+fe][ae+ge]=0<=fe&&fe<=6&&(ge==0||ge==6)||0<=ge&&ge<=6&&(fe==0||fe==6)||2<=fe&&fe<=4&&2<=ge&&ge<=4)},ue=function(){for(var q=8;q<z-8;q+=1)I[q][6]==null&&(I[q][6]=q%2==0);for(var ae=8;ae<z-8;ae+=1)I[6][ae]==null&&(I[6][ae]=ae%2==0)},ce=function(){for(var q=j.getPatternPosition(Y),ae=0;ae<q.length;ae+=1)for(var fe=0;fe<q.length;fe+=1){var ge=q[ae],de=q[fe];if(I[ge][de]==null)for(var _e=-2;_e<=2;_e+=1)for(var Te=-2;Te<=2;Te+=1)I[ge+_e][de+Te]=_e==-2||_e==2||Te==-2||Te==2||_e==0&&Te==0}},ve=function(q){for(var ae=j.getBCHTypeNumber(Y),fe=0;fe<18;fe+=1){var ge=!q&&(ae>>fe&1)==1;I[Math.floor(fe/3)][fe%3+z-8-3]=ge}for(fe=0;fe<18;fe+=1)ge=!q&&(ae>>fe&1)==1,I[fe%3+z-8-3][Math.floor(fe/3)]=ge},k=function(q,ae){for(var fe=U<<3|ae,ge=j.getBCHTypeInfo(fe),de=0;de<15;de+=1){var _e=!q&&(ge>>de&1)==1;de<6?I[de][8]=_e:de<8?I[de+1][8]=_e:I[z-15+de][8]=_e}for(de=0;de<15;de+=1)_e=!q&&(ge>>de&1)==1,de<8?I[8][z-de-1]=_e:de<9?I[8][15-de-1+1]=_e:I[8][15-de-1]=_e;I[z-8][8]=!q},F=function(q,ae){for(var fe=-1,ge=z-1,de=7,_e=0,Te=j.getMaskFunction(ae),Le=z-1;Le>0;Le-=2)for(Le==6&&(Le-=1);;){for(var He=0;He<2;He+=1)if(I[ge][Le-He]==null){var Be=!1;_e<q.length&&(Be=(q[_e]>>>de&1)==1),Te(ge,Le-He)&&(Be=!Be),I[ge][Le-He]=Be,(de-=1)==-1&&(_e+=1,de=7)}if((ge+=fe)<0||z<=ge){ge-=fe,fe=-fe;break}}},G=function(q,ae,fe){for(var ge=B.getRSBlocks(q,ae),de=V(),_e=0;_e<fe.length;_e+=1){var Te=fe[_e];de.put(Te.getMode(),4),de.put(Te.getLength(),j.getLengthInBits(Te.getMode(),q)),Te.write(de)}var Le=0;for(_e=0;_e<ge.length;_e+=1)Le+=ge[_e].dataCount;if(de.getLengthInBits()>8*Le)throw"code length overflow. ("+de.getLengthInBits()+">"+8*Le+")";for(de.getLengthInBits()+4<=8*Le&&de.put(0,4);de.getLengthInBits()%8!=0;)de.putBit(!1);for(;!(de.getLengthInBits()>=8*Le||(de.put(236,8),de.getLengthInBits()>=8*Le));)de.put(17,8);return function(He,Be){for(var qe=0,be=0,we=0,De=new Array(Be.length),Re=new Array(Be.length),Ae=0;Ae<Be.length;Ae+=1){var ze=Be[Ae].dataCount,Ve=Be[Ae].totalCount-ze;be=Math.max(be,ze),we=Math.max(we,Ve),De[Ae]=new Array(ze);for(var Ze=0;Ze<De[Ae].length;Ze+=1)De[Ae][Ze]=255&He.getBuffer()[Ze+qe];qe+=ze;var ut=j.getErrorCorrectPolynomial(Ve),at=N(De[Ae],ut.getLength()-1).mod(ut);for(Re[Ae]=new Array(ut.getLength()-1),Ze=0;Ze<Re[Ae].length;Ze+=1){var pt=Ze+at.getLength()-Re[Ae].length;Re[Ae][Ze]=pt>=0?at.getAt(pt):0}}var Dt=0;for(Ze=0;Ze<Be.length;Ze+=1)Dt+=Be[Ze].totalCount;var kt=new Array(Dt),It=0;for(Ze=0;Ze<be;Ze+=1)for(Ae=0;Ae<Be.length;Ae+=1)Ze<De[Ae].length&&(kt[It]=De[Ae][Ze],It+=1);for(Ze=0;Ze<we;Ze+=1)for(Ae=0;Ae<Be.length;Ae+=1)Ze<Re[Ae].length&&(kt[It]=Re[Ae][Ze],It+=1);return kt}(de,ge)};W.addData=function(q,ae){var fe=null;switch(ae=ae||"Byte"){case"Numeric":fe=Z(q);break;case"Alphanumeric":fe=X(q);break;case"Byte":fe=oe(q);break;case"Kanji":fe=ee(q);break;default:throw"mode:"+ae}D.push(fe),M=null},W.isDark=function(q,ae){if(q<0||z<=q||ae<0||z<=ae)throw q+","+ae;return I[q][ae]},W.getModuleCount=function(){return z},W.make=function(){if(Y<1){for(var q=1;q<40;q++){for(var ae=B.getRSBlocks(q,U),fe=V(),ge=0;ge<D.length;ge++){var de=D[ge];fe.put(de.getMode(),4),fe.put(de.getLength(),j.getLengthInBits(de.getMode(),q)),de.write(fe)}var _e=0;for(ge=0;ge<ae.length;ge++)_e+=ae[ge].dataCount;if(fe.getLengthInBits()<=8*_e)break}Y=q}H(!1,function(){for(var Te=0,Le=0,He=0;He<8;He+=1){H(!0,He);var Be=j.getLostPoint(W);(He==0||Te>Be)&&(Te=Be,Le=He)}return Le}())},W.createTableTag=function(q,ae){q=q||2;var fe="";fe+='<table style="',fe+=" border-width: 0px; border-style: none;",fe+=" border-collapse: collapse;",fe+=" padding: 0px; margin: "+(ae=ae===void 0?4*q:ae)+"px;",fe+='">',fe+="<tbody>";for(var ge=0;ge<W.getModuleCount();ge+=1){fe+="<tr>";for(var de=0;de<W.getModuleCount();de+=1)fe+='<td style="',fe+=" border-width: 0px; border-style: none;",fe+=" border-collapse: collapse;",fe+=" padding: 0px; margin: 0px;",fe+=" width: "+q+"px;",fe+=" height: "+q+"px;",fe+=" background-color: ",fe+=W.isDark(ge,de)?"#000000":"#ffffff",fe+=";",fe+='"/>';fe+="</tr>"}return(fe+="</tbody>")+"</table>"},W.createSvgTag=function(q,ae,fe,ge){var de={};typeof arguments[0]=="object"&&(q=(de=arguments[0]).cellSize,ae=de.margin,fe=de.alt,ge=de.title),q=q||2,ae=ae===void 0?4*q:ae,(fe=typeof fe=="string"?{text:fe}:fe||{}).text=fe.text||null,fe.id=fe.text?fe.id||"qrcode-description":null,(ge=typeof ge=="string"?{text:ge}:ge||{}).text=ge.text||null,ge.id=ge.text?ge.id||"qrcode-title":null;var _e,Te,Le,He,Be=W.getModuleCount()*q+2*ae,qe="";for(He="l"+q+",0 0,"+q+" -"+q+",0 0,-"+q+"z ",qe+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',qe+=de.scalable?"":' width="'+Be+'px" height="'+Be+'px"',qe+=' viewBox="0 0 '+Be+" "+Be+'" ',qe+=' preserveAspectRatio="xMinYMin meet"',qe+=ge.text||fe.text?' role="img" aria-labelledby="'+le([ge.id,fe.id].join(" ").trim())+'"':"",qe+=">",qe+=ge.text?'<title id="'+le(ge.id)+'">'+le(ge.text)+"</title>":"",qe+=fe.text?'<description id="'+le(fe.id)+'">'+le(fe.text)+"</description>":"",qe+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',qe+='<path d="',Te=0;Te<W.getModuleCount();Te+=1)for(Le=Te*q+ae,_e=0;_e<W.getModuleCount();_e+=1)W.isDark(Te,_e)&&(qe+="M"+(_e*q+ae)+","+Le+He);return(qe+='" stroke="transparent" fill="black"/>')+"</svg>"},W.createDataURL=function(q,ae){q=q||2,ae=ae===void 0?4*q:ae;var fe=W.getModuleCount()*q+2*ae,ge=ae,de=fe-ae;return he(fe,fe,function(_e,Te){if(ge<=_e&&_e<de&&ge<=Te&&Te<de){var Le=Math.floor((_e-ge)/q),He=Math.floor((Te-ge)/q);return W.isDark(He,Le)?0:1}return 1})},W.createImgTag=function(q,ae,fe){q=q||2,ae=ae===void 0?4*q:ae;var ge=W.getModuleCount()*q+2*ae,de="";return de+="<img",de+=' src="',de+=W.createDataURL(q,ae),de+='"',de+=' width="',de+=ge,de+='"',de+=' height="',de+=ge,de+='"',fe&&(de+=' alt="',de+=le(fe),de+='"'),de+"/>"};var le=function(q){for(var ae="",fe=0;fe<q.length;fe+=1){var ge=q.charAt(fe);switch(ge){case"<":ae+="<";break;case">":ae+=">";break;case"&":ae+="&";break;case'"':ae+=""";break;default:ae+=ge}}return ae};return W.createASCII=function(q,ae){if((q=q||1)<2)return function(De){De=De===void 0?2:De;var Re,Ae,ze,Ve,Ze,ut=1*W.getModuleCount()+2*De,at=De,pt=ut-De,Dt={"██":"█","█ ":"▀"," █":"▄"," ":" "},kt={"██":"▀","█ ":"▀"," █":" "," ":" "},It="";for(Re=0;Re<ut;Re+=2){for(ze=Math.floor((Re-at)/1),Ve=Math.floor((Re+1-at)/1),Ae=0;Ae<ut;Ae+=1)Ze="█",at<=Ae&&Ae<pt&&at<=Re&&Re<pt&&W.isDark(ze,Math.floor((Ae-at)/1))&&(Ze=" "),at<=Ae&&Ae<pt&&at<=Re+1&&Re+1<pt&&W.isDark(Ve,Math.floor((Ae-at)/1))?Ze+=" ":Ze+="█",It+=De<1&&Re+1>=pt?kt[Ze]:Dt[Ze];It+=`
|
||
`}return ut%2&&De>0?It.substring(0,It.length-ut-1)+Array(ut+1).join("▀"):It.substring(0,It.length-1)}(ae);q-=1,ae=ae===void 0?2*q:ae;var fe,ge,de,_e,Te=W.getModuleCount()*q+2*ae,Le=ae,He=Te-ae,Be=Array(q+1).join("██"),qe=Array(q+1).join(" "),be="",we="";for(fe=0;fe<Te;fe+=1){for(de=Math.floor((fe-Le)/q),we="",ge=0;ge<Te;ge+=1)_e=1,Le<=ge&&ge<He&&Le<=fe&&fe<He&&W.isDark(de,Math.floor((ge-Le)/q))&&(_e=0),we+=_e?Be:qe;for(de=0;de<q;de+=1)be+=we+`
|
||
`}return be.substring(0,be.length-1)},W.renderTo2dContext=function(q,ae){ae=ae||2;for(var fe=W.getModuleCount(),ge=0;ge<fe;ge++)for(var de=0;de<fe;de++)q.fillStyle=W.isDark(ge,de)?"black":"white",q.fillRect(ge*ae,de*ae,ae,ae)},W};p.stringToBytes=(p.stringToBytesFuncs={default:function(Q){for(var se=[],Y=0;Y<Q.length;Y+=1){var U=Q.charCodeAt(Y);se.push(255&U)}return se}}).default,p.createStringToBytes=function(Q,se){var Y=function(){for(var I=ne(Q),z=function(){var ue=I.read();if(ue==-1)throw"eof";return ue},M=0,D={};;){var W=I.read();if(W==-1)break;var H=z(),re=z()<<8|z();D[String.fromCharCode(W<<8|H)]=re,M+=1}if(M!=se)throw M+" != "+se;return D}(),U=63;return function(I){for(var z=[],M=0;M<I.length;M+=1){var D=I.charCodeAt(M);if(D<128)z.push(D);else{var W=Y[I.charAt(M)];typeof W=="number"?(255&W)==W?z.push(W):(z.push(W>>>8),z.push(255&W)):z.push(U)}}return z}};var b,_,w,x,A,C={L:1,M:0,Q:3,H:2},j=(b=[[],[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]],_=1335,w=7973,A=function(Q){for(var se=0;Q!=0;)se+=1,Q>>>=1;return se},(x={}).getBCHTypeInfo=function(Q){for(var se=Q<<10;A(se)-A(_)>=0;)se^=_<<A(se)-A(_);return 21522^(Q<<10|se)},x.getBCHTypeNumber=function(Q){for(var se=Q<<12;A(se)-A(w)>=0;)se^=w<<A(se)-A(w);return Q<<12|se},x.getPatternPosition=function(Q){return b[Q-1]},x.getMaskFunction=function(Q){switch(Q){case 0:return function(se,Y){return(se+Y)%2==0};case 1:return function(se,Y){return se%2==0};case 2:return function(se,Y){return Y%3==0};case 3:return function(se,Y){return(se+Y)%3==0};case 4:return function(se,Y){return(Math.floor(se/2)+Math.floor(Y/3))%2==0};case 5:return function(se,Y){return se*Y%2+se*Y%3==0};case 6:return function(se,Y){return(se*Y%2+se*Y%3)%2==0};case 7:return function(se,Y){return(se*Y%3+(se+Y)%2)%2==0};default:throw"bad maskPattern:"+Q}},x.getErrorCorrectPolynomial=function(Q){for(var se=N([1],0),Y=0;Y<Q;Y+=1)se=se.multiply(N([1,O.gexp(Y)],0));return se},x.getLengthInBits=function(Q,se){if(1<=se&&se<10)switch(Q){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+Q}else if(se<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(!(se<41))throw"type:"+se;switch(Q){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+Q}}},x.getLostPoint=function(Q){for(var se=Q.getModuleCount(),Y=0,U=0;U<se;U+=1)for(var I=0;I<se;I+=1){for(var z=0,M=Q.isDark(U,I),D=-1;D<=1;D+=1)if(!(U+D<0||se<=U+D))for(var W=-1;W<=1;W+=1)I+W<0||se<=I+W||D==0&&W==0||M==Q.isDark(U+D,I+W)&&(z+=1);z>5&&(Y+=3+z-5)}for(U=0;U<se-1;U+=1)for(I=0;I<se-1;I+=1){var H=0;Q.isDark(U,I)&&(H+=1),Q.isDark(U+1,I)&&(H+=1),Q.isDark(U,I+1)&&(H+=1),Q.isDark(U+1,I+1)&&(H+=1),H!=0&&H!=4||(Y+=3)}for(U=0;U<se;U+=1)for(I=0;I<se-6;I+=1)Q.isDark(U,I)&&!Q.isDark(U,I+1)&&Q.isDark(U,I+2)&&Q.isDark(U,I+3)&&Q.isDark(U,I+4)&&!Q.isDark(U,I+5)&&Q.isDark(U,I+6)&&(Y+=40);for(I=0;I<se;I+=1)for(U=0;U<se-6;U+=1)Q.isDark(U,I)&&!Q.isDark(U+1,I)&&Q.isDark(U+2,I)&&Q.isDark(U+3,I)&&Q.isDark(U+4,I)&&!Q.isDark(U+5,I)&&Q.isDark(U+6,I)&&(Y+=40);var re=0;for(I=0;I<se;I+=1)for(U=0;U<se;U+=1)Q.isDark(U,I)&&(re+=1);return Y+Math.abs(100*re/se/se-50)/5*10},x),O=function(){for(var Q=new Array(256),se=new Array(256),Y=0;Y<8;Y+=1)Q[Y]=1<<Y;for(Y=8;Y<256;Y+=1)Q[Y]=Q[Y-4]^Q[Y-5]^Q[Y-6]^Q[Y-8];for(Y=0;Y<255;Y+=1)se[Q[Y]]=Y;return{glog:function(U){if(U<1)throw"glog("+U+")";return se[U]},gexp:function(U){for(;U<0;)U+=255;for(;U>=256;)U-=255;return Q[U]}}}();function N(Q,se){if(Q.length===void 0)throw Q.length+"/"+se;var Y=function(){for(var I=0;I<Q.length&&Q[I]==0;)I+=1;for(var z=new Array(Q.length-I+se),M=0;M<Q.length-I;M+=1)z[M]=Q[M+I];return z}(),U={getAt:function(I){return Y[I]},getLength:function(){return Y.length},multiply:function(I){for(var z=new Array(U.getLength()+I.getLength()-1),M=0;M<U.getLength();M+=1)for(var D=0;D<I.getLength();D+=1)z[M+D]^=O.gexp(O.glog(U.getAt(M))+O.glog(I.getAt(D)));return N(z,0)},mod:function(I){if(U.getLength()-I.getLength()<0)return U;for(var z=O.glog(U.getAt(0))-O.glog(I.getAt(0)),M=new Array(U.getLength()),D=0;D<U.getLength();D+=1)M[D]=U.getAt(D);for(D=0;D<I.getLength();D+=1)M[D]^=O.gexp(O.glog(I.getAt(D))+z);return N(M,0).mod(I)}};return U}var B=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]],se=function(U,I){var z={};return z.totalCount=U,z.dataCount=I,z},Y={getRSBlocks:function(U,I){var z=function(ve,k){switch(k){case C.L:return Q[4*(ve-1)+0];case C.M:return Q[4*(ve-1)+1];case C.Q:return Q[4*(ve-1)+2];case C.H:return Q[4*(ve-1)+3];default:return}}(U,I);if(z===void 0)throw"bad rs block @ typeNumber:"+U+"/errorCorrectionLevel:"+I;for(var M=z.length/3,D=[],W=0;W<M;W+=1)for(var H=z[3*W+0],re=z[3*W+1],ue=z[3*W+2],ce=0;ce<H;ce+=1)D.push(se(re,ue));return D}};return Y}(),V=function(){var Q=[],se=0,Y={getBuffer:function(){return Q},getAt:function(U){var I=Math.floor(U/8);return(Q[I]>>>7-U%8&1)==1},put:function(U,I){for(var z=0;z<I;z+=1)Y.putBit((U>>>I-z-1&1)==1)},getLengthInBits:function(){return se},putBit:function(U){var I=Math.floor(se/8);Q.length<=I&&Q.push(0),U&&(Q[I]|=128>>>se%8),se+=1}};return Y},Z=function(Q){var se=Q,Y={getMode:function(){return 1},getLength:function(z){return se.length},write:function(z){for(var M=se,D=0;D+2<M.length;)z.put(U(M.substring(D,D+3)),10),D+=3;D<M.length&&(M.length-D==1?z.put(U(M.substring(D,D+1)),4):M.length-D==2&&z.put(U(M.substring(D,D+2)),7))}},U=function(z){for(var M=0,D=0;D<z.length;D+=1)M=10*M+I(z.charAt(D));return M},I=function(z){if("0"<=z&&z<="9")return z.charCodeAt(0)-48;throw"illegal char :"+z};return Y},X=function(Q){var se=Q,Y={getMode:function(){return 2},getLength:function(I){return se.length},write:function(I){for(var z=se,M=0;M+1<z.length;)I.put(45*U(z.charAt(M))+U(z.charAt(M+1)),11),M+=2;M<z.length&&I.put(U(z.charAt(M)),6)}},U=function(I){if("0"<=I&&I<="9")return I.charCodeAt(0)-48;if("A"<=I&&I<="Z")return I.charCodeAt(0)-65+10;switch(I){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 :"+I}};return Y},oe=function(Q){var se=p.stringToBytes(Q);return{getMode:function(){return 4},getLength:function(Y){return se.length},write:function(Y){for(var U=0;U<se.length;U+=1)Y.put(se[U],8)}}},ee=function(Q){var se=p.stringToBytesFuncs.SJIS;if(!se)throw"sjis not supported.";(function(){var I=se("友");if(I.length!=2||(I[0]<<8|I[1])!=38726)throw"sjis not supported."})();var Y=se(Q),U={getMode:function(){return 8},getLength:function(I){return~~(Y.length/2)},write:function(I){for(var z=Y,M=0;M+1<z.length;){var D=(255&z[M])<<8|255&z[M+1];if(33088<=D&&D<=40956)D-=33088;else{if(!(57408<=D&&D<=60351))throw"illegal char at "+(M+1)+"/"+D;D-=49472}D=192*(D>>>8&255)+(255&D),I.put(D,13),M+=2}if(M<z.length)throw"illegal char at "+(M+1)}};return U},J=function(){var Q=[],se={writeByte:function(Y){Q.push(255&Y)},writeShort:function(Y){se.writeByte(Y),se.writeByte(Y>>>8)},writeBytes:function(Y,U,I){U=U||0,I=I||Y.length;for(var z=0;z<I;z+=1)se.writeByte(Y[z+U])},writeString:function(Y){for(var U=0;U<Y.length;U+=1)se.writeByte(Y.charCodeAt(U))},toByteArray:function(){return Q},toString:function(){var Y="";Y+="[";for(var U=0;U<Q.length;U+=1)U>0&&(Y+=","),Y+=Q[U];return Y+"]"}};return se},ne=function(Q){var se=Q,Y=0,U=0,I=0,z={read:function(){for(;I<8;){if(Y>=se.length){if(I==0)return-1;throw"unexpected end of file./"+I}var D=se.charAt(Y);if(Y+=1,D=="=")return I=0,-1;D.match(/^\s$/)||(U=U<<6|M(D.charCodeAt(0)),I+=6)}var W=U>>>I-8&255;return I-=8,W}},M=function(D){if(65<=D&&D<=90)return D-65;if(97<=D&&D<=122)return D-97+26;if(48<=D&&D<=57)return D-48+52;if(D==43)return 62;if(D==47)return 63;throw"c:"+D};return z},he=function(Q,se,Y){for(var U=function(re,ue){var ce=re,ve=ue,k=new Array(re*ue),F={setPixel:function(q,ae,fe){k[ae*ce+q]=fe},write:function(q){q.writeString("GIF87a"),q.writeShort(ce),q.writeShort(ve),q.writeByte(128),q.writeByte(0),q.writeByte(0),q.writeByte(0),q.writeByte(0),q.writeByte(0),q.writeByte(255),q.writeByte(255),q.writeByte(255),q.writeString(","),q.writeShort(0),q.writeShort(0),q.writeShort(ce),q.writeShort(ve),q.writeByte(0);var ae=G(2);q.writeByte(2);for(var fe=0;ae.length-fe>255;)q.writeByte(255),q.writeBytes(ae,fe,255),fe+=255;q.writeByte(ae.length-fe),q.writeBytes(ae,fe,ae.length-fe),q.writeByte(0),q.writeString(";")}},G=function(q){for(var ae=1<<q,fe=1+(1<<q),ge=q+1,de=le(),_e=0;_e<ae;_e+=1)de.add(String.fromCharCode(_e));de.add(String.fromCharCode(ae)),de.add(String.fromCharCode(fe));var Te,Le,He,Be=J(),qe=(Te=Be,Le=0,He=0,{write:function(Re,Ae){if(Re>>>Ae)throw"length over";for(;Le+Ae>=8;)Te.writeByte(255&(Re<<Le|He)),Ae-=8-Le,Re>>>=8-Le,He=0,Le=0;He|=Re<<Le,Le+=Ae},flush:function(){Le>0&&Te.writeByte(He)}});qe.write(ae,ge);var be=0,we=String.fromCharCode(k[be]);for(be+=1;be<k.length;){var De=String.fromCharCode(k[be]);be+=1,de.contains(we+De)?we+=De:(qe.write(de.indexOf(we),ge),de.size()<4095&&(de.size()==1<<ge&&(ge+=1),de.add(we+De)),we=De)}return qe.write(de.indexOf(we),ge),qe.write(fe,ge),qe.flush(),Be.toByteArray()},le=function(){var q={},ae=0,fe={add:function(ge){if(fe.contains(ge))throw"dup key:"+ge;q[ge]=ae,ae+=1},size:function(){return ae},indexOf:function(ge){return q[ge]},contains:function(ge){return q[ge]!==void 0}};return fe};return F}(Q,se),I=0;I<se;I+=1)for(var z=0;z<Q;z+=1)U.setPixel(z,I,Y(z,I));var M=J();U.write(M);for(var D=function(){var re=0,ue=0,ce=0,ve="",k={},F=function(le){ve+=String.fromCharCode(G(63&le))},G=function(le){if(!(le<0)){if(le<26)return 65+le;if(le<52)return le-26+97;if(le<62)return le-52+48;if(le==62)return 43;if(le==63)return 47}throw"n:"+le};return k.writeByte=function(le){for(re=re<<8|255&le,ue+=8,ce+=1;ue>=6;)F(re>>>ue-6),ue-=6},k.flush=function(){if(ue>0&&(F(re<<6-ue),re=0,ue=0),ce%3!=0)for(var le=3-ce%3,q=0;q<le;q+=1)ve+="="},k.toString=function(){return ve},k}(),W=M.toByteArray(),H=0;H<W.length;H+=1)D.writeByte(W[H]);return D.flush(),"data:image/gif;base64,"+D};return p}();m.stringToBytesFuncs["UTF-8"]=function(p){return function(b){for(var _=[],w=0;w<b.length;w++){var x=b.charCodeAt(w);x<128?_.push(x):x<2048?_.push(192|x>>6,128|63&x):x<55296||x>=57344?_.push(224|x>>12,128|x>>6&63,128|63&x):(w++,x=65536+((1023&x)<<10|1023&b.charCodeAt(w)),_.push(240|x>>18,128|x>>12&63,128|x>>6&63,128|63&x))}return _}(p)},(f=typeof(d=function(){return m})=="function"?d.apply(u,[]):d)===void 0||(s.exports=f)}},r={};function i(s){var u=r[s];if(u!==void 0)return u.exports;var d=r[s]={exports:{}};return n[s](d,d.exports,i),d.exports}i.n=s=>{var u=s&&s.__esModule?()=>s.default:()=>s;return i.d(u,{a:u}),u},i.d=(s,u)=>{for(var d in u)i.o(u,d)&&!i.o(s,d)&&Object.defineProperty(s,d,{enumerable:!0,get:u[d]})},i.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u);var a={};return(()=>{i.d(a,{default:()=>se});const s=Y=>!!Y&&typeof Y=="object"&&!Array.isArray(Y);function u(Y,...U){if(!U.length)return Y;const I=U.shift();return I!==void 0&&s(Y)&&s(I)?(Y=Object.assign({},Y),Object.keys(I).forEach(z=>{const M=Y[z],D=I[z];Array.isArray(M)&&Array.isArray(D)?Y[z]=D:s(M)&&s(D)?Y[z]=u(Object.assign({},M),D):Y[z]=D}),u(Y,...U)):Y}function d(Y,U){const I=document.createElement("a");I.download=U,I.href=Y,document.body.appendChild(I),I.click(),document.body.removeChild(I)}const f={L:.07,M:.15,Q:.25,H:.3};class m{constructor({svg:U,type:I,window:z}){this._svg=U,this._type=I,this._window=z}draw(U,I,z,M){let D;switch(this._type){case"dots":D=this._drawDot;break;case"classy":D=this._drawClassy;break;case"classy-rounded":D=this._drawClassyRounded;break;case"rounded":D=this._drawRounded;break;case"extra-rounded":D=this._drawExtraRounded;break;default:D=this._drawSquare}D.call(this,{x:U,y:I,size:z,getNeighbor:M})}_rotateFigure({x:U,y:I,size:z,rotation:M=0,draw:D}){var W;const H=U+z/2,re=I+z/2;D(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*M/Math.PI},${H},${re})`)}_basicDot(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(z+I/2)),this._element.setAttribute("cy",String(M+I/2)),this._element.setAttribute("r",String(I/2))}}))}_basicSquare(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(z)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(I)),this._element.setAttribute("height",String(I))}}))}_basicSideRounded(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${M}v ${I}h `+I/2+`a ${I/2} ${I/2}, 0, 0, 0, 0 ${-I}`)}}))}_basicCornerRounded(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${M}v ${I}h ${I}v `+-I/2+`a ${I/2} ${I/2}, 0, 0, 0, ${-I/2} ${-I/2}`)}}))}_basicCornerExtraRounded(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${M}v ${I}h ${I}a ${I} ${I}, 0, 0, 0, ${-I} ${-I}`)}}))}_basicCornersRounded(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${M}v `+I/2+`a ${I/2} ${I/2}, 0, 0, 0, ${I/2} ${I/2}h `+I/2+"v "+-I/2+`a ${I/2} ${I/2}, 0, 0, 0, ${-I/2} ${-I/2}`)}}))}_drawDot({x:U,y:I,size:z}){this._basicDot({x:U,y:I,size:z,rotation:0})}_drawSquare({x:U,y:I,size:z}){this._basicSquare({x:U,y:I,size:z,rotation:0})}_drawRounded({x:U,y:I,size:z,getNeighbor:M}){const D=M?+M(-1,0):0,W=M?+M(1,0):0,H=M?+M(0,-1):0,re=M?+M(0,1):0,ue=D+W+H+re;if(ue!==0)if(ue>2||D&&W||H&&re)this._basicSquare({x:U,y:I,size:z,rotation:0});else{if(ue===2){let ce=0;return D&&H?ce=Math.PI/2:H&&W?ce=Math.PI:W&&re&&(ce=-Math.PI/2),void this._basicCornerRounded({x:U,y:I,size:z,rotation:ce})}if(ue===1){let ce=0;return H?ce=Math.PI/2:W?ce=Math.PI:re&&(ce=-Math.PI/2),void this._basicSideRounded({x:U,y:I,size:z,rotation:ce})}}else this._basicDot({x:U,y:I,size:z,rotation:0})}_drawExtraRounded({x:U,y:I,size:z,getNeighbor:M}){const D=M?+M(-1,0):0,W=M?+M(1,0):0,H=M?+M(0,-1):0,re=M?+M(0,1):0,ue=D+W+H+re;if(ue!==0)if(ue>2||D&&W||H&&re)this._basicSquare({x:U,y:I,size:z,rotation:0});else{if(ue===2){let ce=0;return D&&H?ce=Math.PI/2:H&&W?ce=Math.PI:W&&re&&(ce=-Math.PI/2),void this._basicCornerExtraRounded({x:U,y:I,size:z,rotation:ce})}if(ue===1){let ce=0;return H?ce=Math.PI/2:W?ce=Math.PI:re&&(ce=-Math.PI/2),void this._basicSideRounded({x:U,y:I,size:z,rotation:ce})}}else this._basicDot({x:U,y:I,size:z,rotation:0})}_drawClassy({x:U,y:I,size:z,getNeighbor:M}){const D=M?+M(-1,0):0,W=M?+M(1,0):0,H=M?+M(0,-1):0,re=M?+M(0,1):0;D+W+H+re!==0?D||H?W||re?this._basicSquare({x:U,y:I,size:z,rotation:0}):this._basicCornerRounded({x:U,y:I,size:z,rotation:Math.PI/2}):this._basicCornerRounded({x:U,y:I,size:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:U,y:I,size:z,rotation:Math.PI/2})}_drawClassyRounded({x:U,y:I,size:z,getNeighbor:M}){const D=M?+M(-1,0):0,W=M?+M(1,0):0,H=M?+M(0,-1):0,re=M?+M(0,1):0;D+W+H+re!==0?D||H?W||re?this._basicSquare({x:U,y:I,size:z,rotation:0}):this._basicCornerExtraRounded({x:U,y:I,size:z,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:U,y:I,size:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:U,y:I,size:z,rotation:Math.PI/2})}}const p={dot:"dot",square:"square",extraRounded:"extra-rounded"},b=Object.values(p);class _{constructor({svg:U,type:I,window:z}){this._svg=U,this._type=I,this._window=z}draw(U,I,z,M){let D;switch(this._type){case p.square:D=this._drawSquare;break;case p.extraRounded:D=this._drawExtraRounded;break;default:D=this._drawDot}D.call(this,{x:U,y:I,size:z,rotation:M})}_rotateFigure({x:U,y:I,size:z,rotation:M=0,draw:D}){var W;const H=U+z/2,re=I+z/2;D(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*M/Math.PI},${H},${re})`)}_basicDot(U){const{size:I,x:z,y:M}=U,D=I/7;this._rotateFigure(Object.assign(Object.assign({},U),{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 ${z+I/2} ${M}a ${I/2} ${I/2} 0 1 0 0.1 0zm 0 ${D}a ${I/2-D} ${I/2-D} 0 1 1 -0.1 0Z`)}}))}_basicSquare(U){const{size:I,x:z,y:M}=U,D=I/7;this._rotateFigure(Object.assign(Object.assign({},U),{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 ${z} ${M}v ${I}h ${I}v `+-I+`zM ${z+D} ${M+D}h `+(I-2*D)+"v "+(I-2*D)+"h "+(2*D-I)+"z")}}))}_basicExtraRounded(U){const{size:I,x:z,y:M}=U,D=I/7;this._rotateFigure(Object.assign(Object.assign({},U),{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 ${z} ${M+2.5*D}v `+2*D+`a ${2.5*D} ${2.5*D}, 0, 0, 0, ${2.5*D} ${2.5*D}h `+2*D+`a ${2.5*D} ${2.5*D}, 0, 0, 0, ${2.5*D} ${2.5*-D}v `+-2*D+`a ${2.5*D} ${2.5*D}, 0, 0, 0, ${2.5*-D} ${2.5*-D}h `+-2*D+`a ${2.5*D} ${2.5*D}, 0, 0, 0, ${2.5*-D} ${2.5*D}M ${z+2.5*D} ${M+D}h `+2*D+`a ${1.5*D} ${1.5*D}, 0, 0, 1, ${1.5*D} ${1.5*D}v `+2*D+`a ${1.5*D} ${1.5*D}, 0, 0, 1, ${1.5*-D} ${1.5*D}h `+-2*D+`a ${1.5*D} ${1.5*D}, 0, 0, 1, ${1.5*-D} ${1.5*-D}v `+-2*D+`a ${1.5*D} ${1.5*D}, 0, 0, 1, ${1.5*D} ${1.5*-D}`)}}))}_drawDot({x:U,y:I,size:z,rotation:M}){this._basicDot({x:U,y:I,size:z,rotation:M})}_drawSquare({x:U,y:I,size:z,rotation:M}){this._basicSquare({x:U,y:I,size:z,rotation:M})}_drawExtraRounded({x:U,y:I,size:z,rotation:M}){this._basicExtraRounded({x:U,y:I,size:z,rotation:M})}}const w={dot:"dot",square:"square"},x=Object.values(w);class A{constructor({svg:U,type:I,window:z}){this._svg=U,this._type=I,this._window=z}draw(U,I,z,M){let D;D=this._type===w.square?this._drawSquare:this._drawDot,D.call(this,{x:U,y:I,size:z,rotation:M})}_rotateFigure({x:U,y:I,size:z,rotation:M=0,draw:D}){var W;const H=U+z/2,re=I+z/2;D(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*M/Math.PI},${H},${re})`)}_basicDot(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(z+I/2)),this._element.setAttribute("cy",String(M+I/2)),this._element.setAttribute("r",String(I/2))}}))}_basicSquare(U){const{size:I,x:z,y:M}=U;this._rotateFigure(Object.assign(Object.assign({},U),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(z)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(I)),this._element.setAttribute("height",String(I))}}))}_drawDot({x:U,y:I,size:z,rotation:M}){this._basicDot({x:U,y:I,size:z,rotation:M})}_drawSquare({x:U,y:I,size:z,rotation:M}){this._basicSquare({x:U,y:I,size:z,rotation:M})}}const C="circle",j=[[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]],O=[[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 N{constructor(U,I){this._roundSize=z=>this._options.dotsOptions.roundSize?Math.floor(z):z,this._window=I,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(U.width)),this._element.setAttribute("height",String(U.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),U.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${U.width} ${U.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=U.image,this._instanceId=N.instanceCount++,this._options=U}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(U){const I=U.getModuleCount(),z=Math.min(this._options.width,this._options.height)-2*this._options.margin,M=this._options.shape===C?z/Math.sqrt(2):z,D=this._roundSize(M/I);let W={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=U,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:H,qrOptions:re}=this._options,ue=H.imageSize*f[re.errorCorrectionLevel],ce=Math.floor(ue*I*I);W=function({originalHeight:ve,originalWidth:k,maxHiddenDots:F,maxHiddenAxisDots:G,dotSize:le}){const q={x:0,y:0},ae={x:0,y:0};if(ve<=0||k<=0||F<=0||le<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const fe=ve/k;return q.x=Math.floor(Math.sqrt(F/fe)),q.x<=0&&(q.x=1),G&&G<q.x&&(q.x=G),q.x%2==0&&q.x--,ae.x=q.x*le,q.y=1+2*Math.ceil((q.x*fe-1)/2),ae.y=Math.round(ae.x*fe),(q.y*q.x>F||G&&G<q.y)&&(G&&G<q.y?(q.y=G,q.y%2==0&&q.x--):q.y-=2,ae.y=q.y*le,q.x=1+2*Math.ceil((q.y/fe-1)/2),ae.x=Math.round(ae.y/fe)),{height:ae.y,width:ae.x,hideYDots:q.y,hideXDots:q.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ce,maxHiddenAxisDots:I-14,dotSize:D})}this.drawBackground(),this.drawDots((H,re)=>{var ue,ce,ve,k,F,G;return!(this._options.imageOptions.hideBackgroundDots&&H>=(I-W.hideYDots)/2&&H<(I+W.hideYDots)/2&&re>=(I-W.hideXDots)/2&&re<(I+W.hideXDots)/2||!((ue=j[H])===null||ue===void 0)&&ue[re]||!((ce=j[H-I+7])===null||ce===void 0)&&ce[re]||!((ve=j[H])===null||ve===void 0)&&ve[re-I+7]||!((k=O[H])===null||k===void 0)&&k[re]||!((F=O[H-I+7])===null||F===void 0)&&F[re]||!((G=O[H])===null||G===void 0)&&G[re-I+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:W.width,height:W.height,count:I,dotSize:D})}drawBackground(){var U,I,z;const M=this._element,D=this._options;if(M){const W=(U=D.backgroundOptions)===null||U===void 0?void 0:U.gradient,H=(I=D.backgroundOptions)===null||I===void 0?void 0:I.color;let re=D.height,ue=D.width;if(W||H){const ce=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),!((z=D.backgroundOptions)===null||z===void 0)&&z.round&&(re=ue=Math.min(D.width,D.height),ce.setAttribute("rx",String(re/2*D.backgroundOptions.round))),ce.setAttribute("x",String(this._roundSize((D.width-ue)/2))),ce.setAttribute("y",String(this._roundSize((D.height-re)/2))),ce.setAttribute("width",String(ue)),ce.setAttribute("height",String(re)),this._backgroundClipPath.appendChild(ce),this._createColor({options:W,color:H,additionalRotation:0,x:0,y:0,height:D.height,width:D.width,name:`background-color-${this._instanceId}`})}}}drawDots(U){var I,z;if(!this._qr)throw"QR code is not defined";const M=this._options,D=this._qr.getModuleCount();if(D>M.width||D>M.height)throw"The canvas is too small.";const W=Math.min(M.width,M.height)-2*M.margin,H=M.shape===C?W/Math.sqrt(2):W,re=this._roundSize(H/D),ue=this._roundSize((M.width-D*re)/2),ce=this._roundSize((M.height-D*re)/2),ve=new m({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:(I=M.dotsOptions)===null||I===void 0?void 0:I.gradient,color:M.dotsOptions.color,additionalRotation:0,x:0,y:0,height:M.height,width:M.width,name:`dot-color-${this._instanceId}`});for(let k=0;k<D;k++)for(let F=0;F<D;F++)U&&!U(k,F)||!((z=this._qr)===null||z===void 0)&&z.isDark(k,F)&&(ve.draw(ue+F*re,ce+k*re,re,(G,le)=>!(F+G<0||k+le<0||F+G>=D||k+le>=D)&&!(U&&!U(k+le,F+G))&&!!this._qr&&this._qr.isDark(k+le,F+G)),ve._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ve._element));if(M.shape===C){const k=this._roundSize((W/re-D)/2),F=D+2*k,G=ue-k*re,le=ce-k*re,q=[],ae=this._roundSize(F/2);for(let fe=0;fe<F;fe++){q[fe]=[];for(let ge=0;ge<F;ge++)fe>=k-1&&fe<=F-k&&ge>=k-1&&ge<=F-k||Math.sqrt((fe-ae)*(fe-ae)+(ge-ae)*(ge-ae))>ae?q[fe][ge]=0:q[fe][ge]=this._qr.isDark(ge-2*k<0?ge:ge>=D?ge-2*k:ge-k,fe-2*k<0?fe:fe>=D?fe-2*k:fe-k)?1:0}for(let fe=0;fe<F;fe++)for(let ge=0;ge<F;ge++)q[fe][ge]&&(ve.draw(G+ge*re,le+fe*re,re,(de,_e)=>{var Te;return!!(!((Te=q[fe+_e])===null||Te===void 0)&&Te[ge+de])}),ve._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ve._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const U=this._element,I=this._options;if(!U)throw"Element code is not defined";const z=this._qr.getModuleCount(),M=Math.min(I.width,I.height)-2*I.margin,D=I.shape===C?M/Math.sqrt(2):M,W=this._roundSize(D/z),H=7*W,re=3*W,ue=this._roundSize((I.width-z*W)/2),ce=this._roundSize((I.height-z*W)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([ve,k,F])=>{var G,le,q,ae,fe,ge,de,_e,Te,Le,He,Be,qe,be;const we=ue+ve*W*(z-7),De=ce+k*W*(z-7);let Re=this._dotsClipPath,Ae=this._dotsClipPath;if((!((G=I.cornersSquareOptions)===null||G===void 0)&&G.gradient||!((le=I.cornersSquareOptions)===null||le===void 0)&&le.color)&&(Re=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Re.setAttribute("id",`clip-path-corners-square-color-${ve}-${k}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Ae=Re,this._createColor({options:(q=I.cornersSquareOptions)===null||q===void 0?void 0:q.gradient,color:(ae=I.cornersSquareOptions)===null||ae===void 0?void 0:ae.color,additionalRotation:F,x:we,y:De,height:H,width:H,name:`corners-square-color-${ve}-${k}-${this._instanceId}`})),((fe=I.cornersSquareOptions)===null||fe===void 0?void 0:fe.type)&&b.includes(I.cornersSquareOptions.type)){const ze=new _({svg:this._element,type:I.cornersSquareOptions.type,window:this._window});ze.draw(we,De,H,F),ze._element&&Re&&Re.appendChild(ze._element)}else{const ze=new m({svg:this._element,type:((ge=I.cornersSquareOptions)===null||ge===void 0?void 0:ge.type)||I.dotsOptions.type,window:this._window});for(let Ve=0;Ve<j.length;Ve++)for(let Ze=0;Ze<j[Ve].length;Ze++)!((de=j[Ve])===null||de===void 0)&&de[Ze]&&(ze.draw(we+Ze*W,De+Ve*W,W,(ut,at)=>{var pt;return!!(!((pt=j[Ve+at])===null||pt===void 0)&&pt[Ze+ut])}),ze._element&&Re&&Re.appendChild(ze._element))}if((!((_e=I.cornersDotOptions)===null||_e===void 0)&&_e.gradient||!((Te=I.cornersDotOptions)===null||Te===void 0)&&Te.color)&&(Ae=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ae.setAttribute("id",`clip-path-corners-dot-color-${ve}-${k}-${this._instanceId}`),this._defs.appendChild(Ae),this._cornersDotClipPath=Ae,this._createColor({options:(Le=I.cornersDotOptions)===null||Le===void 0?void 0:Le.gradient,color:(He=I.cornersDotOptions)===null||He===void 0?void 0:He.color,additionalRotation:F,x:we+2*W,y:De+2*W,height:re,width:re,name:`corners-dot-color-${ve}-${k}-${this._instanceId}`})),((Be=I.cornersDotOptions)===null||Be===void 0?void 0:Be.type)&&x.includes(I.cornersDotOptions.type)){const ze=new A({svg:this._element,type:I.cornersDotOptions.type,window:this._window});ze.draw(we+2*W,De+2*W,re,F),ze._element&&Ae&&Ae.appendChild(ze._element)}else{const ze=new m({svg:this._element,type:((qe=I.cornersDotOptions)===null||qe===void 0?void 0:qe.type)||I.dotsOptions.type,window:this._window});for(let Ve=0;Ve<O.length;Ve++)for(let Ze=0;Ze<O[Ve].length;Ze++)!((be=O[Ve])===null||be===void 0)&&be[Ze]&&(ze.draw(we+Ze*W,De+Ve*W,W,(ut,at)=>{var pt;return!!(!((pt=O[Ve+at])===null||pt===void 0)&&pt[Ze+ut])}),ze._element&&Ae&&Ae.appendChild(ze._element))}})}loadImage(){return new Promise((U,I)=>{var z;const M=this._options;if(!M.image)return I("Image is not defined");if(!((z=M.nodeCanvas)===null||z===void 0)&&z.loadImage)M.nodeCanvas.loadImage(M.image).then(D=>{var W,H;if(this._image=D,this._options.imageOptions.saveAsBlob){const re=(W=M.nodeCanvas)===null||W===void 0?void 0:W.createCanvas(this._image.width,this._image.height);(H=re?.getContext("2d"))===null||H===void 0||H.drawImage(D,0,0),this._imageUri=re?.toDataURL()}U()}).catch(I);else{const D=new this._window.Image;typeof M.imageOptions.crossOrigin=="string"&&(D.crossOrigin=M.imageOptions.crossOrigin),this._image=D,D.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(W,H){return new Promise(re=>{const ue=new H.XMLHttpRequest;ue.onload=function(){const ce=new H.FileReader;ce.onloadend=function(){re(ce.result)},ce.readAsDataURL(ue.response)},ue.open("GET",W),ue.responseType="blob",ue.send()})}(M.image||"",this._window)),U()},D.src=M.image}})}async drawImage({width:U,height:I,count:z,dotSize:M}){const D=this._options,W=this._roundSize((D.width-z*M)/2),H=this._roundSize((D.height-z*M)/2),re=W+this._roundSize(D.imageOptions.margin+(z*M-U)/2),ue=H+this._roundSize(D.imageOptions.margin+(z*M-I)/2),ce=U-2*D.imageOptions.margin,ve=I-2*D.imageOptions.margin,k=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");k.setAttribute("href",this._imageUri||""),k.setAttribute("xlink:href",this._imageUri||""),k.setAttribute("x",String(re)),k.setAttribute("y",String(ue)),k.setAttribute("width",`${ce}px`),k.setAttribute("height",`${ve}px`),this._element.appendChild(k)}_createColor({options:U,color:I,additionalRotation:z,x:M,y:D,height:W,width:H,name:re}){const ue=H>W?H:W,ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ce.setAttribute("x",String(M)),ce.setAttribute("y",String(D)),ce.setAttribute("height",String(W)),ce.setAttribute("width",String(H)),ce.setAttribute("clip-path",`url('#clip-path-${re}')`),U){let ve;if(U.type==="radial")ve=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),ve.setAttribute("id",re),ve.setAttribute("gradientUnits","userSpaceOnUse"),ve.setAttribute("fx",String(M+H/2)),ve.setAttribute("fy",String(D+W/2)),ve.setAttribute("cx",String(M+H/2)),ve.setAttribute("cy",String(D+W/2)),ve.setAttribute("r",String(ue/2));else{const k=((U.rotation||0)+z)%(2*Math.PI),F=(k+2*Math.PI)%(2*Math.PI);let G=M+H/2,le=D+W/2,q=M+H/2,ae=D+W/2;F>=0&&F<=.25*Math.PI||F>1.75*Math.PI&&F<=2*Math.PI?(G-=H/2,le-=W/2*Math.tan(k),q+=H/2,ae+=W/2*Math.tan(k)):F>.25*Math.PI&&F<=.75*Math.PI?(le-=W/2,G-=H/2/Math.tan(k),ae+=W/2,q+=H/2/Math.tan(k)):F>.75*Math.PI&&F<=1.25*Math.PI?(G+=H/2,le+=W/2*Math.tan(k),q-=H/2,ae-=W/2*Math.tan(k)):F>1.25*Math.PI&&F<=1.75*Math.PI&&(le+=W/2,G+=H/2/Math.tan(k),ae-=W/2,q-=H/2/Math.tan(k)),ve=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),ve.setAttribute("id",re),ve.setAttribute("gradientUnits","userSpaceOnUse"),ve.setAttribute("x1",String(Math.round(G))),ve.setAttribute("y1",String(Math.round(le))),ve.setAttribute("x2",String(Math.round(q))),ve.setAttribute("y2",String(Math.round(ae)))}U.colorStops.forEach(({offset:k,color:F})=>{const G=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");G.setAttribute("offset",100*k+"%"),G.setAttribute("stop-color",F),ve.appendChild(G)}),ce.setAttribute("fill",`url('#${re}')`),this._defs.appendChild(ve)}else I&&ce.setAttribute("fill",I);this._element.appendChild(ce)}}N.instanceCount=0;const B=N,V="canvas",Z={};for(let Y=0;Y<=40;Y++)Z[Y]=Y;const X={type:V,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Z[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 oe(Y){const U=Object.assign({},Y);if(!U.colorStops||!U.colorStops.length)throw"Field 'colorStops' is required in gradient";return U.rotation?U.rotation=Number(U.rotation):U.rotation=0,U.colorStops=U.colorStops.map(I=>Object.assign(Object.assign({},I),{offset:Number(I.offset)})),U}function ee(Y){const U=Object.assign({},Y);return U.width=Number(U.width),U.height=Number(U.height),U.margin=Number(U.margin),U.imageOptions=Object.assign(Object.assign({},U.imageOptions),{hideBackgroundDots:!!U.imageOptions.hideBackgroundDots,imageSize:Number(U.imageOptions.imageSize),margin:Number(U.imageOptions.margin)}),U.margin>Math.min(U.width,U.height)&&(U.margin=Math.min(U.width,U.height)),U.dotsOptions=Object.assign({},U.dotsOptions),U.dotsOptions.gradient&&(U.dotsOptions.gradient=oe(U.dotsOptions.gradient)),U.cornersSquareOptions&&(U.cornersSquareOptions=Object.assign({},U.cornersSquareOptions),U.cornersSquareOptions.gradient&&(U.cornersSquareOptions.gradient=oe(U.cornersSquareOptions.gradient))),U.cornersDotOptions&&(U.cornersDotOptions=Object.assign({},U.cornersDotOptions),U.cornersDotOptions.gradient&&(U.cornersDotOptions.gradient=oe(U.cornersDotOptions.gradient))),U.backgroundOptions&&(U.backgroundOptions=Object.assign({},U.backgroundOptions),U.backgroundOptions.gradient&&(U.backgroundOptions.gradient=oe(U.backgroundOptions.gradient))),U}var J=i(873),ne=i.n(J);function he(Y){if(!Y)throw new Error("Extension must be defined");Y[0]==="."&&(Y=Y.substring(1));const U={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"}[Y.toLowerCase()];if(!U)throw new Error(`Extension "${Y}" is not supported`);return U}class Q{constructor(U){U?.jsdom?this._window=new U.jsdom("",{resources:"usable"}).window:this._window=window,this._options=U?ee(u(X,U)):X,this.update()}static _clearContainer(U){U&&(U.innerHTML="")}_setupSvg(){if(!this._qr)return;const U=new B(this._options,this._window);this._svg=U.getElement(),this._svgDrawingPromise=U.drawQR(this._qr).then(()=>{var I;this._svg&&((I=this._extension)===null||I===void 0||I.call(this,U.getElement(),this._options))})}_setupCanvas(){var U,I;this._qr&&(!((U=this._options.nodeCanvas)===null||U===void 0)&&U.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=(I=this._svgDrawingPromise)===null||I===void 0?void 0:I.then(()=>{var z;if(!this._svg)return;const M=this._svg,D=new this._window.XMLSerializer().serializeToString(M),W=btoa(D),H=`data:${he("svg")};base64,${W}`;if(!((z=this._options.nodeCanvas)===null||z===void 0)&&z.loadImage)return this._options.nodeCanvas.loadImage(H).then(re=>{var ue,ce;re.width=this._options.width,re.height=this._options.height,(ce=(ue=this._nodeCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||ce===void 0||ce.drawImage(re,0,0)});{const re=new this._window.Image;return new Promise(ue=>{re.onload=()=>{var ce,ve;(ve=(ce=this._domCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||ve===void 0||ve.drawImage(re,0,0),ue()},re.src=H})}}))}async _getElement(U="png"){if(!this._qr)throw"QR code is empty";return U.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(U){Q._clearContainer(this._container),this._options=U?ee(u(this._options,U)):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(I){switch(!0){case/^[0-9]*$/.test(I):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(I):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===V?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(U){if(U){if(typeof U.appendChild!="function")throw"Container should be a single DOM node";this._options.type===V?this._domCanvas&&U.appendChild(this._domCanvas):this._svg&&U.appendChild(this._svg),this._container=U}}applyExtension(U){if(!U)throw"Extension function should be defined.";this._extension=U,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(U="png"){if(!this._qr)throw"QR code is empty";const I=await this._getElement(U),z=he(U);if(!I)return null;if(U.toLowerCase()==="svg"){const M=`<?xml version="1.0" standalone="no"?>\r
|
||
${new this._window.XMLSerializer().serializeToString(I)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(M):new Blob([M],{type:z})}return new Promise(M=>{const D=I;if("toBuffer"in D)if(z==="image/png")M(D.toBuffer(z));else if(z==="image/jpeg")M(D.toBuffer(z));else{if(z!=="application/pdf")throw Error("Unsupported extension");M(D.toBuffer(z))}else"toBlob"in D&&D.toBlob(M,z,1)})}async download(U){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let I="png",z="qr";typeof U=="string"?(I=U,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof U=="object"&&U!==null&&(U.name&&(z=U.name),U.extension&&(I=U.extension));const M=await this._getElement(I);if(M)if(I.toLowerCase()==="svg"){let D=new XMLSerializer().serializeToString(M);D=`<?xml version="1.0" standalone="no"?>\r
|
||
`+D,d(`data:${he(I)};charset=utf-8,${encodeURIComponent(D)}`,`${z}.svg`)}else d(M.toDataURL(he(I)),`${z}.${I}`)}}const se=Q})(),a.default})())}(yg)),yg.exports}var EJ=CJ();const AJ=ri(EJ);/*!
|
||
* Font Awesome Free 7.0.0 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 2025 Fonticons, Inc.
|
||
*/var TJ={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M319.1 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.7-55.8 .9-115.1 44.5-115.1 133.2 0 26.2 4.8 53.3 14.4 81.2 12.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.9zM262.5 104.5c27.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"]},OJ={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.5 253.9a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm-265.1 0a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm273.7-96.5l47.9-83c.8-1.1 1.3-2.4 1.5-3.8s.2-2.7-.1-4.1-.9-2.6-1.7-3.7-1.8-2-3-2.7-2.5-1.1-3.9-1.3-2.7 0-4 .4-2.5 1.1-3.6 1.9-1.9 2-2.5 3.2l-48.5 84.1c-38.8-17.4-80.8-26.4-123.3-26.4s-84.5 9-123.3 26.4L116.2 64.4c-.6-1.2-1.5-2.3-2.5-3.2s-2.3-1.5-3.6-1.9-2.7-.5-4-.4-2.7 .6-3.9 1.3-2.2 1.6-3 2.7-1.4 2.4-1.7 3.7-.3 2.7-.1 4.1 .8 2.6 1.5 3.8l47.9 83C64.5 202.2 8.2 285.5 0 384l576 0c-8.2-98.5-64.5-181.8-146.9-226.6z"]};const jJ="Left",PJ="Right",MJ="Up",RJ="Down",Fc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Wx={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},wO="mousemove",SO="mouseup",NJ="touchend",LJ="touchmove",DJ="touchstart";function kJ(e,t,n,r){return e>t?n>0?PJ:jJ:r>0?RJ:MJ}function CO(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 IJ(e,t){const n=m=>{const p="touches"in m;p&&m.touches.length>1||e((b,_)=>{_.trackMouse&&!p&&(document.addEventListener(wO,r),document.addEventListener(SO,s));const{clientX:w,clientY:x}=p?m.touches[0]:m,A=CO([w,x],_.rotationAngle);return _.onTouchStartOrOnMouseDown&&_.onTouchStartOrOnMouseDown({event:m}),Object.assign(Object.assign(Object.assign({},b),Wx),{initial:A.slice(),xy:A,start:m.timeStamp||0})})},r=m=>{e((p,b)=>{const _="touches"in m;if(_&&m.touches.length>1)return p;if(m.timeStamp-p.start>b.swipeDuration)return p.swiping?Object.assign(Object.assign({},p),{swiping:!1}):p;const{clientX:w,clientY:x}=_?m.touches[0]:m,[A,C]=CO([w,x],b.rotationAngle),j=A-p.xy[0],O=C-p.xy[1],N=Math.abs(j),B=Math.abs(O),V=(m.timeStamp||0)-p.start,Z=Math.sqrt(N*N+B*B)/(V||1),X=[j/(V||1),O/(V||1)],oe=kJ(N,B,j,O),ee=typeof b.delta=="number"?b.delta:b.delta[oe.toLowerCase()]||Fc.delta;if(N<ee&&B<ee&&!p.swiping)return p;const J={absX:N,absY:B,deltaX:j,deltaY:O,dir:oe,event:m,first:p.first,initial:p.initial,velocity:Z,vxvy:X};J.first&&b.onSwipeStart&&b.onSwipeStart(J),b.onSwiping&&b.onSwiping(J);let ne=!1;return(b.onSwiping||b.onSwiped||b[`onSwiped${oe}`])&&(ne=!0),ne&&b.preventScrollOnSwipe&&b.trackTouch&&m.cancelable&&m.preventDefault(),Object.assign(Object.assign({},p),{first:!1,eventData:J,swiping:!0})})},i=m=>{e((p,b)=>{let _;if(p.swiping&&p.eventData){if(m.timeStamp-p.start<b.swipeDuration){_=Object.assign(Object.assign({},p.eventData),{event:m}),b.onSwiped&&b.onSwiped(_);const w=b[`onSwiped${_.dir}`];w&&w(_)}}else b.onTap&&b.onTap({event:m});return b.onTouchEndOrOnMouseUp&&b.onTouchEndOrOnMouseUp({event:m}),Object.assign(Object.assign(Object.assign({},p),Wx),{eventData:_})})},a=()=>{document.removeEventListener(wO,r),document.removeEventListener(SO,s)},s=m=>{a(),i(m)},u=(m,p)=>{let b=()=>{};if(m&&m.addEventListener){const _=Object.assign(Object.assign({},Fc.touchEventOptions),p.touchEventOptions),w=[[DJ,n,_],[LJ,r,Object.assign(Object.assign({},_),p.preventScrollOnSwipe?{passive:!1}:{})],[NJ,i,_]];w.forEach(([x,A,C])=>m.addEventListener(x,A,C)),b=()=>w.forEach(([x,A])=>m.removeEventListener(x,A))}return b},f={ref:m=>{m!==null&&e((p,b)=>{if(p.el===m)return p;const _={};return p.el&&p.el!==m&&p.cleanUpTouch&&(p.cleanUpTouch(),_.cleanUpTouch=void 0),b.trackTouch&&m&&(_.cleanUpTouch=u(m,b)),Object.assign(Object.assign(Object.assign({},p),{el:m}),_)})}};return t.trackMouse&&(f.onMouseDown=n),[f,u]}function UJ(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 BJ(e){const{trackMouse:t}=e,n=T.useRef(Object.assign({},Wx)),r=T.useRef(Object.assign({},Fc)),i=T.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Fc),e);let a;for(a in Fc)r.current[a]===void 0&&(r.current[a]=Fc[a]);const[s,u]=T.useMemo(()=>IJ(d=>n.current=d(n.current,r.current),{trackMouse:t}),[t]);return n.current=UJ(n.current,r.current,i.current,u),s}function yb(e){return e==null?"":`${e}`}function zJ(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 Hw(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 FJ(e={stringFormatter:Hw()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function $J(e={stringFormatter:Hw()}){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 VJ=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function qJ(e){var t,n,r;const i=[];let a;for(;a=VJ.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 EO(e,t,n){if(t in e){const a=e[t];return a===void 0?n:a}const r=Array.isArray(t)?t:qJ(t);let i=e;for(const a of r)if(i=i?.[a],i===void 0)return n;return i}function LL(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Yx(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var AO;(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"})(AO||(AO={}));class HJ{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||Hw(),i=$J({stringFormatter:r}),a={header:r,undefined:yb,boolean:yb,number:zJ(),bigint:yb,string:r,symbol:FJ({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=>EO(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:s=>EO(s,a,i)}}if(typeof r.value=="function"){const a=r.label||r.value.name||"",s={label:a,default:i},u=r.value;return{label:a,value(d){const f=u(d,s);return f===void 0?i:f}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Yx(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(LL,[]),[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 Yx(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 DL extends HJ{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,u)=>(Object.keys(u).forEach(d=>{s.includes(d)||s.push(d)}),s),[]),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(LL,[])}processData(t){return Yx(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var or;(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"})(or||(or={}));or.QUOTATION_MARK+"",or.QUOTATION_MARK,or.REVERSE_SOLIDUS+"",or.REVERSE_SOLIDUS,or.SOLIDUS+"",or.SOLIDUS,or.LATIN_SMALL_LETTER_B+"",or.BACKSPACE,or.LATIN_SMALL_LETTER_F+"",or.FORM_FEED,or.LATIN_SMALL_LETTER_N+"",or.NEWLINE,or.LATIN_SMALL_LETTER_R+"",or.CARRIAGE_RETURN,or.LATIN_SMALL_LETTER_T+"",or.TAB;var TO;(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"})(TO||(TO={}));var OO;(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"})(OO||(OO={}));var jO;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(jO||(jO={}));var PO;(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"})(PO||(PO={}));var bb={},_b={},MO;function GJ(){return MO||(MO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t}(_b)),_b}var xb={},RO;function kL(){return RO||(RO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t}(xb)),xb}var wb={},NO;function IL(){return NO||(NO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t}(wb)),wb}var Sb={},LO;function Gw(){return LO||(LO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let a=0,s="",u="",d=!1;for(n.charCodeAt(0)===46&&(r.push(""),a++);a<i;){const f=n[a];u?f==="\\"&&a+1<i?(a++,s+=n[a]):f===u?u="":s+=f:d?f==='"'||f==="'"?u=f:f==="]"?(d=!1,r.push(s),s=""):s+=f:f==="["?(d=!0,s&&(r.push(s),s="")):f==="."?s&&(r.push(s),s=""):s+=f,a++}return s&&r.push(s),r}e.toPath=t}(Sb)),Sb}var DO;function Ww(){return DO||(DO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GJ(),n=kL(),r=IL(),i=Gw();function a(u,d,f){if(u==null)return f;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return f;const m=u[d];return m===void 0?n.isDeepKey(d)?a(u,i.toPath(d),f):f:m}case"number":case"symbol":{typeof d=="number"&&(d=r.toKey(d));const m=u[d];return m===void 0?f:m}default:{if(Array.isArray(d))return s(u,d,f);if(Object.is(d?.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return f;const m=u[d];return m===void 0?f:m}}}function s(u,d,f){if(d.length===0)return f;let m=u;for(let p=0;p<d.length;p++){if(m==null||t.isUnsafeProperty(d[p]))return f;m=m[d[p]]}return m===void 0?f:m}e.get=a}(bb)),bb}var Cb,kO;function WJ(){return kO||(kO=1,Cb=Ww().get),Cb}var YJ=WJ();const _l=ri(YJ);var Eb={exports:{}},Ft={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var IO;function KJ(){if(IO)return Ft;IO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function O(B){if(typeof B=="object"&&B!==null){var V=B.$$typeof;switch(V){case t:switch(B=B.type,B){case d:case f:case r:case a:case i:case p:return B;default:switch(B=B&&B.$$typeof,B){case u:case m:case w:case _:case s:return B;default:return V}}case n:return V}}}function N(B){return O(B)===f}return Ft.AsyncMode=d,Ft.ConcurrentMode=f,Ft.ContextConsumer=u,Ft.ContextProvider=s,Ft.Element=t,Ft.ForwardRef=m,Ft.Fragment=r,Ft.Lazy=w,Ft.Memo=_,Ft.Portal=n,Ft.Profiler=a,Ft.StrictMode=i,Ft.Suspense=p,Ft.isAsyncMode=function(B){return N(B)||O(B)===d},Ft.isConcurrentMode=N,Ft.isContextConsumer=function(B){return O(B)===u},Ft.isContextProvider=function(B){return O(B)===s},Ft.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},Ft.isForwardRef=function(B){return O(B)===m},Ft.isFragment=function(B){return O(B)===r},Ft.isLazy=function(B){return O(B)===w},Ft.isMemo=function(B){return O(B)===_},Ft.isPortal=function(B){return O(B)===n},Ft.isProfiler=function(B){return O(B)===a},Ft.isStrictMode=function(B){return O(B)===i},Ft.isSuspense=function(B){return O(B)===p},Ft.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===f||B===a||B===i||B===p||B===b||typeof B=="object"&&B!==null&&(B.$$typeof===w||B.$$typeof===_||B.$$typeof===s||B.$$typeof===u||B.$$typeof===m||B.$$typeof===A||B.$$typeof===C||B.$$typeof===j||B.$$typeof===x)},Ft.typeOf=O,Ft}var UO;function ZJ(){return UO||(UO=1,Eb.exports=KJ()),Eb.exports}var XJ=ZJ(),lr=e=>e===0?0:e>0?1:-1,ji=e=>typeof e=="number"&&e!=+e,vu=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Je=e=>(typeof e=="number"||e instanceof Number)&&!ji(e),ei=e=>Je(e)||typeof e=="string",QJ=0,wh=e=>{var t=++QJ;return"".concat(e||"").concat(t)},$r=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(!Je(t)&&typeof t!="string")return r;var a;if(vu(t)){if(n==null)return r;var s=t.indexOf("%");a=n*parseFloat(t.slice(0,s))/100}else a=+t;return ji(a)&&(a=r),i&&n!=null&&a>n&&(a=n),a},UL=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},BO=(e,t)=>Je(e)&&Je(t)?n=>e+n*(t-e):()=>t;function da(e,t,n){return Je(e)&&Je(t)?e+n*(t-e):t}function BL(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):_l(r,t))===n)}var hn=e=>e===null||typeof e>"u",Gh=e=>hn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),JJ=["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"];function Yw(e){if(typeof e!="string")return!1;var t=JJ;return t.includes(e)}var eee=["viewBox","children"],zO=["points","pathLength"],Ab={svg:eee,polygon:zO,polyline:zO},Kw=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(T.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Yw(i)&&(r[i]=a=>n[i](n,a))}),r},tee=(e,t,n)=>r=>(e(t,n,r),null),oy=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Yw(i)&&typeof a=="function"&&(r||(r={}),r[i]=tee(a,t,n))}),r},nee=["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"];function zL(e){if(typeof e!="string")return!1;var t=nee;return t.includes(e)}function Jo(e){var t=Object.entries(e).filter(n=>{var[r]=n;return zL(r)});return Object.fromEntries(t)}var FO=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",$O=null,Tb=null,FL=e=>{if(e===$O&&Array.isArray(Tb))return Tb;var t=[];return T.Children.forEach(e,n=>{hn(n)||(XJ.isFragment(n)?t=t.concat(FL(n.props.children)):t.push(n))}),Tb=t,$O=e,t};function Wh(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>FO(i)):r=[FO(t)],FL(e).forEach(i=>{var a=_l(i,"type.displayName")||_l(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}var $L=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,ree=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var a=(i=r&&Ab?.[r])!==null&&i!==void 0?i:[],s=t.startsWith("data-"),u=typeof e!="function"&&(!!r&&a.includes(t)||zL(t)),d=!!n&&Yw(t);return s||u||d},fn=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(T.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(a=>{var s;ree((s=r)===null||s===void 0?void 0:s[a],a,t,n)&&(i[a]=r[a])}),i},iee=["children","width","height","viewBox","className","style","title","desc"];function Kx(){return Kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kx.apply(null,arguments)}function aee(e,t){if(e==null)return{};var n,r,i=oee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var VL=T.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:s,style:u,title:d,desc:f}=e,m=aee(e,iee),p=a||{width:r,height:i,x:0,y:0},b=Ne("recharts-surface",s);return T.createElement("svg",Kx({},fn(m,!0,"svg"),{className:b,width:r,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),T.createElement("title",null,d),T.createElement("desc",null,f),n)}),see=["children","className"];function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zx.apply(null,arguments)}function lee(e,t){if(e==null)return{};var n,r,i=uee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _r=T.forwardRef((e,t)=>{var{children:n,className:r}=e,i=lee(e,see),a=Ne("recharts-layer",r);return T.createElement("g",Zx({className:a},fn(i,!0),{ref:t}),n)}),cee=T.createContext(null);function an(e){return function(){return e}}const qL=Math.cos,Kg=Math.sin,Aa=Math.sqrt,Zg=Math.PI,sy=2*Zg,Xx=Math.PI,Qx=2*Xx,du=1e-6,fee=Qx-du;function HL(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function dee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return HL;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 hee{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?HL:dee(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,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+s}`}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 s=this._x1,u=this._y1,d=r-t,f=i-n,m=s-t,p=u-n,b=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(b>du)if(!(Math.abs(p*d-f*m)>du)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let _=r-s,w=i-u,x=d*d+f*f,A=_*_+w*w,C=Math.sqrt(x),j=Math.sqrt(b),O=a*Math.tan((Xx-Math.acos((x+b-A)/(2*C*j)))/2),N=O/j,B=O/C;Math.abs(N-1)>du&&this._append`L${t+N*m},${n+N*p}`,this._append`A${a},${a},0,0,${+(p*_>m*w)},${this._x1=t+B*d},${this._y1=n+B*f}`}}arc(t,n,r,i,a,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),d=r*Math.sin(i),f=t+u,m=n+d,p=1^s,b=s?i-a:a-i;this._x1===null?this._append`M${f},${m}`:(Math.abs(this._x1-f)>du||Math.abs(this._y1-m)>du)&&this._append`L${f},${m}`,r&&(b<0&&(b=b%Qx+Qx),b>fee?this._append`A${r},${r},0,1,${p},${t-u},${n-d}A${r},${r},0,1,${p},${this._x1=f},${this._y1=m}`:b>du&&this._append`A${r},${r},0,${+(b>=Xx)},${p},${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 Zw(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 hee(t)}function Xw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function GL(e){this._context=e}GL.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 ly(e){return new GL(e)}function WL(e){return e[0]}function YL(e){return e[1]}function KL(e,t){var n=an(!0),r=null,i=ly,a=null,s=Zw(u);e=typeof e=="function"?e:e===void 0?WL:an(e),t=typeof t=="function"?t:t===void 0?YL:an(t);function u(d){var f,m=(d=Xw(d)).length,p,b=!1,_;for(r==null&&(a=i(_=s())),f=0;f<=m;++f)!(f<m&&n(p=d[f],f,d))===b&&((b=!b)?a.lineStart():a.lineEnd()),b&&a.point(+e(p,f,d),+t(p,f,d));if(_)return a=null,_+""||null}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:an(+d),u):e},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:an(+d),u):t},u.defined=function(d){return arguments.length?(n=typeof d=="function"?d:an(!!d),u):n},u.curve=function(d){return arguments.length?(i=d,r!=null&&(a=i(r)),u):i},u.context=function(d){return arguments.length?(d==null?r=a=null:a=i(r=d),u):r},u}function $p(e,t,n){var r=null,i=an(!0),a=null,s=ly,u=null,d=Zw(f);e=typeof e=="function"?e:e===void 0?WL:an(+e),t=typeof t=="function"?t:an(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?YL:an(+n);function f(p){var b,_,w,x=(p=Xw(p)).length,A,C=!1,j,O=new Array(x),N=new Array(x);for(a==null&&(u=s(j=d())),b=0;b<=x;++b){if(!(b<x&&i(A=p[b],b,p))===C)if(C=!C)_=b,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),w=b-1;w>=_;--w)u.point(O[w],N[w]);u.lineEnd(),u.areaEnd()}C&&(O[b]=+e(A,b,p),N[b]=+t(A,b,p),u.point(r?+r(A,b,p):O[b],n?+n(A,b,p):N[b]))}if(j)return u=null,j+""||null}function m(){return KL().defined(i).curve(s).context(a)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:an(+p),r=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:an(+p),f):e},f.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:an(+p),f):r},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:an(+p),n=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:an(+p),f):t},f.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:an(+p),f):n},f.lineX0=f.lineY0=function(){return m().x(e).y(t)},f.lineY1=function(){return m().x(e).y(n)},f.lineX1=function(){return m().x(r).y(t)},f.defined=function(p){return arguments.length?(i=typeof p=="function"?p:an(!!p),f):i},f.curve=function(p){return arguments.length?(s=p,a!=null&&(u=s(a)),f):s},f.context=function(p){return arguments.length?(p==null?a=u=null:u=s(a=p),f):a},f}class ZL{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 mee(e){return new ZL(e,!0)}function pee(e){return new ZL(e,!1)}const Qw={draw(e,t){const n=Aa(t/Zg);e.moveTo(n,0),e.arc(0,0,n,0,sy)}},gee={draw(e,t){const n=Aa(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()}},XL=Aa(1/3),vee=XL*2,yee={draw(e,t){const n=Aa(t/vee),r=n*XL;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},bee={draw(e,t){const n=Aa(t),r=-n/2;e.rect(r,r,n,n)}},_ee=.8908130915292852,QL=Kg(Zg/10)/Kg(7*Zg/10),xee=Kg(sy/10)*QL,wee=-qL(sy/10)*QL,See={draw(e,t){const n=Aa(t*_ee),r=xee*n,i=wee*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const s=sy*a/5,u=qL(s),d=Kg(s);e.lineTo(d*n,-u*n),e.lineTo(u*r-d*i,d*r+u*i)}e.closePath()}},Ob=Aa(3),Cee={draw(e,t){const n=-Aa(t/(Ob*3));e.moveTo(0,n*2),e.lineTo(-Ob*n,-n),e.lineTo(Ob*n,-n),e.closePath()}},Gi=-.5,Wi=Aa(3)/2,Jx=1/Aa(12),Eee=(Jx/2+1)*3,Aee={draw(e,t){const n=Aa(t/Eee),r=n/2,i=n*Jx,a=r,s=n*Jx+n,u=-a,d=s;e.moveTo(r,i),e.lineTo(a,s),e.lineTo(u,d),e.lineTo(Gi*r-Wi*i,Wi*r+Gi*i),e.lineTo(Gi*a-Wi*s,Wi*a+Gi*s),e.lineTo(Gi*u-Wi*d,Wi*u+Gi*d),e.lineTo(Gi*r+Wi*i,Gi*i-Wi*r),e.lineTo(Gi*a+Wi*s,Gi*s-Wi*a),e.lineTo(Gi*u+Wi*d,Gi*d-Wi*u),e.closePath()}};function Tee(e,t){let n=null,r=Zw(i);e=typeof e=="function"?e:an(e||Qw),t=typeof t=="function"?t:an(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:an(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:an(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Xg(){}function Qg(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 JL(e){this._context=e}JL.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:Qg(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:Qg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oee(e){return new JL(e)}function eD(e){this._context=e}eD.prototype={areaStart:Xg,areaEnd:Xg,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:Qg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jee(e){return new eD(e)}function tD(e){this._context=e}tD.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:Qg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Pee(e){return new tD(e)}function nD(e){this._context=e}nD.prototype={areaStart:Xg,areaEnd:Xg,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 Mee(e){return new nD(e)}function VO(e){return e<0?-1:1}function qO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),u=(a*i+s*r)/(r+i);return(VO(a)+VO(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function HO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function jb(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,s-u*n,a,s)}function Jg(e){this._context=e}Jg.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:jb(this,this._t0,HO(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,jb(this,HO(this,n=qO(this,e,t)),n);break;default:jb(this,this._t0,n=qO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function rD(e){this._context=new iD(e)}(rD.prototype=Object.create(Jg.prototype)).point=function(e,t){Jg.prototype.point.call(this,t,e)};function iD(e){this._context=e}iD.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 Ree(e){return new Jg(e)}function Nee(e){return new rD(e)}function aD(e){this._context=e}aD.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=GO(e),i=GO(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(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 GO(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),s=new Array(n);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(s[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 Lee(e){return new aD(e)}function uy(e,t){this._context=e,this._t=t}uy.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 Dee(e){return new uy(e,.5)}function kee(e){return new uy(e,0)}function Iee(e){return new uy(e,1)}function rf(e,t){if((s=e.length)>1)for(var n=1,r,i,a=e[t[0]],s,u=a.length;n<s;++n)for(i=a,a=e[t[n]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function e2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Uee(e,t){return e[t]}function Bee(e){const t=[];return t.key=e,t}function zee(){var e=an([]),t=e2,n=rf,r=Uee;function i(a){var s=Array.from(e.apply(this,arguments),Bee),u,d=s.length,f=-1,m;for(const p of a)for(u=0,++f;u<d;++u)(s[u][f]=[0,+r(p,s[u].key,f,a)]).data=p;for(u=0,m=Xw(t(s));u<d;++u)s[m[u]].index=u;return n(s,m),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:an(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:an(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?e2:typeof a=="function"?a:an(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??rf,i):n},i}function Fee(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,s;i<a;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}rf(e,t)}}function $ee(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var s=0,u=0;s<i;++s)u+=e[s][n][1]||0;r[n][1]+=r[n][0]=-u/2}rf(e,t)}}function Vee(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,s;r<a;++r){for(var u=0,d=0,f=0;u<s;++u){for(var m=e[t[u]],p=m[r][1]||0,b=m[r-1][1]||0,_=(p-b)/2,w=0;w<u;++w){var x=e[t[w]],A=x[r][1]||0,C=x[r-1][1]||0;_+=A-C}d+=p,f+=_*p}i[r-1][1]+=i[r-1][0]=n,d&&(n-=f/d)}i[r-1][1]+=i[r-1][0]=n,rf(e,t)}}var qee=["type","size","sizeType"];function t2(){return t2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t2.apply(null,arguments)}function WO(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?WO(Object(n),!0).forEach(function(r){Hee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hee(e,t,n){return(t=Gee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gee(e){var t=Wee(e,"string");return typeof t=="symbol"?t:t+""}function Wee(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 Yee(e,t){if(e==null)return{};var n,r,i=Kee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var oD={symbolCircle:Qw,symbolCross:gee,symbolDiamond:yee,symbolSquare:bee,symbolStar:See,symbolTriangle:Cee,symbolWye:Aee},Zee=Math.PI/180,Xee=e=>{var t="symbol".concat(Gh(e));return oD[t]||Qw},Qee=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*Zee;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Jee=(e,t)=>{oD["symbol".concat(Gh(e))]=t},sD=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=Yee(e,qee),a=YO(YO({},i),{},{type:t,size:n,sizeType:r}),s=()=>{var p=Xee(t),b=Tee().type(p).size(Qee(n,r,t));return b()},{className:u,cx:d,cy:f}=a,m=fn(a,!0);return d===+d&&f===+f&&n===+n?T.createElement("path",t2({},m,{className:Ne("recharts-symbols",u),transform:"translate(".concat(d,", ").concat(f,")"),d:s()})):null};sD.registerSymbol=Jee;var Pb={},Mb={},KO;function ete(){return KO||(KO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let a=0;a<n.length;a++){const s=n[a],u=r(s);i.has(u)||i.set(u,s)}return Array.from(i.values())}e.uniqBy=t}(Mb)),Mb}var Rb={},ZO;function lD(){return ZO||(ZO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t}(Rb)),Rb}var Nb={},Lb={},Db={},XO;function tte(){return XO||(XO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t}(Db)),Db}var QO;function Jw(){return QO||(QO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tte();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n}(Lb)),Lb}var kb={},JO;function nte(){return JO||(JO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t}(kb)),kb}var ej;function rte(){return ej||(ej=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jw(),n=nte();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r}(Nb)),Nb}var Ib={},Ub={},tj;function ite(){return tj||(tj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ww();function n(r){return function(i){return t.get(i,r)}}e.property=n}(Ub)),Ub}var Bb={},zb={},Fb={},$b={},nj;function uD(){return nj||(nj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t}($b)),$b}var Vb={},rj;function cD(){return rj||(rj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t}(Vb)),Vb}var qb={},ij;function eS(){return ij||(ij=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t}(qb)),qb}var aj;function ate(){return aj||(aj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tS(),n=uD(),r=cD(),i=eS();function a(p,b,_){return typeof _!="function"?t.isMatch(p,b):s(p,b,function w(x,A,C,j,O,N){const B=_(x,A,C,j,O,N);return B!==void 0?!!B:s(x,A,w,N)},new Map)}function s(p,b,_,w){if(b===p)return!0;switch(typeof b){case"object":return u(p,b,_,w);case"function":return Object.keys(b).length>0?s(p,{...b},_,w):i.eq(p,b);default:return n.isObject(p)?typeof b=="string"?b==="":!0:i.eq(p,b)}}function u(p,b,_,w){if(b==null)return!0;if(Array.isArray(b))return f(p,b,_,w);if(b instanceof Map)return d(p,b,_,w);if(b instanceof Set)return m(p,b,_,w);const x=Object.keys(b);if(p==null)return x.length===0;if(x.length===0)return!0;if(w&&w.has(b))return w.get(b)===p;w&&w.set(b,p);try{for(let A=0;A<x.length;A++){const C=x[A];if(!r.isPrimitive(p)&&!(C in p)||b[C]===void 0&&p[C]!==void 0||b[C]===null&&p[C]!==null||!_(p[C],b[C],C,p,b,w))return!1}return!0}finally{w&&w.delete(b)}}function d(p,b,_,w){if(b.size===0)return!0;if(!(p instanceof Map))return!1;for(const[x,A]of b.entries()){const C=p.get(x);if(_(C,A,x,p,b,w)===!1)return!1}return!0}function f(p,b,_,w){if(b.length===0)return!0;if(!Array.isArray(p))return!1;const x=new Set;for(let A=0;A<b.length;A++){const C=b[A];let j=!1;for(let O=0;O<p.length;O++){if(x.has(O))continue;const N=p[O];let B=!1;if(_(N,C,A,p,b,w)&&(B=!0),B){x.add(O),j=!0;break}}if(!j)return!1}return!0}function m(p,b,_,w){return b.size===0?!0:p instanceof Set?f([...p],[...b],_,w):!1}e.isMatchWith=a,e.isSetMatch=m}(Fb)),Fb}var oj;function tS(){return oj||(oj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ate();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n}(zb)),zb}var Hb={},Gb={},Wb={},sj;function fD(){return sj||(sj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t}(Wb)),Wb}var Yb={},lj;function nS(){return lj||(lj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t}(Yb)),Yb}var Kb={},uj;function rS(){return uj||(uj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",a="[object Arguments]",s="[object Symbol]",u="[object Date]",d="[object Map]",f="[object Set]",m="[object Array]",p="[object Function]",b="[object ArrayBuffer]",_="[object Object]",w="[object Error]",x="[object DataView]",A="[object Uint8Array]",C="[object Uint8ClampedArray]",j="[object Uint16Array]",O="[object Uint32Array]",N="[object BigUint64Array]",B="[object Int8Array]",V="[object Int16Array]",Z="[object Int32Array]",X="[object BigInt64Array]",oe="[object Float32Array]",ee="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=b,e.arrayTag=m,e.bigInt64ArrayTag=X,e.bigUint64ArrayTag=N,e.booleanTag=i,e.dataViewTag=x,e.dateTag=u,e.errorTag=w,e.float32ArrayTag=oe,e.float64ArrayTag=ee,e.functionTag=p,e.int16ArrayTag=V,e.int32ArrayTag=Z,e.int8ArrayTag=B,e.mapTag=d,e.numberTag=r,e.objectTag=_,e.regexpTag=t,e.setTag=f,e.stringTag=n,e.symbolTag=s,e.uint16ArrayTag=j,e.uint32ArrayTag=O,e.uint8ArrayTag=A,e.uint8ClampedArrayTag=C}(Kb)),Kb}var Zb={},cj;function ote(){return cj||(cj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t}(Zb)),Zb}var fj;function dD(){return fj||(fj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fD(),n=nS(),r=rS(),i=cD(),a=ote();function s(m,p){return u(m,void 0,m,new Map,p)}function u(m,p,b,_=new Map,w=void 0){const x=w?.(m,p,b,_);if(x!=null)return x;if(i.isPrimitive(m))return m;if(_.has(m))return _.get(m);if(Array.isArray(m)){const A=new Array(m.length);_.set(m,A);for(let C=0;C<m.length;C++)A[C]=u(m[C],C,b,_,w);return Object.hasOwn(m,"index")&&(A.index=m.index),Object.hasOwn(m,"input")&&(A.input=m.input),A}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const A=new RegExp(m.source,m.flags);return A.lastIndex=m.lastIndex,A}if(m instanceof Map){const A=new Map;_.set(m,A);for(const[C,j]of m)A.set(C,u(j,C,b,_,w));return A}if(m instanceof Set){const A=new Set;_.set(m,A);for(const C of m)A.add(u(C,void 0,b,_,w));return A}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(a.isTypedArray(m)){const A=new(Object.getPrototypeOf(m)).constructor(m.length);_.set(m,A);for(let C=0;C<m.length;C++)A[C]=u(m[C],C,b,_,w);return A}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const A=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return _.set(m,A),d(A,m,b,_,w),A}if(typeof File<"u"&&m instanceof File){const A=new File([m],m.name,{type:m.type});return _.set(m,A),d(A,m,b,_,w),A}if(m instanceof Blob){const A=new Blob([m],{type:m.type});return _.set(m,A),d(A,m,b,_,w),A}if(m instanceof Error){const A=new m.constructor;return _.set(m,A),A.message=m.message,A.name=m.name,A.stack=m.stack,A.cause=m.cause,d(A,m,b,_,w),A}if(typeof m=="object"&&f(m)){const A=Object.create(Object.getPrototypeOf(m));return _.set(m,A),d(A,m,b,_,w),A}return m}function d(m,p,b=m,_,w){const x=[...Object.keys(p),...t.getSymbols(p)];for(let A=0;A<x.length;A++){const C=x[A],j=Object.getOwnPropertyDescriptor(m,C);(j==null||j.writable)&&(m[C]=u(p[C],C,b,_,w))}}function f(m){switch(n.getTag(m)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=u,e.copyProperties=d}(Gb)),Gb}var dj;function ste(){return dj||(dj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dD();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n}(Hb)),Hb}var hj;function lte(){return hj||(hj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tS(),n=ste();function r(i){return i=n.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=r}(Bb)),Bb}var Xb={},Qb={},Jb={},mj;function ute(){return mj||(mj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dD(),n=rS();function r(i,a){return t.cloneDeepWith(i,(s,u,d,f)=>{const m=a?.(s,u,d,f);if(m!=null)return m;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case n.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}})}e.cloneDeepWith=r}(Jb)),Jb}var pj;function cte(){return pj||(pj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ute();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n}(Qb)),Qb}var e_={},t_={},gj;function hD(){return gj||(gj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n}(t_)),t_}var n_={},vj;function fte(){return vj||(vj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nS();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n}(n_)),n_}var yj;function dte(){return yj||(yj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kL(),n=hD(),r=fte(),i=Gw();function a(s,u){let d;if(Array.isArray(u)?d=u:typeof u=="string"&&t.isDeepKey(u)&&s?.[u]==null?d=i.toPath(u):d=[u],d.length===0)return!1;let f=s;for(let m=0;m<d.length;m++){const p=d[m];if((f==null||!Object.hasOwn(f,p))&&!((Array.isArray(f)||r.isArguments(f))&&n.isIndex(p)&&p<f.length))return!1;f=f[p]}return!0}e.has=a}(e_)),e_}var bj;function hte(){return bj||(bj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tS(),n=IL(),r=cte(),i=Ww(),a=dte();function s(u,d){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=n.toKey(u);break}}return d=r.cloneDeep(d),function(f){const m=i.get(f,u);return m===void 0?a.has(f,u):d===void 0?m===void 0:t.isMatch(m,d)}}e.matchesProperty=s}(Xb)),Xb}var _j;function mte(){return _j||(_j=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lD(),n=ite(),r=lte(),i=hte();function a(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):r.matches(s);case"string":case"symbol":case"number":return n.property(s)}}e.iteratee=a}(Ib)),Ib}var xj;function pte(){return xj||(xj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ete(),n=lD(),r=rte(),i=mte();function a(s,u=n.identity){return r.isArrayLikeObject(s)?t.uniqBy(Array.from(s),i.iteratee(u)):[]}e.uniqBy=a}(Pb)),Pb}var r_,wj;function gte(){return wj||(wj=1,r_=pte().uniqBy),r_}var vte=gte();const Sj=ri(vte);function yte(e,t,n){return t===!0?Sj(e,n):typeof t=="function"?Sj(e,t):e}var i_={exports:{}},a_={},o_={exports:{}},s_={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.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 Cj;function bte(){if(Cj)return s_;Cj=1;var e=mf();function t(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function u(p,b){var _=b(),w=r({inst:{value:_,getSnapshot:b}}),x=w[0].inst,A=w[1];return a(function(){x.value=_,x.getSnapshot=b,d(x)&&A({inst:x})},[p,_,b]),i(function(){return d(x)&&A({inst:x}),p(function(){d(x)&&A({inst:x})})},[p]),s(_),_}function d(p){var b=p.getSnapshot;p=p.value;try{var _=b();return!n(p,_)}catch{return!0}}function f(p,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return s_.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,s_}var Ej;function _te(){return Ej||(Ej=1,o_.exports=bte()),o_.exports}/**
|
||
* @license React
|
||
* use-sync-external-store-shim/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 Aj;function xte(){if(Aj)return a_;Aj=1;var e=mf(),t=_te();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,u=e.useMemo,d=e.useDebugValue;return a_.useSyncExternalStoreWithSelector=function(f,m,p,b,_){var w=a(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=u(function(){function C(V){if(!j){if(j=!0,O=V,V=b(V),_!==void 0&&x.hasValue){var Z=x.value;if(_(Z,V))return N=Z}return N=V}if(Z=N,r(O,V))return Z;var X=b(V);return _!==void 0&&_(Z,X)?(O=V,Z):(O=V,N=X)}var j=!1,O,N,B=p===void 0?null:p;return[function(){return C(m())},B===null?void 0:function(){return C(B())}]},[m,p,b,_]);var A=i(f,w[0],w[1]);return s(function(){x.hasValue=!0,x.value=A},[A]),d(A),A},a_}var Tj;function wte(){return Tj||(Tj=1,i_.exports=xte()),i_.exports}var Ste=wte(),iS=T.createContext(null),Cte=e=>e,jn=()=>{var e=T.useContext(iS);return e?e.store.dispatch:Cte},bg=()=>{},Ete=()=>bg,Ate=(e,t)=>e===t;function it(e){var t=T.useContext(iS);return Ste.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Ete,t?t.store.getState:bg,t?t.store.getState:bg,t?e:bg,Ate)}var l_={},u_={},c_={},Oj;function Tte(){return Oj||(Oj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,a)=>{if(r!==i){const s=t(r),u=t(i);if(s===u&&s===0){if(r<i)return a==="desc"?1:-1;if(r>i)return a==="desc"?-1:1}return a==="desc"?u-s:s-u}return 0};e.compareValues=n}(c_)),c_}var f_={},d_={},jj;function mD(){return jj||(jj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t}(d_)),d_}var Pj;function Ote(){return Pj||(Pj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mD(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(r.test(a)||!n.test(a))||s!=null&&Object.hasOwn(s,a)}e.isKey=i}(f_)),f_}var Mj;function jte(){return Mj||(Mj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tte(),n=Ote(),r=Gw();function i(a,s,u,d){if(a==null)return[];u=d?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(_=>String(_));const f=(_,w)=>{let x=_;for(let A=0;A<w.length&&x!=null;++A)x=x[w[A]];return x},m=(_,w)=>w==null||_==null?w:typeof _=="object"&&"key"in _?Object.hasOwn(w,_.key)?w[_.key]:f(w,_.path):typeof _=="function"?_(w):Array.isArray(_)?f(w,_):typeof w=="object"?w[_]:w,p=s.map(_=>(Array.isArray(_)&&_.length===1&&(_=_[0]),_==null||typeof _=="function"||Array.isArray(_)||n.isKey(_)?_:{key:_,path:r.toPath(_)}));return a.map(_=>({original:_,criteria:p.map(w=>m(w,_))})).slice().sort((_,w)=>{for(let x=0;x<p.length;x++){const A=t.compareValues(_.criteria[x],w.criteria[x],u[x]);if(A!==0)return A}return 0}).map(_=>_.original)}e.orderBy=i}(u_)),u_}var h_={},Rj;function Pte(){return Rj||(Rj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],a=Math.floor(r),s=(u,d)=>{for(let f=0;f<u.length;f++){const m=u[f];Array.isArray(m)&&d<a?s(m,d+1):i.push(m)}};return s(n,0),i}e.flatten=t}(h_)),h_}var m_={},Nj;function pD(){return Nj||(Nj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hD(),n=Jw(),r=uD(),i=eS();function a(s,u,d){return r.isObject(d)&&(typeof u=="number"&&n.isArrayLike(d)&&t.isIndex(u)&&u<d.length||typeof u=="string"&&u in d)?i.eq(d[u],s):!1}e.isIterateeCall=a}(m_)),m_}var Lj;function Mte(){return Lj||(Lj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jte(),n=Pte(),r=pD();function i(a,...s){const u=s.length;return u>1&&r.isIterateeCall(a,s[0],s[1])?s=[]:u>2&&r.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(a,n.flatten(s),["asc"])}e.sortBy=i}(l_)),l_}var p_,Dj;function Rte(){return Dj||(Dj=1,p_=Mte().sortBy),p_}var Nte=Rte();const cy=ri(Nte);var gD=e=>e.legend.settings,Lte=e=>e.legend.size,Dte=e=>e.legend.payload;Pe([Dte,gD],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?cy(r,n):r});var Vp=1;function kte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=T.useState({height:0,left:0,top:0,width:0}),r=T.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),s={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(s.height-t.height)>Vp||Math.abs(s.left-t.left)>Vp||Math.abs(s.top-t.top)>Vp||Math.abs(s.width-t.width)>Vp)&&n({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}var Ite={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},vD=Nt({name:"chartLayout",initialState:Ite,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top,e.margin.right=t.payload.right,e.margin.bottom=t.payload.bottom,e.margin.left=t.payload.left},setScale(e,t){e.scale=t.payload}}}),{setMargin:Ute,setLayout:Bte,setChartSize:zte,setScale:Fte}=vD.actions,$te=vD.reducer;function kj(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 Ij(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kj(Object(n),!0).forEach(function(r){Vte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vte(e,t,n){return(t=qte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qte(e){var t=Hte(e,"string");return typeof t=="symbol"?t:t+""}function Hte(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)}var ev=Math.PI/180,Gte=e=>e*180/Math.PI,Fn=(e,t,n,r)=>({x:e+Math.cos(-ev*r)*n,y:t+Math.sin(-ev*r)*n}),yD=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},Wte=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},Yte=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,s=Wte({x:n,y:r},{x:i,y:a});if(s<=0)return{radius:s,angle:0};var u=(n-i)/s,d=Math.acos(u);return r>a&&(d=2*Math.PI-d),{radius:s,angle:Gte(d),angleInRadian:d}},Kte=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Zte=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360),s=Math.min(i,a);return e+s*360},Xte=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:a}=Yte({x:n,y:r},t),{innerRadius:s,outerRadius:u}=t;if(i<s||i>u||i===0)return null;var{startAngle:d,endAngle:f}=Kte(t),m=a,p;if(d<=f){for(;m>f;)m-=360;for(;m<d;)m+=360;p=m>=d&&m<=f}else{for(;m>d;)m-=360;for(;m<f;)m+=360;p=m>=f&&m<=d}return p?Ij(Ij({},t),{},{radius:i,angle:Zte(m,t)}):null};function bD(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Uj(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 Ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uj(Object(n),!0).forEach(function(r){Qte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qte(e,t,n){return(t=Jte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jte(e){var t=ene(e,"string");return typeof t=="symbol"?t:t+""}function ene(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 Zt(e,t,n){return hn(e)||hn(t)?n:ei(t)?_l(e,t,n):typeof t=="function"?t(e):n}var tne=(e,t,n,r,i)=>{var a,s=-1,u=(a=t?.length)!==null&&a!==void 0?a:0;if(u<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var d=0;d<u;d++){var f=d>0?n[d-1].coordinate:n[u-1].coordinate,m=n[d].coordinate,p=d>=u-1?n[0].coordinate:n[d+1].coordinate,b=void 0;if(lr(m-f)!==lr(p-m)){var _=[];if(lr(p-m)===lr(i[1]-i[0])){b=p;var w=m+i[1]-i[0];_[0]=Math.min(w,(w+f)/2),_[1]=Math.max(w,(w+f)/2)}else{b=f;var x=p+i[1]-i[0];_[0]=Math.min(m,(x+m)/2),_[1]=Math.max(m,(x+m)/2)}var A=[Math.min(m,(b+m)/2),Math.max(m,(b+m)/2)];if(e>A[0]&&e<=A[1]||e>=_[0]&&e<=_[1]){({index:s}=n[d]);break}}else{var C=Math.min(f,p),j=Math.max(f,p);if(e>(C+m)/2&&e<=(j+m)/2){({index:s}=n[d]);break}}}else if(t){for(var O=0;O<u;O++)if(O===0&&e<=(t[O].coordinate+t[O+1].coordinate)/2||O>0&&O<u-1&&e>(t[O].coordinate+t[O-1].coordinate)/2&&e<=(t[O].coordinate+t[O+1].coordinate)/2||O===u-1&&e>(t[O].coordinate+t[O-1].coordinate)/2){({index:s}=t[O]);break}}return s},nne=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:s,layout:u}=t;if((u==="vertical"||u==="horizontal"&&s==="middle")&&a!=="center"&&Je(e[a]))return Ki(Ki({},e),{},{[a]:e[a]+(r||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&s!=="middle"&&Je(e[s]))return Ki(Ki({},e),{},{[s]:e[s]+(i||0)})}return e},Ol=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",_D=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var i,a,s=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===n&&(a=!0),u.coordinate));return i||s.push(t),a||s.push(n),s},xD=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:s,realScaleType:u,isCategorical:d,categoricalDomain:f,tickCount:m,ticks:p,niceTicks:b,axisType:_}=e;if(!s)return null;var w=u==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,x=i==="category"&&s.bandwidth?s.bandwidth()/w:0;if(x=_==="angleAxis"&&a&&a.length>=2?lr(a[0]-a[1])*2*x:x,p||b){var A=(p||b||[]).map((C,j)=>{var O=r?r.indexOf(C):C;return{coordinate:s(O)+x,value:C,offset:x,index:j}});return A.filter(C=>!ji(C.coordinate))}return d&&f?f.map((C,j)=>({coordinate:s(C)+x,value:C,index:j,offset:x})):s.ticks&&m!=null?s.ticks(m).map((C,j)=>({coordinate:s(C)+x,value:C,offset:x,index:j})):s.domain().map((C,j)=>({coordinate:s(C)+x,value:r?r[C]:C,index:j,offset:x}))},Bj=1e-4,rne=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-Bj,a=Math.max(r[0],r[1])+Bj,s=e(t[0]),u=e(t[n-1]);(s<i||s>a||u<i||u>a)&&e.domain([t[0],t[n-1]])}},ine=(e,t)=>{if(!t||t.length!==2||!Je(t[0])||!Je(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Je(e[0])||e[0]<n)&&(i[0]=n),(!Je(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},ane=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0,s=0;s<t;++s){var u=ji(e[s][n][1])?e[s][n][0]:e[s][n][1];u>=0?(e[s][n][0]=i,e[s][n][1]=i+u,i=e[s][n][1]):(e[s][n][0]=a,e[s][n][1]=a+u,a=e[s][n][1])}},one=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0;a<t;++a){var s=ji(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}},sne={sign:ane,expand:Fee,none:rf,silhouette:$ee,wiggle:Vee,positive:one},lne=(e,t,n)=>{var r=sne[n],i=zee().keys(t).value((a,s)=>+Zt(a,s,0)).order(e2).offset(r);return i(e)};function une(e){return e==null?void 0:String(e)}function zj(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!hn(i[t.dataKey])){var u=BL(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var d=Zt(i,hn(s)?t.dataKey:s);return hn(d)?null:t.scale(d)}var Fj=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:s}=e;if(t.type==="category")return n[s]?n[s].coordinate+r:null;var u=Zt(a,t.dataKey,t.scale.domain()[s]);return hn(u)?null:t.scale(u)-i/2+r},cne=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},fne=e=>{var t=e.flat(2).filter(Je);return[Math.min(...t),Math.max(...t)]},dne=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],hne=(e,t,n)=>{if(e!=null)return dne(Object.keys(e).reduce((r,i)=>{var a=e[i],{stackedData:s}=a,u=s.reduce((d,f)=>{var m=bD(f,t,n),p=fne(m);return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},$j=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Sh=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=cy(t,m=>m.coordinate),a=1/0,s=1,u=i.length;s<u;s++){var d=i[s],f=i[s-1];a=Math.min((d.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function qj(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return Ki(Ki({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Ef(e,t){if(e)return String(e);if(typeof t=="string")return t}function mne(e,t,n,r,i){if(n==="horizontal"||n==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return r?Xte({x:e,y:t},r):null}var pne=(e,t,n,r)=>{var i=t.find(f=>f&&f.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:s}=r;return Ki(Ki(Ki({},r),Fn(r.cx,r.cy,s,a)),{},{angle:a,radius:s})}var u=i.coordinate,{angle:d}=r;return Ki(Ki(Ki({},r),Fn(r.cx,r.cy,u,d)),{},{angle:d,radius:u})}return{x:0,y:0}},gne=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,es=e=>e.layout.width,ts=e=>e.layout.height,vne=e=>e.layout.scale,wD=e=>e.layout.margin,aS=Pe(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),oS=Pe(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),SD="data-recharts-item-index",CD="data-recharts-item-data-key",fy=60;function Hj(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 Js(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hj(Object(n),!0).forEach(function(r){yne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yne(e,t,n){return(t=bne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bne(e){var t=_ne(e,"string");return typeof t=="symbol"?t:t+""}function _ne(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)}var xne=e=>e.brush.height,Kn=Pe([es,ts,wD,xne,aS,oS,gD,Lte],(e,t,n,r,i,a,s,u)=>{var d=a.reduce((w,x)=>{var{orientation:A}=x;if(!x.mirror&&!x.hide){var C=typeof x.width=="number"?x.width:fy;return Js(Js({},w),{},{[A]:w[A]+C})}return w},{left:n.left||0,right:n.right||0}),f=i.reduce((w,x)=>{var{orientation:A}=x;return!x.mirror&&!x.hide?Js(Js({},w),{},{[A]:_l(w,"".concat(A))+x.height}):w},{top:n.top||0,bottom:n.bottom||0}),m=Js(Js({},f),d),p=m.bottom;m.bottom+=r,m=nne(m,s,u);var b=e-m.left-m.right,_=t-m.top-m.bottom;return Js(Js({brushBottom:p},m),{},{width:Math.max(b,0),height:Math.max(_,0)})}),wne=Pe(Kn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ED=Pe(es,ts,(e,t)=>({x:0,y:0,width:e,height:t})),Sne=T.createContext(null),Hr=()=>T.useContext(Sne)!=null,dy=e=>e.brush,hy=Pe([dy,Kn,wD],(e,t,n)=>({height:e.height,x:Je(e.x)?e.x:t.left,y:Je(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:Je(e.width)?e.width:t.width})),sS=()=>{var e,t=Hr(),n=it(wne),r=it(hy),i=(e=it(dy))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},Cne={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},AD=()=>{var e;return(e=it(Kn))!==null&&e!==void 0?e:Cne},TD=()=>it(es),OD=()=>it(ts),Lt=e=>e.layout.layoutType,my=()=>it(Lt),Ene={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},jD=Nt({name:"legend",initialState:Ene,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=Uo(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:F_e,setLegendSettings:$_e,addLegendPayload:PD,removeLegendPayload:MD}=jD.actions,Ane=jD.reducer;function n2(){return n2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n2.apply(null,arguments)}function Gj(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 g_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gj(Object(n),!0).forEach(function(r){Tne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tne(e,t,n){return(t=One(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function One(e){var t=jne(e,"string");return typeof t=="symbol"?t:t+""}function jne(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 Pne(e){return Array.isArray(e)&&ei(e[0])&&ei(e[1])?e.join(" ~ "):e}var Mne=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:a,formatter:s,itemSorter:u,wrapperClassName:d,labelClassName:f,label:m,labelFormatter:p,accessibilityLayer:b=!1}=e,_=()=>{if(a&&a.length){var B={padding:0,margin:0},V=(u?cy(a,u):a).map((Z,X)=>{if(Z.type==="none")return null;var oe=Z.formatter||s||Pne,{value:ee,name:J}=Z,ne=ee,he=J;if(oe){var Q=oe(ee,J,Z,X,a);if(Array.isArray(Q))[ne,he]=Q;else if(Q!=null)ne=Q;else return null}var se=g_({display:"block",paddingTop:4,paddingBottom:4,color:Z.color||"#000"},r);return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(X),style:se},ei(he)?T.createElement("span",{className:"recharts-tooltip-item-name"},he):null,ei(he)?T.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,T.createElement("span",{className:"recharts-tooltip-item-value"},ne),T.createElement("span",{className:"recharts-tooltip-item-unit"},Z.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:B},V)}return null},w=g_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),x=g_({margin:0},i),A=!hn(m),C=A?m:"",j=Ne("recharts-default-tooltip",d),O=Ne("recharts-tooltip-label",f);A&&p&&a!==void 0&&a!==null&&(C=p(m,a));var N=b?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",n2({className:j,style:w},N),T.createElement("p",{className:O,style:x},T.isValidElement(C)?C:"".concat(C)),_())},$d="recharts-tooltip-wrapper",Rne={visibility:"hidden"};function Nne(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ne($d,{["".concat($d,"-right")]:Je(n)&&t&&Je(t.x)&&n>=t.x,["".concat($d,"-left")]:Je(n)&&t&&Je(t.x)&&n<t.x,["".concat($d,"-bottom")]:Je(r)&&t&&Je(t.y)&&r>=t.y,["".concat($d,"-top")]:Je(r)&&t&&Je(t.y)&&r<t.y})}function Wj(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:u,viewBox:d,viewBoxDimension:f}=e;if(a&&Je(a[r]))return a[r];var m=n[r]-u-(i>0?i:0),p=n[r]+i;if(t[r])return s[r]?m:p;var b=d[r];if(b==null)return 0;if(s[r]){var _=m,w=b;return _<w?Math.max(p,b):Math.max(m,b)}if(f==null)return 0;var x=p+u,A=b+f;return x>A?Math.max(m,b):Math.max(p,b)}function Lne(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Dne(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:u,viewBox:d}=e,f,m,p;return s.height>0&&s.width>0&&n?(m=Wj({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),p=Wj({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),f=Lne({translateX:m,translateY:p,useTranslate3d:u})):f=Rne,{cssProperties:f,cssClasses:Nne({translateX:m,translateY:p,coordinate:n})}}function Yj(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 qp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yj(Object(n),!0).forEach(function(r){r2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r2(e,t,n){return(t=kne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kne(e){var t=Ine(e,"string");return typeof t=="symbol"?t:t+""}function Ine(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)}class Une extends T.PureComponent{constructor(){super(...arguments),r2(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),r2(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:a,coordinate:s,hasPayload:u,isAnimationActive:d,offset:f,position:m,reverseDirection:p,useTranslate3d:b,viewBox:_,wrapperStyle:w,lastBoundingBox:x,innerRef:A,hasPortalFromProps:C}=this.props,{cssClasses:j,cssProperties:O}=Dne({allowEscapeViewBox:n,coordinate:s,offsetTopLeft:f,position:m,reverseDirection:p,tooltipBox:{height:x.height,width:x.width},useTranslate3d:b,viewBox:_}),N=C?{}:qp(qp({transition:d&&t?"transform ".concat(r,"ms ").concat(i):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),B=qp(qp({},N),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},w);return T.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:j,style:B,ref:A},a)}}var Bne=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Fu={isSsr:Bne()},RD=()=>it(e=>e.rootProps.accessibilityLayer);function Pi(e){return Number.isFinite(e)}function af(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function i2(){return i2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i2.apply(null,arguments)}function Kj(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 Zj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kj(Object(n),!0).forEach(function(r){zne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zne(e,t,n){return(t=Fne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fne(e){var t=$ne(e,"string");return typeof t=="symbol"?t:t+""}function $ne(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)}var Xj={curveBasisClosed:jee,curveBasisOpen:Pee,curveBasis:Oee,curveBumpX:mee,curveBumpY:pee,curveLinearClosed:Mee,curveLinear:ly,curveMonotoneX:Ree,curveMonotoneY:Nee,curveNatural:Lee,curveStep:Dee,curveStepAfter:Iee,curveStepBefore:kee},Hp=e=>Pi(e.x)&&Pi(e.y),Vd=e=>e.x,qd=e=>e.y,Vne=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Gh(e));return(n==="curveMonotone"||n==="curveBump")&&t?Xj["".concat(n).concat(t==="vertical"?"Y":"X")]:Xj[n]||ly},qne=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:a=!1}=e,s=Vne(t,i),u=a?n.filter(Hp):n,d;if(Array.isArray(r)){var f=a?r.filter(p=>Hp(p)):r,m=u.map((p,b)=>Zj(Zj({},p),{},{base:f[b]}));return i==="vertical"?d=$p().y(qd).x1(Vd).x0(p=>p.base.x):d=$p().x(Vd).y1(qd).y0(p=>p.base.y),d.defined(Hp).curve(s),d(m)}return i==="vertical"&&Je(r)?d=$p().y(qd).x1(Vd).x0(r):Je(r)?d=$p().x(Vd).y1(qd).y0(r):d=KL().x(Vd).y(qd),d.defined(Hp).curve(s),d(u)},lS=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var a=n&&n.length?qne(e):r;return T.createElement("path",i2({},Jo(e),Kw(e),{className:Ne("recharts-curve",t),d:a===null?void 0:a,ref:i}))},Hne=["x","y","top","left","width","height","className"];function a2(){return a2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a2.apply(null,arguments)}function Qj(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 Gne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qj(Object(n),!0).forEach(function(r){Wne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wne(e,t,n){return(t=Yne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yne(e){var t=Kne(e,"string");return typeof t=="symbol"?t:t+""}function Kne(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 Zne(e,t){if(e==null)return{};var n,r,i=Xne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qne=(e,t,n,r,i,a)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n),Jne=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:s=0,className:u}=e,d=Zne(e,Hne),f=Gne({x:t,y:n,top:r,left:i,width:a,height:s},d);return!Je(t)||!Je(n)||!Je(a)||!Je(s)||!Je(r)||!Je(i)?null:T.createElement("path",a2({},fn(f,!0),{className:Ne("recharts-cross",u),d:Qne(t,n,a,s,r,i)}))};function ere(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 Jj(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 tre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jj(Object(n),!0).forEach(function(r){nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nre(e,t,n){return(t=rre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rre(e){var t=ire(e,"string");return typeof t=="symbol"?t:t+""}function ire(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 Ni(e,t){var n=tre({},e),r=t,i=Object.keys(t),a=i.reduce((s,u)=>(s[u]===void 0&&r[u]!==void 0&&(s[u]=r[u]),s),n);return a}var v_={},y_={},b_={},eP;function are(){return eP||(eP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(!n||typeof n!="object")return!1;const r=Object.getPrototypeOf(n);return r===null||r===Object.prototype||Object.getPrototypeOf(r)===null?Object.prototype.toString.call(n)==="[object Object]":!1}e.isPlainObject=t}(b_)),b_}var tP;function ore(){return tP||(tP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=are(),n=fD(),r=nS(),i=rS(),a=eS();function s(f,m,p){return u(f,m,void 0,void 0,void 0,void 0,p)}function u(f,m,p,b,_,w,x){const A=x(f,m,p,b,_,w);if(A!==void 0)return A;if(typeof f==typeof m)switch(typeof f){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return f===m;case"number":return f===m||Object.is(f,m);case"function":return f===m;case"object":return d(f,m,w,x)}return d(f,m,w,x)}function d(f,m,p,b){if(Object.is(f,m))return!0;let _=r.getTag(f),w=r.getTag(m);if(_===i.argumentsTag&&(_=i.objectTag),w===i.argumentsTag&&(w=i.objectTag),_!==w)return!1;switch(_){case i.stringTag:return f.toString()===m.toString();case i.numberTag:{const C=f.valueOf(),j=m.valueOf();return a.eq(C,j)}case i.booleanTag:case i.dateTag:case i.symbolTag:return Object.is(f.valueOf(),m.valueOf());case i.regexpTag:return f.source===m.source&&f.flags===m.flags;case i.functionTag:return f===m}p=p??new Map;const x=p.get(f),A=p.get(m);if(x!=null&&A!=null)return x===m;p.set(f,m),p.set(m,f);try{switch(_){case i.mapTag:{if(f.size!==m.size)return!1;for(const[C,j]of f.entries())if(!m.has(C)||!u(j,m.get(C),C,f,m,p,b))return!1;return!0}case i.setTag:{if(f.size!==m.size)return!1;const C=Array.from(f.values()),j=Array.from(m.values());for(let O=0;O<C.length;O++){const N=C[O],B=j.findIndex(V=>u(N,V,void 0,f,m,p,b));if(B===-1)return!1;j.splice(B,1)}return!0}case i.arrayTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:case i.bigUint64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.bigInt64ArrayTag:case i.float32ArrayTag:case i.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(f)!==Buffer.isBuffer(m)||f.length!==m.length)return!1;for(let C=0;C<f.length;C++)if(!u(f[C],m[C],C,f,m,p,b))return!1;return!0}case i.arrayBufferTag:return f.byteLength!==m.byteLength?!1:d(new Uint8Array(f),new Uint8Array(m),p,b);case i.dataViewTag:return f.byteLength!==m.byteLength||f.byteOffset!==m.byteOffset?!1:d(new Uint8Array(f),new Uint8Array(m),p,b);case i.errorTag:return f.name===m.name&&f.message===m.message;case i.objectTag:{if(!(d(f.constructor,m.constructor,p,b)||t.isPlainObject(f)&&t.isPlainObject(m)))return!1;const j=[...Object.keys(f),...n.getSymbols(f)],O=[...Object.keys(m),...n.getSymbols(m)];if(j.length!==O.length)return!1;for(let N=0;N<j.length;N++){const B=j[N],V=f[B];if(!Object.hasOwn(m,B))return!1;const Z=m[B];if(!u(V,Z,B,f,m,p,b))return!1}return!0}default:return!1}}finally{p.delete(f),p.delete(m)}}e.isEqualWith=s}(y_)),y_}var __={},nP;function sre(){return nP||(nP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(){}e.noop=t}(__)),__}var rP;function lre(){return rP||(rP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ore(),n=sre();function r(i,a){return t.isEqualWith(i,a,n.noop)}e.isEqual=r}(v_)),v_}var x_,iP;function ure(){return iP||(iP=1,x_=lre().isEqual),x_}var cre=ure();const fre=ri(cre);var tv=1e-4,ND=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],LD=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),aP=(e,t)=>n=>{var r=ND(e,t);return LD(r,n)},dre=(e,t)=>n=>{var r=ND(e,t),i=[...r.map((a,s)=>a*s).slice(1),0];return LD(i,n)},oP=function(){for(var t,n,r,i,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];if(s.length===1)switch(s[0]){case"linear":[t,r,n,i]=[0,0,1,1];break;case"ease":[t,r,n,i]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,i]=[.42,0,1,1];break;case"ease-out":[t,r,n,i]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,i]=[0,0,.58,1];break;default:{var d=s[0].split("(");d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4&&([t,r,n,i]=d[1].split(")")[0].split(",").map(w=>parseFloat(w)))}}else s.length===4&&([t,r,n,i]=s);var f=aP(t,n),m=aP(r,i),p=dre(t,n),b=w=>w>1?1:w<0?0:w,_=w=>{for(var x=w>1?1:w,A=x,C=0;C<8;++C){var j=f(A)-x,O=p(A);if(Math.abs(j-x)<tv||O<tv)return m(A);A=b(A-j/O)}return m(A)};return _.isStepper=!1,_},hre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,a=(s,u,d)=>{var f=-(s-u)*n,m=d*r,p=d+(f-m)*i/1e3,b=d*i/1e3+s;return Math.abs(b-u)<tv&&Math.abs(p)<tv?[u,0]:[b,p]};return a.isStepper=!0,a.dt=i,a},DD=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return oP(e);case"spring":return hre();default:if(e.split("(")[0]==="cubic-bezier")return oP(e)}return typeof e=="function"?e:null};function sP(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 lP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mre(e,t,n){return(t=pre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pre(e){var t=gre(e,"string");return typeof t=="symbol"?t:t+""}function gre(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)}var vre=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),yre=(e,t,n)=>e.map(r=>"".concat(vre(r)," ").concat(t,"ms ").concat(n)).join(","),bre=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),Ch=(e,t)=>Object.keys(t).reduce((n,r)=>lP(lP({},n),{},{[r]:e(r,t[r])}),{});function uP(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 vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(r){_re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _re(e,t,n){return(t=xre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xre(e){var t=wre(e,"string");return typeof t=="symbol"?t:t+""}function wre(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)}var nv=(e,t,n)=>e+(t-e)*n,o2=e=>{var{from:t,to:n}=e;return t!==n},kD=(e,t,n)=>{var r=Ch((i,a)=>{if(o2(a)){var[s,u]=e(a.from,a.to,a.velocity);return vr(vr({},a),{},{from:s,velocity:u})}return a},t);return n<1?Ch((i,a)=>o2(a)?vr(vr({},a),{},{velocity:nv(a.velocity,r[i].velocity,n),from:nv(a.from,r[i].from,n)}):a,t):kD(e,r,n-1)};function Sre(e,t,n,r,i,a){var s,u=r.reduce((b,_)=>vr(vr({},b),{},{[_]:{from:e[_],velocity:0,to:t[_]}}),{}),d=()=>Ch((b,_)=>_.from,u),f=()=>!Object.values(u).filter(o2).length,m=null,p=b=>{s||(s=b);var _=b-s,w=_/n.dt;u=kD(n,u,w),i(vr(vr(vr({},e),t),d())),s=b,f()||(m=a.setTimeout(p))};return()=>(m=a.setTimeout(p),()=>{m()})}function Cre(e,t,n,r,i,a,s){var u=null,d=i.reduce((p,b)=>vr(vr({},p),{},{[b]:[e[b],t[b]]}),{}),f,m=p=>{f||(f=p);var b=(p-f)/r,_=Ch((x,A)=>nv(...A,n(b)),d);if(a(vr(vr(vr({},e),t),_)),b<1)u=s.setTimeout(m);else{var w=Ch((x,A)=>nv(...A,n(1)),d);a(vr(vr(vr({},e),t),w))}};return()=>(u=s.setTimeout(m),()=>{u()})}const ID=(e,t,n,r,i,a)=>{var s=bre(e,t);return n.isStepper===!0?Sre(e,t,n,s,i,a):Cre(e,t,n,r,s,i,a)};function Ere(e){var t,n=()=>null,r=!1,i=null,a=s=>{if(!r){if(Array.isArray(s)){if(!s.length)return;var u=s,[d,...f]=u;if(typeof d=="number"){i=e.setTimeout(a.bind(null,f),d);return}a(d),i=e.setTimeout(a.bind(null,f));return}typeof s=="string"&&(t=s,n(t)),typeof s=="object"&&(t=s,n(t)),typeof s=="function"&&s()}};return{stop:()=>{r=!0},start:s=>{r=!1,i&&(i(),i=null),a(s)},subscribe:s=>(n=s,()=>{n=()=>null}),getTimeoutController:()=>e}}class Are{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,a=s=>{s-r>=n?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function Tre(){return Ere(new Are)}var Ore=T.createContext(Tre);function UD(e,t){var n=T.useContext(Ore);return T.useMemo(()=>t??n(e),[e,t,n])}var jre=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function s2(){return s2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s2.apply(null,arguments)}function Pre(e,t){if(e==null)return{};var n,r,i=Mre(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mre(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cP(Object(n),!0).forEach(function(r){yu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yu(e,t,n){return(t=Rre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rre(e){var t=Nre(e,"string");return typeof t=="symbol"?t:t+""}function Nre(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)}class uS extends T.PureComponent{constructor(t,n){super(t,n),yu(this,"mounted",!1),yu(this,"manager",void 0),yu(this,"stopJSAnimation",null),yu(this,"unSubscribe",null);var{isActive:r,attributeName:i,from:a,to:s,children:u,duration:d,animationManager:f}=this.props;if(this.manager=f,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!r||d<=0){this.state={style:{}},typeof u=="function"&&(this.state={style:s});return}if(a){if(typeof u=="function"){this.state={style:a};return}this.state={style:i?{[i]:a}:a}}else this.state={style:{}}}componentDidMount(){var{isActive:t,canBegin:n}=this.props;this.mounted=!0,!(!t||!n)&&this.runAnimation(this.props)}componentDidUpdate(t){var{isActive:n,canBegin:r,attributeName:i,shouldReAnimate:a,to:s,from:u}=this.props,{style:d}=this.state;if(r){if(!n){var f={style:i?{[i]:s}:s};this.state&&d&&(i&&d[i]!==s||!i&&d!==s)&&this.setState(f);return}if(!(fre(t.to,s)&&t.canBegin&&t.isActive)){var m=!t.canBegin||!t.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=m||a?u:t.to;if(this.state&&d){var b={style:i?{[i]:p}:p};(i&&d[i]!==p||!i&&d!==p)&&this.setState(b)}this.runAnimation(el(el({},this.props),{},{from:p,begin:0}))}}}componentWillUnmount(){this.mounted=!1;var{onAnimationEnd:t}=this.props;this.unSubscribe&&this.unSubscribe(),this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}handleStyleChange(t){this.changeStyle(t)}changeStyle(t){this.mounted&&this.setState({style:t})}runJSAnimation(t){var{from:n,to:r,duration:i,easing:a,begin:s,onAnimationEnd:u,onAnimationStart:d}=t,f=ID(n,r,DD(a),i,this.changeStyle,this.manager.getTimeoutController()),m=()=>{this.stopJSAnimation=f()};this.manager.start([d,s,m,i,u])}runAnimation(t){var{begin:n,duration:r,attributeName:i,to:a,easing:s,onAnimationStart:u,onAnimationEnd:d,children:f}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof s=="function"||typeof f=="function"||s==="spring"){this.runJSAnimation(t);return}var m=i?{[i]:a}:a,p=yre(Object.keys(m),r,s);this.manager.start([u,n,el(el({},m),{},{transition:p}),r,d])}render(){var t=this.props,{children:n,begin:r,duration:i,attributeName:a,easing:s,isActive:u,from:d,to:f,canBegin:m,onAnimationEnd:p,shouldReAnimate:b,onAnimationReStart:_,animationManager:w}=t,x=Pre(t,jre),A=T.Children.count(n),C=this.state.style;if(typeof n=="function")return n(C);if(!u||A===0||i<=0)return n;var j=O=>{var{style:N={},className:B}=O.props,V=T.cloneElement(O,el(el({},x),{},{style:el(el({},N),C),className:B}));return V};return A===1?j(T.Children.only(n)):T.createElement("div",null,T.Children.map(n,O=>j(O)))}}yu(uS,"displayName","Animate");yu(uS,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});function rv(e){var t,n=UD((t=e.attributeName)!==null&&t!==void 0?t:Object.keys(e.to).join(","),e.animationManager);return T.createElement(uS,s2({},e,{animationManager:n}))}function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(null,arguments)}var fP=(e,t,n,r,i)=>{var a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,d=r>=0&&n>=0||r<0&&n<0?1:0,f;if(a>0&&i instanceof Array){for(var m=[0,0,0,0],p=0,b=4;p<b;p++)m[p]=i[p]>a?a:i[p];f="M".concat(e,",").concat(t+s*m[0]),m[0]>0&&(f+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(d,",").concat(e+u*m[0],",").concat(t)),f+="L ".concat(e+n-u*m[1],",").concat(t),m[1]>0&&(f+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(d,`,
|
||
`).concat(e+n,",").concat(t+s*m[1])),f+="L ".concat(e+n,",").concat(t+r-s*m[2]),m[2]>0&&(f+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(d,`,
|
||
`).concat(e+n-u*m[2],",").concat(t+r)),f+="L ".concat(e+u*m[3],",").concat(t+r),m[3]>0&&(f+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(d,`,
|
||
`).concat(e,",").concat(t+r-s*m[3])),f+="Z"}else if(a>0&&i===+i&&i>0){var _=Math.min(a,i);f="M ".concat(e,",").concat(t+s*_,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+u*_,",").concat(t,`
|
||
L `).concat(e+n-u*_,",").concat(t,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+n,",").concat(t+s*_,`
|
||
L `).concat(e+n,",").concat(t+r-s*_,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+n-u*_,",").concat(t+r,`
|
||
L `).concat(e+u*_,",").concat(t+r,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e,",").concat(t+r-s*_," Z")}else f="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return f},Lre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cS=e=>{var t=Ni(e,Lre),n=T.useRef(null),[r,i]=T.useState(-1);T.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var C=n.current.getTotalLength();C&&i(C)}catch{}},[]);var{x:a,y:s,width:u,height:d,radius:f,className:m}=t,{animationEasing:p,animationDuration:b,animationBegin:_,isAnimationActive:w,isUpdateAnimationActive:x}=t;if(a!==+a||s!==+s||u!==+u||d!==+d||u===0||d===0)return null;var A=Ne("recharts-rectangle",m);return x?T.createElement(rv,{canBegin:r>0,from:{width:u,height:d,x:a,y:s},to:{width:u,height:d,x:a,y:s},duration:b,animationEasing:p,isActive:x},C=>{var{width:j,height:O,x:N,y:B}=C;return T.createElement(rv,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:b,isActive:w,easing:p},T.createElement("path",iv({},fn(t,!0),{className:A,d:fP(N,B,j,O,f),ref:n})))}):T.createElement("path",iv({},fn(t,!0),{className:A,d:fP(a,s,u,d,f)}))};function BD(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e,s=Fn(t,n,r,i),u=Fn(t,n,r,a);return{points:[s,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function l2(){return l2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l2.apply(null,arguments)}var Dre=(e,t)=>{var n=lr(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Gp=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:s,cornerRadius:u,cornerIsExternal:d}=e,f=u*(s?1:-1)+r,m=Math.asin(u/f)/ev,p=d?i:i+a*m,b=Fn(t,n,f,p),_=Fn(t,n,r,p),w=d?i-a*m:i,x=Fn(t,n,f*Math.cos(m*ev),w);return{center:b,circleTangency:_,lineTangency:x,theta:m}},zD=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:s}=e,u=Dre(a,s),d=a+u,f=Fn(t,n,i,a),m=Fn(t,n,i,d),p="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(u)>180),",").concat(+(a>d),`,
|
||
`).concat(m.x,",").concat(m.y,`
|
||
`);if(r>0){var b=Fn(t,n,r,a),_=Fn(t,n,r,d);p+="L ".concat(_.x,",").concat(_.y,`
|
||
A `).concat(r,",").concat(r,`,0,
|
||
`).concat(+(Math.abs(u)>180),",").concat(+(a<=d),`,
|
||
`).concat(b.x,",").concat(b.y," Z")}else p+="L ".concat(t,",").concat(n," Z");return p},kre=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}=e,m=lr(f-d),{circleTangency:p,lineTangency:b,theta:_}=Gp({cx:t,cy:n,radius:i,angle:d,sign:m,cornerRadius:a,cornerIsExternal:u}),{circleTangency:w,lineTangency:x,theta:A}=Gp({cx:t,cy:n,radius:i,angle:f,sign:-m,cornerRadius:a,cornerIsExternal:u}),C=u?Math.abs(d-f):Math.abs(d-f)-_-A;if(C<0)return s?"M ".concat(b.x,",").concat(b.y,`
|
||
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
|
||
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
|
||
`):zD({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:d,endAngle:f});var j="M ".concat(b.x,",").concat(b.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(p.x,",").concat(p.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(m<0),",").concat(w.x,",").concat(w.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
|
||
`);if(r>0){var{circleTangency:O,lineTangency:N,theta:B}=Gp({cx:t,cy:n,radius:r,angle:d,sign:m,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:V,lineTangency:Z,theta:X}=Gp({cx:t,cy:n,radius:r,angle:f,sign:-m,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),oe=u?Math.abs(d-f):Math.abs(d-f)-B-X;if(oe<0&&a===0)return"".concat(j,"L").concat(t,",").concat(n,"Z");j+="L".concat(Z.x,",").concat(Z.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(V.x,",").concat(V.y,`
|
||
A`).concat(r,",").concat(r,",0,").concat(+(oe>180),",").concat(+(m>0),",").concat(O.x,",").concat(O.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(N.x,",").concat(N.y,"Z")}else j+="L".concat(t,",").concat(n,"Z");return j},Ire={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},FD=e=>{var t=Ni(e,Ire),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:s,forceCornerRadius:u,cornerIsExternal:d,startAngle:f,endAngle:m,className:p}=t;if(a<i||f===m)return null;var b=Ne("recharts-sector",p),_=a-i,w=$r(s,_,0,!0),x;return w>0&&Math.abs(f-m)<360?x=kre({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(w,_/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:f,endAngle:m}):x=zD({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:f,endAngle:m}),T.createElement("path",l2({},fn(t,!0),{className:b,d:x}))};function Ure(e,t,n){var r,i,a,s;if(e==="horizontal")r=t.x,a=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:u,cy:d,innerRadius:f,outerRadius:m,angle:p}=t,b=Fn(u,d,f,p),_=Fn(u,d,m,p);r=b.x,i=b.y,a=_.x,s=_.y}else return BD(t);return[{x:r,y:i},{x:a,y:s}]}var w_={},S_={},C_={},dP;function Bre(){return dP||(dP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mD();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(C_)),C_}var hP;function zre(){return hP||(hP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bre();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(S_)),S_}var mP;function Fre(){return mP||(mP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pD(),n=zre();function r(i,a,s){s&&typeof s!="number"&&t.isIterateeCall(i,a,s)&&(a=s=void 0),i=n.toFinite(i),a===void 0?(a=i,i=0):a=n.toFinite(a),s=s===void 0?i<a?1:-1:n.toFinite(s);const u=Math.max(Math.ceil((a-i)/(s||1)),0),d=new Array(u);for(let f=0;f<u;f++)d[f]=i,i+=s;return d}e.range=r}(w_)),w_}var E_,pP;function $re(){return pP||(pP=1,E_=Fre().range),E_}var Vre=$re();const $D=ri(Vre);function ul(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qre(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function fS(e){let t,n,r;e.length!==2?(t=ul,n=(u,d)=>ul(e(u),d),r=(u,d)=>e(u)-d):(t=e===ul||e===qre?e:Hre,n=e,r=e);function i(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<0?f=p+1:m=p}while(f<m)}return f}function a(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<=0?f=p+1:m=p}while(f<m)}return f}function s(u,d,f=0,m=u.length){const p=i(u,d,f,m-1);return p>f&&r(u[p-1],d)>-r(u[p],d)?p-1:p}return{left:i,center:s,right:a}}function Hre(){return 0}function VD(e){return e===null?NaN:+e}function*Gre(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Wre=fS(ul),Yh=Wre.right;fS(VD).center;class gP extends Map{constructor(t,n=Zre){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(vP(this,t))}has(t){return super.has(vP(this,t))}set(t,n){return super.set(Yre(this,t),n)}delete(t){return super.delete(Kre(this,t))}}function vP({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Yre({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Kre({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Zre(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Xre(e=ul){if(e===ul)return qD;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 qD(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Qre=Math.sqrt(50),Jre=Math.sqrt(10),eie=Math.sqrt(2);function av(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=Qre?10:a>=Jre?5:a>=eie?2:1;let u,d,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(e*f),d=Math.round(t*f),u/f<e&&++u,d/f>t&&--d,f=-f):(f=Math.pow(10,i)*s,u=Math.round(e/f),d=Math.round(t/f),u*f<e&&++u,d*f>t&&--d),d<u&&.5<=n&&n<2?av(e,t,n*2):[u,d,f]}function u2(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,s]=r?av(t,e,n):av(e,t,n);if(!(a>=i))return[];const u=a-i+1,d=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)d[f]=(a-f)/-s;else for(let f=0;f<u;++f)d[f]=(a-f)*s;else if(s<0)for(let f=0;f<u;++f)d[f]=(i+f)/-s;else for(let f=0;f<u;++f)d[f]=(i+f)*s;return d}function c2(e,t,n){return t=+t,e=+e,n=+n,av(e,t,n)[2]}function f2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?c2(t,e,n):c2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function yP(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function bP(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function HD(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?qD:Xre(i);r>n;){if(r-n>600){const d=r-n+1,f=t-n+1,m=Math.log(d),p=.5*Math.exp(2*m/3),b=.5*Math.sqrt(m*p*(d-p)/d)*(f-d/2<0?-1:1),_=Math.max(n,Math.floor(t-f*p/d+b)),w=Math.min(r,Math.floor(t+(d-f)*p/d+b));HD(e,t,_,w,i)}const a=e[t];let s=n,u=r;for(Hd(e,n,t),i(e[r],a)>0&&Hd(e,n,r);s<u;){for(Hd(e,s,u),++s,--u;i(e[s],a)<0;)++s;for(;i(e[u],a)>0;)--u}i(e[n],a)===0?Hd(e,n,u):(++u,Hd(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Hd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function tie(e,t,n){if(e=Float64Array.from(Gre(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return bP(e);if(t>=1)return yP(e);var r,i=(r-1)*t,a=Math.floor(i),s=yP(HD(e,a).subarray(0,a+1)),u=bP(e.subarray(a+1));return s+(u-s)*(i-a)}}function nie(e,t,n=VD){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),s=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return s+(u-s)*(i-a)}}function rie(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 ta(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ns(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const d2=Symbol("implicit");function dS(){var e=new gP,t=[],n=[],r=d2;function i(a){let s=e.get(a);if(s===void 0){if(r!==d2)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new gP;for(const s of a)e.has(s)||e.set(s,t.push(s)-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 dS(t,n).unknown(r)},ta.apply(i,arguments),i}function hS(){var e=dS().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,s,u=!1,d=0,f=0,m=.5;delete e.unknown;function p(){var b=t().length,_=i<r,w=_?i:r,x=_?r:i;a=(x-w)/Math.max(1,b-d+f*2),u&&(a=Math.floor(a)),w+=(x-w-a*(b-d))*m,s=a*(1-d),u&&(w=Math.round(w),s=Math.round(s));var A=rie(b).map(function(C){return w+a*C});return n(_?A.reverse():A)}return e.domain=function(b){return arguments.length?(t(b),p()):t()},e.range=function(b){return arguments.length?([r,i]=b,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(b){return[r,i]=b,r=+r,i=+i,u=!0,p()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(b){return arguments.length?(u=!!b,p()):u},e.padding=function(b){return arguments.length?(d=Math.min(1,f=+b),p()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),p()):d},e.paddingOuter=function(b){return arguments.length?(f=+b,p()):f},e.align=function(b){return arguments.length?(m=Math.max(0,Math.min(1,b)),p()):m},e.copy=function(){return hS(t(),[r,i]).round(u).paddingInner(d).paddingOuter(f).align(m)},ta.apply(p(),arguments)}function GD(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return GD(t())},e}function iie(){return GD(hS.apply(null,arguments).paddingInner(1))}function mS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function WD(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kh(){}var Eh=.7,ov=1/Eh,Kc="\\s*([+-]?\\d+)\\s*",Ah="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aie=/^#([0-9a-f]{3,8})$/,oie=new RegExp(`^rgb\\(${Kc},${Kc},${Kc}\\)$`),sie=new RegExp(`^rgb\\(${Ka},${Ka},${Ka}\\)$`),lie=new RegExp(`^rgba\\(${Kc},${Kc},${Kc},${Ah}\\)$`),uie=new RegExp(`^rgba\\(${Ka},${Ka},${Ka},${Ah}\\)$`),cie=new RegExp(`^hsl\\(${Ah},${Ka},${Ka}\\)$`),fie=new RegExp(`^hsla\\(${Ah},${Ka},${Ka},${Ah}\\)$`),_P={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};mS(Kh,Th,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xP,formatHex:xP,formatHex8:die,formatHsl:hie,formatRgb:wP,toString:wP});function xP(){return this.rgb().formatHex()}function die(){return this.rgb().formatHex8()}function hie(){return YD(this).formatHsl()}function wP(){return this.rgb().formatRgb()}function Th(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=aie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?SP(t):n===3?new ti(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wp(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=oie.exec(e))?new ti(t[1],t[2],t[3],1):(t=sie.exec(e))?new ti(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lie.exec(e))?Wp(t[1],t[2],t[3],t[4]):(t=uie.exec(e))?Wp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cie.exec(e))?AP(t[1],t[2]/100,t[3]/100,1):(t=fie.exec(e))?AP(t[1],t[2]/100,t[3]/100,t[4]):_P.hasOwnProperty(e)?SP(_P[e]):e==="transparent"?new ti(NaN,NaN,NaN,0):null}function SP(e){return new ti(e>>16&255,e>>8&255,e&255,1)}function Wp(e,t,n,r){return r<=0&&(e=t=n=NaN),new ti(e,t,n,r)}function mie(e){return e instanceof Kh||(e=Th(e)),e?(e=e.rgb(),new ti(e.r,e.g,e.b,e.opacity)):new ti}function h2(e,t,n,r){return arguments.length===1?mie(e):new ti(e,t,n,r??1)}function ti(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}mS(ti,h2,WD(Kh,{brighter(e){return e=e==null?ov:Math.pow(ov,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Eh:Math.pow(Eh,e),new ti(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ti(Cu(this.r),Cu(this.g),Cu(this.b),sv(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:CP,formatHex:CP,formatHex8:pie,formatRgb:EP,toString:EP}));function CP(){return`#${bu(this.r)}${bu(this.g)}${bu(this.b)}`}function pie(){return`#${bu(this.r)}${bu(this.g)}${bu(this.b)}${bu((isNaN(this.opacity)?1:this.opacity)*255)}`}function EP(){const e=sv(this.opacity);return`${e===1?"rgb(":"rgba("}${Cu(this.r)}, ${Cu(this.g)}, ${Cu(this.b)}${e===1?")":`, ${e})`}`}function sv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bu(e){return e=Cu(e),(e<16?"0":"")+e.toString(16)}function AP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pa(e,t,n,r)}function YD(e){if(e instanceof pa)return new pa(e.h,e.s,e.l,e.opacity);if(e instanceof Kh||(e=Th(e)),!e)return new pa;if(e instanceof pa)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),s=NaN,u=a-i,d=(a+i)/2;return u?(t===a?s=(n-r)/u+(n<r)*6:n===a?s=(r-t)/u+2:s=(t-n)/u+4,u/=d<.5?a+i:2-a-i,s*=60):u=d>0&&d<1?0:s,new pa(s,u,d,e.opacity)}function gie(e,t,n,r){return arguments.length===1?YD(e):new pa(e,t,n,r??1)}function pa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}mS(pa,gie,WD(Kh,{brighter(e){return e=e==null?ov:Math.pow(ov,e),new pa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Eh:Math.pow(Eh,e),new pa(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 ti(A_(e>=240?e-240:e+120,i,r),A_(e,i,r),A_(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new pa(TP(this.h),Yp(this.s),Yp(this.l),sv(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=sv(this.opacity);return`${e===1?"hsl(":"hsla("}${TP(this.h)}, ${Yp(this.s)*100}%, ${Yp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function TP(e){return e=(e||0)%360,e<0?e+360:e}function Yp(e){return Math.max(0,Math.min(1,e||0))}function A_(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 pS=e=>()=>e;function vie(e,t){return function(n){return e+n*t}}function yie(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 bie(e){return(e=+e)==1?KD:function(t,n){return n-t?yie(t,n,e):pS(isNaN(t)?n:t)}}function KD(e,t){var n=t-e;return n?vie(e,n):pS(isNaN(e)?t:e)}const OP=function e(t){var n=bie(t);function r(i,a){var s=n((i=h2(i)).r,(a=h2(a)).r),u=n(i.g,a.g),d=n(i.b,a.b),f=KD(i.opacity,a.opacity);return function(m){return i.r=s(m),i.g=u(m),i.b=d(m),i.opacity=f(m),i+""}}return r.gamma=e,r}(1);function _ie(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 xie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=Af(e[s],t[s]);for(;s<n;++s)a[s]=t[s];return function(u){for(s=0;s<r;++s)a[s]=i[s](u);return a}}function Sie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function lv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Cie(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]=Af(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var m2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,T_=new RegExp(m2.source,"g");function Eie(e){return function(){return e}}function Aie(e){return function(t){return e(t)+""}}function Tie(e,t){var n=m2.lastIndex=T_.lastIndex=0,r,i,a,s=-1,u=[],d=[];for(e=e+"",t=t+"";(r=m2.exec(e))&&(i=T_.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),u[s]?u[s]+=a:u[++s]=a),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,d.push({i:s,x:lv(r,i)})),n=T_.lastIndex;return n<t.length&&(a=t.slice(n),u[s]?u[s]+=a:u[++s]=a),u.length<2?d[0]?Aie(d[0].x):Eie(t):(t=d.length,function(f){for(var m=0,p;m<t;++m)u[(p=d[m]).i]=p.x(f);return u.join("")})}function Af(e,t){var n=typeof t,r;return t==null||n==="boolean"?pS(t):(n==="number"?lv:n==="string"?(r=Th(t))?(t=r,OP):Tie:t instanceof Th?OP:t instanceof Date?Sie:xie(t)?_ie:Array.isArray(t)?wie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Cie:lv)(e,t)}function gS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Oie(e,t){t===void 0&&(t=e,e=Af);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(s){var u=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return a[u](s-u)}}function jie(e){return function(){return e}}function uv(e){return+e}var jP=[0,1];function zr(e){return e}function p2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jie(isNaN(t)?NaN:.5)}function Pie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Mie(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=p2(i,r),a=n(s,a)):(r=p2(r,i),a=n(a,s)),function(u){return a(r(u))}}function Rie(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=p2(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(u){var d=Yh(e,u,1,r)-1;return a[d](i[d](u))}}function Zh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function py(){var e=jP,t=jP,n=Af,r,i,a,s=zr,u,d,f;function m(){var b=Math.min(e.length,t.length);return s!==zr&&(s=Pie(e[0],e[b-1])),u=b>2?Rie:Mie,d=f=null,p}function p(b){return b==null||isNaN(b=+b)?a:(d||(d=u(e.map(r),t,n)))(r(s(b)))}return p.invert=function(b){return s(i((f||(f=u(t,e.map(r),lv)))(b)))},p.domain=function(b){return arguments.length?(e=Array.from(b,uv),m()):e.slice()},p.range=function(b){return arguments.length?(t=Array.from(b),m()):t.slice()},p.rangeRound=function(b){return t=Array.from(b),n=gS,m()},p.clamp=function(b){return arguments.length?(s=b?!0:zr,m()):s!==zr},p.interpolate=function(b){return arguments.length?(n=b,m()):n},p.unknown=function(b){return arguments.length?(a=b,p):a},function(b,_){return r=b,i=_,m()}}function vS(){return py()(zr,zr)}function Nie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function cv(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 of(e){return e=cv(Math.abs(e)),e?e[1]:NaN}function Lie(e,t){return function(n,r){for(var i=n.length,a=[],s=0,u=e[0],d=0;i>0&&u>0&&(d+u+1>r&&(u=Math.max(1,r-d)),a.push(n.substring(i-=u,i+u)),!((d+=u+1)>r));)u=e[s=(s+1)%e.length];return a.reverse().join(t)}}function Die(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var kie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oh(e){if(!(t=kie.exec(e)))throw new Error("invalid format: "+e);var t;return new yS({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]})}Oh.prototype=yS.prototype;function yS(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+""}yS.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 Iie(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 ZD;function Uie(e,t){var n=cv(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(ZD=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+cv(e,Math.max(0,t+a-1))[0]}function PP(e,t){var n=cv(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 MP={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Nie,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)=>PP(e*100,t),r:PP,s:Uie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function RP(e){return e}var NP=Array.prototype.map,LP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Bie(e){var t=e.grouping===void 0||e.thousands===void 0?RP:Lie(NP.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?RP:Die(NP.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(p){p=Oh(p);var b=p.fill,_=p.align,w=p.sign,x=p.symbol,A=p.zero,C=p.width,j=p.comma,O=p.precision,N=p.trim,B=p.type;B==="n"?(j=!0,B="g"):MP[B]||(O===void 0&&(O=12),N=!0,B="g"),(A||b==="0"&&_==="=")&&(A=!0,b="0",_="=");var V=x==="$"?n:x==="#"&&/[boxX]/.test(B)?"0"+B.toLowerCase():"",Z=x==="$"?r:/[%p]/.test(B)?s:"",X=MP[B],oe=/[defgprs%]/.test(B);O=O===void 0?6:/[gprs]/.test(B)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function ee(J){var ne=V,he=Z,Q,se,Y;if(B==="c")he=X(J)+he,J="";else{J=+J;var U=J<0||1/J<0;if(J=isNaN(J)?d:X(Math.abs(J),O),N&&(J=Iie(J)),U&&+J==0&&w!=="+"&&(U=!1),ne=(U?w==="("?w:u:w==="-"||w==="("?"":w)+ne,he=(B==="s"?LP[8+ZD/3]:"")+he+(U&&w==="("?")":""),oe){for(Q=-1,se=J.length;++Q<se;)if(Y=J.charCodeAt(Q),48>Y||Y>57){he=(Y===46?i+J.slice(Q+1):J.slice(Q))+he,J=J.slice(0,Q);break}}}j&&!A&&(J=t(J,1/0));var I=ne.length+J.length+he.length,z=I<C?new Array(C-I+1).join(b):"";switch(j&&A&&(J=t(z+J,z.length?C-he.length:1/0),z=""),_){case"<":J=ne+J+he+z;break;case"=":J=ne+z+J+he;break;case"^":J=z.slice(0,I=z.length>>1)+ne+J+he+z.slice(I);break;default:J=z+ne+J+he;break}return a(J)}return ee.toString=function(){return p+""},ee}function m(p,b){var _=f((p=Oh(p),p.type="f",p)),w=Math.max(-8,Math.min(8,Math.floor(of(b)/3)))*3,x=Math.pow(10,-w),A=LP[8+w/3];return function(C){return _(x*C)+A}}return{format:f,formatPrefix:m}}var Kp,bS,XD;zie({thousands:",",grouping:[3],currency:["$",""]});function zie(e){return Kp=Bie(e),bS=Kp.format,XD=Kp.formatPrefix,Kp}function Fie(e){return Math.max(0,-of(Math.abs(e)))}function $ie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(of(t)/3)))*3-of(Math.abs(e)))}function Vie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,of(t)-of(e))+1}function QD(e,t,n,r){var i=f2(e,t,n),a;switch(r=Oh(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=$ie(i,s))&&(r.precision=a),XD(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Vie(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Fie(i))&&(r.precision=a-(r.type==="%")*2);break}}return bS(r)}function jl(e){var t=e.domain;return e.ticks=function(n){var r=t();return u2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return QD(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,s=r[i],u=r[a],d,f,m=10;for(u<s&&(f=s,s=u,u=f,f=i,i=a,a=f);m-- >0;){if(f=c2(s,u,n),f===d)return r[i]=s,r[a]=u,t(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;d=f}return e},e}function JD(){var e=vS();return e.copy=function(){return Zh(e,JD())},ta.apply(e,arguments),jl(e)}function ek(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,uv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return ek(e).unknown(t)},e=arguments.length?Array.from(e,uv):[0,1],jl(n)}function tk(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}function DP(e){return Math.log(e)}function kP(e){return Math.exp(e)}function qie(e){return-Math.log(-e)}function Hie(e){return-Math.exp(-e)}function Gie(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Wie(e){return e===10?Gie:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Yie(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 IP(e){return(t,n)=>-e(-t,n)}function _S(e){const t=e(DP,kP),n=t.domain;let r=10,i,a;function s(){return i=Yie(r),a=Wie(r),n()[0]<0?(i=IP(i),a=IP(a),e(qie,Hie)):e(DP,kP),t}return t.base=function(u){return arguments.length?(r=+u,s()):r},t.domain=function(u){return arguments.length?(n(u),s()):n()},t.ticks=u=>{const d=n();let f=d[0],m=d[d.length-1];const p=m<f;p&&([f,m]=[m,f]);let b=i(f),_=i(m),w,x;const A=u==null?10:+u;let C=[];if(!(r%1)&&_-b<A){if(b=Math.floor(b),_=Math.ceil(_),f>0){for(;b<=_;++b)for(w=1;w<r;++w)if(x=b<0?w/a(-b):w*a(b),!(x<f)){if(x>m)break;C.push(x)}}else for(;b<=_;++b)for(w=r-1;w>=1;--w)if(x=b>0?w/a(-b):w*a(b),!(x<f)){if(x>m)break;C.push(x)}C.length*2<A&&(C=u2(f,m,A))}else C=u2(b,_,Math.min(_-b,A)).map(a);return p?C.reverse():C},t.tickFormat=(u,d)=>{if(u==null&&(u=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Oh(d)).precision==null&&(d.trim=!0),d=bS(d)),u===1/0)return d;const f=Math.max(1,r*u/t.ticks().length);return m=>{let p=m/a(Math.round(i(m)));return p*r<r-.5&&(p*=r),p<=f?d(m):""}},t.nice=()=>n(tk(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function nk(){const e=_S(py()).domain([1,10]);return e.copy=()=>Zh(e,nk()).base(e.base()),ta.apply(e,arguments),e}function UP(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function BP(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xS(e){var t=1,n=e(UP(t),BP(t));return n.constant=function(r){return arguments.length?e(UP(t=+r),BP(t)):t},jl(n)}function rk(){var e=xS(py());return e.copy=function(){return Zh(e,rk()).constant(e.constant())},ta.apply(e,arguments)}function zP(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Kie(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Zie(e){return e<0?-e*e:e*e}function wS(e){var t=e(zr,zr),n=1;function r(){return n===1?e(zr,zr):n===.5?e(Kie,Zie):e(zP(n),zP(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},jl(t)}function SS(){var e=wS(py());return e.copy=function(){return Zh(e,SS()).exponent(e.exponent())},ta.apply(e,arguments),e}function Xie(){return SS.apply(null,arguments).exponent(.5)}function FP(e){return Math.sign(e)*e*e}function Qie(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ik(){var e=vS(),t=[0,1],n=!1,r;function i(a){var s=Qie(e(a));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(a){return e.invert(FP(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,uv)).map(FP)),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 ik(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ta.apply(i,arguments),jl(i)}function ak(){var e=[],t=[],n=[],r;function i(){var s=0,u=Math.max(1,t.length);for(n=new Array(u-1);++s<u;)n[s-1]=nie(e,s/u);return a}function a(s){return s==null||isNaN(s=+s)?r:t[Yh(n,s)]}return a.invertExtent=function(s){var u=t.indexOf(s);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let u of s)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ul),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return ak().domain(e).range(t).unknown(r)},ta.apply(a,arguments)}function ok(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function s(d){return d!=null&&d<=d?i[Yh(r,d,0,n)]:a}function u(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return s}return s.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,u()):[e,t]},s.range=function(d){return arguments.length?(n=(i=Array.from(d)).length-1,u()):i.slice()},s.invertExtent=function(d){var f=i.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(d){return arguments.length&&(a=d),s},s.thresholds=function(){return r.slice()},s.copy=function(){return ok().domain([e,t]).range(i).unknown(a)},ta.apply(jl(s),arguments)}function sk(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Yh(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 s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return sk().domain(e).range(t).unknown(n)},ta.apply(i,arguments)}const O_=new Date,j_=new Date;function Zn(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 s=i(a),u=i.ceil(a);return a-s<u-a?s:u},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,u)=>{const d=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<s)||!(u>0))return d;let f;do d.push(f=new Date(+a)),t(a,u),e(a);while(f<a&&a<s);return d},i.filter=a=>Zn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!a(s););else for(;--u>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(O_.setTime(+a),j_.setTime(+s),e(O_),e(j_),Math.floor(n(O_,j_))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const fv=Zn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Zn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fv);fv.range;const Do=1e3,Xi=Do*60,ko=Xi*60,Go=ko*24,CS=Go*7,$P=Go*30,P_=Go*365,_u=Zn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Do)},(e,t)=>(t-e)/Do,e=>e.getUTCSeconds());_u.range;const ES=Zn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Do)},(e,t)=>{e.setTime(+e+t*Xi)},(e,t)=>(t-e)/Xi,e=>e.getMinutes());ES.range;const AS=Zn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xi)},(e,t)=>(t-e)/Xi,e=>e.getUTCMinutes());AS.range;const TS=Zn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Do-e.getMinutes()*Xi)},(e,t)=>{e.setTime(+e+t*ko)},(e,t)=>(t-e)/ko,e=>e.getHours());TS.range;const OS=Zn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ko)},(e,t)=>(t-e)/ko,e=>e.getUTCHours());OS.range;const Xh=Zn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xi)/Go,e=>e.getDate()-1);Xh.range;const gy=Zn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Go,e=>e.getUTCDate()-1);gy.range;const lk=Zn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Go,e=>Math.floor(e/Go));lk.range;function $u(e){return Zn(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())*Xi)/CS)}const vy=$u(0),dv=$u(1),Jie=$u(2),eae=$u(3),sf=$u(4),tae=$u(5),nae=$u(6);vy.range;dv.range;Jie.range;eae.range;sf.range;tae.range;nae.range;function Vu(e){return Zn(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)/CS)}const yy=Vu(0),hv=Vu(1),rae=Vu(2),iae=Vu(3),lf=Vu(4),aae=Vu(5),oae=Vu(6);yy.range;hv.range;rae.range;iae.range;lf.range;aae.range;oae.range;const jS=Zn(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());jS.range;const PS=Zn(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());PS.range;const Wo=Zn(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());Wo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Zn(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)});Wo.range;const Yo=Zn(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());Yo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Zn(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)});Yo.range;function uk(e,t,n,r,i,a){const s=[[_u,1,Do],[_u,5,5*Do],[_u,15,15*Do],[_u,30,30*Do],[a,1,Xi],[a,5,5*Xi],[a,15,15*Xi],[a,30,30*Xi],[i,1,ko],[i,3,3*ko],[i,6,6*ko],[i,12,12*ko],[r,1,Go],[r,2,2*Go],[n,1,CS],[t,1,$P],[t,3,3*$P],[e,1,P_]];function u(f,m,p){const b=m<f;b&&([f,m]=[m,f]);const _=p&&typeof p.range=="function"?p:d(f,m,p),w=_?_.range(f,+m+1):[];return b?w.reverse():w}function d(f,m,p){const b=Math.abs(m-f)/p,_=fS(([,,A])=>A).right(s,b);if(_===s.length)return e.every(f2(f/P_,m/P_,p));if(_===0)return fv.every(Math.max(f2(f,m,p),1));const[w,x]=s[b/s[_-1][2]<s[_][2]/b?_-1:_];return w.every(x)}return[u,d]}const[sae,lae]=uk(Yo,PS,yy,lk,OS,AS),[uae,cae]=uk(Wo,jS,vy,Xh,TS,ES);function M_(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 R_(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 Gd(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function fae(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,u=e.months,d=e.shortMonths,f=Wd(i),m=Yd(i),p=Wd(a),b=Yd(a),_=Wd(s),w=Yd(s),x=Wd(u),A=Yd(u),C=Wd(d),j=Yd(d),O={a:U,A:I,b:z,B:M,c:null,d:YP,e:YP,f:Lae,g:qae,G:Gae,H:Mae,I:Rae,j:Nae,L:ck,m:Dae,M:kae,p:D,q:W,Q:XP,s:QP,S:Iae,u:Uae,U:Bae,V:zae,w:Fae,W:$ae,x:null,X:null,y:Vae,Y:Hae,Z:Wae,"%":ZP},N={a:H,A:re,b:ue,B:ce,c:null,d:KP,e:KP,f:Xae,g:soe,G:uoe,H:Yae,I:Kae,j:Zae,L:dk,m:Qae,M:Jae,p:ve,q:k,Q:XP,s:QP,S:eoe,u:toe,U:noe,V:roe,w:ioe,W:aoe,x:null,X:null,y:ooe,Y:loe,Z:coe,"%":ZP},B={a:ee,A:J,b:ne,B:he,c:Q,d:GP,e:GP,f:Tae,g:HP,G:qP,H:WP,I:WP,j:Sae,L:Aae,m:wae,M:Cae,p:oe,q:xae,Q:jae,s:Pae,S:Eae,u:gae,U:vae,V:yae,w:pae,W:bae,x:se,X:Y,y:HP,Y:qP,Z:_ae,"%":Oae};O.x=V(n,O),O.X=V(r,O),O.c=V(t,O),N.x=V(n,N),N.X=V(r,N),N.c=V(t,N);function V(F,G){return function(le){var q=[],ae=-1,fe=0,ge=F.length,de,_e,Te;for(le instanceof Date||(le=new Date(+le));++ae<ge;)F.charCodeAt(ae)===37&&(q.push(F.slice(fe,ae)),(_e=VP[de=F.charAt(++ae)])!=null?de=F.charAt(++ae):_e=de==="e"?" ":"0",(Te=G[de])&&(de=Te(le,_e)),q.push(de),fe=ae+1);return q.push(F.slice(fe,ae)),q.join("")}}function Z(F,G){return function(le){var q=Gd(1900,void 0,1),ae=X(q,F,le+="",0),fe,ge;if(ae!=le.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(G&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(fe=R_(Gd(q.y,0,1)),ge=fe.getUTCDay(),fe=ge>4||ge===0?hv.ceil(fe):hv(fe),fe=gy.offset(fe,(q.V-1)*7),q.y=fe.getUTCFullYear(),q.m=fe.getUTCMonth(),q.d=fe.getUTCDate()+(q.w+6)%7):(fe=M_(Gd(q.y,0,1)),ge=fe.getDay(),fe=ge>4||ge===0?dv.ceil(fe):dv(fe),fe=Xh.offset(fe,(q.V-1)*7),q.y=fe.getFullYear(),q.m=fe.getMonth(),q.d=fe.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),ge="Z"in q?R_(Gd(q.y,0,1)).getUTCDay():M_(Gd(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(ge+5)%7:q.w+q.U*7-(ge+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,R_(q)):M_(q)}}function X(F,G,le,q){for(var ae=0,fe=G.length,ge=le.length,de,_e;ae<fe;){if(q>=ge)return-1;if(de=G.charCodeAt(ae++),de===37){if(de=G.charAt(ae++),_e=B[de in VP?G.charAt(ae++):de],!_e||(q=_e(F,le,q))<0)return-1}else if(de!=le.charCodeAt(q++))return-1}return q}function oe(F,G,le){var q=f.exec(G.slice(le));return q?(F.p=m.get(q[0].toLowerCase()),le+q[0].length):-1}function ee(F,G,le){var q=_.exec(G.slice(le));return q?(F.w=w.get(q[0].toLowerCase()),le+q[0].length):-1}function J(F,G,le){var q=p.exec(G.slice(le));return q?(F.w=b.get(q[0].toLowerCase()),le+q[0].length):-1}function ne(F,G,le){var q=C.exec(G.slice(le));return q?(F.m=j.get(q[0].toLowerCase()),le+q[0].length):-1}function he(F,G,le){var q=x.exec(G.slice(le));return q?(F.m=A.get(q[0].toLowerCase()),le+q[0].length):-1}function Q(F,G,le){return X(F,t,G,le)}function se(F,G,le){return X(F,n,G,le)}function Y(F,G,le){return X(F,r,G,le)}function U(F){return s[F.getDay()]}function I(F){return a[F.getDay()]}function z(F){return d[F.getMonth()]}function M(F){return u[F.getMonth()]}function D(F){return i[+(F.getHours()>=12)]}function W(F){return 1+~~(F.getMonth()/3)}function H(F){return s[F.getUTCDay()]}function re(F){return a[F.getUTCDay()]}function ue(F){return d[F.getUTCMonth()]}function ce(F){return u[F.getUTCMonth()]}function ve(F){return i[+(F.getUTCHours()>=12)]}function k(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var G=V(F+="",O);return G.toString=function(){return F},G},parse:function(F){var G=Z(F+="",!1);return G.toString=function(){return F},G},utcFormat:function(F){var G=V(F+="",N);return G.toString=function(){return F},G},utcParse:function(F){var G=Z(F+="",!0);return G.toString=function(){return F},G}}}var VP={"-":"",_:" ",0:"0"},ur=/^\s*\d+/,dae=/^%/,hae=/[\\^$*+?|[\]().{}]/g;function zt(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 mae(e){return e.replace(hae,"\\$&")}function Wd(e){return new RegExp("^(?:"+e.map(mae).join("|")+")","i")}function Yd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function pae(e,t,n){var r=ur.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function gae(e,t,n){var r=ur.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vae(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function yae(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bae(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qP(e,t,n){var r=ur.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function HP(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _ae(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 xae(e,t,n){var r=ur.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function wae(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function GP(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Sae(e,t,n){var r=ur.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function WP(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Cae(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Eae(e,t,n){var r=ur.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=ur.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Tae(e,t,n){var r=ur.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Oae(e,t,n){var r=dae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jae(e,t,n){var r=ur.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Pae(e,t,n){var r=ur.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function YP(e,t){return zt(e.getDate(),t,2)}function Mae(e,t){return zt(e.getHours(),t,2)}function Rae(e,t){return zt(e.getHours()%12||12,t,2)}function Nae(e,t){return zt(1+Xh.count(Wo(e),e),t,3)}function ck(e,t){return zt(e.getMilliseconds(),t,3)}function Lae(e,t){return ck(e,t)+"000"}function Dae(e,t){return zt(e.getMonth()+1,t,2)}function kae(e,t){return zt(e.getMinutes(),t,2)}function Iae(e,t){return zt(e.getSeconds(),t,2)}function Uae(e){var t=e.getDay();return t===0?7:t}function Bae(e,t){return zt(vy.count(Wo(e)-1,e),t,2)}function fk(e){var t=e.getDay();return t>=4||t===0?sf(e):sf.ceil(e)}function zae(e,t){return e=fk(e),zt(sf.count(Wo(e),e)+(Wo(e).getDay()===4),t,2)}function Fae(e){return e.getDay()}function $ae(e,t){return zt(dv.count(Wo(e)-1,e),t,2)}function Vae(e,t){return zt(e.getFullYear()%100,t,2)}function qae(e,t){return e=fk(e),zt(e.getFullYear()%100,t,2)}function Hae(e,t){return zt(e.getFullYear()%1e4,t,4)}function Gae(e,t){var n=e.getDay();return e=n>=4||n===0?sf(e):sf.ceil(e),zt(e.getFullYear()%1e4,t,4)}function Wae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zt(t/60|0,"0",2)+zt(t%60,"0",2)}function KP(e,t){return zt(e.getUTCDate(),t,2)}function Yae(e,t){return zt(e.getUTCHours(),t,2)}function Kae(e,t){return zt(e.getUTCHours()%12||12,t,2)}function Zae(e,t){return zt(1+gy.count(Yo(e),e),t,3)}function dk(e,t){return zt(e.getUTCMilliseconds(),t,3)}function Xae(e,t){return dk(e,t)+"000"}function Qae(e,t){return zt(e.getUTCMonth()+1,t,2)}function Jae(e,t){return zt(e.getUTCMinutes(),t,2)}function eoe(e,t){return zt(e.getUTCSeconds(),t,2)}function toe(e){var t=e.getUTCDay();return t===0?7:t}function noe(e,t){return zt(yy.count(Yo(e)-1,e),t,2)}function hk(e){var t=e.getUTCDay();return t>=4||t===0?lf(e):lf.ceil(e)}function roe(e,t){return e=hk(e),zt(lf.count(Yo(e),e)+(Yo(e).getUTCDay()===4),t,2)}function ioe(e){return e.getUTCDay()}function aoe(e,t){return zt(hv.count(Yo(e)-1,e),t,2)}function ooe(e,t){return zt(e.getUTCFullYear()%100,t,2)}function soe(e,t){return e=hk(e),zt(e.getUTCFullYear()%100,t,2)}function loe(e,t){return zt(e.getUTCFullYear()%1e4,t,4)}function uoe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?lf(e):lf.ceil(e),zt(e.getUTCFullYear()%1e4,t,4)}function coe(){return"+0000"}function ZP(){return"%"}function XP(e){return+e}function QP(e){return Math.floor(+e/1e3)}var Uc,mk,pk;foe({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 foe(e){return Uc=fae(e),mk=Uc.format,Uc.parse,pk=Uc.utcFormat,Uc.utcParse,Uc}function doe(e){return new Date(e)}function hoe(e){return e instanceof Date?+e:+new Date(+e)}function MS(e,t,n,r,i,a,s,u,d,f){var m=vS(),p=m.invert,b=m.domain,_=f(".%L"),w=f(":%S"),x=f("%I:%M"),A=f("%I %p"),C=f("%a %d"),j=f("%b %d"),O=f("%B"),N=f("%Y");function B(V){return(d(V)<V?_:u(V)<V?w:s(V)<V?x:a(V)<V?A:r(V)<V?i(V)<V?C:j:n(V)<V?O:N)(V)}return m.invert=function(V){return new Date(p(V))},m.domain=function(V){return arguments.length?b(Array.from(V,hoe)):b().map(doe)},m.ticks=function(V){var Z=b();return e(Z[0],Z[Z.length-1],V??10)},m.tickFormat=function(V,Z){return Z==null?B:f(Z)},m.nice=function(V){var Z=b();return(!V||typeof V.range!="function")&&(V=t(Z[0],Z[Z.length-1],V??10)),V?b(tk(Z,V)):m},m.copy=function(){return Zh(m,MS(e,t,n,r,i,a,s,u,d,f))},m}function moe(){return ta.apply(MS(uae,cae,Wo,jS,vy,Xh,TS,ES,_u,mk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function poe(){return ta.apply(MS(sae,lae,Yo,PS,yy,gy,OS,AS,_u,pk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function by(){var e=0,t=1,n,r,i,a,s=zr,u=!1,d;function f(p){return p==null||isNaN(p=+p)?d:s(i===0?.5:(p=(a(p)-n)*i,u?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t]=p,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(p){return arguments.length?(u=!!p,f):u},f.interpolator=function(p){return arguments.length?(s=p,f):s};function m(p){return function(b){var _,w;return arguments.length?([_,w]=b,s=p(_,w),f):[s(0),s(1)]}}return f.range=m(Af),f.rangeRound=m(gS),f.unknown=function(p){return arguments.length?(d=p,f):d},function(p){return a=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),f}}function Pl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gk(){var e=jl(by()(zr));return e.copy=function(){return Pl(e,gk())},ns.apply(e,arguments)}function vk(){var e=_S(by()).domain([1,10]);return e.copy=function(){return Pl(e,vk()).base(e.base())},ns.apply(e,arguments)}function yk(){var e=xS(by());return e.copy=function(){return Pl(e,yk()).constant(e.constant())},ns.apply(e,arguments)}function RS(){var e=wS(by());return e.copy=function(){return Pl(e,RS()).exponent(e.exponent())},ns.apply(e,arguments)}function goe(){return RS.apply(null,arguments).exponent(.5)}function bk(){var e=[],t=zr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Yh(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(ul),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)=>tie(e,a/r))},n.copy=function(){return bk(t).domain(e)},ns.apply(n,arguments)}function _y(){var e=0,t=.5,n=1,r=1,i,a,s,u,d,f=zr,m,p=!1,b;function _(x){return isNaN(x=+x)?b:(x=.5+((x=+m(x))-a)*(r*x<r*a?u:d),f(p?Math.max(0,Math.min(1,x)):x))}_.domain=function(x){return arguments.length?([e,t,n]=x,i=m(e=+e),a=m(t=+t),s=m(n=+n),u=i===a?0:.5/(a-i),d=a===s?0:.5/(s-a),r=a<i?-1:1,_):[e,t,n]},_.clamp=function(x){return arguments.length?(p=!!x,_):p},_.interpolator=function(x){return arguments.length?(f=x,_):f};function w(x){return function(A){var C,j,O;return arguments.length?([C,j,O]=A,f=Oie(x,[C,j,O]),_):[f(0),f(.5),f(1)]}}return _.range=w(Af),_.rangeRound=w(gS),_.unknown=function(x){return arguments.length?(b=x,_):b},function(x){return m=x,i=x(e),a=x(t),s=x(n),u=i===a?0:.5/(a-i),d=a===s?0:.5/(s-a),r=a<i?-1:1,_}}function _k(){var e=jl(_y()(zr));return e.copy=function(){return Pl(e,_k())},ns.apply(e,arguments)}function xk(){var e=_S(_y()).domain([.1,1,10]);return e.copy=function(){return Pl(e,xk()).base(e.base())},ns.apply(e,arguments)}function wk(){var e=xS(_y());return e.copy=function(){return Pl(e,wk()).constant(e.constant())},ns.apply(e,arguments)}function NS(){var e=wS(_y());return e.copy=function(){return Pl(e,NS()).exponent(e.exponent())},ns.apply(e,arguments)}function voe(){return NS.apply(null,arguments).exponent(.5)}const nh=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:hS,scaleDiverging:_k,scaleDivergingLog:xk,scaleDivergingPow:NS,scaleDivergingSqrt:voe,scaleDivergingSymlog:wk,scaleIdentity:ek,scaleImplicit:d2,scaleLinear:JD,scaleLog:nk,scaleOrdinal:dS,scalePoint:iie,scalePow:SS,scaleQuantile:ak,scaleQuantize:ok,scaleRadial:ik,scaleSequential:gk,scaleSequentialLog:vk,scaleSequentialPow:RS,scaleSequentialQuantile:bk,scaleSequentialSqrt:goe,scaleSequentialSymlog:yk,scaleSqrt:Xie,scaleSymlog:rk,scaleThreshold:sk,scaleTime:moe,scaleUtc:poe,tickFormat:QD},Symbol.toStringTag,{value:"Module"}));var Ml=e=>e.chartData,LS=Pe([Ml],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),xy=(e,t,n,r)=>r?LS(e):Ml(e);function uf(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Pi(t)&&Pi(n))return!0}return!1}function JP(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function yoe(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(Pi(n))i=n;else if(typeof n=="function")return;if(Pi(r))a=r;else if(typeof r=="function")return;var s=[i,a];if(uf(s))return s}}function boe(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(uf(r))return JP(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,s,u;if(i==="auto")t!=null&&(s=Math.min(...t));else if(Je(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[0]))}catch{}else if(typeof i=="string"&&$j.test(i)){var d=$j.exec(i);if(d==null||t==null)s=void 0;else{var f=+d[1];s=t[0]-f}}else s=t?.[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(Je(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t?.[1]))}catch{}else if(typeof a=="string"&&Vj.test(a)){var m=Vj.exec(a);if(m==null||t==null)u=void 0;else{var p=+m[1];u=t[1]+p}}else u=t?.[1];var b=[s,u];if(uf(b))return t==null?b:JP(b,t,n)}}}var Tf=1e9,_oe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kS,vn=!0,Ji="[DecimalError] ",Eu=Ji+"Invalid argument: ",DS=Ji+"Exponent out of range: ",Of=Math.floor,hu=Math.pow,xoe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xi,sr=1e7,ln=7,Sk=9007199254740991,mv=Of(Sk/ln),et={};et.absoluteValue=et.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};et.comparedTo=et.cmp=function(e){var t,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};et.decimalPlaces=et.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ln;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};et.dividedBy=et.div=function(e){return Bo(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,n=t.constructor;return Xt(Bo(t,new n(e),0,1),n.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return $n(this)};et.greaterThan=et.gt=function(e){return this.cmp(e)>0};et.greaterThanOrEqualTo=et.gte=function(e){return this.cmp(e)>=0};et.isInteger=et.isint=function(){return this.e>this.d.length-2};et.isNegative=et.isneg=function(){return this.s<0};et.isPositive=et.ispos=function(){return this.s>0};et.isZero=function(){return this.s===0};et.lessThan=et.lt=function(e){return this.cmp(e)<0};et.lessThanOrEqualTo=et.lte=function(e){return this.cmp(e)<1};et.logarithm=et.log=function(e){var t,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(Ji+"NaN");if(n.s<1)throw Error(Ji+(n.s?"NaN":"-Infinity"));return n.eq(xi)?new r(0):(vn=!1,t=Bo(jh(n,a),jh(e,a),a),vn=!0,Xt(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ak(t,e):Ck(t,(e.s=-e.s,e))};et.modulo=et.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Ji+"NaN");return n.s?(vn=!1,t=Bo(n,e,0,1).times(e),vn=!0,n.minus(t)):Xt(new r(n),i)};et.naturalExponential=et.exp=function(){return Ek(this)};et.naturalLogarithm=et.ln=function(){return jh(this)};et.negated=et.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};et.plus=et.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ck(t,e):Ak(t,(e.s=-e.s,e))};et.precision=et.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Eu+e);if(t=$n(i)+1,r=i.d.length-1,n=r*ln+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};et.squareRoot=et.sqrt=function(){var e,t,n,r,i,a,s,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(Ji+"NaN")}for(e=$n(u),vn=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Ga(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Of((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 d(t)):r=new d(i.toString()),n=d.precision,i=s=n+3;;)if(a=r,r=a.plus(Bo(u,a,s+2)).times(.5),Ga(a.d).slice(0,s)===(t=Ga(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(Xt(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;s+=4}return vn=!0,Xt(r,n)};et.times=et.mul=function(e){var t,n,r,i,a,s,u,d,f,m=this,p=m.constructor,b=m.d,_=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,d=b.length,f=_.length,d<f&&(a=b,b=_,_=a,s=d,d=f,f=s),a=[],s=d+f,r=s;r--;)a.push(0);for(r=f;--r>=0;){for(t=0,i=d+r;i>r;)u=a[i]+_[r]*b[i-r-1]+t,a[i--]=u%sr|0,t=u/sr|0;a[i]=(a[i]+t)%sr|0}for(;!a[--s];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,vn?Xt(e,p.precision):e};et.toDecimalPlaces=et.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Xa(e,0,Tf),t===void 0?t=r.rounding:Xa(t,0,8),Xt(n,e+$n(n)+1,t))};et.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ku(r,!0):(Xa(e,0,Tf),t===void 0?t=i.rounding:Xa(t,0,8),r=Xt(new i(r),e+1,t),n=ku(r,!0,e+1)),n};et.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ku(i):(Xa(e,0,Tf),t===void 0?t=a.rounding:Xa(t,0,8),r=Xt(new a(i),e+$n(i)+1,t),n=ku(r.abs(),!1,e+$n(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return Xt(new t(e),$n(e)+1,t.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(e){var t,n,r,i,a,s,u=this,d=u.constructor,f=12,m=+(e=new d(e));if(!e.s)return new d(xi);if(u=new d(u),!u.s){if(e.s<1)throw Error(Ji+"Infinity");return u}if(u.eq(xi))return u;if(r=d.precision,e.eq(xi))return Xt(u,r);if(t=e.e,n=e.d.length-1,s=t>=n,a=u.s,s){if((n=m<0?-m:m)<=Sk){for(i=new d(xi),t=Math.ceil(r/ln+4),vn=!1;n%2&&(i=i.times(u),tM(i.d,t)),n=Of(n/2),n!==0;)u=u.times(u),tM(u.d,t);return vn=!0,e.s<0?new d(xi).div(i):Xt(i,r)}}else if(a<0)throw Error(Ji+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,vn=!1,i=e.times(jh(u,r+f)),vn=!0,i=Ek(i),i.s=a,i};et.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=$n(i),r=ku(i,n<=a.toExpNeg||n>=a.toExpPos)):(Xa(e,1,Tf),t===void 0?t=a.rounding:Xa(t,0,8),i=Xt(new a(i),e,t),n=$n(i),r=ku(i,e<=n||n<=a.toExpNeg,e)),r};et.toSignificantDigits=et.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Xa(e,1,Tf),t===void 0?t=r.rounding:Xa(t,0,8)),Xt(new r(n),e,t)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$n(e),n=e.constructor;return ku(e,t<=n.toExpNeg||t>=n.toExpPos)};function Ck(e,t){var n,r,i,a,s,u,d,f,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),vn?Xt(t,p):t;if(d=e.d,f=t.d,s=e.e,i=t.e,d=d.slice(),a=s-i,a){for(a<0?(r=d,a=-a,u=f.length):(r=f,i=s,u=d.length),s=Math.ceil(p/ln),u=s>u?s+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=d.length,a=f.length,u-a<0&&(a=u,r=f,f=d,d=r),n=0;a;)n=(d[--a]=d[a]+f[a]+n)/sr|0,d[a]%=sr;for(n&&(d.unshift(n),++i),u=d.length;d[--u]==0;)d.pop();return t.d=d,t.e=i,vn?Xt(t,p):t}function Xa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Eu+e)}function Ga(e){var t,n,r,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)r=e[t]+"",n=ln-r.length,n&&(a+=al(n)),a+=r;s=e[t],r=s+"",n=ln-r.length,n&&(a+=al(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var Bo=function(){function e(r,i){var a,s=0,u=r.length;for(r=r.slice();u--;)a=r[u]*i+s,r[u]=a%sr|0,s=a/sr|0;return s&&r.unshift(s),r}function t(r,i,a,s){var u,d;if(a!=s)d=a>s?1:-1;else for(u=d=0;u<a;u++)if(r[u]!=i[u]){d=r[u]>i[u]?1:-1;break}return d}function n(r,i,a){for(var s=0;a--;)r[a]-=s,s=r[a]<i[a]?1:0,r[a]=s*sr+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,s){var u,d,f,m,p,b,_,w,x,A,C,j,O,N,B,V,Z,X,oe=r.constructor,ee=r.s==i.s?1:-1,J=r.d,ne=i.d;if(!r.s)return new oe(r);if(!i.s)throw Error(Ji+"Division by zero");for(d=r.e-i.e,Z=ne.length,B=J.length,_=new oe(ee),w=_.d=[],f=0;ne[f]==(J[f]||0);)++f;if(ne[f]>(J[f]||0)&&--d,a==null?j=a=oe.precision:s?j=a+($n(r)-$n(i))+1:j=a,j<0)return new oe(0);if(j=j/ln+2|0,f=0,Z==1)for(m=0,ne=ne[0],j++;(f<B||m)&&j--;f++)O=m*sr+(J[f]||0),w[f]=O/ne|0,m=O%ne|0;else{for(m=sr/(ne[0]+1)|0,m>1&&(ne=e(ne,m),J=e(J,m),Z=ne.length,B=J.length),N=Z,x=J.slice(0,Z),A=x.length;A<Z;)x[A++]=0;X=ne.slice(),X.unshift(0),V=ne[0],ne[1]>=sr/2&&++V;do m=0,u=t(ne,x,Z,A),u<0?(C=x[0],Z!=A&&(C=C*sr+(x[1]||0)),m=C/V|0,m>1?(m>=sr&&(m=sr-1),p=e(ne,m),b=p.length,A=x.length,u=t(p,x,b,A),u==1&&(m--,n(p,Z<b?X:ne,b))):(m==0&&(u=m=1),p=ne.slice()),b=p.length,b<A&&p.unshift(0),n(x,p,A),u==-1&&(A=x.length,u=t(ne,x,Z,A),u<1&&(m++,n(x,Z<A?X:ne,A))),A=x.length):u===0&&(m++,x=[0]),w[f++]=m,u&&x[0]?x[A++]=J[N]||0:(x=[J[N]],A=1);while((N++<B||x[0]!==void 0)&&j--)}return w[0]||w.shift(),_.e=d,Xt(_,s?a+$n(_)+1:a)}}();function Ek(e,t){var n,r,i,a,s,u,d=0,f=0,m=e.constructor,p=m.precision;if($n(e)>16)throw Error(DS+$n(e));if(!e.s)return new m(xi);for(vn=!1,u=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(hu(2,f))/Math.LN10*2+5|0,u+=r,n=i=a=new m(xi),m.precision=u;;){if(i=Xt(i.times(e),u),n=n.times(++d),s=a.plus(Bo(i,n,u)),Ga(s.d).slice(0,u)===Ga(a.d).slice(0,u)){for(;f--;)a=Xt(a.times(a),u);return m.precision=p,t==null?(vn=!0,Xt(a,p)):a}a=s}}function $n(e){for(var t=e.e*ln,n=e.d[0];n>=10;n/=10)t++;return t}function N_(e,t,n){if(t>e.LN10.sd())throw vn=!0,n&&(e.precision=n),Error(Ji+"LN10 precision limit exceeded");return Xt(new e(e.LN10),t)}function al(e){for(var t="";e--;)t+="0";return t}function jh(e,t){var n,r,i,a,s,u,d,f,m,p=1,b=10,_=e,w=_.d,x=_.constructor,A=x.precision;if(_.s<1)throw Error(Ji+(_.s?"NaN":"-Infinity"));if(_.eq(xi))return new x(0);if(t==null?(vn=!1,f=A):f=t,_.eq(10))return t==null&&(vn=!0),N_(x,f);if(f+=b,x.precision=f,n=Ga(w),r=n.charAt(0),a=$n(_),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)_=_.times(e),n=Ga(_.d),r=n.charAt(0),p++;a=$n(_),r>1?(_=new x("0."+n),a++):_=new x(r+"."+n.slice(1))}else return d=N_(x,f+2,A).times(a+""),_=jh(new x(r+"."+n.slice(1)),f-b).plus(d),x.precision=A,t==null?(vn=!0,Xt(_,A)):_;for(u=s=_=Bo(_.minus(xi),_.plus(xi),f),m=Xt(_.times(_),f),i=3;;){if(s=Xt(s.times(m),f),d=u.plus(Bo(s,new x(i),f)),Ga(d.d).slice(0,f)===Ga(u.d).slice(0,f))return u=u.times(2),a!==0&&(u=u.plus(N_(x,f+2,A).times(a+""))),u=Bo(u,new x(p),f),x.precision=A,t==null?(vn=!0,Xt(u,A)):u;u=d,i+=2}}function eM(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=Of(n/ln),e.d=[],r=(n+1)%ln,n<0&&(r+=ln),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=ln;r<i;)e.d.push(+t.slice(r,r+=ln));t=t.slice(r),r=ln-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),vn&&(e.e>mv||e.e<-mv))throw Error(DS+n)}else e.s=0,e.e=0,e.d=[0];return e}function Xt(e,t,n){var r,i,a,s,u,d,f,m,p=e.d;for(s=1,a=p[0];a>=10;a/=10)s++;if(r=t-s,r<0)r+=ln,i=t,f=p[m=0];else{if(m=Math.ceil((r+1)/ln),a=p.length,m>=a)return e;for(f=a=p[m],s=1;a>=10;a/=10)s++;r%=ln,i=r-ln+s}if(n!==void 0&&(a=hu(10,s-i-1),u=f/a%10|0,d=t<0||p[m+1]!==void 0||f%a,d=n<4?(u||d)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||d||n==6&&(r>0?i>0?f/hu(10,s-i):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return d?(a=$n(e),p.length=1,t=t-a-1,p[0]=hu(10,(ln-t%ln)%ln),e.e=Of(-t/ln)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,a=1,m--):(p.length=m+1,a=hu(10,ln-r),p[m]=i>0?(f/hu(10,s-i)%hu(10,i)|0)*a:0),d)for(;;)if(m==0){(p[0]+=a)==sr&&(p[0]=1,++e.e);break}else{if(p[m]+=a,p[m]!=sr)break;p[m--]=0,a=1}for(r=p.length;p[--r]===0;)p.pop();if(vn&&(e.e>mv||e.e<-mv))throw Error(DS+$n(e));return e}function Ak(e,t){var n,r,i,a,s,u,d,f,m,p,b=e.constructor,_=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),vn?Xt(t,_):t;if(d=e.d,p=t.d,r=t.e,f=e.e,d=d.slice(),s=f-r,s){for(m=s<0,m?(n=d,s=-s,u=p.length):(n=p,r=f,u=d.length),i=Math.max(Math.ceil(_/ln),u)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=d.length,u=p.length,m=i<u,m&&(u=i),i=0;i<u;i++)if(d[i]!=p[i]){m=d[i]<p[i];break}s=0}for(m&&(n=d,d=p,p=n,t.s=-t.s),u=d.length,i=p.length-u;i>0;--i)d[u++]=0;for(i=p.length;i>s;){if(d[--i]<p[i]){for(a=i;a&&d[--a]===0;)d[a]=sr-1;--d[a],d[i]+=sr}d[i]-=p[i]}for(;d[--u]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,vn?Xt(t,_):t):new b(0)}function ku(e,t,n){var r,i=$n(e),a=Ga(e.d),s=a.length;return t?(n&&(r=n-s)>0?a=a.charAt(0)+"."+a.slice(1)+al(r):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+al(-i-1)+a,n&&(r=n-s)>0&&(a+=al(r))):i>=s?(a+=al(i+1-s),n&&(r=n-i-1)>0&&(a=a+"."+al(r))):((r=i+1)<s&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(a+="."),a+=al(r))),e.s<0?"-"+a:a}function tM(e,t){if(e.length>t)return e.length=t,!0}function Tk(e){var t,n,r;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Eu+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return eM(s,a.toString())}else if(typeof a!="string")throw Error(Eu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,xoe.test(a))eM(s,a);else throw Error(Eu+a)}if(i.prototype=et,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Tk,i.config=i.set=woe,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 woe(e){if(!e||typeof e!="object")throw Error(Ji+"Object expected");var t,n,r,i=["precision",1,Tf,"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(Of(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Eu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Eu+n+": "+r);return this}var kS=Tk(_oe);xi=new kS(1);const qt=kS;var Soe=e=>e,Ok={},jk=e=>e===Ok,nM=e=>function t(){return arguments.length===0||arguments.length===1&&jk(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Pk=(e,t)=>e===1?t:nM(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r.filter(s=>s!==Ok).length;return a>=e?t(...r):Pk(e-a,nM(function(){for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];var f=r.map(m=>jk(m)?u.shift():m);return t(...f,...u)}))}),wy=e=>Pk(e.length,e),g2=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Coe=wy((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Eoe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Soe;var i=n.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce((u,d)=>d(u),a(...arguments))}},v2=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),Mk=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t&&i.every((s,u)=>{var d;return s===((d=t)===null||d===void 0?void 0:d[u])})||(t=i,n=e(...i)),n}};function Rk(e){var t;return e===0?t=1:t=Math.floor(new qt(e).abs().log(10).toNumber())+1,t}function Nk(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}wy((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});wy((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});wy((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var Lk=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},Dk=(e,t,n)=>{if(e.lte(0))return new qt(0);var r=Rk(e.toNumber()),i=new qt(10).pow(r),a=e.div(i),s=r!==1?.05:.1,u=new qt(Math.ceil(a.div(s).toNumber())).add(n).mul(s),d=u.mul(i);return t?new qt(d.toNumber()):new qt(Math.ceil(d.toNumber()))},Aoe=(e,t,n)=>{var r=new qt(1),i=new qt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new qt(10).pow(Rk(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 s=Math.floor((t-1)/2),u=Eoe(Coe(d=>i.add(new qt(d-s).mul(r)).toNumber()),g2);return u(0,t)},kk=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new qt(0),tickMin:new qt(0),tickMax:new qt(0)};var s=Dk(new qt(n).sub(t).div(r-1),i,a),u;t<=0&&n>=0?u=new qt(0):(u=new qt(t).add(n).div(2),u=u.sub(new qt(u).mod(s)));var d=Math.ceil(u.sub(t).div(s).toNumber()),f=Math.ceil(new qt(n).sub(u).div(s).toNumber()),m=d+f+1;return m>r?kk(t,n,r,i,a+1):(m<r&&(f=n>0?f+(r-m):f,d=n>0?d:d+(r-m)),{step:s,tickMin:u.sub(new qt(d).mul(s)),tickMax:u.add(new qt(f).mul(s))})};function Toe(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(r,2),[s,u]=Lk([t,n]);if(s===-1/0||u===1/0){var d=u===1/0?[s,...g2(0,r-1).map(()=>1/0)]:[...g2(0,r-1).map(()=>-1/0),u];return t>n?v2(d):d}if(s===u)return Aoe(s,r,i);var{step:f,tickMin:m,tickMax:p}=kk(s,u,a,i,0),b=Nk(m,p.add(new qt(.1).mul(f)),f);return t>n?v2(b):b}function Ooe(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=Lk([n,r]);if(a===-1/0||s===1/0)return[n,r];if(a===s)return[a];var u=Math.max(t,2),d=Dk(new qt(s).sub(a).div(u-1),i,0),f=[...Nk(new qt(a),new qt(s),d),s];return i===!1&&(f=f.map(m=>Math.round(m))),n>r?v2(f):f}var joe=Mk(Toe),Poe=Mk(Ooe),Ik=e=>e.rootProps.maxBarSize,Moe=e=>e.rootProps.barGap,Uk=e=>e.rootProps.barCategoryGap,Roe=e=>e.rootProps.barSize,Qh=e=>e.rootProps.stackOffset,IS=e=>e.options.chartName,US=e=>e.rootProps.syncId,Bk=e=>e.rootProps.syncMethod,BS=e=>e.options.eventEmitter,No={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},_i={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Sy=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Noe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:No.angleAxisId,includeHidden:!1,name:void 0,reversed:No.reversed,scale:No.scale,tick:No.tick,tickCount:void 0,ticks:void 0,type:No.type,unit:void 0},Loe={allowDataOverflow:_i.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:_i.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:_i.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:_i.scale,tick:_i.tick,tickCount:_i.tickCount,ticks:void 0,type:_i.type,unit:void 0},Doe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:No.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:No.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:No.scale,tick:No.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},koe={allowDataOverflow:_i.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:_i.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:_i.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:_i.scale,tick:_i.tick,tickCount:_i.tickCount,ticks:void 0,type:"category",unit:void 0},zS=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Doe:Noe,FS=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?koe:Loe,Cy=e=>e.polarOptions,$S=Pe([es,ts,Kn],yD),zk=Pe([Cy,$S],(e,t)=>{if(e!=null)return $r(e.innerRadius,t,0)}),Fk=Pe([Cy,$S],(e,t)=>{if(e!=null)return $r(e.outerRadius,t,t*.8)}),Ioe=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},$k=Pe([Cy],Ioe);Pe([zS,$k],Sy);var Vk=Pe([$S,zk,Fk],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});Pe([FS,Vk],Sy);var qk=Pe([Lt,Cy,zk,Fk,es,ts],(e,t,n,r,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:s,cy:u,startAngle:d,endAngle:f}=t;return{cx:$r(s,i,i/2),cy:$r(u,a,a/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:f,clockWise:!1}}}),bn=(e,t)=>t,Jh=(e,t,n)=>n;function VS(e){return e?.id}var Xn=e=>{var t=Lt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},jf=e=>e.tooltip.settings.axisId,Qn=e=>{var t=Xn(e),n=jf(e);return em(e,t,n)};function Hk(e,t,n){var{chartData:r=[]}=t,i=n?.dataKey,a=new Map;return e.forEach(s=>{var u,d=(u=s.data)!==null&&u!==void 0?u:r;if(!(d==null||d.length===0)){var f=VS(s);d.forEach((m,p)=>{var b=i==null?p:String(Zt(m,i,null)),_=Zt(m,s.dataKey,0),w;a.has(b)?w=a.get(b):w={},Object.assign(w,{[f]:_}),a.set(b,w)})}}),Array.from(a.values())}function Ey(e){return e.stackId!=null&&e.dataKey!=null}function rM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rM(Object(n),!0).forEach(function(r){Uoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uoe(e,t,n){return(t=Boe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Boe(e){var t=zoe(e,"string");return typeof t=="symbol"?t:t+""}function zoe(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)}var y2=[0,"auto"],yi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},rs=(e,t)=>{var n=e.cartesianAxis.xAxis[t];return n??yi},bi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:y2,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:fy},Rl=(e,t)=>{var n=e.cartesianAxis.yAxis[t];return n??bi},Foe={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},qS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Foe},In=(e,t,n)=>{switch(t){case"xAxis":return rs(e,n);case"yAxis":return Rl(e,n);case"zAxis":return qS(e,n);case"angleAxis":return zS(e,n);case"radiusAxis":return FS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},$oe=(e,t,n)=>{switch(t){case"xAxis":return rs(e,n);case"yAxis":return Rl(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},em=(e,t,n)=>{switch(t){case"xAxis":return rs(e,n);case"yAxis":return Rl(e,n);case"angleAxis":return zS(e,n);case"radiusAxis":return FS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Gk=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function HS(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Ay=e=>e.graphicalItems.cartesianItems,Voe=Pe([bn,Jh],HS),GS=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),tm=Pe([Ay,In,Voe],GS),Wk=Pe([tm],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Ey)),Yk=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Kk=Pe([tm],Yk),WS=e=>e.map(t=>t.data).filter(Boolean).flat(1),qoe=Pe([tm],WS),YS=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},KS=Pe([qoe,xy],YS),ZS=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:Zt(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:Zt(i,r)}))):e.map(r=>({value:r})),Ty=Pe([KS,In,tm],ZS);function Zk(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function qu(e){return e.filter(t=>ei(t)||t instanceof Date).map(Number).filter(t=>ji(t)===!1)}function Hoe(e,t,n){return!n||typeof t!="number"||ji(t)?[]:n.length?qu(n.flatMap(r=>{var i=Zt(e,r.dataKey),a,s;if(Array.isArray(i)?[a,s]=i:a=s=i,!(!Pi(a)||!Pi(s)))return[t-a,t+s]})):[]}var Goe=Pe([Wk,xy,Qn],Hk),Xk=(e,t,n)=>{var r={},i=t.reduce((a,s)=>(s.stackId==null||(a[s.stackId]==null&&(a[s.stackId]=[]),a[s.stackId].push(s)),a),r);return Object.fromEntries(Object.entries(i).map(a=>{var[s,u]=a,d=u.map(VS);return[s,{stackedData:lne(e,d,n),graphicalItems:u}]}))},b2=Pe([Goe,Wk,Qh],Xk),Qk=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var a=hne(e,r,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},Woe=Pe([b2,Ml,bn],Qk),Jk=(e,t,n,r,i)=>n.length>0?e.flatMap(a=>n.flatMap(s=>{var u,d,f=(u=r[s.id])===null||u===void 0?void 0:u.filter(p=>Zk(i,p)),m=Zt(a,(d=t.dataKey)!==null&&d!==void 0?d:s.dataKey);return{value:m,errorDomain:Hoe(a,m,f)}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:Zt(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]})),Oy=e=>e.errorBars,e8=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Zk(n,r));Pe([Kk,Oy,bn],e8);var Yoe=Pe([KS,In,Kk,Oy,bn],Jk);function Koe(e){var{value:t}=e;if(ei(t)||t instanceof Date)return t}var iM=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=qu(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},Zoe=(e,t,n)=>{var r=e.map(Koe).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&UL(r))?$D(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},XS=e=>{var t;if(e==null||!("domain"in e))return y2;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=qu(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:y2},gv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var a=i.flat(),s=Math.min(...a),u=Math.max(...a);return[s,u]}},t8=e=>e.referenceElements.dots,Pf=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Xoe=Pe([t8,bn,Jh],Pf),n8=e=>e.referenceElements.areas,Qoe=Pe([n8,bn,Jh],Pf),r8=e=>e.referenceElements.lines,Joe=Pe([r8,bn,Jh],Pf),i8=(e,t)=>{var n=qu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},ese=Pe(Xoe,bn,i8),a8=(e,t)=>{var n=qu(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},tse=Pe([Qoe,bn],a8),o8=(e,t)=>{var n=qu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},nse=Pe(Joe,bn,o8),rse=Pe(ese,nse,tse,(e,t,n)=>gv(e,n,t)),s8=Pe([In],XS),QS=(e,t,n,r,i,a,s)=>{var u=yoe(t,e.allowDataOverflow);if(u!=null)return u;var d=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",f=d?gv(n,i,iM(r)):gv(i,iM(r));return boe(t,f,e.allowDataOverflow)},ise=Pe([In,s8,Woe,Yoe,rse,Lt,bn],QS),ase=[0,1],JS=(e,t,n,r,i,a,s)=>{if(!((e==null||n==null||n.length===0)&&s===void 0)){var{dataKey:u,type:d}=e,f=Ol(t,a);return f&&u==null?$D(0,n.length):d==="category"?Zoe(r,e,f):i==="expand"?ase:s}},eC=Pe([In,Lt,KS,Ty,Qh,bn,ise],JS),l8=(e,t,n,r,i)=>{if(e!=null){var{scale:a,type:s}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":s==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":s==="category"?"band":"linear";if(typeof a=="string"){var u="scale".concat(Gh(a));return u in nh?u:"point"}}},Mf=Pe([In,Lt,Gk,IS,bn],l8);function ose(e){if(e!=null){if(e in nh)return nh[e]();var t="scale".concat(Gh(e));if(t in nh)return nh[t]()}}function tC(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=ose(t);if(i!=null){var a=i.domain(n).range(r);return rne(a),a}}}var nC=(e,t,n)=>{var r=XS(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&uf(e))return joe(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&uf(e))return Poe(e,t.tickCount,t.allowDecimals)}},rC=Pe([eC,em,Mf],nC),iC=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&uf(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0],s=t[1],u=n[n.length-1];return[Math.min(i,a),Math.max(s,u)]}return t},sse=Pe([In,eC,rC,bn],iC),lse=Pe(Ty,In,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(qu(e.map(u=>u.value))).sort((u,d)=>u-d);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var a=0;a<r.length-1;a++){var s=r[a+1]-r[a];n=Math.min(n,s)}return n/i}}),u8=Pe(lse,Lt,Uk,Kn,(e,t,n,r)=>r,(e,t,n,r,i)=>{if(!Pi(e))return 0;var a=t==="vertical"?r.height:r.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var s=$r(n,e*a),u=e*a/2;return u-s-(u-s)/a*s}return 0}),use=(e,t)=>{var n=rs(e,t);return n==null||typeof n.padding!="string"?0:u8(e,"xAxis",t,n.padding)},cse=(e,t)=>{var n=Rl(e,t);return n==null||typeof n.padding!="string"?0:u8(e,"yAxis",t,n.padding)},fse=Pe(rs,use,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),dse=Pe(Rl,cse,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),hse=Pe([Kn,fse,hy,dy,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),mse=Pe([Kn,Lt,dse,hy,dy,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:s}=i;return a?[r.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),nm=(e,t,n,r)=>{var i;switch(t){case"xAxis":return hse(e,n,r);case"yAxis":return mse(e,n,r);case"zAxis":return(i=qS(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return $k(e);case"radiusAxis":return Vk(e,n);default:return}},c8=Pe([In,nm],Sy),xl=Pe([In,Mf,sse,c8],tC);Pe([tm,Oy,bn],e8);function f8(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var jy=(e,t)=>t,Py=(e,t,n)=>n,pse=Pe(aS,jy,Py,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(f8)),gse=Pe(oS,jy,Py,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(f8)),d8=(e,t)=>({width:e.width,height:t.height}),vse=(e,t)=>{var n=typeof t.width=="number"?t.width:fy;return{width:n,height:e.height}},h8=Pe(Kn,rs,d8),yse=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},bse=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},_se=Pe(ts,Kn,pse,jy,Py,(e,t,n,r,i)=>{var a={},s;return n.forEach(u=>{var d=d8(t,u);s==null&&(s=yse(t,r,e));var f=r==="top"&&!i||r==="bottom"&&i;a[u.id]=s-Number(f)*d.height,s+=(f?-1:1)*d.height}),a}),xse=Pe(es,Kn,gse,jy,Py,(e,t,n,r,i)=>{var a={},s;return n.forEach(u=>{var d=vse(t,u);s==null&&(s=bse(t,r,e));var f=r==="left"&&!i||r==="right"&&i;a[u.id]=s-Number(f)*d.width,s+=(f?-1:1)*d.width}),a}),wse=(e,t)=>{var n=Kn(e),r=rs(e,t);if(r!=null){var i=_se(e,r.orientation,r.mirror),a=i[t];return a==null?{x:n.left,y:0}:{x:n.left,y:a}}},Sse=(e,t)=>{var n=Kn(e),r=Rl(e,t);if(r!=null){var i=xse(e,r.orientation,r.mirror),a=i[t];return a==null?{x:0,y:n.top}:{x:a,y:n.top}}},m8=Pe(Kn,Rl,(e,t)=>{var n=typeof t.width=="number"?t.width:fy;return{width:n,height:e.height}}),aM=(e,t,n)=>{switch(t){case"xAxis":return h8(e,n).width;case"yAxis":return m8(e,n).height;default:return}},p8=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:s}=n,u=Ol(e,r),d=t.map(f=>f.value);if(s&&u&&a==="category"&&i&&UL(d))return d}},aC=Pe([Lt,Ty,In,bn],p8),g8=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n,s=Ol(e,r);if(s&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},oC=Pe([Lt,Ty,em,bn],g8),oM=Pe([Lt,$oe,Mf,xl,aC,oC,nm,rC,bn],(e,t,n,r,i,a,s,u,d)=>{if(t==null)return null;var f=Ol(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:a,duplicateDomain:i,isCategorical:f,niceTicks:u,range:s,realScaleType:n,scale:r}}),Cse=(e,t,n,r,i,a,s,u,d)=>{if(!(t==null||r==null)){var f=Ol(e,d),{type:m,ticks:p,tickCount:b}=t,_=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,w=m==="category"&&r.bandwidth?r.bandwidth()/_:0;w=d==="angleAxis"&&a!=null&&a.length>=2?lr(a[0]-a[1])*2*w:w;var x=p||i;if(x){var A=x.map((C,j)=>{var O=s?s.indexOf(C):C;return{index:j,coordinate:r(O)+w,value:C,offset:w}});return A.filter(C=>!ji(C.coordinate))}return f&&u?u.map((C,j)=>({coordinate:r(C)+w,value:C,index:j,offset:w})):r.ticks?r.ticks(b).map(C=>({coordinate:r(C)+w,value:C,offset:w})):r.domain().map((C,j)=>({coordinate:r(C)+w,value:s?s[C]:C,index:j,offset:w}))}},v8=Pe([Lt,em,Mf,xl,rC,nm,aC,oC,bn],Cse),Ese=(e,t,n,r,i,a,s)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=Ol(e,s),{tickCount:d}=t,f=0;return f=s==="angleAxis"&&r?.length>=2?lr(r[0]-r[1])*2*f:f,u&&a?a.map((m,p)=>({coordinate:n(m)+f,value:m,index:p,offset:f})):n.ticks?n.ticks(d).map(m=>({coordinate:n(m)+f,value:m,offset:f})):n.domain().map((m,p)=>({coordinate:n(m)+f,value:i?i[m]:m,index:p,offset:f}))}},wl=Pe([Lt,em,xl,nm,aC,oC,bn],Ese),Sl=Pe(In,xl,(e,t)=>{if(!(e==null||t==null))return pv(pv({},e),{},{scale:t})}),Ase=Pe([In,Mf,eC,c8],tC);Pe((e,t,n)=>qS(e,n),Ase,(e,t)=>{if(!(e==null||t==null))return pv(pv({},e),{},{scale:t})});var Tse=Pe([Lt,aS,oS],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),y8=e=>e.options.defaultTooltipEventType,b8=e=>e.options.validateTooltipEventTypes;function _8(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function sC(e,t){var n=y8(e),r=b8(e);return _8(t,n,r)}function Ose(e){return it(t=>sC(t,e))}var x8=(e,t)=>{var n,r=Number(t);if(!(ji(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},jse=e=>e.tooltip.settings,ol={active:!1,index:null,dataKey:void 0,coordinate:void 0},Pse={itemInteraction:{click:ol,hover:ol},axisInteraction:{click:ol,hover:ol},keyboardInteraction:ol,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},w8=Nt({name:"tooltip",initialState:Pse,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=Uo(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:Mse,removeTooltipEntrySettings:Rse,setTooltipSettingsState:Nse,setActiveMouseOverItemIndex:S8,mouseLeaveItem:Lse,mouseLeaveChart:C8,setActiveClickItemIndex:Dse,setMouseOverAxisIndex:E8,setMouseClickAxisIndex:kse,setSyncInteraction:_2,setKeyboardInteraction:x2}=w8.actions,Ise=w8.reducer;function sM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(r){Use(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Use(e,t,n){return(t=Bse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bse(e){var t=zse(e,"string");return typeof t=="symbol"?t:t+""}function zse(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 Fse(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function $se(e){return e.index!=null}var A8=(e,t,n,r)=>{if(t==null)return ol;var i=Fse(e,t,n);if(i==null)return ol;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if($se(i)){if(a)return Zp(Zp({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return Zp(Zp({},ol),{},{coordinate:i.coordinate})},lC=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!Pi(r))return n;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(r,a)))},T8=(e,t,n,r,i,a,s,u)=>{if(!(a==null||u==null)){var d=s[0],f=d==null?void 0:u(d.positions,a);if(f!=null)return f;var m=i?.[Number(a)];if(m)switch(n){case"horizontal":return{x:m.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:m.coordinate}}}},O8=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.dataKey)===i})},rm=e=>e.options.tooltipPayloadSearcher,Rf=e=>e.tooltip;function lM(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 uM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lM(Object(n),!0).forEach(function(r){Vse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vse(e,t,n){return(t=qse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qse(e){var t=Hse(e,"string");return typeof t=="symbol"?t:t+""}function Hse(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 Gse(e,t){return e??t}var j8=(e,t,n,r,i,a,s)=>{if(!(t==null||a==null)){var{chartData:u,computedData:d,dataStartIndex:f,dataEndIndex:m}=n,p=[];return e.reduce((b,_)=>{var w,{dataDefinedOnItem:x,settings:A}=_,C=Gse(x,u),j=Array.isArray(C)?bD(C,f,m):C,O=(w=A?.dataKey)!==null&&w!==void 0?w:r?.dataKey,N=A?.nameKey,B;if(r!=null&&r.dataKey&&Array.isArray(j)&&!Array.isArray(j[0])&&s==="axis"?B=BL(j,r.dataKey,i):B=a(j,t,d,N),Array.isArray(B))B.forEach(Z=>{var X=uM(uM({},A),{},{name:Z.name,unit:Z.unit,color:void 0,fill:void 0});b.push(qj({tooltipEntrySettings:X,dataKey:Z.dataKey,payload:Z.payload,value:Zt(Z.payload,Z.dataKey),name:Z.name}))});else{var V;b.push(qj({tooltipEntrySettings:A,dataKey:O,payload:B,value:Zt(B,O),name:(V=Zt(B,N))!==null&&V!==void 0?V:A?.name}))}return b},p)}},uC=Pe([Qn,Lt,Gk,IS,Xn],l8),Wse=Pe([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Yse=Pe([Xn,jf],HS),im=Pe([Wse,Qn,Yse],GS),Kse=Pe([im],e=>e.filter(Ey)),Zse=Pe([im],WS),Nf=Pe([Zse,Ml],YS),Xse=Pe([Kse,Ml,Qn],Hk),cC=Pe([Nf,Qn,im],ZS),Qse=Pe([Qn],XS),Jse=Pe([im],e=>e.filter(Ey)),ele=Pe([Xse,Jse,Qh],Xk),tle=Pe([ele,Ml,Xn],Qk),nle=Pe([im],Yk),rle=Pe([Nf,Qn,nle,Oy,Xn],Jk),ile=Pe([t8,Xn,jf],Pf),ale=Pe([ile,Xn],i8),ole=Pe([n8,Xn,jf],Pf),sle=Pe([ole,Xn],a8),lle=Pe([r8,Xn,jf],Pf),ule=Pe([lle,Xn],o8),cle=Pe([ale,ule,sle],gv),fle=Pe([Qn,Qse,tle,rle,cle,Lt,Xn],QS),P8=Pe([Qn,Lt,Nf,cC,Qh,Xn,fle],JS),dle=Pe([P8,Qn,uC],nC),hle=Pe([Qn,P8,dle,Xn],iC),M8=e=>{var t=Xn(e),n=jf(e),r=!1;return nm(e,t,n,r)},R8=Pe([Qn,M8],Sy),N8=Pe([Qn,uC,hle,R8],tC),mle=Pe([Lt,cC,Qn,Xn],p8),ple=Pe([Lt,cC,Qn,Xn],g8),gle=(e,t,n,r,i,a,s,u)=>{if(t){var{type:d}=t,f=Ol(e,u);if(r){var m=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=d==="category"&&r.bandwidth?r.bandwidth()/m:0;return p=u==="angleAxis"&&i!=null&&i?.length>=2?lr(i[0]-i[1])*2*p:p,f&&s?s.map((b,_)=>({coordinate:r(b)+p,value:b,index:_,offset:p})):r.domain().map((b,_)=>({coordinate:r(b)+p,value:a?a[b]:b,index:_,offset:p}))}}},is=Pe([Lt,Qn,uC,N8,M8,mle,ple,Xn],gle),fC=Pe([y8,b8,jse],(e,t,n)=>_8(n.shared,e,t)),L8=e=>e.tooltip.settings.trigger,dC=e=>e.tooltip.settings.defaultIndex,My=Pe([Rf,fC,L8,dC],A8),Cl=Pe([My,Nf],lC),D8=Pe([is,Cl],x8),k8=Pe([My],e=>{if(e)return e.dataKey}),I8=Pe([Rf,fC,L8,dC],O8),vle=Pe([es,ts,Lt,Kn,is,dC,I8,rm],T8),yle=Pe([My,vle],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),ble=Pe([My],e=>e.active),_le=Pe([I8,Cl,Ml,Qn,D8,rm,fC],j8),xle=Pe([_le],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function cM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(r){wle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wle(e,t,n){return(t=Sle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sle(e){var t=Cle(e,"string");return typeof t=="symbol"?t:t+""}function Cle(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)}var Ele=()=>it(Qn),Ale=()=>{var e=Ele(),t=it(is),n=it(N8);return Sh(fM(fM({},e),{},{scale:n}),t)},Tle=()=>it(IS),hC=(e,t)=>t,U8=(e,t,n)=>n,mC=(e,t,n,r)=>r,Ole=Pe(is,e=>cy(e,t=>t.coordinate)),pC=Pe([Rf,hC,U8,mC],A8),B8=Pe([pC,Nf],lC),jle=(e,t,n)=>{if(t!=null){var r=Rf(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},z8=Pe([Rf,hC,U8,mC],O8),vv=Pe([es,ts,Lt,Kn,is,mC,z8,rm],T8),Ple=Pe([pC,vv],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),F8=Pe(is,B8,x8),Mle=Pe([z8,B8,Ml,Qn,F8,rm,hC],j8),Rle=Pe([pC],e=>({isActive:e.active,activeIndex:e.index})),Nle=(e,t,n,r,i,a,s,u)=>{if(!(!e||!t||!r||!i||!a)){var d=mne(e.chartX,e.chartY,t,n,u);if(d){var f=gne(d,t),m=tne(f,s,a,r,i),p=pne(t,a,m,d);return{activeIndex:String(m),activeCoordinate:p}}}};function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w2.apply(null,arguments)}function dM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dM(Object(n),!0).forEach(function(r){Lle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lle(e,t,n){return(t=Dle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dle(e){var t=kle(e,"string");return typeof t=="symbol"?t:t+""}function kle(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 Ile(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:a,layout:s,cursor:u,tooltipEventType:d,chartName:f}=e,m=t,p=n,b=r;if(!u||!m||f!=="ScatterChart"&&d!=="axis")return null;var _,w;if(f==="ScatterChart")_=m,w=Jne;else if(f==="BarChart")_=ere(s,m,i,a),w=cS;else if(s==="radial"){var{cx:x,cy:A,radius:C,startAngle:j,endAngle:O}=BD(m);_={cx:x,cy:A,startAngle:j,endAngle:O,innerRadius:C,outerRadius:C},w=FD}else _={points:Ure(s,m,i)},w=lS;var N=typeof u=="object"&&"className"in u?u.className:void 0,B=Xp(Xp(Xp(Xp({stroke:"#ccc",pointerEvents:"none"},i),_),fn(u,!1)),{},{payload:p,payloadIndex:b,className:Ne("recharts-tooltip-cursor",N)});return T.isValidElement(u)?T.cloneElement(u,B):T.createElement(w,B)}function Ule(e){var t=Ale(),n=AD(),r=my(),i=Tle();return T.createElement(Ile,w2({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var $8=T.createContext(null),Ble=()=>T.useContext($8),L_={exports:{}},hM;function zle(){return hM||(hM=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(d,f,m){this.fn=d,this.context=f,this.once=m||!1}function a(d,f,m,p,b){if(typeof m!="function")throw new TypeError("The listener must be a function");var _=new i(m,p||d,b),w=n?n+f:f;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],_]:d._events[w].push(_):(d._events[w]=_,d._eventsCount++),d}function s(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],m,p;if(this._eventsCount===0)return f;for(p in m=this._events)t.call(m,p)&&f.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},u.prototype.listeners=function(f){var m=n?n+f:f,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var b=0,_=p.length,w=new Array(_);b<_;b++)w[b]=p[b].fn;return w},u.prototype.listenerCount=function(f){var m=n?n+f:f,p=this._events[m];return p?p.fn?1:p.length:0},u.prototype.emit=function(f,m,p,b,_,w){var x=n?n+f:f;if(!this._events[x])return!1;var A=this._events[x],C=arguments.length,j,O;if(A.fn){switch(A.once&&this.removeListener(f,A.fn,void 0,!0),C){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,m),!0;case 3:return A.fn.call(A.context,m,p),!0;case 4:return A.fn.call(A.context,m,p,b),!0;case 5:return A.fn.call(A.context,m,p,b,_),!0;case 6:return A.fn.call(A.context,m,p,b,_,w),!0}for(O=1,j=new Array(C-1);O<C;O++)j[O-1]=arguments[O];A.fn.apply(A.context,j)}else{var N=A.length,B;for(O=0;O<N;O++)switch(A[O].once&&this.removeListener(f,A[O].fn,void 0,!0),C){case 1:A[O].fn.call(A[O].context);break;case 2:A[O].fn.call(A[O].context,m);break;case 3:A[O].fn.call(A[O].context,m,p);break;case 4:A[O].fn.call(A[O].context,m,p,b);break;default:if(!j)for(B=1,j=new Array(C-1);B<C;B++)j[B-1]=arguments[B];A[O].fn.apply(A[O].context,j)}}return!0},u.prototype.on=function(f,m,p){return a(this,f,m,p,!1)},u.prototype.once=function(f,m,p){return a(this,f,m,p,!0)},u.prototype.removeListener=function(f,m,p,b){var _=n?n+f:f;if(!this._events[_])return this;if(!m)return s(this,_),this;var w=this._events[_];if(w.fn)w.fn===m&&(!b||w.once)&&(!p||w.context===p)&&s(this,_);else{for(var x=0,A=[],C=w.length;x<C;x++)(w[x].fn!==m||b&&!w[x].once||p&&w[x].context!==p)&&A.push(w[x]);A.length?this._events[_]=A.length===1?A[0]:A:s(this,_)}return this},u.prototype.removeAllListeners=function(f){var m;return f?(m=n?n+f:f,this._events[m]&&s(this,m)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u}(L_)),L_.exports}var Fle=zle();const $le=ri(Fle);var Ph=new $le,S2="recharts.syncEvent.tooltip",mM="recharts.syncEvent.brush";function gC(e,t){if(t){var n=Number.parseInt(t,10);if(!ji(n))return e?.[n]}}var Vle={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},V8=Nt({name:"options",initialState:Vle,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),qle=V8.reducer,{createEventEmitter:Hle}=V8.actions;function Gle(e){return e.tooltip.syncInteraction}var Wle={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},q8=Nt({name:"chartData",initialState:Wle,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:pM,setDataStartEndIndexes:Yle,setComputedData:V_e}=q8.actions,Kle=q8.reducer,H8=()=>{};function Zle(){var e=it(US),t=it(BS),n=jn(),r=it(Bk),i=it(is),a=my(),s=sS(),u=it(d=>d.rootProps.className);T.useEffect(()=>{if(e==null)return H8;var d=(f,m,p)=>{if(t!==p&&e===f){if(r==="index"){n(m);return}if(i!=null){var b;if(typeof r=="function"){var _={activeTooltipIndex:m.payload.index==null?void 0:Number(m.payload.index),isTooltipActive:m.payload.active,activeIndex:m.payload.index==null?void 0:Number(m.payload.index),activeLabel:m.payload.label,activeDataKey:m.payload.dataKey,activeCoordinate:m.payload.coordinate},w=r(i,_);b=i[w]}else r==="value"&&(b=i.find(V=>String(V.value)===m.payload.label));var{coordinate:x}=m.payload;if(b==null||m.payload.active===!1||x==null||s==null){n(_2({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:A,y:C}=x,j=Math.min(A,s.x+s.width),O=Math.min(C,s.y+s.height),N={x:a==="horizontal"?b.coordinate:j,y:a==="horizontal"?O:b.coordinate},B=_2({active:m.payload.active,coordinate:N,dataKey:m.payload.dataKey,index:String(b.index),label:m.payload.label});n(B)}}};return Ph.on(S2,d),()=>{Ph.off(S2,d)}},[u,n,t,e,r,i,a,s])}function Xle(){var e=it(US),t=it(BS),n=jn();T.useEffect(()=>{if(e==null)return H8;var r=(i,a,s)=>{t!==s&&e===i&&n(Yle(a))};return Ph.on(mM,r),()=>{Ph.off(mM,r)}},[n,t,e])}function Qle(){var e=jn();T.useEffect(()=>{e(Hle())},[e]),Zle(),Xle()}function Jle(e,t,n,r,i,a){var s=it(b=>jle(b,e,t)),u=it(BS),d=it(US),f=it(Bk),m=it(Gle),p=m?.active;T.useEffect(()=>{if(!p&&d!=null&&u!=null){var b=_2({active:a,coordinate:n,dataKey:s,index:i,label:typeof r=="number"?String(r):r});Ph.emit(S2,d,b,u)}},[p,n,s,i,r,u,d,f,a])}function gM(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 vM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gM(Object(n),!0).forEach(function(r){eue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eue(e,t,n){return(t=tue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tue(e){var t=nue(e,"string");return typeof t=="symbol"?t:t+""}function nue(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 rue(e){return e.dataKey}function iue(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(Mne,t)}var yM=[],aue={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Fu.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function vC(e){var t=Ni(e,aue),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:a,content:s,filterNull:u,isAnimationActive:d,offset:f,payloadUniqBy:m,position:p,reverseDirection:b,useTranslate3d:_,wrapperStyle:w,cursor:x,shared:A,trigger:C,defaultIndex:j,portal:O,axisId:N}=t,B=jn(),V=typeof j=="number"?String(j):j;T.useEffect(()=>{B(Nse({shared:A,trigger:C,axisId:N,active:n,defaultIndex:V}))},[B,A,C,N,n,V]);var Z=sS(),X=RD(),oe=Ose(A),{activeIndex:ee,isActive:J}=it(ue=>Rle(ue,oe,C,V)),ne=it(ue=>Mle(ue,oe,C,V)),he=it(ue=>F8(ue,oe,C,V)),Q=it(ue=>Ple(ue,oe,C,V)),se=ne,Y=Ble(),U=n??J,[I,z]=kte([se,U]),M=oe==="axis"?he:void 0;Jle(oe,C,Q,M,ee,U);var D=O??Y;if(D==null)return null;var W=se??yM;U||(W=yM),u&&W.length&&(W=yte(se.filter(ue=>ue.value!=null&&(ue.hide!==!0||t.includeHidden)),m,rue));var H=W.length>0,re=T.createElement(Une,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:d,active:U,coordinate:Q,hasPayload:H,offset:f,position:p,reverseDirection:b,useTranslate3d:_,viewBox:Z,wrapperStyle:w,lastBoundingBox:I,innerRef:z,hasPortalFromProps:!!O},iue(s,vM(vM({},t),{},{payload:W,label:M,active:U,coordinate:Q,accessibilityLayer:X})));return T.createElement(T.Fragment,null,Dh.createPortal(re,D),U&&T.createElement(Ule,{cursor:x,tooltipEventType:oe,coordinate:Q,payload:se,index:ee}))}var D_={},k_={},I_={},bM;function oue(){return bM||(bM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:a}={}){let s,u=null;const d=a!=null&&a.includes("leading"),f=a==null||a.includes("trailing"),m=()=>{u!==null&&(n.apply(s,u),s=void 0,u=null)},p=()=>{f&&m(),x()};let b=null;const _=()=>{b!=null&&clearTimeout(b),b=setTimeout(()=>{b=null,p()},r)},w=()=>{b!==null&&(clearTimeout(b),b=null)},x=()=>{w(),s=void 0,u=null},A=()=>{m()},C=function(...j){if(i?.aborted)return;s=this,u=j;const O=b==null;_(),d&&O&&m()};return C.schedule=_,C.cancel=x,C.flush=A,i?.addEventListener("abort",x,{once:!0}),C}e.debounce=t}(I_)),I_}var _M;function sue(){return _M||(_M=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oue();function n(r,i=0,a={}){typeof a!="object"&&(a={});const{leading:s=!1,trailing:u=!0,maxWait:d}=a,f=Array(2);s&&(f[0]="leading"),u&&(f[1]="trailing");let m,p=null;const b=t.debounce(function(...x){m=r.apply(this,x),p=null},i,{edges:f}),_=function(...x){return d!=null&&(p===null&&(p=Date.now()),Date.now()-p>=d)?(m=r.apply(this,x),p=Date.now(),b.cancel(),b.schedule(),m):(b.apply(this,x),m)},w=()=>(b.flush(),m);return _.cancel=b.cancel,_.flush=w,_}e.debounce=n}(k_)),k_}var xM;function lue(){return xM||(xM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sue();function n(r,i=0,a={}){const{leading:s=!0,trailing:u=!0}=a;return t.debounce(r,i,{leading:s,maxWait:i,trailing:u})}e.throttle=n}(D_)),D_}var U_,wM;function uue(){return wM||(wM=1,U_=lue().throttle),U_}var cue=uue();const fue=ri(cue);var uh=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]};function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SM(Object(n),!0).forEach(function(r){due(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function due(e,t,n){return(t=hue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hue(e){var t=mue(e,"string");return typeof t=="symbol"?t:t+""}function mue(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)}var pue=T.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:s=0,minHeight:u,maxHeight:d,children:f,debounce:m=0,id:p,className:b,onResize:_,style:w={}}=e,x=T.useRef(null),A=T.useRef();A.current=_,T.useImperativeHandle(t,()=>x.current);var[C,j]=T.useState({containerWidth:r.width,containerHeight:r.height}),O=T.useCallback((B,V)=>{j(Z=>{var X=Math.round(B),oe=Math.round(V);return Z.containerWidth===X&&Z.containerHeight===oe?Z:{containerWidth:X,containerHeight:oe}})},[]);T.useEffect(()=>{var B=oe=>{var ee,{width:J,height:ne}=oe[0].contentRect;O(J,ne),(ee=A.current)===null||ee===void 0||ee.call(A,J,ne)};m>0&&(B=fue(B,m,{trailing:!0,leading:!1}));var V=new ResizeObserver(B),{width:Z,height:X}=x.current.getBoundingClientRect();return O(Z,X),V.observe(x.current),()=>{V.disconnect()}},[O,m]);var N=T.useMemo(()=>{var{containerWidth:B,containerHeight:V}=C;if(B<0||V<0)return null;uh(vu(i)||vu(a),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,i,a),uh(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Z=vu(i)?B:i,X=vu(a)?V:a;return n&&n>0&&(Z?X=Z/n:X&&(Z=X*n),d&&X>d&&(X=d)),uh(Z>0||X>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.`,Z,X,i,a,s,u,n),T.Children.map(f,oe=>T.cloneElement(oe,{width:Z,height:X,style:B_({width:Z,height:X},oe.props.style)}))},[n,f,a,d,u,s,C,i]);return T.createElement("div",{id:p?"".concat(p):void 0,className:Ne("recharts-responsive-container",b),style:B_(B_({},w),{},{width:i,height:a,minWidth:s,minHeight:u,maxHeight:d}),ref:x},T.createElement("div",{style:{width:0,height:0,overflow:"visible"}},N))}),cl=e=>null;cl.displayName="Cell";function gue(e,t,n){return(t=vue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vue(e){var t=yue(e,"string");return typeof t=="symbol"?t:t+""}function yue(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)}class bue{constructor(t){gue(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function CM(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 _ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){xue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xue(e,t,n){return(t=wue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wue(e){var t=Sue(e,"string");return typeof t=="symbol"?t:t+""}function Sue(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)}var Cue={cacheSize:2e3,enableCache:!0},G8=_ue({},Cue),EM=new bue(G8.cacheSize),Eue={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},AM="recharts_measurement_span";function Aue(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",s=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(a,"|").concat(s,"|").concat(u)}var TM=(e,t)=>{try{var n=document.getElementById(AM);n||(n=document.createElement("span"),n.setAttribute("id",AM),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Eue,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},ch=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Fu.isSsr)return{width:0,height:0};if(!G8.enableCache)return TM(t,n);var r=Aue(t,n),i=EM.get(r);if(i)return i;var a=TM(t,n);return EM.set(r,a),a},OM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Tue=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Oue=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,W8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},jue=Object.keys(W8),$c="NaN";function Pue(e,t){return e*W8[t]}class Xr{static parse(t){var n,[,r,i]=(n=Oue.exec(t))!==null&&n!==void 0?n:[];return new Xr(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,ji(t)&&(this.unit=""),n!==""&&!Tue.test(n)&&(this.num=NaN,this.unit=""),jue.includes(n)&&(this.num=Pue(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Xr(NaN,""):new Xr(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Xr(NaN,""):new Xr(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Xr(NaN,""):new Xr(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Xr(NaN,""):new Xr(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return ji(this.num)}}function Y8(e){if(e.includes($c))return $c;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,a]=(n=OM.exec(t))!==null&&n!==void 0?n:[],s=Xr.parse(r??""),u=Xr.parse(a??""),d=i==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return $c;t=t.replace(OM,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,m,p,b]=(f=jM.exec(t))!==null&&f!==void 0?f:[],_=Xr.parse(m??""),w=Xr.parse(b??""),x=p==="+"?_.add(w):_.subtract(w);if(x.isNaN())return $c;t=t.replace(jM,x.toString())}return t}var PM=/\(([^()]*)\)/;function Mue(e){for(var t=e,n;(n=PM.exec(t))!=null;){var[,r]=n;t=t.replace(PM,Y8(r))}return t}function Rue(e){var t=e.replace(/\s+/g,"");return t=Mue(t),t=Y8(t),t}function Nue(e){try{return Rue(e)}catch{return $c}}function z_(e){var t=Nue(e.slice(5,-1));return t===$c?"":t}var Lue=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Due=["dx","dy","angle","className","breakAll"];function C2(){return C2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C2.apply(null,arguments)}function MM(e,t){if(e==null)return{};var n,r,i=kue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var K8=/[ \f\n\r\t\v\u2028\u2029]+/,Z8=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];hn(t)||(n?i=t.toString().split(""):i=t.toString().split(K8));var a=i.map(u=>({word:u,width:ch(u,r).width})),s=n?0:ch(" ",r).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},Iue=(e,t,n,r,i)=>{var{maxLines:a,children:s,style:u,breakAll:d}=e,f=Je(a),m=s,p=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce((ne,he)=>{var{word:Q,width:se}=he,Y=ne[ne.length-1];if(Y&&(r==null||i||Y.width+se+n<Number(r)))Y.words.push(Q),Y.width+=se+n;else{var U={words:[Q],width:se};ne.push(U)}return ne},[])},b=p(t),_=ee=>ee.reduce((J,ne)=>J.width>ne.width?J:ne);if(!f||i)return b;var w=b.length>a||_(b).width>Number(r);if(!w)return b;for(var x="…",A=ee=>{var J=m.slice(0,ee),ne=Z8({breakAll:d,style:u,children:J+x}).wordsWithComputedWidth,he=p(ne),Q=he.length>a||_(he).width>Number(r);return[Q,he]},C=0,j=m.length-1,O=0,N;C<=j&&O<=m.length-1;){var B=Math.floor((C+j)/2),V=B-1,[Z,X]=A(V),[oe]=A(B);if(!Z&&!oe&&(C=B+1),Z&&oe&&(j=B-1),!Z&&oe){N=X;break}O++}return N||b},RM=e=>{var t=hn(e)?[]:e.toString().split(K8);return[{words:t}]},Uue=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:s}=e;if((t||n)&&!Fu.isSsr){var u,d,f=Z8({breakAll:a,children:r,style:i});if(f){var{wordsWithComputedWidth:m,spaceWidth:p}=f;u=m,d=p}else return RM(r);return Iue({breakAll:a,children:r,maxLines:s,style:i},u,d,t,n)}return RM(r)},NM="#808080",Ry=T.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:s=!1,textAnchor:u="start",verticalAnchor:d="end",fill:f=NM}=e,m=MM(e,Lue),p=T.useMemo(()=>Uue({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),{dx:b,dy:_,angle:w,className:x,breakAll:A}=m,C=MM(m,Due);if(!ei(n)||!ei(r))return null;var j=n+(Je(b)?b:0),O=r+(Je(_)?_:0),N;switch(d){case"start":N=z_("calc(".concat(a,")"));break;case"middle":N=z_("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:N=z_("calc(".concat(p.length-1," * -").concat(i,")"));break}var B=[];if(s){var V=p[0].width,{width:Z}=m;B.push("scale(".concat(Je(Z)?Z/V:1,")"))}return w&&B.push("rotate(".concat(w,", ").concat(j,", ").concat(O,")")),B.length&&(C.transform=B.join(" ")),T.createElement("text",C2({},fn(C,!0),{ref:t,x:j,y:O,className:Ne("recharts-text",x),textAnchor:u,fill:f.includes("url")?NM:f}),p.map((X,oe)=>{var ee=X.words.join(A?"":" ");return T.createElement("tspan",{x:j,dy:oe===0?N:i,key:"".concat(ee,"-").concat(oe)},ee)}))});Ry.displayName="Text";var Bue=["offset"],zue=["labelRef"];function LM(e,t){if(e==null)return{};var n,r,i=Fue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DM(Object(n),!0).forEach(function(r){$ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ue(e,t,n){return(t=Vue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vue(e){var t=que(e,"string");return typeof t=="symbol"?t:t+""}function que(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 Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(null,arguments)}var Hue=e=>{var{value:t,formatter:n}=e,r=hn(e.children)?t:e.children;return typeof n=="function"?n(r):r},yC=e=>e!=null&&typeof e=="function",Gue=(e,t)=>{var n=lr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Wue=(e,t,n,r)=>{var{position:i,offset:a,className:s}=e,{cx:u,cy:d,innerRadius:f,outerRadius:m,startAngle:p,endAngle:b,clockWise:_}=r,w=(f+m)/2,x=Gue(p,b),A=x>=0?1:-1,C,j;i==="insideStart"?(C=p+A*a,j=_):i==="insideEnd"?(C=b-A*a,j=!_):i==="end"&&(C=b+A*a,j=_),j=x<=0?j:!j;var O=Fn(u,d,w,C),N=Fn(u,d,w,C+(j?1:-1)*359),B="M".concat(O.x,",").concat(O.y,`
|
||
A`).concat(w,",").concat(w,",0,1,").concat(j?0:1,`,
|
||
`).concat(N.x,",").concat(N.y),V=hn(e.id)?wh("recharts-radial-line-"):e.id;return T.createElement("text",Lo({},n,{dominantBaseline:"central",className:Ne("recharts-radial-bar-label",s)}),T.createElement("defs",null,T.createElement("path",{id:V,d:B})),T.createElement("textPath",{xlinkHref:"#".concat(V)},t))},Yue=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:s,startAngle:u,endAngle:d}=e,f=(u+d)/2;if(n==="outside"){var{x:m,y:p}=Fn(r,i,s+t,f);return{x:m,y:p,textAnchor:m>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var b=(a+s)/2,{x:_,y:w}=Fn(r,i,b,f);return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Kue=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,{x:a,y:s,width:u,height:d}=t,f=d>=0?1:-1,m=f*r,p=f>0?"end":"start",b=f>0?"start":"end",_=u>=0?1:-1,w=_*r,x=_>0?"end":"start",A=_>0?"start":"end";if(i==="top"){var C={x:a+u/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p};return An(An({},C),n?{height:Math.max(s-n.y,0),width:u}:{})}if(i==="bottom"){var j={x:a+u/2,y:s+d+m,textAnchor:"middle",verticalAnchor:b};return An(An({},j),n?{height:Math.max(n.y+n.height-(s+d),0),width:u}:{})}if(i==="left"){var O={x:a-w,y:s+d/2,textAnchor:x,verticalAnchor:"middle"};return An(An({},O),n?{width:Math.max(O.x-n.x,0),height:d}:{})}if(i==="right"){var N={x:a+u+w,y:s+d/2,textAnchor:A,verticalAnchor:"middle"};return An(An({},N),n?{width:Math.max(n.x+n.width-N.x,0),height:d}:{})}var B=n?{width:u,height:d}:{};return i==="insideLeft"?An({x:a+w,y:s+d/2,textAnchor:A,verticalAnchor:"middle"},B):i==="insideRight"?An({x:a+u-w,y:s+d/2,textAnchor:x,verticalAnchor:"middle"},B):i==="insideTop"?An({x:a+u/2,y:s+m,textAnchor:"middle",verticalAnchor:b},B):i==="insideBottom"?An({x:a+u/2,y:s+d-m,textAnchor:"middle",verticalAnchor:p},B):i==="insideTopLeft"?An({x:a+w,y:s+m,textAnchor:A,verticalAnchor:b},B):i==="insideTopRight"?An({x:a+u-w,y:s+m,textAnchor:x,verticalAnchor:b},B):i==="insideBottomLeft"?An({x:a+w,y:s+d-m,textAnchor:A,verticalAnchor:p},B):i==="insideBottomRight"?An({x:a+u-w,y:s+d-m,textAnchor:x,verticalAnchor:p},B):i&&typeof i=="object"&&(Je(i.x)||vu(i.x))&&(Je(i.y)||vu(i.y))?An({x:a+$r(i.x,u),y:s+$r(i.y,d),textAnchor:"end",verticalAnchor:"end"},B):An({x:a+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},B)},Zue=e=>"cx"in e&&Je(e.cx);function Qr(e){var{offset:t=5}=e,n=LM(e,Bue),r=An({offset:t},n),{viewBox:i,position:a,value:s,children:u,content:d,className:f="",textBreakAll:m,labelRef:p}=r,b=it(qk),_=sS(),w=a==="center"?_:b??_,x=i||w;if(!x||hn(s)&&hn(u)&&!T.isValidElement(d)&&typeof d!="function")return null;var A=An(An({},r),{},{viewBox:x});if(T.isValidElement(d)){var{labelRef:C}=A,j=LM(A,zue);return T.cloneElement(d,j)}var O;if(typeof d=="function"){if(O=T.createElement(d,A),T.isValidElement(O))return O}else O=Hue(r);var N=Zue(x),B=fn(r,!0);if(N&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Wue(r,O,B,x);var V=N?Yue(x,r.offset,r.position):Kue(r,x);return T.createElement(Ry,Lo({ref:p,className:Ne("recharts-label",f)},B,V,{breakAll:m}),O)}Qr.displayName="Label";var X8=e=>{var{cx:t,cy:n,angle:r,startAngle:i,endAngle:a,r:s,radius:u,innerRadius:d,outerRadius:f,x:m,y:p,top:b,left:_,width:w,height:x,clockWise:A,labelViewBox:C}=e;if(C)return C;if(Je(w)&&Je(x)){if(Je(m)&&Je(p))return{x:m,y:p,width:w,height:x};if(Je(b)&&Je(_))return{x:b,y:_,width:w,height:x}}if(Je(m)&&Je(p))return{x:m,y:p,width:0,height:0};if(Je(t)&&Je(n))return{cx:t,cy:n,startAngle:i||r||0,endAngle:a||r||0,innerRadius:d||0,outerRadius:f||u||s||0,clockWise:A};if(e.viewBox)return e.viewBox},Xue=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?T.createElement(Qr,Lo({key:"label-implicit"},r)):ei(e)?T.createElement(Qr,Lo({key:"label-implicit",value:e},r)):T.isValidElement(e)?e.type===Qr?T.cloneElement(e,An({key:"label-implicit"},r)):T.createElement(Qr,Lo({key:"label-implicit",content:e},r)):yC(e)?T.createElement(Qr,Lo({key:"label-implicit",content:e},r)):e&&typeof e=="object"?T.createElement(Qr,Lo({},e,{key:"label-implicit"},r)):null},Que=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{children:i,labelRef:a}=t,s=X8(t),u=Wh(i,Qr).map((f,m)=>T.cloneElement(f,{viewBox:n||s,key:"label-".concat(m)}));if(!r)return u;var d=Xue(t.label,n||s,a);return[d,...u]};Qr.parseViewBox=X8;Qr.renderCallByParent=Que;var F_={},$_={},kM;function Jue(){return kM||(kM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t}($_)),$_}var V_={},IM;function ece(){return IM||(IM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t}(V_)),V_}var UM;function tce(){return UM||(UM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jue(),n=ece(),r=Jw();function i(a){if(r.isArrayLike(a))return t.last(n.toArray(a))}e.last=i}(F_)),F_}var q_,BM;function nce(){return BM||(BM=1,q_=tce().last),q_}var rce=nce();const ice=ri(rce);var ace=["valueAccessor"],oce=["data","dataKey","clockWise","id","textBreakAll"];function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(null,arguments)}function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zM(Object(n),!0).forEach(function(r){sce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sce(e,t,n){return(t=lce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lce(e){var t=uce(e,"string");return typeof t=="symbol"?t:t+""}function uce(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 $M(e,t){if(e==null)return{};var n,r,i=cce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var fce=e=>Array.isArray(e.value)?ice(e.value):e.value;function fl(e){var{valueAccessor:t=fce}=e,n=$M(e,ace),{data:r,dataKey:i,clockWise:a,id:s,textBreakAll:u}=n,d=$M(n,oce);return!r||!r.length?null:T.createElement(_r,{className:"recharts-label-list"},r.map((f,m)=>{var p=hn(i)?t(f,m):Zt(f&&f.payload,i),b=hn(s)?{}:{id:"".concat(s,"-").concat(m)};return T.createElement(Qr,yv({},fn(f,!0),d,b,{parentViewBox:f.parentViewBox,value:p,textBreakAll:u,viewBox:Qr.parseViewBox(hn(a)?f:FM(FM({},f),{},{clockWise:a})),key:"label-".concat(m),index:m}))}))}fl.displayName="LabelList";function dce(e,t){return e?e===!0?T.createElement(fl,{key:"labelList-implicit",data:t}):T.isValidElement(e)||yC(e)?T.createElement(fl,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?T.createElement(fl,yv({data:t},e,{key:"labelList-implicit"})):null:null}function hce(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var{children:r}=e,i=Wh(r,fl).map((s,u)=>T.cloneElement(s,{data:t,key:"labelList-".concat(u)}));if(!n)return i;var a=dce(e.label,t);return[a,...i]}fl.renderCallByParent=hce;function E2(){return E2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(null,arguments)}var Q8=e=>{var{cx:t,cy:n,r,className:i}=e,a=Ne("recharts-dot",i);return t===+t&&n===+n&&r===+r?T.createElement("circle",E2({},Jo(e),Kw(e),{className:a,cx:t,cy:n,r})):null},J8=e=>e.graphicalItems.polarItems,mce=Pe([bn,Jh],HS),bC=Pe([J8,In,mce],GS),pce=Pe([bC],WS),_C=Pe([pce,LS],YS),gce=Pe([_C,In,bC],ZS),vce=Pe([_C,In,bC],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var a,s=Zt(r,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:s,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:Zt(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),VM=()=>{},yce=Pe([In,s8,VM,vce,VM,Lt,bn],QS),e7=Pe([In,Lt,_C,gce,Qh,bn,yce],JS),bce=Pe([e7,In,Mf],nC);Pe([In,e7,bce,bn],iC);var _ce={radiusAxis:{},angleAxis:{}},t7=Nt({name:"polarAxis",initialState:_ce,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:q_e,removeRadiusAxis:H_e,addAngleAxis:G_e,removeAngleAxis:W_e}=t7.actions,xce=t7.reducer;function qM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qM(Object(n),!0).forEach(function(r){wce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wce(e,t,n){return(t=Sce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sce(e){var t=Cce(e,"string");return typeof t=="symbol"?t:t+""}function Cce(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)}var Ece=(e,t)=>t,xC=Pe([J8,Ece],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),Ace=[],wC=(e,t,n)=>n?.length===0?Ace:n,n7=Pe([LS,xC,wC],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(a=>HM(HM({},t.presentationProps),a.props))),i!=null)return i}}),Tce=Pe([n7,xC,wC],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var a,s=Zt(r,t.nameKey,t.name),u;return n!=null&&(a=n[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?u=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?u=r.fill:u=t.fill,{value:Ef(s,t.dataKey),color:u,payload:r,type:t.legendType}})}),Oce=Pe([n7,xC,wC,Kn],(e,t,n,r)=>{if(!(t==null||e==null))return xfe({offset:r,pieSettings:t,displayedData:e,cells:n})}),H_={},GM;function jce(){return GM||(GM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t}(H_)),H_}var G_,WM;function Pce(){return WM||(WM=1,G_=jce().isPlainObject),G_}var Mce=Pce();const Rce=ri(Mce);function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(null,arguments)}var YM=(e,t,n,r,i)=>{var a=n-r,s;return s="M ".concat(e,",").concat(t),s+="L ".concat(e+n,",").concat(t),s+="L ".concat(e+n-a/2,",").concat(t+i),s+="L ".concat(e+n-a/2-r,",").concat(t+i),s+="L ".concat(e,",").concat(t," Z"),s},Nce={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Lce=e=>{var t=Ni(e,Nce),n=T.useRef(),[r,i]=T.useState(-1);T.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&i(A)}catch{}},[]);var{x:a,y:s,upperWidth:u,lowerWidth:d,height:f,className:m}=t,{animationEasing:p,animationDuration:b,animationBegin:_,isUpdateAnimationActive:w}=t;if(a!==+a||s!==+s||u!==+u||d!==+d||f!==+f||u===0&&d===0||f===0)return null;var x=Ne("recharts-trapezoid",m);return w?T.createElement(rv,{canBegin:r>0,from:{upperWidth:0,lowerWidth:0,height:f,x:a,y:s},to:{upperWidth:u,lowerWidth:d,height:f,x:a,y:s},duration:b,animationEasing:p,isActive:w},A=>{var{upperWidth:C,lowerWidth:j,height:O,x:N,y:B}=A;return T.createElement(rv,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:b,easing:p},T.createElement("path",bv({},fn(t,!0),{className:x,d:YM(N,B,C,j,O),ref:n})))}):T.createElement("g",null,T.createElement("path",bv({},fn(t,!0),{className:x,d:YM(a,s,u,d,f)})))},Dce=["option","shapeType","propTransformer","activeClassName","isActive"];function kce(e,t){if(e==null)return{};var n,r,i=Ice(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ice(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(r){Uce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uce(e,t,n){return(t=Bce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bce(e){var t=zce(e,"string");return typeof t=="symbol"?t:t+""}function zce(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 Fce(e,t){return _v(_v({},t),e)}function $ce(e,t){return e==="symbols"}function ZM(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return T.createElement(cS,n);case"trapezoid":return T.createElement(Lce,n);case"sector":return T.createElement(FD,n);case"symbols":if($ce(t))return T.createElement(sD,n);break;default:return null}}function Vce(e){return T.isValidElement(e)?e.props:e}function r7(e){var{option:t,shapeType:n,propTransformer:r=Fce,activeClassName:i="recharts-active-shape",isActive:a}=e,s=kce(e,Dce),u;if(T.isValidElement(t))u=T.cloneElement(t,_v(_v({},s),Vce(t)));else if(typeof t=="function")u=t(s);else if(Rce(t)&&typeof t!="boolean"){var d=r(t,s);u=T.createElement(ZM,{shapeType:n,elementProps:d})}else{var f=s;u=T.createElement(ZM,{shapeType:n,elementProps:f})}return a?T.createElement(_r,{className:i},u):u}var SC=(e,t)=>{var n=jn();return(r,i)=>a=>{e?.(r,i,a),n(S8({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},CC=e=>{var t=jn();return(n,r)=>i=>{e?.(n,r,i),t(Lse())}},EC=(e,t)=>{var n=jn();return(r,i)=>a=>{e?.(r,i,a),n(Dse({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function AC(e){var{fn:t,args:n}=e,r=jn(),i=Hr();return T.useEffect(()=>{if(!i){var a=t(n);return r(Mse(a)),()=>{r(Rse(a))}}},[t,n,r,i]),null}var i7=()=>{};function a7(e){var{legendPayload:t}=e,n=jn(),r=Hr();return T.useEffect(()=>r?i7:(n(PD(t)),()=>{n(MD(t))}),[n,r,t]),null}function qce(e){var{legendPayload:t}=e,n=jn(),r=it(Lt);return T.useEffect(()=>r!=="centric"&&r!=="radial"?i7:(n(PD(t)),()=>{n(MD(t))}),[n,r,t]),null}function TC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=T.useRef(wh(t)),r=T.useRef(e);return r.current!==e&&(n.current=wh(t),r.current=e),n.current}var W_,Hce=()=>{var[e]=T.useState(()=>wh("uid-"));return e},Gce=(W_=F2.useId)!==null&&W_!==void 0?W_:Hce;function Wce(e,t){var n=Gce();return t||(e?"".concat(e,"-").concat(n):n)}var Yce=T.createContext(void 0),OC=e=>{var{id:t,type:n,children:r}=e,i=Wce("recharts-".concat(n),t);return T.createElement(Yce.Provider,{value:i},r(i))},Kce={cartesianItems:[],polarItems:[]},o7=Nt({name:"graphicalItems",initialState:Kce,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=Uo(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=Uo(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=Uo(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:Zce,replaceCartesianGraphicalItem:Xce,removeCartesianGraphicalItem:Qce,addPolarGraphicalItem:Jce,removePolarGraphicalItem:efe}=o7.actions,tfe=o7.reducer;function s7(e){var t=jn(),n=T.useRef(null);return T.useEffect(()=>{n.current===null?t(Zce(e)):n.current!==e&&t(Xce({prev:n.current,next:e})),n.current=e},[t,e]),T.useEffect(()=>()=>{n.current&&(t(Qce(n.current)),n.current=null)},[t]),null}function nfe(e){var t=jn();return T.useEffect(()=>(t(Jce(e)),()=>{t(efe(e))}),[t,e]),null}function rfe(){}var ife={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},XM={t:0},Y_={t:1};function jC(e){var t=Ni(e,ife),{isActive:n,canBegin:r,duration:i,easing:a,begin:s,onAnimationEnd:u,onAnimationStart:d,children:f}=t,m=UD("JavascriptAnimate",t.animationManager),[p,b]=T.useState(n?XM:Y_),_=T.useRef(null);return T.useEffect(()=>{n||b(Y_)},[n]),T.useEffect(()=>{if(!n||!r)return rfe;var w=ID(XM,Y_,DD(a),i,b,m.getTimeoutController()),x=()=>{_.current=w()};return m.start([d,s,x,i,u]),()=>{m.stop(),_.current&&_.current(),u()}},[n,r,i,a,s,d,u,m]),f(p.t)}var afe=["onMouseEnter","onClick","onMouseLeave"],ofe=["id"],sfe=["id"];function PC(e,t){if(e==null)return{};var n,r,i=lfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QM(Object(n),!0).forEach(function(r){ufe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ufe(e,t,n){return(t=cfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cfe(e){var t=ffe(e,"string");return typeof t=="symbol"?t:t+""}function ffe(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 Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ko.apply(null,arguments)}function dfe(e){var t=T.useMemo(()=>Wh(e.children,cl),[e.children]),n=it(r=>Tce(r,e.id,t));return n==null?null:T.createElement(qce,{legendPayload:n})}function hfe(e){var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:s,name:u,hide:d,tooltipType:f}=e;return{dataDefinedOnItem:r?.map(m=>m.tooltipPayload),positions:r?.map(m=>m.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:s,dataKey:t,nameKey:n,name:Ef(u,t),hide:d,type:f,color:s,unit:""}}}var mfe=(e,t)=>e>t?"start":e<t?"end":"middle",pfe=(e,t,n)=>typeof t=="function"?t(e):$r(t,n,n*.8),gfe=(e,t,n)=>{var{top:r,left:i,width:a,height:s}=t,u=yD(a,s),d=i+$r(e.cx,a,a/2),f=r+$r(e.cy,s,s/2),m=$r(e.innerRadius,u,0),p=pfe(n,e.outerRadius,u),b=e.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:d,cy:f,innerRadius:m,outerRadius:p,maxRadius:b}},vfe=(e,t)=>{var n=lr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},yfe=(e,t)=>{if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Ne("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return T.createElement(lS,Ko({},t,{type:"linear",className:n}))},bfe=(e,t,n)=>{if(T.isValidElement(e))return T.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),T.isValidElement(r)))return r;var i=Ne("recharts-pie-label-text",typeof e!="boolean"&&typeof e!="function"?e.className:"");return T.createElement(Ry,Ko({},t,{alignmentBaseline:"middle",className:i}),r)};function _fe(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:s}=n;if(!r||!i||!t)return null;var u=Jo(n),d=fn(i,!1),f=fn(a,!1),m=typeof i=="object"&&"offsetRadius"in i&&i.offsetRadius||20,p=t.map((b,_)=>{var w=(b.startAngle+b.endAngle)/2,x=Fn(b.cx,b.cy,b.outerRadius+m,w),A=Tn(Tn(Tn(Tn({},u),b),{},{stroke:"none"},d),{},{index:_,textAnchor:mfe(x.x,b.cx)},x),C=Tn(Tn(Tn(Tn({},u),b),{},{fill:"none",stroke:b.fill},f),{},{index:_,points:[Fn(b.cx,b.cy,b.outerRadius,w),x],key:"line"});return T.createElement(_r,{key:"label-".concat(b.startAngle,"-").concat(b.endAngle,"-").concat(b.midAngle,"-").concat(_)},a&&yfe(a,C),bfe(i,A,Zt(b,s)))});return T.createElement(_r,{className:"recharts-pie-labels"},p)}function l7(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,showLabels:a}=e,s=it(Cl),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,m=PC(i,afe),p=SC(u,i.dataKey),b=CC(f),_=EC(d,i.dataKey);return t==null?null:T.createElement(T.Fragment,null,t.map((w,x)=>{if(w?.startAngle===0&&w?.endAngle===0&&t.length!==1)return null;var A=n&&String(x)===s,C=s?r:null,j=A?n:C,O=Tn(Tn({},w),{},{stroke:w.stroke,tabIndex:-1,[SD]:x,[CD]:i.dataKey});return T.createElement(_r,Ko({tabIndex:-1,className:"recharts-pie-sector"},oy(m,w,x),{onMouseEnter:p(w,x),onMouseLeave:b(w,x),onClick:_(w,x),key:"sector-".concat(w?.startAngle,"-").concat(w?.endAngle,"-").concat(w.midAngle,"-").concat(x)}),T.createElement(r7,Ko({option:j,isActive:A,shapeType:"sector"},O)))}),T.createElement(_fe,{sectors:t,props:i,showLabels:a}))}function xfe(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:a}=e,{cornerRadius:s,startAngle:u,endAngle:d,dataKey:f,nameKey:m,tooltipType:p}=n,b=Math.abs(n.minAngle),_=vfe(u,d),w=Math.abs(_),x=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,A=r.filter(V=>Zt(V,f,0)!==0).length,C=(w>=360?A:A-1)*x,j=w-A*b-C,O=r.reduce((V,Z)=>{var X=Zt(Z,f,0);return V+(Je(X)?X:0)},0),N;if(O>0){var B;N=r.map((V,Z)=>{var X=Zt(V,f,0),oe=Zt(V,m,Z),ee=gfe(n,a,V),J=(Je(X)?X:0)/O,ne,he=Tn(Tn({},V),i&&i[Z]&&i[Z].props);Z?ne=B.endAngle+lr(_)*x*(X!==0?1:0):ne=u;var Q=ne+lr(_)*((X!==0?b:0)+J*j),se=(ne+Q)/2,Y=(ee.innerRadius+ee.outerRadius)/2,U=[{name:oe,value:X,payload:he,dataKey:f,type:p}],I=Fn(ee.cx,ee.cy,Y,se);return B=Tn(Tn(Tn(Tn({},n.presentationProps),{},{percent:J,cornerRadius:s,name:oe,tooltipPayload:U,midAngle:se,middleRadius:Y,tooltipPosition:I},he),ee),{},{value:Zt(V,f),startAngle:ne,endAngle:Q,payload:he,paddingAngle:lr(_)*x}),B})}return N}function wfe(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:u,activeShape:d,inactiveShape:f,onAnimationStart:m,onAnimationEnd:p}=t,b=TC(t,"recharts-pie-"),_=n.current,[w,x]=T.useState(!0),A=T.useCallback(()=>{typeof p=="function"&&p(),x(!1)},[p]),C=T.useCallback(()=>{typeof m=="function"&&m(),x(!0)},[m]);return T.createElement(jC,{begin:a,duration:s,isActive:i,easing:u,onAnimationStart:C,onAnimationEnd:A,key:b},j=>{var O=[],N=r&&r[0],B=N.startAngle;return r.forEach((V,Z)=>{var X=_&&_[Z],oe=Z>0?_l(V,"paddingAngle",0):0;if(X){var ee=BO(X.endAngle-X.startAngle,V.endAngle-V.startAngle),J=Tn(Tn({},V),{},{startAngle:B+oe,endAngle:B+ee(j)+oe});O.push(J),B=J.endAngle}else{var{endAngle:ne,startAngle:he}=V,Q=BO(0,ne-he),se=Q(j),Y=Tn(Tn({},V),{},{startAngle:B+oe,endAngle:B+se+oe});O.push(Y),B=Y.endAngle}}),n.current=O,T.createElement(_r,null,T.createElement(l7,{sectors:O,activeShape:d,inactiveShape:f,allOtherPieProps:t,showLabels:!w}))})}function Sfe(e){var{sectors:t,isAnimationActive:n,activeShape:r,inactiveShape:i}=e,a=T.useRef(null),s=a.current;return n&&t&&t.length&&(!s||s!==t)?T.createElement(wfe,{props:e,previousSectorsRef:a}):T.createElement(l7,{sectors:t,activeShape:r,inactiveShape:i,allOtherPieProps:e,showLabels:!0})}function Cfe(e){var{hide:t,className:n,rootTabIndex:r}=e,i=Ne("recharts-pie",n);return t?null:T.createElement(_r,{tabIndex:r,className:i},T.createElement(Sfe,e))}var Efe={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!Fu.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function Afe(e){var{id:t}=e,n=PC(e,ofe),r=T.useMemo(()=>Wh(e.children,cl),[e.children]),i=it(a=>Oce(a,t,r));return T.createElement(T.Fragment,null,T.createElement(AC,{fn:hfe,args:Tn(Tn({},e),{},{sectors:i})}),T.createElement(Cfe,Ko({},n,{sectors:i})))}function A2(e){var t=Ni(e,Efe),{id:n}=t,r=PC(t,sfe),i=Jo(r);return T.createElement(OC,{id:n,type:"pie"},a=>T.createElement(T.Fragment,null,T.createElement(nfe,{type:"pie",id:a,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i}),T.createElement(dfe,Ko({},r,{id:a})),T.createElement(Afe,Ko({},r,{id:a})),r.children))}A2.displayName="Pie";var Tfe=Pe([Kn],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),Ofe=Pe([Tfe,es,ts],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),MC=()=>it(Ofe),jfe=()=>it(xle);function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JM(Object(n),!0).forEach(function(r){Pfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pfe(e,t,n){return(t=Mfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mfe(e){var t=Rfe(e,"string");return typeof t=="symbol"?t:t+""}function Rfe(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)}var Nfe=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var s=eR(eR({index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},fn(i,!1)),Kw(i)),u;return T.isValidElement(i)?u=T.cloneElement(i,s):typeof i=="function"?u=i(s):u=T.createElement(Q8,s),T.createElement(_r,{className:"recharts-active-dot"},u)};function Lfe(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i}=e,a=it(Cl),s=jfe();if(t==null||s==null)return null;var u=t.find(d=>s.includes(d.payload));return hn(u)?null:Nfe({point:u,childIndex:Number(a),mainColor:n,dataKey:i,activeDot:r})}var Dfe="Invariant failed";function kfe(e,t){throw new Error(Dfe)}var Ife=["x","y"];function T2(){return T2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T2.apply(null,arguments)}function tR(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 Kd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tR(Object(n),!0).forEach(function(r){Ufe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ufe(e,t,n){return(t=Bfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bfe(e){var t=zfe(e,"string");return typeof t=="symbol"?t:t+""}function zfe(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 Ffe(e,t){if(e==null)return{};var n,r,i=$fe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $fe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vfe(e,t){var{x:n,y:r}=e,i=Ffe(e,Ife),a="".concat(n),s=parseInt(a,10),u="".concat(r),d=parseInt(u,10),f="".concat(t.height||i.height),m=parseInt(f,10),p="".concat(t.width||i.width),b=parseInt(p,10);return Kd(Kd(Kd(Kd(Kd({},t),i),s?{x:s}:{}),d?{y:d}:{}),{},{height:m,width:b,name:t.name,radius:t.radius})}function u7(e){return T.createElement(r7,T2({shapeType:"rectangle",propTransformer:Vfe,activeClassName:"recharts-active-bar"},e))}var qfe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(Je(t))return t;var a=Je(r)||hn(r);return a?t(r,i):(a||kfe(),n)}},Hfe={},c7=Nt({name:"errorBars",initialState:Hfe,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:Y_e,removeErrorBar:K_e}=c7.actions,Gfe=c7.reducer,Wfe=["children"];function Yfe(e,t){if(e==null)return{};var n,r,i=Kfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zfe={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Xfe=T.createContext(Zfe);function f7(e){var{children:t}=e,n=Yfe(e,Wfe);return T.createElement(Xfe.Provider,{value:n},t)}function RC(e,t){var n,r,i=it(f=>rs(f,e)),a=it(f=>Rl(f,t)),s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:yi.allowDataOverflow,u=(r=a?.allowDataOverflow)!==null&&r!==void 0?r:bi.allowDataOverflow,d=s||u;return{needClip:d,needClipX:s,needClipY:u}}function d7(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=MC(),{needClipX:a,needClipY:s,needClip:u}=RC(t,n);if(!u)return null;var{x:d,y:f,width:m,height:p}=i;return T.createElement("clipPath",{id:"clipPath-".concat(r)},T.createElement("rect",{x:a?d:d-m/2,y:s?f:f-p/2,width:a?m:m*2,height:s?p:p*2}))}var Qfe=["onMouseEnter","onMouseLeave","onClick"],Jfe=["value","background","tooltipPosition"],ede=["id"],tde=["onMouseEnter","onClick","onMouseLeave"];function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cf.apply(null,arguments)}function nR(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 Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nR(Object(n),!0).forEach(function(r){nde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nde(e,t,n){return(t=rde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rde(e){var t=ide(e,"string");return typeof t=="symbol"?t:t+""}function ide(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 xv(e,t){if(e==null)return{};var n,r,i=ade(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ade(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ode=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ef(n,t),payload:e}]};function sde(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:s,unit:u}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Ef(a,t),hide:s,type:e.tooltipType,color:e.fill,unit:u}}}function lde(e){var t=it(Cl),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:s,onMouseLeave:u,onClick:d}=a,f=xv(a,Qfe),m=SC(s,r),p=CC(u),b=EC(d,r);if(!i||n==null)return null;var _=fn(i,!1);return T.createElement(T.Fragment,null,n.map((w,x)=>{var{value:A,background:C,tooltipPosition:j}=w,O=xv(w,Jfe);if(!C)return null;var N=m(w,x),B=p(w,x),V=b(w,x),Z=Or(Or(Or(Or(Or({option:i,isActive:String(x)===t},O),{},{fill:"#eee"},C),_),oy(f,w,x)),{},{onMouseEnter:N,onMouseLeave:B,onClick:V,dataKey:r,index:x,className:"recharts-bar-background-rectangle"});return T.createElement(u7,cf({key:"background-bar-".concat(x)},Z))}))}function h7(e){var{data:t,props:n,showLabels:r}=e,i=Jo(n),{id:a}=i,s=xv(i,ede),{shape:u,dataKey:d,activeBar:f}=n,m=it(Cl),p=it(k8),{onMouseEnter:b,onClick:_,onMouseLeave:w}=n,x=xv(n,tde),A=SC(b,d),C=CC(w),j=EC(_,d);return t?T.createElement(T.Fragment,null,t.map((O,N)=>{var B=f&&String(N)===m&&(p==null||d===p),V=B?f:u,Z=Or(Or(Or({},s),O),{},{isActive:B,option:V,index:N,dataKey:d});return T.createElement(_r,cf({className:"recharts-bar-rectangle"},oy(x,O,N),{onMouseEnter:A(O,N),onMouseLeave:C(O,N),onClick:j(O,N),key:"rectangle-".concat(O?.x,"-").concat(O?.y,"-").concat(O?.value,"-").concat(N)}),T.createElement(u7,Z))}),r&&fl.renderCallByParent(n,t)):null}function ude(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:s,animationDuration:u,animationEasing:d,onAnimationEnd:f,onAnimationStart:m}=t,p=n.current,b=TC(t,"recharts-bar-"),[_,w]=T.useState(!1),x=T.useCallback(()=>{typeof f=="function"&&f(),w(!1)},[f]),A=T.useCallback(()=>{typeof m=="function"&&m(),w(!0)},[m]);return T.createElement(jC,{begin:s,duration:u,isActive:a,easing:d,onAnimationEnd:x,onAnimationStart:A,key:b},C=>{var j=C===1?r:r?.map((O,N)=>{var B=p&&p[N];if(B)return Or(Or({},O),{},{x:da(B.x,O.x,C),y:da(B.y,O.y,C),width:da(B.width,O.width,C),height:da(B.height,O.height,C)});if(i==="horizontal"){var V=da(0,O.height,C);return Or(Or({},O),{},{y:O.y+O.height-V,height:V})}var Z=da(0,O.width,C);return Or(Or({},O),{},{width:Z})});return C>0&&(n.current=j??null),j==null?null:T.createElement(_r,null,T.createElement(h7,{props:t,data:j,showLabels:!_}))})}function cde(e){var{data:t,isAnimationActive:n}=e,r=T.useRef(null);return n&&t&&t.length&&(r.current==null||r.current!==t)?T.createElement(ude,{previousRectanglesRef:r,props:e}):T.createElement(h7,{props:e,data:t,showLabels:!0})}var m7=0,fde=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Zt(e,t)}};class dde extends T.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:a,yAxisId:s,needClip:u,background:d,id:f}=this.props;if(t)return null;var m=Ne("recharts-bar",i),p=f;return T.createElement(_r,{className:m,id:f},u&&T.createElement("defs",null,T.createElement(d7,{clipPathId:p,xAxisId:a,yAxisId:s})),T.createElement(_r,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(p,")"):void 0},T.createElement(lde,{data:n,dataKey:r,background:d,allOtherBarProps:this.props}),T.createElement(cde,this.props)),this.props.children)}}var hde={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Fu.isSsr,legendType:"rect",minPointSize:m7,xAxisId:0,yAxisId:0};function mde(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:s,animationBegin:u,animationDuration:d,animationEasing:f,isAnimationActive:m}=e,{needClip:p}=RC(t,n),b=my(),_=Hr(),w=Wh(e.children,cl),x=it(j=>Fde(j,t,n,_,e.id,w));if(b!=="vertical"&&b!=="horizontal")return null;var A,C=x?.[0];return C==null||C.height==null||C.width==null?A=0:A=b==="vertical"?C.height/2:C.width/2,T.createElement(f7,{xAxisId:t,yAxisId:n,data:x,dataPointFormatter:fde,errorBarOffset:A},T.createElement(dde,cf({},e,{layout:b,needClip:p,data:x,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:s,animationBegin:u,animationDuration:d,animationEasing:f,isAnimationActive:m})))}function pde(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:a,xAxis:s,yAxis:u,xAxisTicks:d,yAxisTicks:f,stackedData:m,displayedData:p,offset:b,cells:_}=e,w=t==="horizontal"?u:s,x=m?w.scale.domain():null,A=cne({numericAxis:w});return p.map((C,j)=>{var O,N,B,V,Z,X;m?O=ine(m[j],x):(O=Zt(C,n),Array.isArray(O)||(O=[A,O]));var oe=qfe(r,m7)(O[1],j);if(t==="horizontal"){var ee,[J,ne]=[u.scale(O[0]),u.scale(O[1])];N=Fj({axis:s,ticks:d,bandSize:a,offset:i.offset,entry:C,index:j}),B=(ee=ne??J)!==null&&ee!==void 0?ee:void 0,V=i.size;var he=J-ne;if(Z=ji(he)?0:he,X={x:N,y:b.top,width:V,height:b.height},Math.abs(oe)>0&&Math.abs(Z)<Math.abs(oe)){var Q=lr(Z||oe)*(Math.abs(oe)-Math.abs(Z));B-=Q,Z+=Q}}else{var[se,Y]=[s.scale(O[0]),s.scale(O[1])];if(N=se,B=Fj({axis:u,ticks:f,bandSize:a,offset:i.offset,entry:C,index:j}),V=Y-se,Z=i.size,X={x:b.left,y:B,width:b.width,height:Z},Math.abs(oe)>0&&Math.abs(V)<Math.abs(oe)){var U=lr(V||oe)*(Math.abs(oe)-Math.abs(V));V+=U}}if(N==null||B==null||V==null||Z==null)return null;var I=Or(Or({},C),{},{x:N,y:B,width:V,height:Z,value:m?O:O[1],payload:C,background:X,tooltipPosition:{x:N+V/2,y:B+Z/2}},_&&_[j]&&_[j].props);return I}).filter(Boolean)}function _g(e){var t=Ni(e,hde),n=Hr();return T.createElement(OC,{id:t.id,type:"bar"},r=>T.createElement(T.Fragment,null,T.createElement(a7,{legendPayload:ode(t)}),T.createElement(AC,{fn:sde,args:t}),T.createElement(s7,{type:"bar",id:r,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:une(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),T.createElement(mde,cf({},t,{id:r}))))}_g.displayName="Bar";function rR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rR(Object(n),!0).forEach(function(r){gde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gde(e,t,n){return(t=vde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vde(e){var t=yde(e,"string");return typeof t=="symbol"?t:t+""}function yde(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)}var bde=(e,t)=>t,_de=(e,t,n)=>n,xde=(e,t,n,r)=>r,wde=(e,t,n,r,i)=>i,am=Pe([Ay,wde],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),Sde=Pe([am],e=>e?.maxBarSize),Cde=(e,t,n,r,i,a)=>a,iR=(e,t,n)=>{var r=n??e;if(!hn(r))return $r(r,t,0)},Ede=Pe([Lt,Ay,bde,_de,xde],(e,t,n,r,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===n:a.yAxisId===r).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),Ade=(e,t,n,r)=>{var i=Lt(e);return i==="horizontal"?b2(e,"yAxis",n,r):b2(e,"xAxis",t,r)},Tde=(e,t,n)=>{var r=Lt(e);return r==="horizontal"?aM(e,"xAxis",t):aM(e,"yAxis",n)},Ode=(e,t,n)=>{var r={},i=e.filter(Ey),a=e.filter(f=>f.stackId==null),s=i.reduce((f,m)=>(f[m.stackId]||(f[m.stackId]=[]),f[m.stackId].push(m),f),r),u=Object.entries(s).map(f=>{var[m,p]=f,b=p.map(w=>w.dataKey),_=iR(t,n,p[0].barSize);return{stackId:m,dataKeys:b,barSize:_}}),d=a.map(f=>{var m=[f.dataKey].filter(b=>b!=null),p=iR(t,n,f.barSize);return{stackId:void 0,dataKeys:m,barSize:p}});return[...u,...d]},jde=Pe([Ede,Roe,Tde],Ode),Pde=(e,t,n,r,i)=>{var a,s,u=am(e,t,n,r,i);if(u!=null){var d=Lt(e),f=Ik(e),{maxBarSize:m}=u,p=hn(m)?f:m,b,_;return d==="horizontal"?(b=Sl(e,"xAxis",t,r),_=wl(e,"xAxis",t,r)):(b=Sl(e,"yAxis",n,r),_=wl(e,"yAxis",n,r)),(a=(s=Sh(b,_,!0))!==null&&s!==void 0?s:p)!==null&&a!==void 0?a:0}},p7=(e,t,n,r)=>{var i=Lt(e),a,s;return i==="horizontal"?(a=Sl(e,"xAxis",t,r),s=wl(e,"xAxis",t,r)):(a=Sl(e,"yAxis",n,r),s=wl(e,"yAxis",n,r)),Sh(a,s)};function Mde(e,t,n,r,i){var a=r.length;if(!(a<1)){var s=$r(e,n,0,!0),u,d=[];if(Pi(r[0].barSize)){var f=!1,m=n/a,p=r.reduce((C,j)=>C+(j.barSize||0),0);p+=(a-1)*s,p>=n&&(p-=(a-1)*s,s=0),p>=n&&m>0&&(f=!0,m*=.9,p=a*m);var b=(n-p)/2>>0,_={offset:b-s,size:0};u=r.reduce((C,j)=>{var O,N={stackId:j.stackId,dataKeys:j.dataKeys,position:{offset:_.offset+_.size+s,size:f?m:(O=j.barSize)!==null&&O!==void 0?O:0}},B=[...C,N];return _=B[B.length-1].position,B},d)}else{var w=$r(t,n,0,!0);n-2*w-(a-1)*s<=0&&(s=0);var x=(n-2*w-(a-1)*s)/a;x>1&&(x>>=0);var A=Pi(i)?Math.min(x,i):x;u=r.reduce((C,j,O)=>[...C,{stackId:j.stackId,dataKeys:j.dataKeys,position:{offset:w+(x+s)*O+(x-A)/2,size:A}}],d)}return u}}var Rde=(e,t,n,r,i,a,s)=>{var u=hn(s)?t:s,d=Mde(n,r,i!==a?i:a,e,u);return i!==a&&d!=null&&(d=d.map(f=>Qp(Qp({},f),{},{position:Qp(Qp({},f.position),{},{offset:f.position.offset-i/2})}))),d},Nde=Pe([jde,Ik,Moe,Uk,Pde,p7,Sde],Rde),Lde=(e,t,n,r)=>Sl(e,"xAxis",t,r),Dde=(e,t,n,r)=>Sl(e,"yAxis",n,r),kde=(e,t,n,r)=>wl(e,"xAxis",t,r),Ide=(e,t,n,r)=>wl(e,"yAxis",n,r),Ude=Pe([Nde,am],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),Bde=(e,t)=>{var n=VS(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(s=>s.key===n)}}}},zde=Pe([Ade,am],Bde),Fde=Pe([Kn,Lde,Dde,kde,Ide,Ude,Lt,xy,p7,zde,am,Cde],(e,t,n,r,i,a,s,u,d,f,m,p)=>{var{chartData:b,dataStartIndex:_,dataEndIndex:w}=u;if(!(m==null||a==null||s!=="horizontal"&&s!=="vertical"||t==null||n==null||r==null||i==null||d==null)){var{data:x}=m,A;if(x!=null&&x.length>0?A=x:A=b?.slice(_,w+1),A!=null)return pde({layout:s,barSettings:m,pos:a,bandSize:d,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,stackedData:f,displayedData:A,offset:e,cells:p})}}),g7=e=>{var{chartData:t}=e,n=jn(),r=Hr();return T.useEffect(()=>r?()=>{}:(n(pM(t)),()=>{n(pM(void 0))}),[t,n,r]),null},aR={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},v7=Nt({name:"brush",initialState:aR,reducers:{setBrushSettings(e,t){return t.payload==null?aR:t.payload}}}),{setBrushSettings:Z_e}=v7.actions,$de=v7.reducer;function oR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(n),!0).forEach(function(r){y7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y7(e,t,n){return(t=Vde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vde(e){var t=qde(e,"string");return typeof t=="symbol"?t:t+""}function qde(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)}var Hde=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}};class Ny{static create(t){return new Ny(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}y7(Ny,"EPS",1e-4);var Gde=e=>{var t=Object.keys(e).reduce((n,r)=>Jp(Jp({},n),{},{[r]:Ny.create(e[r])}),{});return Jp(Jp({},t),{},{apply(n){var{bandAware:r,position:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.fromEntries(Object.entries(n).map(a=>{var[s,u]=a;return[s,t[s].apply(u,{bandAware:r,position:i})]}))},isInRange(n){return Object.keys(n).every(r=>t[r].isInRange(n[r]))}})};function Wde(e){return(e%180+180)%180}var Yde=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Wde(i),s=a*Math.PI/180,u=Math.atan(r/n),d=s>u&&s<Math.PI-u?r/Math.sin(s):n/Math.cos(s);return Math.abs(d)},Kde={dots:[],areas:[],lines:[]},b7=Nt({name:"referenceElements",initialState:Kde,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Uo(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Uo(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Uo(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:X_e,removeDot:Q_e,addArea:Zde,removeArea:Xde,addLine:J_e,removeLine:exe}=b7.actions,Qde=b7.reducer,_7=T.createContext(void 0),Jde=e=>{var{children:t}=e,[n]=T.useState("".concat(wh("recharts"),"-clip")),r=MC();if(r==null)return null;var{x:i,y:a,width:s,height:u}=r;return T.createElement(_7.Provider,{value:n},T.createElement("defs",null,T.createElement("clipPath",{id:n},T.createElement("rect",{x:i,y:a,height:u,width:s}))),t)},ehe=()=>T.useContext(_7);function sR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(n),!0).forEach(function(r){NC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NC(e,t,n){return(t=the(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function the(e){var t=nhe(e,"string");return typeof t=="symbol"?t:t+""}function nhe(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 O2(){return O2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O2.apply(null,arguments)}var rhe=(e,t,n,r,i,a,s)=>{var{x1:u,x2:d,y1:f,y2:m}=s;if(i==null||a==null)return null;var p=Gde({x:i,y:a}),b={x:e?p.x.apply(u,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(f,{position:"start"}):p.y.rangeMin},_={x:t?p.x.apply(d,{position:"end"}):p.x.rangeMax,y:r?p.y.apply(m,{position:"end"}):p.y.rangeMax};return s.ifOverflow==="discard"&&(!p.isInRange(b)||!p.isInRange(_))?null:Hde(b,_)},ihe=(e,t)=>{var n;return T.isValidElement(e)?n=T.cloneElement(e,t):typeof e=="function"?n=e(t):n=T.createElement(cS,O2({},t,{className:"recharts-reference-area-rect"})),n};function ahe(e){var t=jn();return T.useEffect(()=>(t(Zde(e)),()=>{t(Xde(e))})),null}function ohe(e){var{x1:t,x2:n,y1:r,y2:i,className:a,shape:s,xAxisId:u,yAxisId:d}=e,f=ehe(),m=Hr(),p=it(N=>xl(N,"xAxis",u,m)),b=it(N=>xl(N,"yAxis",d,m));if(p==null||!b==null)return null;var _=ei(t),w=ei(n),x=ei(r),A=ei(i);if(!_&&!w&&!x&&!A&&!s)return null;var C=rhe(_,w,x,A,p,b,e);if(!C&&!s)return null;var j=e.ifOverflow==="hidden",O=j?"url(#".concat(f,")"):void 0;return T.createElement(_r,{className:Ne("recharts-reference-area",a)},ihe(s,lR(lR({clipPath:O},fn(e,!0)),C)),Qr.renderCallByParent(e,C))}function she(e){return T.createElement(T.Fragment,null,T.createElement(ahe,{yAxisId:e.yAxisId,xAxisId:e.xAxisId,ifOverflow:e.ifOverflow,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}),T.createElement(ohe,e))}class LC extends T.Component{render(){return T.createElement(she,this.props)}}NC(LC,"displayName","ReferenceArea");NC(LC,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});function K_(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 x7(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 lhe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Yde(r,n)}function uhe(e,t,n){var r=n==="width",{x:i,y:a,width:s,height:u}=e;return t===1?{start:r?i:a,end:r?i+s:a+u}:{start:r?i+s:a+u,end:r?i:a}}function wv(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 che(e,t){return x7(e,t+1)}function fhe(e,t,n,r,i){for(var a=(r||[]).slice(),{start:s,end:u}=t,d=0,f=1,m=s,p=function(){var w=r?.[d];if(w===void 0)return{v:x7(r,f)};var x=d,A,C=()=>(A===void 0&&(A=n(w,x)),A),j=w.coordinate,O=d===0||wv(e,j,C,m,u);O||(d=0,m=s,f+=1),O&&(m=j+e*(C()/2+i),d+=f)},b;f<=a.length;)if(b=p(),b)return b.v;return[]}function uR(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?uR(Object(n),!0).forEach(function(r){dhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dhe(e,t,n){return(t=hhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hhe(e){var t=mhe(e,"string");return typeof t=="symbol"?t:t+""}function mhe(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 phe(e,t,n,r,i){for(var a=(r||[]).slice(),s=a.length,{start:u}=t,{end:d}=t,f=function(b){var _=a[b],w,x=()=>(w===void 0&&(w=n(_,b)),w);if(b===s-1){var A=e*(_.coordinate+e*x()/2-d);a[b]=_=Tr(Tr({},_),{},{tickCoord:A>0?_.coordinate-A*e:_.coordinate})}else a[b]=_=Tr(Tr({},_),{},{tickCoord:_.coordinate});var C=wv(e,_.tickCoord,x,u,d);C&&(d=_.tickCoord-e*(x()/2+i),a[b]=Tr(Tr({},_),{},{isShow:!0}))},m=s-1;m>=0;m--)f(m);return a}function ghe(e,t,n,r,i,a){var s=(r||[]).slice(),u=s.length,{start:d,end:f}=t;if(a){var m=r[u-1],p=n(m,u-1),b=e*(m.coordinate+e*p/2-f);s[u-1]=m=Tr(Tr({},m),{},{tickCoord:b>0?m.coordinate-b*e:m.coordinate});var _=wv(e,m.tickCoord,()=>p,d,f);_&&(f=m.tickCoord-e*(p/2+i),s[u-1]=Tr(Tr({},m),{},{isShow:!0}))}for(var w=a?u-1:u,x=function(j){var O=s[j],N,B=()=>(N===void 0&&(N=n(O,j)),N);if(j===0){var V=e*(O.coordinate-e*B()/2-d);s[j]=O=Tr(Tr({},O),{},{tickCoord:V<0?O.coordinate-V*e:O.coordinate})}else s[j]=O=Tr(Tr({},O),{},{tickCoord:O.coordinate});var Z=wv(e,O.tickCoord,B,d,f);Z&&(d=O.tickCoord+e*(B()/2+i),s[j]=Tr(Tr({},O),{},{isShow:!0}))},A=0;A<w;A++)x(A);return s}function DC(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:s,orientation:u,interval:d,tickFormatter:f,unit:m,angle:p}=e;if(!i||!i.length||!r)return[];if(Je(d)||Fu.isSsr){var b;return(b=che(i,Je(d)?d:0))!==null&&b!==void 0?b:[]}var _=[],w=u==="top"||u==="bottom"?"width":"height",x=m&&w==="width"?ch(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},A=(O,N)=>{var B=typeof f=="function"?f(O.value,N):O.value;return w==="width"?lhe(ch(B,{fontSize:t,letterSpacing:n}),x,p):ch(B,{fontSize:t,letterSpacing:n})[w]},C=i.length>=2?lr(i[1].coordinate-i[0].coordinate):1,j=uhe(a,C,w);return d==="equidistantPreserveStart"?fhe(C,j,A,i,s):(d==="preserveStart"||d==="preserveStartEnd"?_=ghe(C,j,A,i,s,d==="preserveStartEnd"):_=phe(C,j,A,i,s),_.filter(O=>O.isShow))}var vhe=["viewBox"],yhe=["viewBox"];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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vc.apply(null,arguments)}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(r){kC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fR(e,t){if(e==null)return{};var n,r,i=bhe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kC(e,t,n){return(t=_he(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _he(e){var t=xhe(e,"string");return typeof t=="symbol"?t:t+""}function xhe(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)}class Nl extends T.Component{constructor(t){super(t),this.tickRefs=T.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(t,n){var{viewBox:r}=t,i=fR(t,vhe),a=this.props,{viewBox:s}=a,u=fR(a,yhe);return!K_(r,s)||!K_(i,u)||!K_(n,this.state)}getTickLineCoord(t){var{x:n,y:r,width:i,height:a,orientation:s,tickSize:u,mirror:d,tickMargin:f}=this.props,m,p,b,_,w,x,A=d?-1:1,C=t.tickSize||u,j=Je(t.tickCoord)?t.tickCoord:t.coordinate;switch(s){case"top":m=p=t.coordinate,_=r+ +!d*a,b=_-A*C,x=b-A*f,w=j;break;case"left":b=_=t.coordinate,p=n+ +!d*i,m=p-A*C,w=m-A*f,x=j;break;case"right":b=_=t.coordinate,p=n+ +d*i,m=p+A*C,w=m+A*f,x=j;break;default:m=p=t.coordinate,_=r+ +d*a,b=_+A*C,x=b+A*f,w=j;break}return{line:{x1:m,y1:b,x2:p,y2:_},tick:{x:w,y:x}}}getTickTextAnchor(){var{orientation:t,mirror:n}=this.props,r;switch(t){case"left":r=n?"start":"end";break;case"right":r=n?"end":"start";break;default:r="middle";break}return r}getTickVerticalAnchor(){var{orientation:t,mirror:n}=this.props;switch(t){case"left":case"right":return"middle";case"top":return n?"start":"end";default:return n?"end":"start"}}renderAxisLine(){var{x:t,y:n,width:r,height:i,orientation:a,mirror:s,axisLine:u}=this.props,d=Wn(Wn(Wn({},fn(this.props,!1)),fn(u,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var f=+(a==="top"&&!s||a==="bottom"&&s);d=Wn(Wn({},d),{},{x1:t,y1:n+f*i,x2:t+r,y2:n+f*i})}else{var m=+(a==="left"&&!s||a==="right"&&s);d=Wn(Wn({},d),{},{x1:t+m*r,y1:n,x2:t+m*r,y2:n+i})}return T.createElement("line",Vc({},d,{className:Ne("recharts-cartesian-axis-line",_l(u,"className"))}))}static renderTickItem(t,n,r){var i,a=Ne(n.className,"recharts-cartesian-axis-tick-value");if(T.isValidElement(t))i=T.cloneElement(t,Wn(Wn({},n),{},{className:a}));else if(typeof t=="function")i=t(Wn(Wn({},n),{},{className:a}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Ne(s,t.className)),i=T.createElement(Ry,Vc({},n,{className:s}),r)}return i}renderTicks(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:i,stroke:a,tick:s,tickFormatter:u,unit:d,padding:f}=this.props,m=DC(Wn(Wn({},this.props),{},{ticks:r}),t,n),p=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),_=Jo(this.props),w=fn(s,!1),x=Wn(Wn({},_),{},{fill:"none"},fn(i,!1)),A=m.map((C,j)=>{var{line:O,tick:N}=this.getTickLineCoord(C),B=Wn(Wn(Wn(Wn({textAnchor:p,verticalAnchor:b},_),{},{stroke:"none",fill:a},w),N),{},{index:j,payload:C,visibleTicksCount:m.length,tickFormatter:u,padding:f});return T.createElement(_r,Vc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},oy(this.props,C,j)),i&&T.createElement("line",Vc({},x,O,{className:Ne("recharts-cartesian-axis-tick-line",_l(i,"className"))})),s&&Nl.renderTickItem(s,B,"".concat(typeof u=="function"?u(C.value,j):C.value).concat(d||"")))});return A.length>0?T.createElement("g",{className:"recharts-cartesian-axis-ticks"},A):null}render(){var{axisLine:t,width:n,height:r,className:i,hide:a}=this.props;if(a)return null;var{ticks:s}=this.props;return n!=null&&n<=0||r!=null&&r<=0?null:T.createElement(_r,{className:Ne("recharts-cartesian-axis",i),ref:u=>{if(u){var d=u.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(d);var f=d[0];if(f){var m=window.getComputedStyle(f).fontSize,p=window.getComputedStyle(f).letterSpacing;(m!==this.state.fontSize||p!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(f).fontSize,letterSpacing:window.getComputedStyle(f).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,s),Qr.renderCallByParent(this.props))}}kC(Nl,"displayName","CartesianAxis");kC(Nl,"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 whe=["x1","y1","x2","y2","key"],She=["offset"],Che=["xAxisId","yAxisId"],Ehe=["xAxisId","yAxisId"];function dR(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 jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dR(Object(n),!0).forEach(function(r){Ahe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ahe(e,t,n){return(t=The(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function The(e){var t=Ohe(e,"string");return typeof t=="symbol"?t:t+""}function Ohe(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 xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xu.apply(null,arguments)}function Sv(e,t){if(e==null)return{};var n,r,i=jhe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Phe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:a,height:s,ry:u}=e;return T.createElement("rect",{x:r,y:i,ry:u,width:a,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function w7(e,t){var n;if(T.isValidElement(e))n=T.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:i,x2:a,y2:s,key:u}=t,d=Sv(t,whe),f=Jo(d),{offset:m}=f,p=Sv(f,She);n=T.createElement("line",xu({},p,{x1:r,y1:i,x2:a,y2:s,fill:"none",key:u}))}return n}function Mhe(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,u=Sv(e,Che),d=i.map((f,m)=>{var p=jr(jr({},u),{},{x1:t,y1:f,x2:t+n,y2:f,key:"line-".concat(m),index:m});return w7(r,p)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}function Rhe(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,u=Sv(e,Ehe),d=i.map((f,m)=>{var p=jr(jr({},u),{},{x1:f,y1:t,x2:f,y2:t+n,key:"line-".concat(m),index:m});return w7(r,p)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}function Nhe(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:s,horizontalPoints:u,horizontal:d=!0}=e;if(!d||!t||!t.length)return null;var f=u.map(p=>Math.round(p+i-i)).sort((p,b)=>p-b);i!==f[0]&&f.unshift(0);var m=f.map((p,b)=>{var _=!f[b+1],w=_?i+s-p:f[b+1]-p;if(w<=0)return null;var x=b%t.length;return T.createElement("rect",{key:"react-".concat(b),y:p,x:r,height:w,width:a,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function Lhe(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:s,height:u,verticalPoints:d}=e;if(!t||!n||!n.length)return null;var f=d.map(p=>Math.round(p+i-i)).sort((p,b)=>p-b);i!==f[0]&&f.unshift(0);var m=f.map((p,b)=>{var _=!f[b+1],w=_?i+s-p:f[b+1]-p;if(w<=0)return null;var x=b%n.length;return T.createElement("rect",{key:"react-".concat(b),x:p,y:a,width:w,height:u,stroke:"none",fill:n[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var Dhe=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return _D(DC(jr(jr(jr({},Nl.defaultProps),n),{},{ticks:xD(n),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},khe=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return _D(DC(jr(jr(jr({},Nl.defaultProps),n),{},{ticks:xD(n),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},Ihe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function IC(e){var t=TD(),n=OD(),r=AD(),i=jr(jr({},Ni(e,Ihe)),{},{x:Je(e.x)?e.x:r.left,y:Je(e.y)?e.y:r.top,width:Je(e.width)?e.width:r.width,height:Je(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:s,x:u,y:d,width:f,height:m,syncWithTicks:p,horizontalValues:b,verticalValues:_}=i,w=Hr(),x=it(oe=>oM(oe,"xAxis",a,w)),A=it(oe=>oM(oe,"yAxis",s,w));if(!Je(f)||f<=0||!Je(m)||m<=0||!Je(u)||u!==+u||!Je(d)||d!==+d)return null;var C=i.verticalCoordinatesGenerator||Dhe,j=i.horizontalCoordinatesGenerator||khe,{horizontalPoints:O,verticalPoints:N}=i;if((!O||!O.length)&&typeof j=="function"){var B=b&&b.length,V=j({yAxis:A?jr(jr({},A),{},{ticks:B?b:A.ticks}):void 0,width:t,height:n,offset:r},B?!0:p);uh(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof V,"]")),Array.isArray(V)&&(O=V)}if((!N||!N.length)&&typeof C=="function"){var Z=_&&_.length,X=C({xAxis:x?jr(jr({},x),{},{ticks:Z?_:x.ticks}):void 0,width:t,height:n,offset:r},Z?!0:p);uh(Array.isArray(X),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof X,"]")),Array.isArray(X)&&(N=X)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(Phe,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),T.createElement(Nhe,xu({},i,{horizontalPoints:O})),T.createElement(Lhe,xu({},i,{verticalPoints:N})),T.createElement(Mhe,xu({},i,{offset:r,horizontalPoints:O,xAxis:x,yAxis:A})),T.createElement(Rhe,xu({},i,{offset:r,verticalPoints:N,xAxis:x,yAxis:A})))}IC.displayName="CartesianGrid";var S7=(e,t,n,r)=>Sl(e,"xAxis",t,r),C7=(e,t,n,r)=>wl(e,"xAxis",t,r),E7=(e,t,n,r)=>Sl(e,"yAxis",n,r),A7=(e,t,n,r)=>wl(e,"yAxis",n,r),Uhe=Pe([Lt,S7,E7,C7,A7],(e,t,n,r,i)=>Ol(e,"xAxis")?Sh(t,r,!1):Sh(n,i,!1)),Bhe=(e,t,n,r,i)=>i;function zhe(e){return e.type==="line"}var Fhe=Pe([Ay,Bhe],(e,t)=>e.filter(zhe).find(n=>n.id===t)),$he=Pe([Lt,S7,E7,C7,A7,Fhe,Uhe,xy],(e,t,n,r,i,a,s,u)=>{var{chartData:d,dataStartIndex:f,dataEndIndex:m}=u;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{dataKey:p,data:b}=a,_;if(b!=null&&b.length>0?_=b:_=d?.slice(f,m+1),_!=null)return ume({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:p,bandSize:s,displayedData:_})}}),Vhe=["id"],qhe=["type","layout","connectNulls","needClip"],Hhe=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function hR(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 ha(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(n),!0).forEach(function(r){Ghe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ghe(e,t,n){return(t=Whe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Whe(e){var t=Yhe(e,"string");return typeof t=="symbol"?t:t+""}function Yhe(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 UC(e,t){if(e==null)return{};var n,r,i=Khe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Khe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iu.apply(null,arguments)}var Zhe=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ef(n,t),payload:e}]};function Xhe(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:s,hide:u,unit:d}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ef(s,t),hide:u,type:e.tooltipType,color:e.stroke,unit:d}}}var T7=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function Qhe(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r=[...r,...n];return r}var Jhe=(e,t,n)=>{var r=n.reduce((p,b)=>p+b);if(!r)return T7(t,e);for(var i=Math.floor(e/r),a=e%r,s=t-e,u=[],d=0,f=0;d<n.length;f+=n[d],++d)if(f+n[d]>a){u=[...n.slice(0,d),a-f];break}var m=u.length%2===0?[0,s]:[s];return[...Qhe(n,i),...u,...m].map(p=>"".concat(p,"px")).join(", ")};function eme(e,t){var n;if(T.isValidElement(e))n=T.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=Ne("recharts-line-dot",typeof e!="boolean"?e.className:"");n=T.createElement(Q8,Iu({},t,{className:r}))}return n}function tme(e,t){return e==null?!1:t?!0:e.length===1}function nme(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:s}=r;if(!tme(n,i))return null;var{id:u}=r,d=UC(r,Vhe),f=$L(i),m=Jo(d),p=fn(i,!0),b=n.map((w,x)=>{var A=ha(ha(ha({key:"dot-".concat(x),r:3},m),p),{},{index:x,cx:w.x,cy:w.y,dataKey:a,value:w.value,payload:w.payload,points:n});return eme(i,A)}),_={clipPath:s?"url(#clipPath-".concat(f?"":"dots-").concat(t,")"):void 0};return T.createElement(_r,Iu({className:"recharts-line-dots",key:"dots"},_),b)}function j2(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a,showLabels:s}=e,{type:u,layout:d,connectNulls:f,needClip:m}=a,p=UC(a,qhe),b=ha(ha({},fn(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:m?"url(#clipPath-".concat(t,")"):void 0,points:r,type:u,layout:d,connectNulls:f,strokeDasharray:i??a.strokeDasharray});return T.createElement(T.Fragment,null,r?.length>1&&T.createElement(lS,Iu({},b,{pathRef:n})),T.createElement(nme,{points:r,clipPathId:t,props:a}),s&&fl.renderCallByParent(a,r))}function rme(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function ime(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:s,strokeDasharray:u,isAnimationActive:d,animationBegin:f,animationDuration:m,animationEasing:p,animateNewValues:b,width:_,height:w,onAnimationEnd:x,onAnimationStart:A}=n,C=i.current,j=TC(n,"recharts-line-"),[O,N]=T.useState(!1),B=T.useCallback(()=>{typeof x=="function"&&x(),N(!1)},[x]),V=T.useCallback(()=>{typeof A=="function"&&A(),N(!0)},[A]),Z=rme(r.current),X=a.current;return T.createElement(jC,{begin:f,duration:m,isActive:d,easing:p,onAnimationEnd:B,onAnimationStart:V,key:j},oe=>{var ee=da(X,Z+X,oe),J=Math.min(ee,Z),ne;if(u){var he="".concat(u).split(/[,\s]+/gim).map(Y=>parseFloat(Y));ne=Jhe(J,Z,he)}else ne=T7(Z,J);if(C){var Q=C.length/s.length,se=oe===1?s:s.map((Y,U)=>{var I=Math.floor(U*Q);if(C[I]){var z=C[I];return ha(ha({},Y),{},{x:da(z.x,Y.x,oe),y:da(z.y,Y.y,oe)})}return b?ha(ha({},Y),{},{x:da(_*2,Y.x,oe),y:da(w/2,Y.y,oe)}):ha(ha({},Y),{},{x:Y.x,y:Y.y})});return i.current=se,T.createElement(j2,{props:n,points:se,clipPathId:t,pathRef:r,showLabels:!O,strokeDasharray:ne})}return oe>0&&Z>0&&(i.current=s,a.current=J),T.createElement(j2,{props:n,points:s,clipPathId:t,pathRef:r,showLabels:!O,strokeDasharray:ne})})}function ame(e){var{clipPathId:t,props:n}=e,{points:r,isAnimationActive:i}=n,a=T.useRef(null),s=T.useRef(0),u=T.useRef(null),d=a.current;return i&&r&&r.length&&d!==r?T.createElement(ime,{props:n,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:s,pathRef:u}):T.createElement(j2,{props:n,points:r,clipPathId:t,pathRef:u,showLabels:!0})}var ome=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:Zt(e.payload,t)});class sme extends T.Component{render(){var t,{hide:n,dot:r,points:i,className:a,xAxisId:s,yAxisId:u,top:d,left:f,width:m,height:p,id:b,needClip:_}=this.props;if(n)return null;var w=Ne("recharts-line",a),x=b,{r:A=3,strokeWidth:C=2}=(t=fn(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},j=$L(r),O=A*2+C;return T.createElement(T.Fragment,null,T.createElement(_r,{className:w},_&&T.createElement("defs",null,T.createElement(d7,{clipPathId:x,xAxisId:s,yAxisId:u}),!j&&T.createElement("clipPath",{id:"clipPath-dots-".concat(x)},T.createElement("rect",{x:f-O/2,y:d-O/2,width:m+O,height:p+O}))),T.createElement(ame,{props:this.props,clipPathId:x}),T.createElement(f7,{xAxisId:s,yAxisId:u,data:i,dataPointFormatter:ome,errorBarOffset:0},this.props.children)),T.createElement(Lfe,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var O7={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Fu.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function lme(e){var t=Ni(e,O7),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:s,connectNulls:u,dot:d,hide:f,isAnimationActive:m,label:p,legendType:b,xAxisId:_,yAxisId:w,id:x}=t,A=UC(t,Hhe),{needClip:C}=RC(_,w),j=MC(),O=my(),N=Hr(),B=it(ee=>$he(ee,_,w,N,x));if(O!=="horizontal"&&O!=="vertical"||B==null||j==null)return null;var{height:V,width:Z,x:X,y:oe}=j;return T.createElement(sme,Iu({},A,{id:x,connectNulls:u,dot:d,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:s,isAnimationActive:m,hide:f,label:p,legendType:b,xAxisId:_,yAxisId:w,points:B,layout:O,height:V,width:Z,left:X,top:oe,needClip:C}))}function ume(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:s,bandSize:u,displayedData:d}=e;return d.map((f,m)=>{var p=Zt(f,s);if(t==="horizontal"){var b=zj({axis:n,ticks:i,bandSize:u,entry:f,index:m}),_=hn(p)?null:r.scale(p);return{x:b,y:_,value:p,payload:f}}var w=hn(p)?null:n.scale(p),x=zj({axis:r,ticks:a,bandSize:u,entry:f,index:m});return w==null||x==null?null:{x:w,y:x,value:p,payload:f}}).filter(Boolean)}function j7(e){var t=Ni(e,O7),n=Hr();return T.createElement(OC,{id:t.id,type:"line"},r=>T.createElement(T.Fragment,null,T.createElement(a7,{legendPayload:Zhe(t)}),T.createElement(AC,{fn:Xhe,args:t}),T.createElement(s7,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),T.createElement(lme,Iu({},t,{id:r}))))}j7.displayName="Line";function mR(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 pR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mR(Object(n),!0).forEach(function(r){cme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cme(e,t,n){return(t=fme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fme(e){var t=dme(e,"string");return typeof t=="symbol"?t:t+""}function dme(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)}var hme={xAxis:{},yAxis:{},zAxis:{}},P7=Nt({name:"cartesianAxis",initialState:hme,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=pR(pR({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:mme,removeXAxis:pme,addYAxis:gme,removeYAxis:vme,addZAxis:txe,removeZAxis:nxe,updateYAxisWidth:yme}=P7.actions,bme=P7.reducer,_me=["children"],xme=["dangerouslySetInnerHTML","ticks"];function M7(e,t,n){return(t=wme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wme(e){var t=Sme(e,"string");return typeof t=="symbol"?t:t+""}function Sme(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 P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P2.apply(null,arguments)}function R7(e,t){if(e==null)return{};var n,r,i=Cme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Eme(e){var t=jn(),n=T.useMemo(()=>{var{children:a}=e,s=R7(e,_me);return s},[e]),r=it(a=>rs(a,n.id)),i=n===r;return T.useEffect(()=>(t(mme(n)),()=>{t(pme(n))}),[n,t]),i?e.children:null}var Ame=e=>{var{xAxisId:t,className:n}=e,r=it(ED),i=Hr(),a="xAxis",s=it(_=>xl(_,a,t,i)),u=it(_=>v8(_,a,t,i)),d=it(_=>h8(_,t)),f=it(_=>wse(_,t));if(d==null||f==null)return null;var{dangerouslySetInnerHTML:m,ticks:p}=e,b=R7(e,xme);return T.createElement(Nl,P2({},b,{scale:s,x:f.x,y:f.y,width:d.width,height:d.height,className:Ne("recharts-".concat(a," ").concat(a),n),viewBox:r,ticks:u}))},Tme=e=>{var t,n,r,i,a;return T.createElement(Eme,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.xAxisId,scale:e.scale,type:e.type,padding:e.padding,allowDataOverflow:e.allowDataOverflow,domain:e.domain,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,height:e.height,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter},T.createElement(Ame,e))};class Ly extends T.Component{render(){return T.createElement(Tme,this.props)}}M7(Ly,"displayName","XAxis");M7(Ly,"defaultProps",{allowDataOverflow:yi.allowDataOverflow,allowDecimals:yi.allowDecimals,allowDuplicatedCategory:yi.allowDuplicatedCategory,height:yi.height,hide:!1,mirror:yi.mirror,orientation:yi.orientation,padding:yi.padding,reversed:yi.reversed,scale:yi.scale,tickCount:yi.tickCount,type:yi.type,xAxisId:0});var Ome=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,s=0;if(t){t.forEach(m=>{if(m){var p=m.getBoundingClientRect();p.width>s&&(s=p.width)}});var u=n?n.getBoundingClientRect().width:0,d=i+a,f=s+d+u+(n?r:0);return Math.round(f)}return 0},jme=["dangerouslySetInnerHTML","ticks"];function N7(e,t,n){return(t=Pme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pme(e){var t=Mme(e,"string");return typeof t=="symbol"?t:t+""}function Mme(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 M2(){return M2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M2.apply(null,arguments)}function Rme(e,t){if(e==null)return{};var n,r,i=Nme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Lme(e){var t=jn();return T.useEffect(()=>(t(gme(e)),()=>{t(vme(e))}),[e,t]),null}var Dme=e=>{var t,{yAxisId:n,className:r,width:i,label:a}=e,s=T.useRef(null),u=T.useRef(null),d=it(ED),f=Hr(),m=jn(),p="yAxis",b=it(O=>xl(O,p,n,f)),_=it(O=>m8(O,n)),w=it(O=>Sse(O,n)),x=it(O=>v8(O,p,n,f));if(T.useLayoutEffect(()=>{var O;if(!(i!=="auto"||!_||yC(a)||T.isValidElement(a))){var N=s.current,B=N==null||(O=N.tickRefs)===null||O===void 0?void 0:O.current,{tickSize:V,tickMargin:Z}=N.props,X=Ome({ticks:B,label:u.current,labelGapWithTick:5,tickSize:V,tickMargin:Z});Math.round(_.width)!==Math.round(X)&&m(yme({id:n,width:X}))}},[s,s==null||(t=s.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,_?.width,_,m,a,n,i]),_==null||w==null)return null;var{dangerouslySetInnerHTML:A,ticks:C}=e,j=Rme(e,jme);return T.createElement(Nl,M2({},j,{ref:s,labelRef:u,scale:b,x:w.x,y:w.y,width:_.width,height:_.height,className:Ne("recharts-".concat(p," ").concat(p),r),viewBox:d,ticks:x}))},kme=e=>{var t,n,r,i,a;return T.createElement(T.Fragment,null,T.createElement(Lme,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter}),T.createElement(Dme,e))},Ime={allowDataOverflow:bi.allowDataOverflow,allowDecimals:bi.allowDecimals,allowDuplicatedCategory:bi.allowDuplicatedCategory,hide:!1,mirror:bi.mirror,orientation:bi.orientation,padding:bi.padding,reversed:bi.reversed,scale:bi.scale,tickCount:bi.tickCount,type:bi.type,width:bi.width,yAxisId:0};class Dy extends T.Component{render(){return T.createElement(kme,this.props)}}N7(Dy,"displayName","YAxis");N7(Dy,"defaultProps",Ime);var Ume=(e,t)=>t,BC=Pe([Ume,Lt,qk,Xn,R8,is,Ole,Kn],Nle),zC=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},L7=dn("mouseClick"),D7=qh();D7.startListening({actionCreator:L7,effect:(e,t)=>{var n=e.payload,r=BC(t.getState(),zC(n));r?.activeIndex!=null&&t.dispatch(kse({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var R2=dn("mouseMove"),k7=qh();k7.startListening({actionCreator:R2,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=sC(r,r.tooltip.settings.shared),a=BC(r,zC(n));i==="axis"&&(a?.activeIndex!=null?t.dispatch(E8({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(C8()))}});function Bme(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var gR={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},I7=Nt({name:"rootProps",initialState:gR,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:gR.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),zme=I7.reducer,{updateOptions:Fme}=I7.actions,U7=Nt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:$me}=U7.actions,Vme=U7.reducer,B7=dn("keyDown"),z7=dn("focus"),FC=qh();FC.startListening({actionCreator:B7,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var s=Number(lC(i,Nf(n))),u=is(n);if(a==="Enter"){var d=vv(n,"axis","hover",String(i.index));t.dispatch(x2({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:d}));return}var f=Tse(n),m=f==="left-to-right"?1:-1,p=a==="ArrowRight"?1:-1,b=s+p*m;if(!(u==null||b>=u.length||b<0)){var _=vv(n,"axis","hover",String(b));t.dispatch(x2({active:!0,activeIndex:b.toString(),activeDataKey:void 0,activeCoordinate:_}))}}}}});FC.startListening({actionCreator:z7,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var a="0",s=vv(n,"axis","hover",String(a));t.dispatch(x2({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:s}))}}}});var Yi=dn("externalEvent"),F7=qh();F7.startListening({actionCreator:Yi,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:yle(n),activeDataKey:k8(n),activeIndex:Cl(n),activeLabel:D8(n),activeTooltipIndex:Cl(n),isTooltipActive:ble(n)};e.payload.handler(r,e.payload.reactEvent)}}});var qme=Pe([Rf],e=>e.tooltipItemPayloads),Hme=Pe([qme,rm,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(u=>u.settings.dataKey===r);if(i!=null){var{positions:a}=i;if(a!=null){var s=t(a,n);return s}}}),$7=dn("touchMove"),V7=qh();V7.startListening({actionCreator:$7,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=sC(r,r.tooltip.settings.shared);if(i==="axis"){var a=BC(r,zC({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));a?.activeIndex!=null&&t.dispatch(E8({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var s,u=n.touches[0],d=document.elementFromPoint(u.clientX,u.clientY);if(!d||!d.getAttribute)return;var f=d.getAttribute(SD),m=(s=d.getAttribute(CD))!==null&&s!==void 0?s:void 0,p=Hme(t.getState(),f,m);t.dispatch(S8({activeDataKey:m,activeIndex:f,activeCoordinate:p}))}}});var Gme=Xv({brush:$de,cartesianAxis:bme,chartData:Kle,errorBars:Gfe,graphicalItems:tfe,layout:$te,legend:Ane,options:qle,polarAxis:xce,polarOptions:Vme,referenceElements:Qde,rootProps:zme,tooltip:Ise}),Wme=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return kw({reducer:Gme,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([D7.middleware,k7.middleware,FC.middleware,F7.middleware,V7.middleware]),devTools:{serialize:{replacer:Bme},name:"recharts-".concat(n)}})};function q7(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Hr(),a=T.useRef(null);if(i)return n;a.current==null&&(a.current=Wme(t,r));var s=iS;return T.createElement(q2,{context:s,store:a.current},n)}function H7(e){var{layout:t,width:n,height:r,margin:i}=e,a=jn(),s=Hr();return T.useEffect(()=>{s||(a(Bte(t)),a(zte({width:n,height:r})),a(Ute(i)))},[a,s,t,n,r,i]),null}function G7(e){var t=jn();return T.useEffect(()=>{t(Fme(e))},[t,e]),null}var Yme=["children"];function Kme(e,t){if(e==null)return{};var n,r,i=Zme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cv.apply(null,arguments)}var Xme={width:"100%",height:"100%"},Qme=T.forwardRef((e,t)=>{var n=TD(),r=OD(),i=RD();if(!af(n)||!af(r))return null;var{children:a,otherAttributes:s,title:u,desc:d}=e,f,m;return typeof s.tabIndex=="number"?f=s.tabIndex:f=i?0:void 0,typeof s.role=="string"?m=s.role:m=i?"application":void 0,T.createElement(VL,Cv({},s,{title:u,desc:d,role:m,tabIndex:f,width:n,height:r,style:Xme,ref:t}),a)}),Jme=e=>{var{children:t}=e,n=it(hy);if(!n)return null;var{width:r,height:i,y:a,x:s}=n;return T.createElement(VL,{width:r,height:i,x:s,y:a},t)},vR=T.forwardRef((e,t)=>{var{children:n}=e,r=Kme(e,Yme),i=Hr();return i?T.createElement(Jme,null,n):T.createElement(Qme,Cv({ref:t},r),n)});function epe(){var e=jn(),[t,n]=T.useState(null),r=it(vne);return T.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Pi(a)&&a!==r&&e(Fte(a))}},[t,e,r]),n}function yR(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 tpe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(n),!0).forEach(function(r){npe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function npe(e,t,n){return(t=rpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rpe(e){var t=ipe(e,"string");return typeof t=="symbol"?t:t+""}function ipe(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)}var ape=T.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:s,onDoubleClick:u,onMouseDown:d,onMouseEnter:f,onMouseLeave:m,onMouseMove:p,onMouseUp:b,onTouchEnd:_,onTouchMove:w,onTouchStart:x,style:A,width:C}=e,j=jn(),[O,N]=T.useState(null),[B,V]=T.useState(null);Qle();var Z=epe(),X=T.useCallback(W=>{Z(W),typeof t=="function"&&t(W),N(W),V(W)},[Z,t,N,V]),oe=T.useCallback(W=>{j(L7(W)),j(Yi({handler:a,reactEvent:W}))},[j,a]),ee=T.useCallback(W=>{j(R2(W)),j(Yi({handler:f,reactEvent:W}))},[j,f]),J=T.useCallback(W=>{j(C8()),j(Yi({handler:m,reactEvent:W}))},[j,m]),ne=T.useCallback(W=>{j(R2(W)),j(Yi({handler:p,reactEvent:W}))},[j,p]),he=T.useCallback(()=>{j(z7())},[j]),Q=T.useCallback(W=>{j(B7(W.key))},[j]),se=T.useCallback(W=>{j(Yi({handler:s,reactEvent:W}))},[j,s]),Y=T.useCallback(W=>{j(Yi({handler:u,reactEvent:W}))},[j,u]),U=T.useCallback(W=>{j(Yi({handler:d,reactEvent:W}))},[j,d]),I=T.useCallback(W=>{j(Yi({handler:b,reactEvent:W}))},[j,b]),z=T.useCallback(W=>{j(Yi({handler:x,reactEvent:W}))},[j,x]),M=T.useCallback(W=>{j($7(W)),j(Yi({handler:w,reactEvent:W}))},[j,w]),D=T.useCallback(W=>{j(Yi({handler:_,reactEvent:W}))},[j,_]);return T.createElement($8.Provider,{value:O},T.createElement(cee.Provider,{value:B},T.createElement("div",{className:Ne("recharts-wrapper",r),style:tpe({position:"relative",cursor:"default",width:C,height:i},A),onClick:oe,onContextMenu:se,onDoubleClick:Y,onFocus:he,onKeyDown:Q,onMouseDown:U,onMouseEnter:ee,onMouseLeave:J,onMouseMove:ne,onMouseUp:I,onTouchEnd:D,onTouchMove:M,onTouchStart:z,ref:X},n)))}),ope=["children","className","width","height","style","compact","title","desc"];function spe(e,t){if(e==null)return{};var n,r,i=lpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var W7=T.forwardRef((e,t)=>{var{children:n,className:r,width:i,height:a,style:s,compact:u,title:d,desc:f}=e,m=spe(e,ope),p=Jo(m);return u?T.createElement(vR,{otherAttributes:p,title:d,desc:f},n):T.createElement(ape,{className:r,style:s,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},T.createElement(vR,{otherAttributes:p,title:d,desc:f,ref:t},T.createElement(Jde,null,n)))}),upe=["width","height"];function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N2.apply(null,arguments)}function cpe(e,t){if(e==null)return{};var n,r,i=fpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dpe={top:5,right:5,bottom:5,left:5},hpe={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:dpe,reverseStackOrder:!1,syncMethod:"index"},Y7=T.forwardRef(function(t,n){var r,i=Ni(t.categoricalChartProps,hpe),{width:a,height:s}=i,u=cpe(i,upe);if(!af(a)||!af(s))return null;var{chartName:d,defaultTooltipEventType:f,validateTooltipEventTypes:m,tooltipPayloadSearcher:p,categoricalChartProps:b}=t,_={chartName:d,defaultTooltipEventType:f,validateTooltipEventTypes:m,tooltipPayloadSearcher:p,eventEmitter:void 0};return T.createElement(q7,{preloadedState:{options:_},reduxStoreName:(r=b.id)!==null&&r!==void 0?r:d},T.createElement(g7,{chartData:b.data}),T.createElement(H7,{width:a,height:s,layout:i.layout,margin:i.margin}),T.createElement(G7,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),T.createElement(W7,N2({},u,{width:a,height:s,ref:n})))}),mpe=["axis"],ppe=T.forwardRef((e,t)=>T.createElement(Y7,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:mpe,tooltipPayloadSearcher:gC,categoricalChartProps:e,ref:t}));function gpe(e){var t=jn();return T.useEffect(()=>{t($me(e))},[t,e]),null}var vpe=["width","height","layout"];function L2(){return L2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L2.apply(null,arguments)}function ype(e,t){if(e==null)return{};var n,r,i=bpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _pe={top:5,right:5,bottom:5,left:5},xpe={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:_pe,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},wpe=T.forwardRef(function(t,n){var r,i=Ni(t.categoricalChartProps,xpe),{width:a,height:s,layout:u}=i,d=ype(i,vpe);if(!af(a)||!af(s))return null;var{chartName:f,defaultTooltipEventType:m,validateTooltipEventTypes:p,tooltipPayloadSearcher:b}=t,_={chartName:f,defaultTooltipEventType:m,validateTooltipEventTypes:p,tooltipPayloadSearcher:b,eventEmitter:void 0};return T.createElement(q7,{preloadedState:{options:_},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:f},T.createElement(g7,{chartData:i.data}),T.createElement(H7,{width:a,height:s,layout:u,margin:i.margin}),T.createElement(G7,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),T.createElement(gpe,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),T.createElement(W7,L2({width:a,height:s},d,{ref:n})))}),Spe=["item"],Cpe={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},Epe=T.forwardRef((e,t)=>{var n=Ni(e,Cpe);return T.createElement(wpe,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Spe,tooltipPayloadSearcher:gC,categoricalChartProps:n,ref:t})}),Ape=["axis"],Tpe=T.forwardRef((e,t)=>T.createElement(Y7,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Ape,tooltipPayloadSearcher:gC,categoricalChartProps:e,ref:t}));function K7(e,t){const n=T.useRef(t);T.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 Ope=1;function jpe(e){return Object.freeze({__version:Ope,map:e})}function Ppe(e,t){return Object.freeze({...e,...t})}const $C=T.createContext(null);function Z7(){const e=T.use($C);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Mpe(e){function t(n,r){const{instance:i,context:a}=e(n).current;T.useImperativeHandle(r,()=>i);const{children:s}=n;return s==null?null:Xc.createElement($C,{value:a},s)}return T.forwardRef(t)}function Rpe(e){function t(n,r){const[i,a]=T.useState(!1),{instance:s}=e(n,a).current;T.useImperativeHandle(r,()=>s),T.useEffect(function(){i&&s.update()},[s,i,n.children]);const u=s._contentNode;return u?Dh.createPortal(n.children,u):null}return T.forwardRef(t)}function Npe(e){function t(n,r){const{instance:i}=e(n).current;return T.useImperativeHandle(r,()=>i),null}return T.forwardRef(t)}function X7(e,t){const n=T.useRef(void 0);T.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 VC(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Lpe(e,t){return function(r,i){const a=Z7(),s=e(VC(r,a),a);return K7(a.map,r.attribution),X7(s.current,r.eventHandlers),t(s.current,a,r,i),s}}var rh={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 Dpe=rh.exports,bR;function kpe(){return bR||(bR=1,function(e,t){(function(n,r){r(t)})(Dpe,function(n){var r="1.9.4";function i(c){var g,S,R,$;for(S=1,R=arguments.length;S<R;S++){$=arguments[S];for(g in $)c[g]=$[g]}return c}var a=Object.create||function(){function c(){}return function(g){return c.prototype=g,new c}}();function s(c,g){var S=Array.prototype.slice;if(c.bind)return c.bind.apply(c,S.call(arguments,1));var R=S.call(arguments,2);return function(){return c.apply(g,R.length?R.concat(S.call(arguments)):arguments)}}var u=0;function d(c){return"_leaflet_id"in c||(c._leaflet_id=++u),c._leaflet_id}function f(c,g,S){var R,$,te,me;return me=function(){R=!1,$&&(te.apply(S,$),$=!1)},te=function(){R?$=arguments:(c.apply(S,arguments),setTimeout(me,g),R=!0)},te}function m(c,g,S){var R=g[1],$=g[0],te=R-$;return c===R&&S?c:((c-$)%te+te)%te+$}function p(){return!1}function b(c,g){if(g===!1)return c;var S=Math.pow(10,g===void 0?6:g);return Math.round(c*S)/S}function _(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function w(c){return _(c).split(/\s+/)}function x(c,g){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?a(c.options):{});for(var S in g)c.options[S]=g[S];return c.options}function A(c,g,S){var R=[];for(var $ in c)R.push(encodeURIComponent(S?$.toUpperCase():$)+"="+encodeURIComponent(c[$]));return(!g||g.indexOf("?")===-1?"?":"&")+R.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function j(c,g){return c.replace(C,function(S,R){var $=g[R];if($===void 0)throw new Error("No value provided for variable "+S);return typeof $=="function"&&($=$(g)),$})}var O=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function N(c,g){for(var S=0;S<c.length;S++)if(c[S]===g)return S;return-1}var B="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function V(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var Z=0;function X(c){var g=+new Date,S=Math.max(0,16-(g-Z));return Z=g+S,window.setTimeout(c,S)}var oe=window.requestAnimationFrame||V("RequestAnimationFrame")||X,ee=window.cancelAnimationFrame||V("CancelAnimationFrame")||V("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function J(c,g,S){if(S&&oe===X)c.call(g);else return oe.call(window,s(c,g))}function ne(c){c&&ee.call(window,c)}var he={__proto__:null,extend:i,create:a,bind:s,get lastId(){return u},stamp:d,throttle:f,wrapNum:m,falseFn:p,formatNum:b,trim:_,splitWords:w,setOptions:x,getParamString:A,template:j,isArray:O,indexOf:N,emptyImageUrl:B,requestFn:oe,cancelFn:ee,requestAnimFrame:J,cancelAnimFrame:ne};function Q(){}Q.extend=function(c){var g=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},S=g.__super__=this.prototype,R=a(S);R.constructor=g,g.prototype=R;for(var $ in this)Object.prototype.hasOwnProperty.call(this,$)&&$!=="prototype"&&$!=="__super__"&&(g[$]=this[$]);return c.statics&&i(g,c.statics),c.includes&&(se(c.includes),i.apply(null,[R].concat(c.includes))),i(R,c),delete R.statics,delete R.includes,R.options&&(R.options=S.options?a(S.options):{},i(R.options,c.options)),R._initHooks=[],R.callInitHooks=function(){if(!this._initHooksCalled){S.callInitHooks&&S.callInitHooks.call(this),this._initHooksCalled=!0;for(var te=0,me=R._initHooks.length;te<me;te++)R._initHooks[te].call(this)}},g},Q.include=function(c){var g=this.prototype.options;return i(this.prototype,c),c.options&&(this.prototype.options=g,this.mergeOptions(c.options)),this},Q.mergeOptions=function(c){return i(this.prototype.options,c),this},Q.addInitHook=function(c){var g=Array.prototype.slice.call(arguments,1),S=typeof c=="function"?c:function(){this[c].apply(this,g)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(S),this};function se(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=O(c)?c:[c];for(var g=0;g<c.length;g++)c[g]===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 Y={on:function(c,g,S){if(typeof c=="object")for(var R in c)this._on(R,c[R],g);else{c=w(c);for(var $=0,te=c.length;$<te;$++)this._on(c[$],g,S)}return this},off:function(c,g,S){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var R in c)this._off(R,c[R],g);else{c=w(c);for(var $=arguments.length===1,te=0,me=c.length;te<me;te++)$?this._off(c[te]):this._off(c[te],g,S)}return this},_on:function(c,g,S,R){if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}if(this._listens(c,g,S)===!1){S===this&&(S=void 0);var $={fn:g,ctx:S};R&&($.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push($)}},_off:function(c,g,S){var R,$,te;if(this._events&&(R=this._events[c],!!R)){if(arguments.length===1){if(this._firingCount)for($=0,te=R.length;$<te;$++)R[$].fn=p;delete this._events[c];return}if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}var me=this._listens(c,g,S);if(me!==!1){var Se=R[me];this._firingCount&&(Se.fn=p,this._events[c]=R=R.slice()),R.splice(me,1)}}},fire:function(c,g,S){if(!this.listens(c,S))return this;var R=i({},g,{type:c,target:this,sourceTarget:g&&g.sourceTarget||this});if(this._events){var $=this._events[c];if($){this._firingCount=this._firingCount+1||1;for(var te=0,me=$.length;te<me;te++){var Se=$[te],Me=Se.fn;Se.once&&this.off(c,Me,Se.ctx),Me.call(Se.ctx||this,R)}this._firingCount--}}return S&&this._propagateEvent(R),this},listens:function(c,g,S,R){typeof c!="string"&&console.warn('"string" type argument expected');var $=g;typeof g!="function"&&(R=!!g,$=void 0,S=void 0);var te=this._events&&this._events[c];if(te&&te.length&&this._listens(c,$,S)!==!1)return!0;if(R){for(var me in this._eventParents)if(this._eventParents[me].listens(c,g,S,R))return!0}return!1},_listens:function(c,g,S){if(!this._events)return!1;var R=this._events[c]||[];if(!g)return!!R.length;S===this&&(S=void 0);for(var $=0,te=R.length;$<te;$++)if(R[$].fn===g&&R[$].ctx===S)return $;return!1},once:function(c,g,S){if(typeof c=="object")for(var R in c)this._on(R,c[R],g,!0);else{c=w(c);for(var $=0,te=c.length;$<te;$++)this._on(c[$],g,S,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[d(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[d(c)],this},_propagateEvent:function(c){for(var g in this._eventParents)this._eventParents[g].fire(c.type,i({layer:c.target,propagatedFrom:c.target},c),!0)}};Y.addEventListener=Y.on,Y.removeEventListener=Y.clearAllEventListeners=Y.off,Y.addOneTimeEventListener=Y.once,Y.fireEvent=Y.fire,Y.hasEventListeners=Y.listens;var U=Q.extend(Y);function I(c,g,S){this.x=S?Math.round(c):c,this.y=S?Math.round(g):g}var z=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};I.prototype={clone:function(){return new I(this.x,this.y)},add:function(c){return this.clone()._add(M(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(M(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new I(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new I(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(c){c=M(c);var g=c.x-this.x,S=c.y-this.y;return Math.sqrt(g*g+S*S)},equals:function(c){return c=M(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=M(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}};function M(c,g,S){return c instanceof I?c:O(c)?new I(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new I(c.x,c.y):new I(c,g,S)}function D(c,g){if(c)for(var S=g?[c,g]:c,R=0,$=S.length;R<$;R++)this.extend(S[R])}D.prototype={extend:function(c){var g,S;if(!c)return this;if(c instanceof I||typeof c[0]=="number"||"x"in c)g=S=M(c);else if(c=W(c),g=c.min,S=c.max,!g||!S)return this;return!this.min&&!this.max?(this.min=g.clone(),this.max=S.clone()):(this.min.x=Math.min(g.x,this.min.x),this.max.x=Math.max(S.x,this.max.x),this.min.y=Math.min(g.y,this.min.y),this.max.y=Math.max(S.y,this.max.y)),this},getCenter:function(c){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},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(c){var g,S;return typeof c[0]=="number"||c instanceof I?c=M(c):c=W(c),c instanceof D?(g=c.min,S=c.max):g=S=c,g.x>=this.min.x&&S.x<=this.max.x&&g.y>=this.min.y&&S.y<=this.max.y},intersects:function(c){c=W(c);var g=this.min,S=this.max,R=c.min,$=c.max,te=$.x>=g.x&&R.x<=S.x,me=$.y>=g.y&&R.y<=S.y;return te&&me},overlaps:function(c){c=W(c);var g=this.min,S=this.max,R=c.min,$=c.max,te=$.x>g.x&&R.x<S.x,me=$.y>g.y&&R.y<S.y;return te&&me},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var g=this.min,S=this.max,R=Math.abs(g.x-S.x)*c,$=Math.abs(g.y-S.y)*c;return W(M(g.x-R,g.y-$),M(S.x+R,S.y+$))},equals:function(c){return c?(c=W(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function W(c,g){return!c||c instanceof D?c:new D(c,g)}function H(c,g){if(c)for(var S=g?[c,g]:c,R=0,$=S.length;R<$;R++)this.extend(S[R])}H.prototype={extend:function(c){var g=this._southWest,S=this._northEast,R,$;if(c instanceof ue)R=c,$=c;else if(c instanceof H){if(R=c._southWest,$=c._northEast,!R||!$)return this}else return c?this.extend(ce(c)||re(c)):this;return!g&&!S?(this._southWest=new ue(R.lat,R.lng),this._northEast=new ue($.lat,$.lng)):(g.lat=Math.min(R.lat,g.lat),g.lng=Math.min(R.lng,g.lng),S.lat=Math.max($.lat,S.lat),S.lng=Math.max($.lng,S.lng)),this},pad:function(c){var g=this._southWest,S=this._northEast,R=Math.abs(g.lat-S.lat)*c,$=Math.abs(g.lng-S.lng)*c;return new H(new ue(g.lat-R,g.lng-$),new ue(S.lat+R,S.lng+$))},getCenter:function(){return new ue((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 ue(this.getNorth(),this.getWest())},getSouthEast:function(){return new ue(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){typeof c[0]=="number"||c instanceof ue||"lat"in c?c=ce(c):c=re(c);var g=this._southWest,S=this._northEast,R,$;return c instanceof H?(R=c.getSouthWest(),$=c.getNorthEast()):R=$=c,R.lat>=g.lat&&$.lat<=S.lat&&R.lng>=g.lng&&$.lng<=S.lng},intersects:function(c){c=re(c);var g=this._southWest,S=this._northEast,R=c.getSouthWest(),$=c.getNorthEast(),te=$.lat>=g.lat&&R.lat<=S.lat,me=$.lng>=g.lng&&R.lng<=S.lng;return te&&me},overlaps:function(c){c=re(c);var g=this._southWest,S=this._northEast,R=c.getSouthWest(),$=c.getNorthEast(),te=$.lat>g.lat&&R.lat<S.lat,me=$.lng>g.lng&&R.lng<S.lng;return te&&me},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,g){return c?(c=re(c),this._southWest.equals(c.getSouthWest(),g)&&this._northEast.equals(c.getNorthEast(),g)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function re(c,g){return c instanceof H?c:new H(c,g)}function ue(c,g,S){if(isNaN(c)||isNaN(g))throw new Error("Invalid LatLng object: ("+c+", "+g+")");this.lat=+c,this.lng=+g,S!==void 0&&(this.alt=+S)}ue.prototype={equals:function(c,g){if(!c)return!1;c=ce(c);var S=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return S<=(g===void 0?1e-9:g)},toString:function(c){return"LatLng("+b(this.lat,c)+", "+b(this.lng,c)+")"},distanceTo:function(c){return k.distance(this,ce(c))},wrap:function(){return k.wrapLatLng(this)},toBounds:function(c){var g=180*c/40075017,S=g/Math.cos(Math.PI/180*this.lat);return re([this.lat-g,this.lng-S],[this.lat+g,this.lng+S])},clone:function(){return new ue(this.lat,this.lng,this.alt)}};function ce(c,g,S){return c instanceof ue?c:O(c)&&typeof c[0]!="object"?c.length===3?new ue(c[0],c[1],c[2]):c.length===2?new ue(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new ue(c.lat,"lng"in c?c.lng:c.lon,c.alt):g===void 0?null:new ue(c,g,S)}var ve={latLngToPoint:function(c,g){var S=this.projection.project(c),R=this.scale(g);return this.transformation._transform(S,R)},pointToLatLng:function(c,g){var S=this.scale(g),R=this.transformation.untransform(c,S);return this.projection.unproject(R)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var g=this.projection.bounds,S=this.scale(c),R=this.transformation.transform(g.min,S),$=this.transformation.transform(g.max,S);return new D(R,$)},infinite:!1,wrapLatLng:function(c){var g=this.wrapLng?m(c.lng,this.wrapLng,!0):c.lng,S=this.wrapLat?m(c.lat,this.wrapLat,!0):c.lat,R=c.alt;return new ue(S,g,R)},wrapLatLngBounds:function(c){var g=c.getCenter(),S=this.wrapLatLng(g),R=g.lat-S.lat,$=g.lng-S.lng;if(R===0&&$===0)return c;var te=c.getSouthWest(),me=c.getNorthEast(),Se=new ue(te.lat-R,te.lng-$),Me=new ue(me.lat-R,me.lng-$);return new H(Se,Me)}},k=i({},ve,{wrapLng:[-180,180],R:6371e3,distance:function(c,g){var S=Math.PI/180,R=c.lat*S,$=g.lat*S,te=Math.sin((g.lat-c.lat)*S/2),me=Math.sin((g.lng-c.lng)*S/2),Se=te*te+Math.cos(R)*Math.cos($)*me*me,Me=2*Math.atan2(Math.sqrt(Se),Math.sqrt(1-Se));return this.R*Me}}),F=6378137,G={R:F,MAX_LATITUDE:85.0511287798,project:function(c){var g=Math.PI/180,S=this.MAX_LATITUDE,R=Math.max(Math.min(S,c.lat),-S),$=Math.sin(R*g);return new I(this.R*c.lng*g,this.R*Math.log((1+$)/(1-$))/2)},unproject:function(c){var g=180/Math.PI;return new ue((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*g,c.x*g/this.R)},bounds:function(){var c=F*Math.PI;return new D([-c,-c],[c,c])}()};function le(c,g,S,R){if(O(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=g,this._c=S,this._d=R}le.prototype={transform:function(c,g){return this._transform(c.clone(),g)},_transform:function(c,g){return g=g||1,c.x=g*(this._a*c.x+this._b),c.y=g*(this._c*c.y+this._d),c},untransform:function(c,g){return g=g||1,new I((c.x/g-this._b)/this._a,(c.y/g-this._d)/this._c)}};function q(c,g,S,R){return new le(c,g,S,R)}var ae=i({},k,{code:"EPSG:3857",projection:G,transformation:function(){var c=.5/(Math.PI*G.R);return q(c,.5,-c,.5)}()}),fe=i({},ae,{code:"EPSG:900913"});function ge(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function de(c,g){var S="",R,$,te,me,Se,Me;for(R=0,te=c.length;R<te;R++){for(Se=c[R],$=0,me=Se.length;$<me;$++)Me=Se[$],S+=($?"L":"M")+Me.x+" "+Me.y;S+=g?ot.svg?"z":"x":""}return S||"M0 0"}var _e=document.documentElement.style,Te="ActiveXObject"in window,Le=Te&&!document.addEventListener,He="msLaunchUri"in navigator&&!("documentMode"in document),Be=Rn("webkit"),qe=Rn("android"),be=Rn("android 2")||Rn("android 3"),we=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),De=qe&&Rn("Google")&&we<537&&!("AudioNode"in window),Re=!!window.opera,Ae=!He&&Rn("chrome"),ze=Rn("gecko")&&!Be&&!Re&&!Te,Ve=!Ae&&Rn("safari"),Ze=Rn("phantom"),ut="OTransition"in _e,at=navigator.platform.indexOf("Win")===0,pt=Te&&"transition"in _e,Dt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!be,kt="MozPerspective"in _e,It=!window.L_DISABLE_3D&&(pt||Dt||kt)&&!ut&&!Ze,wr=typeof orientation<"u"||Rn("mobile"),Vn=wr&&Be,os=wr&&Dt,ii=!window.PointerEvent&&window.MSPointerEvent,ss=!!(window.PointerEvent||ii),ja="ontouchstart"in window||!!window.TouchEvent,Gu=!window.L_NO_TOUCH&&(ja||ss),ls=wr&&Re,Pa=wr&&ze,mn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,sn=function(){var c=!1;try{var g=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",p,g),window.removeEventListener("testPassiveEventSupport",p,g)}catch{}return c}(),Jn=function(){return!!document.createElement("canvas").getContext}(),qn=!!(document.createElementNS&&ge("svg").createSVGRect),Qt=!!qn&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Tt=!qn&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var g=c.firstChild;return g.style.behavior="url(#default#VML)",g&&typeof g.adj=="object"}catch{return!1}}(),Jt=navigator.platform.indexOf("Mac")===0,er=navigator.platform.indexOf("Linux")===0;function Rn(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var ot={ie:Te,ielt9:Le,edge:He,webkit:Be,android:qe,android23:be,androidStock:De,opera:Re,chrome:Ae,gecko:ze,safari:Ve,phantom:Ze,opera12:ut,win:at,ie3d:pt,webkit3d:Dt,gecko3d:kt,any3d:It,mobile:wr,mobileWebkit:Vn,mobileWebkit3d:os,msPointer:ii,pointer:ss,touch:Gu,touchNative:ja,mobileOpera:ls,mobileGecko:Pa,retina:mn,passiveEvents:sn,canvas:Jn,svg:qn,vml:Tt,inlineSvg:Qt,mac:Jt,linux:er},hm=ot.msPointer?"MSPointerDown":"pointerdown",Uf=ot.msPointer?"MSPointerMove":"pointermove",us=ot.msPointer?"MSPointerUp":"pointerup",Wu=ot.msPointer?"MSPointerCancel":"pointercancel",Ma={touchstart:hm,touchmove:Uf,touchend:us,touchcancel:Wu},io={touchstart:gm,touchmove:Dl,touchend:Dl,touchcancel:Dl},Di={},ao=!1;function Un(c,g,S){return g==="touchstart"&&Hy(),io[g]?(S=io[g].bind(this,S),c.addEventListener(Ma[g],S,!1),S):(console.warn("wrong event specified:",g),p)}function mm(c,g,S){if(!Ma[g]){console.warn("wrong event specified:",g);return}c.removeEventListener(Ma[g],S,!1)}function pm(c){Di[c.pointerId]=c}function oo(c){Di[c.pointerId]&&(Di[c.pointerId]=c)}function so(c){delete Di[c.pointerId]}function Hy(){ao||(document.addEventListener(hm,pm,!0),document.addEventListener(Uf,oo,!0),document.addEventListener(us,so,!0),document.addEventListener(Wu,so,!0),ao=!0)}function Dl(c,g){if(g.pointerType!==(g.MSPOINTER_TYPE_MOUSE||"mouse")){g.touches=[];for(var S in Di)g.touches.push(Di[S]);g.changedTouches=[g],c(g)}}function gm(c,g){g.MSPOINTER_TYPE_TOUCH&&g.pointerType===g.MSPOINTER_TYPE_TOUCH&&Cn(g),Dl(c,g)}function Gy(c){var g={},S,R;for(R in c)S=c[R],g[R]=S&&S.bind?S.bind(c):S;return c=g,g.type="dblclick",g.detail=2,g.isTrusted=!1,g._simulated=!0,g}var Yu=200;function Ku(c,g){c.addEventListener("dblclick",g);var S=0,R;function $(te){if(te.detail!==1){R=te.detail;return}if(!(te.pointerType==="mouse"||te.sourceCapabilities&&!te.sourceCapabilities.firesTouchEvents)){var me=Ff(te);if(!(me.some(function(Me){return Me instanceof HTMLLabelElement&&Me.attributes.for})&&!me.some(function(Me){return Me instanceof HTMLInputElement||Me instanceof HTMLSelectElement}))){var Se=Date.now();Se-S<=Yu?(R++,R===2&&g(Gy(te))):R=1,S=Se}}}return c.addEventListener("click",$),{dblclick:g,simDblclick:$}}function na(c,g){c.removeEventListener("dblclick",g.dblclick),c.removeEventListener("click",g.simDblclick)}var kl=hs(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cs=hs(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lo=cs==="webkitTransition"||cs==="OTransition"?cs+"End":"transitionend";function Zu(c){return typeof c=="string"?document.getElementById(c):c}function uo(c,g){var S=c.style[g]||c.currentStyle&&c.currentStyle[g];if((!S||S==="auto")&&document.defaultView){var R=document.defaultView.getComputedStyle(c,null);S=R?R[g]:null}return S==="auto"?null:S}function jt(c,g,S){var R=document.createElement(c);return R.className=g||"",S&&S.appendChild(R),R}function en(c){var g=c.parentNode;g&&g.removeChild(c)}function cr(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function co(c){var g=c.parentNode;g&&g.lastChild!==c&&g.appendChild(c)}function fs(c){var g=c.parentNode;g&&g.firstChild!==c&&g.insertBefore(c,g.firstChild)}function ds(c,g){if(c.classList!==void 0)return c.classList.contains(g);var S=fr(c);return S.length>0&&new RegExp("(^|\\s)"+g+"(\\s|$)").test(S)}function vt(c,g){if(c.classList!==void 0)for(var S=w(g),R=0,$=S.length;R<$;R++)c.classList.add(S[R]);else if(!ds(c,g)){var te=fr(c);Bf(c,(te?te+" ":"")+g)}}function tn(c,g){c.classList!==void 0?c.classList.remove(g):Bf(c,_((" "+fr(c)+" ").replace(" "+g+" "," ")))}function Bf(c,g){c.className.baseVal===void 0?c.className=g:c.className.baseVal=g}function fr(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function Sr(c,g){"opacity"in c.style?c.style.opacity=g:"filter"in c.style&&vm(c,g)}function vm(c,g){var S=!1,R="DXImageTransform.Microsoft.Alpha";try{S=c.filters.item(R)}catch{if(g===1)return}g=Math.round(g*100),S?(S.Enabled=g!==100,S.Opacity=g):c.style.filter+=" progid:"+R+"(opacity="+g+")"}function hs(c){for(var g=document.documentElement.style,S=0;S<c.length;S++)if(c[S]in g)return c[S];return!1}function Gr(c,g,S){var R=g||new I(0,0);c.style[kl]=(ot.ie3d?"translate("+R.x+"px,"+R.y+"px)":"translate3d("+R.x+"px,"+R.y+"px,0)")+(S?" scale("+S+")":"")}function _n(c,g){c._leaflet_pos=g,ot.any3d?Gr(c,g):(c.style.left=g.x+"px",c.style.top=g.y+"px")}function Ra(c){return c._leaflet_pos||new I(0,0)}var ki,Il,Xu;if("onselectstart"in document)ki=function(){mt(window,"selectstart",Cn)},Il=function(){Ut(window,"selectstart",Cn)};else{var ms=hs(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ki=function(){if(ms){var c=document.documentElement.style;Xu=c[ms],c[ms]="none"}},Il=function(){ms&&(document.documentElement.style[ms]=Xu,Xu=void 0)}}function Ul(){mt(window,"dragstart",Cn)}function zf(){Ut(window,"dragstart",Cn)}var Qu,ps;function Bl(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(gs(),Qu=c,ps=c.style.outlineStyle,c.style.outlineStyle="none",mt(window,"keydown",gs))}function gs(){Qu&&(Qu.style.outlineStyle=ps,Qu=void 0,ps=void 0,Ut(window,"keydown",gs))}function fo(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function Na(c){var g=c.getBoundingClientRect();return{x:g.width/c.offsetWidth||1,y:g.height/c.offsetHeight||1,boundingClientRect:g}}var ym={__proto__:null,TRANSFORM:kl,TRANSITION:cs,TRANSITION_END:lo,get:Zu,getStyle:uo,create:jt,remove:en,empty:cr,toFront:co,toBack:fs,hasClass:ds,addClass:vt,removeClass:tn,setClass:Bf,getClass:fr,setOpacity:Sr,testProp:hs,setTransform:Gr,setPosition:_n,getPosition:Ra,get disableTextSelection(){return ki},get enableTextSelection(){return Il},disableImageDrag:Ul,enableImageDrag:zf,preventOutline:Bl,restoreOutline:gs,getSizedParentNode:fo,getScale:Na};function mt(c,g,S,R){if(g&&typeof g=="object")for(var $ in g)ho(c,$,g[$],S);else{g=w(g);for(var te=0,me=g.length;te<me;te++)ho(c,g[te],S,R)}return this}var ai="_leaflet_events";function Ut(c,g,S,R){if(arguments.length===1)Ii(c),delete c[ai];else if(g&&typeof g=="object")for(var $ in g)Ui(c,$,g[$],S);else if(g=w(g),arguments.length===2)Ii(c,function(Se){return N(g,Se)!==-1});else for(var te=0,me=g.length;te<me;te++)Ui(c,g[te],S,R);return this}function Ii(c,g){for(var S in c[ai]){var R=S.split(/\d/)[0];(!g||g(R))&&Ui(c,R,null,null,S)}}var zl={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ho(c,g,S,R){var $=g+d(S)+(R?"_"+d(R):"");if(c[ai]&&c[ai][$])return this;var te=function(Se){return S.call(R||c,Se||window.event)},me=te;!ot.touchNative&&ot.pointer&&g.indexOf("touch")===0?te=Un(c,g,te):ot.touch&&g==="dblclick"?te=Ku(c,te):"addEventListener"in c?g==="touchstart"||g==="touchmove"||g==="wheel"||g==="mousewheel"?c.addEventListener(zl[g]||g,te,ot.passiveEvents?{passive:!1}:!1):g==="mouseenter"||g==="mouseleave"?(te=function(Se){Se=Se||window.event,po(c,Se)&&me(Se)},c.addEventListener(zl[g],te,!1)):c.addEventListener(g,me,!1):c.attachEvent("on"+g,te),c[ai]=c[ai]||{},c[ai][$]=te}function Ui(c,g,S,R,$){$=$||g+d(S)+(R?"_"+d(R):"");var te=c[ai]&&c[ai][$];if(!te)return this;!ot.touchNative&&ot.pointer&&g.indexOf("touch")===0?mm(c,g,te):ot.touch&&g==="dblclick"?na(c,te):"removeEventListener"in c?c.removeEventListener(zl[g]||g,te,!1):c.detachEvent("on"+g,te),c[ai][$]=null}function ra(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function vs(c){return ho(c,"wheel",ra),this}function ys(c){return mt(c,"mousedown touchstart dblclick contextmenu",ra),c._leaflet_disable_click=!0,this}function Cn(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function Bi(c){return Cn(c),ra(c),this}function Ff(c){if(c.composedPath)return c.composedPath();for(var g=[],S=c.target;S;)g.push(S),S=S.parentNode;return g}function dr(c,g){if(!g)return new I(c.clientX,c.clientY);var S=Na(g),R=S.boundingClientRect;return new I((c.clientX-R.left)/S.x-g.clientLeft,(c.clientY-R.top)/S.y-g.clientTop)}var mo=ot.linux&&ot.chrome?window.devicePixelRatio:ot.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Fl(c){return ot.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/mo:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function po(c,g){var S=g.relatedTarget;if(!S)return!0;try{for(;S&&S!==c;)S=S.parentNode}catch{return!1}return S!==c}var Wy={__proto__:null,on:mt,off:Ut,stopPropagation:ra,disableScrollPropagation:vs,disableClickPropagation:ys,preventDefault:Cn,stop:Bi,getPropagationPath:Ff,getMousePosition:dr,getWheelDelta:Fl,isExternalTarget:po,addListener:mt,removeListener:Ut},Ju=U.extend({run:function(c,g,S,R){this.stop(),this._el=c,this._inProgress=!0,this._duration=S||.25,this._easeOutPower=1/Math.max(R||.5,.2),this._startPos=Ra(c),this._offset=g.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=J(this._animate,this),this._step()},_step:function(c){var g=+new Date-this._startTime,S=this._duration*1e3;g<S?this._runFrame(this._easeOut(g/S),c):(this._runFrame(1),this._complete())},_runFrame:function(c,g){var S=this._startPos.add(this._offset.multiplyBy(c));g&&S._round(),_n(this._el,S),this.fire("step")},_complete:function(){ne(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),xt=U.extend({options:{crs:ae,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,g){g=x(this,g),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),g.maxBounds&&this.setMaxBounds(g.maxBounds),g.zoom!==void 0&&(this._zoom=this._limitZoom(g.zoom)),g.center&&g.zoom!==void 0&&this.setView(ce(g.center),g.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=cs&&ot.any3d&&!ot.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),mt(this._proxy,lo,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,g,S){if(g=g===void 0?this._zoom:this._limitZoom(g),c=this._limitCenter(ce(c),g,this.options.maxBounds),S=S||{},this._stop(),this._loaded&&!S.reset&&S!==!0){S.animate!==void 0&&(S.zoom=i({animate:S.animate},S.zoom),S.pan=i({animate:S.animate,duration:S.duration},S.pan));var R=this._zoom!==g?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,g,S.zoom):this._tryAnimatedPan(c,S.pan);if(R)return clearTimeout(this._sizeTimer),this}return this._resetView(c,g,S.pan&&S.pan.noMoveStart),this},setZoom:function(c,g){return this._loaded?this.setView(this.getCenter(),c,{zoom:g}):(this._zoom=c,this)},zoomIn:function(c,g){return c=c||(ot.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,g)},zoomOut:function(c,g){return c=c||(ot.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,g)},setZoomAround:function(c,g,S){var R=this.getZoomScale(g),$=this.getSize().divideBy(2),te=c instanceof I?c:this.latLngToContainerPoint(c),me=te.subtract($).multiplyBy(1-1/R),Se=this.containerPointToLatLng($.add(me));return this.setView(Se,g,{zoom:S})},_getBoundsCenterZoom:function(c,g){g=g||{},c=c.getBounds?c.getBounds():re(c);var S=M(g.paddingTopLeft||g.padding||[0,0]),R=M(g.paddingBottomRight||g.padding||[0,0]),$=this.getBoundsZoom(c,!1,S.add(R));if($=typeof g.maxZoom=="number"?Math.min(g.maxZoom,$):$,$===1/0)return{center:c.getCenter(),zoom:$};var te=R.subtract(S).divideBy(2),me=this.project(c.getSouthWest(),$),Se=this.project(c.getNorthEast(),$),Me=this.unproject(me.add(Se).divideBy(2).add(te),$);return{center:Me,zoom:$}},fitBounds:function(c,g){if(c=re(c),!c.isValid())throw new Error("Bounds are not valid.");var S=this._getBoundsCenterZoom(c,g);return this.setView(S.center,S.zoom,g)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,g){return this.setView(c,this._zoom,{pan:g})},panBy:function(c,g){if(c=M(c).round(),g=g||{},!c.x&&!c.y)return this.fire("moveend");if(g.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ju,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),g.noMoveStart||this.fire("movestart"),g.animate!==!1){vt(this._mapPane,"leaflet-pan-anim");var S=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,S,g.duration||.25,g.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,g,S){if(S=S||{},S.animate===!1||!ot.any3d)return this.setView(c,g,S);this._stop();var R=this.project(this.getCenter()),$=this.project(c),te=this.getSize(),me=this._zoom;c=ce(c),g=g===void 0?me:g;var Se=Math.max(te.x,te.y),Me=Se*this.getZoomScale(me,g),Fe=$.distanceTo(R)||1,Xe=1.42,tt=Xe*Xe;function rt(pn){var $i=pn?-1:1,oa=pn?Me:Se,Ua=Me*Me-Se*Se+$i*tt*tt*Fe*Fe,sa=2*oa*tt*Fe,eu=Ua/sa,dc=Math.sqrt(eu*eu+1)-eu,tu=dc<1e-9?-18:Math.log(dc);return tu}function ht(pn){return(Math.exp(pn)-Math.exp(-pn))/2}function nn(pn){return(Math.exp(pn)+Math.exp(-pn))/2}function xn(pn){return ht(pn)/nn(pn)}var nr=rt(0);function Wr(pn){return Se*(nn(nr)/nn(nr+Xe*pn))}function Im(pn){return Se*(nn(nr)*xn(nr+Xe*pn)-ht(nr))/tt}function Um(pn){return 1-Math.pow(1-pn,1.5)}var Jl=Date.now(),Ps=(rt(1)-nr)/Xe,Bm=S.duration?1e3*S.duration:1e3*Ps*.8;function Ms(){var pn=(Date.now()-Jl)/Bm,$i=Um(pn)*Ps;pn<=1?(this._flyToFrame=J(Ms,this),this._move(this.unproject(R.add($.subtract(R).multiplyBy(Im($i)/Fe)),me),this.getScaleZoom(Se/Wr($i),me),{flyTo:!0})):this._move(c,g)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),Ms.call(this),this},flyToBounds:function(c,g){var S=this._getBoundsCenterZoom(c,g);return this.flyTo(S.center,S.zoom,g)},setMaxBounds:function(c){return c=re(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var g=this.options.minZoom;return this.options.minZoom=c,this._loaded&&g!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var g=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&g!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,g){this._enforcingBounds=!0;var S=this.getCenter(),R=this._limitCenter(S,this._zoom,re(c));return S.equals(R)||this.panTo(R,g),this._enforcingBounds=!1,this},panInside:function(c,g){g=g||{};var S=M(g.paddingTopLeft||g.padding||[0,0]),R=M(g.paddingBottomRight||g.padding||[0,0]),$=this.project(this.getCenter()),te=this.project(c),me=this.getPixelBounds(),Se=W([me.min.add(S),me.max.subtract(R)]),Me=Se.getSize();if(!Se.contains(te)){this._enforcingBounds=!0;var Fe=te.subtract(Se.getCenter()),Xe=Se.extend(te).getSize().subtract(Me);$.x+=Fe.x<0?-Xe.x:Xe.x,$.y+=Fe.y<0?-Xe.y:Xe.y,this.panTo(this.unproject($),g),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=i({animate:!1,pan:!0},c===!0?{animate:!0}:c);var g=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var S=this.getSize(),R=g.divideBy(2).round(),$=S.divideBy(2).round(),te=R.subtract($);return!te.x&&!te.y?this:(c.animate&&c.pan?this.panBy(te):(c.pan&&this._rawPanBy(te),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:g,newSize:S}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=i({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var g=s(this._handleGeolocationResponse,this),S=s(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(g,S,c):navigator.geolocation.getCurrentPosition(g,S,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var g=c.code,S=c.message||(g===1?"permission denied":g===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:g,message:"Geolocation error: "+S+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var g=c.coords.latitude,S=c.coords.longitude,R=new ue(g,S),$=R.toBounds(c.coords.accuracy*2),te=this._locateOptions;if(te.setView){var me=this.getBoundsZoom($);this.setView(R,te.maxZoom?Math.min(me,te.maxZoom):me)}var Se={latlng:R,bounds:$,timestamp:c.timestamp};for(var Me in c.coords)typeof c.coords[Me]=="number"&&(Se[Me]=c.coords[Me]);this.fire("locationfound",Se)}},addHandler:function(c,g){if(!g)return this;var S=this[c]=new g(this);return this._handlers.push(S),this.options[c]&&S.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),en(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ne(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)en(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,g){var S="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),R=jt("div",S,g||this._mapPane);return c&&(this._panes[c]=R),R},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),g=this.unproject(c.getBottomLeft()),S=this.unproject(c.getTopRight());return new H(g,S)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,g,S){c=re(c),S=M(S||[0,0]);var R=this.getZoom()||0,$=this.getMinZoom(),te=this.getMaxZoom(),me=c.getNorthWest(),Se=c.getSouthEast(),Me=this.getSize().subtract(S),Fe=W(this.project(Se,R),this.project(me,R)).getSize(),Xe=ot.any3d?this.options.zoomSnap:1,tt=Me.x/Fe.x,rt=Me.y/Fe.y,ht=g?Math.max(tt,rt):Math.min(tt,rt);return R=this.getScaleZoom(ht,R),Xe&&(R=Math.round(R/(Xe/100))*(Xe/100),R=g?Math.ceil(R/Xe)*Xe:Math.floor(R/Xe)*Xe),Math.max($,Math.min(te,R))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,g){var S=this._getTopLeftPoint(c,g);return new D(S,S.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,g){var S=this.options.crs;return g=g===void 0?this._zoom:g,S.scale(c)/S.scale(g)},getScaleZoom:function(c,g){var S=this.options.crs;g=g===void 0?this._zoom:g;var R=S.zoom(c*S.scale(g));return isNaN(R)?1/0:R},project:function(c,g){return g=g===void 0?this._zoom:g,this.options.crs.latLngToPoint(ce(c),g)},unproject:function(c,g){return g=g===void 0?this._zoom:g,this.options.crs.pointToLatLng(M(c),g)},layerPointToLatLng:function(c){var g=M(c).add(this.getPixelOrigin());return this.unproject(g)},latLngToLayerPoint:function(c){var g=this.project(ce(c))._round();return g._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(ce(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(re(c))},distance:function(c,g){return this.options.crs.distance(ce(c),ce(g))},containerPointToLayerPoint:function(c){return M(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return M(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var g=this.containerPointToLayerPoint(M(c));return this.layerPointToLatLng(g)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ce(c)))},mouseEventToContainerPoint:function(c){return dr(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var g=this._container=Zu(c);if(g){if(g._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");mt(g,"scroll",this._onScroll,this),this._containerId=d(g)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&ot.any3d,vt(c,"leaflet-container"+(ot.touch?" leaflet-touch":"")+(ot.retina?" leaflet-retina":"")+(ot.ielt9?" leaflet-oldie":"")+(ot.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var g=uo(c,"position");g!=="absolute"&&g!=="relative"&&g!=="fixed"&&g!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),_n(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(vt(c.markerPane,"leaflet-zoom-hide"),vt(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,g,S){_n(this._mapPane,new I(0,0));var R=!this._loaded;this._loaded=!0,g=this._limitZoom(g),this.fire("viewprereset");var $=this._zoom!==g;this._moveStart($,S)._move(c,g)._moveEnd($),this.fire("viewreset"),R&&this.fire("load")},_moveStart:function(c,g){return c&&this.fire("zoomstart"),g||this.fire("movestart"),this},_move:function(c,g,S,R){g===void 0&&(g=this._zoom);var $=this._zoom!==g;return this._zoom=g,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),R?S&&S.pinch&&this.fire("zoom",S):(($||S&&S.pinch)&&this.fire("zoom",S),this.fire("move",S)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ne(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){_n(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[d(this._container)]=this;var g=c?Ut:mt;g(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&g(window,"resize",this._onResize,this),ot.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ne(this._resizeRequest),this._resizeRequest=J(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,g){for(var S=[],R,$=g==="mouseout"||g==="mouseover",te=c.target||c.srcElement,me=!1;te;){if(R=this._targets[d(te)],R&&(g==="click"||g==="preclick")&&this._draggableMoved(R)){me=!0;break}if(R&&R.listens(g,!0)&&($&&!po(te,c)||(S.push(R),$))||te===this._container)break;te=te.parentNode}return!S.length&&!me&&!$&&this.listens(g,!0)&&(S=[this]),S},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var g=c.target||c.srcElement;if(!(!this._loaded||g._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(g))){var S=c.type;S==="mousedown"&&Bl(g),this._fireDOMEvent(c,S)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,g,S){if(c.type==="click"){var R=i({},c);R.type="preclick",this._fireDOMEvent(R,R.type,S)}var $=this._findEventTargets(c,g);if(S){for(var te=[],me=0;me<S.length;me++)S[me].listens(g,!0)&&te.push(S[me]);$=te.concat($)}if($.length){g==="contextmenu"&&Cn(c);var Se=$[0],Me={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var Fe=Se.getLatLng&&(!Se._radius||Se._radius<=10);Me.containerPoint=Fe?this.latLngToContainerPoint(Se.getLatLng()):this.mouseEventToContainerPoint(c),Me.layerPoint=this.containerPointToLayerPoint(Me.containerPoint),Me.latlng=Fe?Se.getLatLng():this.layerPointToLatLng(Me.layerPoint)}for(me=0;me<$.length;me++)if($[me].fire(g,Me,!0),Me.originalEvent._stopped||$[me].options.bubblingMouseEvents===!1&&N(this._mouseEvents,g)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,g=this._handlers.length;c<g;c++)this._handlers[c].disable()},whenReady:function(c,g){return this._loaded?c.call(g||this,{target:this}):this.on("load",c,g),this},_getMapPanePos:function(){return Ra(this._mapPane)||new I(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,g){var S=c&&g!==void 0?this._getNewPixelOrigin(c,g):this.getPixelOrigin();return S.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,g){var S=this.getSize()._divideBy(2);return this.project(c,g)._subtract(S)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,g,S){var R=this._getNewPixelOrigin(S,g);return this.project(c,g)._subtract(R)},_latLngBoundsToNewLayerBounds:function(c,g,S){var R=this._getNewPixelOrigin(S,g);return W([this.project(c.getSouthWest(),g)._subtract(R),this.project(c.getNorthWest(),g)._subtract(R),this.project(c.getSouthEast(),g)._subtract(R),this.project(c.getNorthEast(),g)._subtract(R)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,g,S){if(!S)return c;var R=this.project(c,g),$=this.getSize().divideBy(2),te=new D(R.subtract($),R.add($)),me=this._getBoundsOffset(te,S,g);return Math.abs(me.x)<=1&&Math.abs(me.y)<=1?c:this.unproject(R.add(me),g)},_limitOffset:function(c,g){if(!g)return c;var S=this.getPixelBounds(),R=new D(S.min.add(c),S.max.add(c));return c.add(this._getBoundsOffset(R,g))},_getBoundsOffset:function(c,g,S){var R=W(this.project(g.getNorthEast(),S),this.project(g.getSouthWest(),S)),$=R.min.subtract(c.min),te=R.max.subtract(c.max),me=this._rebound($.x,-te.x),Se=this._rebound($.y,-te.y);return new I(me,Se)},_rebound:function(c,g){return c+g>0?Math.round(c-g)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(g))},_limitZoom:function(c){var g=this.getMinZoom(),S=this.getMaxZoom(),R=ot.any3d?this.options.zoomSnap:1;return R&&(c=Math.round(c/R)*R),Math.max(g,Math.min(S,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,g){var S=this._getCenterOffset(c)._trunc();return(g&&g.animate)!==!0&&!this.getSize().contains(S)?!1:(this.panBy(S,g),!0)},_createAnimProxy:function(){var c=this._proxy=jt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(g){var S=kl,R=this._proxy.style[S];Gr(this._proxy,this.project(g.center,g.zoom),this.getZoomScale(g.zoom,1)),R===this._proxy.style[S]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){en(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),g=this.getZoom();Gr(this._proxy,this.project(c,g),this.getZoomScale(g,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,g,S){if(this._animatingZoom)return!0;if(S=S||{},!this._zoomAnimated||S.animate===!1||this._nothingToAnimate()||Math.abs(g-this._zoom)>this.options.zoomAnimationThreshold)return!1;var R=this.getZoomScale(g),$=this._getCenterOffset(c)._divideBy(1-1/R);return S.animate!==!0&&!this.getSize().contains($)?!1:(J(function(){this._moveStart(!0,S.noMoveStart||!1)._animateZoom(c,g,!0)},this),!0)},_animateZoom:function(c,g,S,R){this._mapPane&&(S&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=g,vt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:g,noUpdate:R}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tn(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 $l(c,g){return new xt(c,g)}var Cr=Q.extend({options:{position:"topright"},initialize:function(c){x(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var g=this._map;return g&&g.removeControl(this),this.options.position=c,g&&g.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var g=this._container=this.onAdd(c),S=this.getPosition(),R=c._controlCorners[S];return vt(g,"leaflet-control"),S.indexOf("bottom")!==-1?R.insertBefore(g,R.firstChild):R.appendChild(g),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(en(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),bs=function(c){return new Cr(c)};xt.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},g="leaflet-",S=this._controlContainer=jt("div",g+"control-container",this._container);function R($,te){var me=g+$+" "+g+te;c[$+te]=jt("div",me,S)}R("top","left"),R("top","right"),R("bottom","left"),R("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)en(this._controlCorners[c]);en(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var bm=Cr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,g,S,R){return S<R?-1:R<S?1:0}},initialize:function(c,g,S){x(this,S),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var R in c)this._addLayer(c[R],R);for(R in g)this._addLayer(g[R],R,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var g=0;g<this._layers.length;g++)this._layers[g].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Cr.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,g){return this._addLayer(c,g),this._map?this._update():this},addOverlay:function(c,g){return this._addLayer(c,g,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var g=this._getLayer(d(c));return g&&this._layers.splice(this._layers.indexOf(g),1),this._map?this._update():this},expand:function(){vt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(vt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):tn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",g=this._container=jt("div",c),S=this.options.collapsed;g.setAttribute("aria-haspopup",!0),ys(g),vs(g);var R=this._section=jt("section",c+"-list");S&&(this._map.on("click",this.collapse,this),mt(g,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var $=this._layersLink=jt("a",c+"-toggle",g);$.href="#",$.title="Layers",$.setAttribute("role","button"),mt($,{keydown:function(te){te.keyCode===13&&this._expandSafely()},click:function(te){Cn(te),this._expandSafely()}},this),S||this.expand(),this._baseLayersList=jt("div",c+"-base",R),this._separator=jt("div",c+"-separator",R),this._overlaysList=jt("div",c+"-overlays",R),g.appendChild(R)},_getLayer:function(c){for(var g=0;g<this._layers.length;g++)if(this._layers[g]&&d(this._layers[g].layer)===c)return this._layers[g]},_addLayer:function(c,g,S){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:g,overlay:S}),this.options.sortLayers&&this._layers.sort(s(function(R,$){return this.options.sortFunction(R.layer,$.layer,R.name,$.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;cr(this._baseLayersList),cr(this._overlaysList),this._layerControlInputs=[];var c,g,S,R,$=0;for(S=0;S<this._layers.length;S++)R=this._layers[S],this._addItem(R),g=g||R.overlay,c=c||!R.overlay,$+=R.overlay?0:1;return this.options.hideSingleBase&&(c=c&&$>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=g&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var g=this._getLayer(d(c.target)),S=g.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;S&&this._map.fire(S,g)},_createRadioElement:function(c,g){var S='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(g?' checked="checked"':"")+"/>",R=document.createElement("div");return R.innerHTML=S,R.firstChild},_addItem:function(c){var g=document.createElement("label"),S=this._map.hasLayer(c.layer),R;c.overlay?(R=document.createElement("input"),R.type="checkbox",R.className="leaflet-control-layers-selector",R.defaultChecked=S):R=this._createRadioElement("leaflet-base-layers_"+d(this),S),this._layerControlInputs.push(R),R.layerId=d(c.layer),mt(R,"click",this._onInputClick,this);var $=document.createElement("span");$.innerHTML=" "+c.name;var te=document.createElement("span");g.appendChild(te),te.appendChild(R),te.appendChild($);var me=c.overlay?this._overlaysList:this._baseLayersList;return me.appendChild(g),this._checkDisabledLayers(),g},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,g,S,R=[],$=[];this._handlingClick=!0;for(var te=c.length-1;te>=0;te--)g=c[te],S=this._getLayer(g.layerId).layer,g.checked?R.push(S):g.checked||$.push(S);for(te=0;te<$.length;te++)this._map.hasLayer($[te])&&this._map.removeLayer($[te]);for(te=0;te<R.length;te++)this._map.hasLayer(R[te])||this._map.addLayer(R[te]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,g,S,R=this._map.getZoom(),$=c.length-1;$>=0;$--)g=c[$],S=this._getLayer(g.layerId).layer,g.disabled=S.options.minZoom!==void 0&&R<S.options.minZoom||S.options.maxZoom!==void 0&&R>S.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,mt(c,"click",Cn),this.expand();var g=this;setTimeout(function(){Ut(c,"click",Cn),g._preventClick=!1})}}),Yy=function(c,g,S){return new bm(c,g,S)},$f=Cr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var g="leaflet-control-zoom",S=jt("div",g+" leaflet-bar"),R=this.options;return this._zoomInButton=this._createButton(R.zoomInText,R.zoomInTitle,g+"-in",S,this._zoomIn),this._zoomOutButton=this._createButton(R.zoomOutText,R.zoomOutTitle,g+"-out",S,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),S},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,g,S,R,$){var te=jt("a",S,R);return te.innerHTML=c,te.href="#",te.title=g,te.setAttribute("role","button"),te.setAttribute("aria-label",g),ys(te),mt(te,"click",Bi),mt(te,"click",$,this),mt(te,"click",this._refocusOnMap,this),te},_updateDisabled:function(){var c=this._map,g="leaflet-disabled";tn(this._zoomInButton,g),tn(this._zoomOutButton,g),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(vt(this._zoomOutButton,g),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(vt(this._zoomInButton,g),this._zoomInButton.setAttribute("aria-disabled","true"))}});xt.mergeOptions({zoomControl:!0}),xt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new $f,this.addControl(this.zoomControl))});var Vf=function(c){return new $f(c)},_m=Cr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var g="leaflet-control-scale",S=jt("div",g),R=this.options;return this._addScales(R,g+"-line",S),c.on(R.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),S},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,g,S){c.metric&&(this._mScale=jt("div",g,S)),c.imperial&&(this._iScale=jt("div",g,S))},_update:function(){var c=this._map,g=c.getSize().y/2,S=c.distance(c.containerPointToLatLng([0,g]),c.containerPointToLatLng([this.options.maxWidth,g]));this._updateScales(S)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var g=this._getRoundNum(c),S=g<1e3?g+" m":g/1e3+" km";this._updateScale(this._mScale,S,g/c)},_updateImperial:function(c){var g=c*3.2808399,S,R,$;g>5280?(S=g/5280,R=this._getRoundNum(S),this._updateScale(this._iScale,R+" mi",R/S)):($=this._getRoundNum(g),this._updateScale(this._iScale,$+" ft",$/g))},_updateScale:function(c,g,S){c.style.width=Math.round(this.options.maxWidth*S)+"px",c.innerHTML=g},_getRoundNum:function(c){var g=Math.pow(10,(Math.floor(c)+"").length-1),S=c/g;return S=S>=10?10:S>=5?5:S>=3?3:S>=2?2:1,g*S}}),Ky=function(c){return new _m(c)},Zy='<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>',qf=Cr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ot.inlineSvg?Zy+" ":"")+"Leaflet</a>"},initialize:function(c){x(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=jt("div","leaflet-control-attribution"),ys(this._container);for(var g in c._layers)c._layers[g].getAttribution&&this.addAttribution(c._layers[g].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var g in this._attributions)this._attributions[g]&&c.push(g);var S=[];this.options.prefix&&S.push(this.options.prefix),c.length&&S.push(c.join(", ")),this._container.innerHTML=S.join(' <span aria-hidden="true">|</span> ')}}});xt.mergeOptions({attributionControl:!0}),xt.addInitHook(function(){this.options.attributionControl&&new qf().addTo(this)});var Xy=function(c){return new qf(c)};Cr.Layers=bm,Cr.Zoom=$f,Cr.Scale=_m,Cr.Attribution=qf,bs.layers=Yy,bs.zoom=Vf,bs.scale=Ky,bs.attribution=Xy;var oi=Q.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});oi.addTo=function(c,g){return c.addHandler(g,this),this};var Qy={Events:Y},xm=ot.touch?"touchstart mousedown":"mousedown",La=U.extend({options:{clickTolerance:3},initialize:function(c,g,S,R){x(this,R),this._element=c,this._dragStartTarget=g||c,this._preventOutline=S},enable:function(){this._enabled||(mt(this._dragStartTarget,xm,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(La._dragging===this&&this.finishDrag(!0),Ut(this._dragStartTarget,xm,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!ds(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){La._dragging===this&&this.finishDrag();return}if(!(La._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(La._dragging=this,this._preventOutline&&Bl(this._element),Ul(),ki(),!this._moving)){this.fire("down");var g=c.touches?c.touches[0]:c,S=fo(this._element);this._startPoint=new I(g.clientX,g.clientY),this._startPos=Ra(this._element),this._parentScale=Na(S);var R=c.type==="mousedown";mt(document,R?"mousemove":"touchmove",this._onMove,this),mt(document,R?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var g=c.touches&&c.touches.length===1?c.touches[0]:c,S=new I(g.clientX,g.clientY)._subtract(this._startPoint);!S.x&&!S.y||Math.abs(S.x)+Math.abs(S.y)<this.options.clickTolerance||(S.x/=this._parentScale.x,S.y/=this._parentScale.y,Cn(c),this._moved||(this.fire("dragstart"),this._moved=!0,vt(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),vt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(S),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),_n(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){tn(document.body,"leaflet-dragging"),this._lastTarget&&(tn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ut(document,"mousemove touchmove",this._onMove,this),Ut(document,"mouseup touchend touchcancel",this._onUp,this),zf(),Il();var g=this._moved&&this._moving;this._moving=!1,La._dragging=!1,g&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function wm(c,g,S){var R,$=[1,4,2,8],te,me,Se,Me,Fe,Xe,tt,rt;for(te=0,Xe=c.length;te<Xe;te++)c[te]._code=go(c[te],g);for(Se=0;Se<4;Se++){for(tt=$[Se],R=[],te=0,Xe=c.length,me=Xe-1;te<Xe;me=te++)Me=c[te],Fe=c[me],Me._code&tt?Fe._code&tt||(rt=tc(Fe,Me,tt,g,S),rt._code=go(rt,g),R.push(rt)):(Fe._code&tt&&(rt=tc(Fe,Me,tt,g,S),rt._code=go(rt,g),R.push(rt)),R.push(Me));c=R}return c}function ec(c,g){var S,R,$,te,me,Se,Me,Fe,Xe;if(!c||c.length===0)throw new Error("latlngs not passed");tr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var tt=ce([0,0]),rt=re(c),ht=rt.getNorthWest().distanceTo(rt.getSouthWest())*rt.getNorthEast().distanceTo(rt.getNorthWest());ht<1700&&(tt=Hf(c));var nn=c.length,xn=[];for(S=0;S<nn;S++){var nr=ce(c[S]);xn.push(g.project(ce([nr.lat-tt.lat,nr.lng-tt.lng])))}for(Se=Me=Fe=0,S=0,R=nn-1;S<nn;R=S++)$=xn[S],te=xn[R],me=$.y*te.x-te.y*$.x,Me+=($.x+te.x)*me,Fe+=($.y+te.y)*me,Se+=me*3;Se===0?Xe=xn[0]:Xe=[Me/Se,Fe/Se];var Wr=g.unproject(M(Xe));return ce([Wr.lat+tt.lat,Wr.lng+tt.lng])}function Hf(c){for(var g=0,S=0,R=0,$=0;$<c.length;$++){var te=ce(c[$]);g+=te.lat,S+=te.lng,R++}return ce([g/R,S/R])}var Jy={__proto__:null,clipPolygon:wm,polygonCenter:ec,centroid:Hf};function Sm(c,g){if(!g||!c.length)return c.slice();var S=g*g;return c=n0(c,S),c=t0(c,S),c}function Gf(c,g,S){return Math.sqrt(vo(c,g,S,!0))}function e0(c,g,S){return vo(c,g,S)}function t0(c,g){var S=c.length,R=typeof Uint8Array<"u"?Uint8Array:Array,$=new R(S);$[0]=$[S-1]=1,Wf(c,$,g,0,S-1);var te,me=[];for(te=0;te<S;te++)$[te]&&me.push(c[te]);return me}function Wf(c,g,S,R,$){var te=0,me,Se,Me;for(Se=R+1;Se<=$-1;Se++)Me=vo(c[Se],c[R],c[$],!0),Me>te&&(me=Se,te=Me);te>S&&(g[me]=1,Wf(c,g,S,R,me),Wf(c,g,S,me,$))}function n0(c,g){for(var S=[c[0]],R=1,$=0,te=c.length;R<te;R++)r0(c[R],c[$])>g&&(S.push(c[R]),$=R);return $<te-1&&S.push(c[te-1]),S}var Cm;function Em(c,g,S,R,$){var te=R?Cm:go(c,S),me=go(g,S),Se,Me,Fe;for(Cm=me;;){if(!(te|me))return[c,g];if(te&me)return!1;Se=te||me,Me=tc(c,g,Se,S,$),Fe=go(Me,S),Se===te?(c=Me,te=Fe):(g=Me,me=Fe)}}function tc(c,g,S,R,$){var te=g.x-c.x,me=g.y-c.y,Se=R.min,Me=R.max,Fe,Xe;return S&8?(Fe=c.x+te*(Me.y-c.y)/me,Xe=Me.y):S&4?(Fe=c.x+te*(Se.y-c.y)/me,Xe=Se.y):S&2?(Fe=Me.x,Xe=c.y+me*(Me.x-c.x)/te):S&1&&(Fe=Se.x,Xe=c.y+me*(Se.x-c.x)/te),new I(Fe,Xe,$)}function go(c,g){var S=0;return c.x<g.min.x?S|=1:c.x>g.max.x&&(S|=2),c.y<g.min.y?S|=4:c.y>g.max.y&&(S|=8),S}function r0(c,g){var S=g.x-c.x,R=g.y-c.y;return S*S+R*R}function vo(c,g,S,R){var $=g.x,te=g.y,me=S.x-$,Se=S.y-te,Me=me*me+Se*Se,Fe;return Me>0&&(Fe=((c.x-$)*me+(c.y-te)*Se)/Me,Fe>1?($=S.x,te=S.y):Fe>0&&($+=me*Fe,te+=Se*Fe)),me=c.x-$,Se=c.y-te,R?me*me+Se*Se:new I($,te)}function tr(c){return!O(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function Am(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),tr(c)}function Yf(c,g){var S,R,$,te,me,Se,Me,Fe;if(!c||c.length===0)throw new Error("latlngs not passed");tr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Xe=ce([0,0]),tt=re(c),rt=tt.getNorthWest().distanceTo(tt.getSouthWest())*tt.getNorthEast().distanceTo(tt.getNorthWest());rt<1700&&(Xe=Hf(c));var ht=c.length,nn=[];for(S=0;S<ht;S++){var xn=ce(c[S]);nn.push(g.project(ce([xn.lat-Xe.lat,xn.lng-Xe.lng])))}for(S=0,R=0;S<ht-1;S++)R+=nn[S].distanceTo(nn[S+1])/2;if(R===0)Fe=nn[0];else for(S=0,te=0;S<ht-1;S++)if(me=nn[S],Se=nn[S+1],$=me.distanceTo(Se),te+=$,te>R){Me=(te-R)/$,Fe=[Se.x-Me*(Se.x-me.x),Se.y-Me*(Se.y-me.y)];break}var nr=g.unproject(M(Fe));return ce([nr.lat+Xe.lat,nr.lng+Xe.lng])}var Tm={__proto__:null,simplify:Sm,pointToSegmentDistance:Gf,closestPointOnSegment:e0,clipSegment:Em,_getEdgeIntersection:tc,_getBitCode:go,_sqClosestPointOnSegment:vo,isFlat:tr,_flat:Am,polylineCenter:Yf},nc={project:function(c){return new I(c.lng,c.lat)},unproject:function(c){return new ue(c.y,c.x)},bounds:new D([-180,-90],[180,90])},rc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new D([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var g=Math.PI/180,S=this.R,R=c.lat*g,$=this.R_MINOR/S,te=Math.sqrt(1-$*$),me=te*Math.sin(R),Se=Math.tan(Math.PI/4-R/2)/Math.pow((1-me)/(1+me),te/2);return R=-S*Math.log(Math.max(Se,1e-10)),new I(c.lng*g*S,R)},unproject:function(c){for(var g=180/Math.PI,S=this.R,R=this.R_MINOR/S,$=Math.sqrt(1-R*R),te=Math.exp(-c.y/S),me=Math.PI/2-2*Math.atan(te),Se=0,Me=.1,Fe;Se<15&&Math.abs(Me)>1e-7;Se++)Fe=$*Math.sin(me),Fe=Math.pow((1-Fe)/(1+Fe),$/2),Me=Math.PI/2-2*Math.atan(te*Fe)-me,me+=Me;return new ue(me*g,c.x*g/S)}},Om={__proto__:null,LonLat:nc,Mercator:rc,SphericalMercator:G},_s=i({},k,{code:"EPSG:3395",projection:rc,transformation:function(){var c=.5/(Math.PI*rc.R);return q(c,.5,-c,.5)}()}),jm=i({},k,{code:"EPSG:4326",projection:nc,transformation:q(1/180,1,-1/180,.5)}),i0=i({},ve,{projection:nc,transformation:q(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,g){var S=g.lng-c.lng,R=g.lat-c.lat;return Math.sqrt(S*S+R*R)},infinite:!0});ve.Earth=k,ve.EPSG3395=_s,ve.EPSG3857=ae,ve.EPSG900913=fe,ve.EPSG4326=jm,ve.Simple=i0;var si=U.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[d(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[d(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var g=c.target;if(g.hasLayer(this)){if(this._map=g,this._zoomAnimated=g._zoomAnimated,this.getEvents){var S=this.getEvents();g.on(S,this),this.once("remove",function(){g.off(S,this)},this)}this.onAdd(g),this.fire("add"),g.fire("layeradd",{layer:this})}}});xt.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var g=d(c);return this._layers[g]?this:(this._layers[g]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var g=d(c);return this._layers[g]?(this._loaded&&c.onRemove(this),delete this._layers[g],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return d(c)in this._layers},eachLayer:function(c,g){for(var S in this._layers)c.call(g,this._layers[S]);return this},_addLayers:function(c){c=c?O(c)?c:[c]:[];for(var g=0,S=c.length;g<S;g++)this.addLayer(c[g])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[d(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var g=d(c);this._zoomBoundLayers[g]&&(delete this._zoomBoundLayers[g],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,g=-1/0,S=this._getZoomSpan();for(var R in this._zoomBoundLayers){var $=this._zoomBoundLayers[R].options;c=$.minZoom===void 0?c:Math.min(c,$.minZoom),g=$.maxZoom===void 0?g:Math.max(g,$.maxZoom)}this._layersMaxZoom=g===-1/0?void 0:g,this._layersMinZoom=c===1/0?void 0:c,S!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var yo=si.extend({initialize:function(c,g){x(this,g),this._layers={};var S,R;if(c)for(S=0,R=c.length;S<R;S++)this.addLayer(c[S])},addLayer:function(c){var g=this.getLayerId(c);return this._layers[g]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var g=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[g]&&this._map.removeLayer(this._layers[g]),delete this._layers[g],this},hasLayer:function(c){var g=typeof c=="number"?c:this.getLayerId(c);return g in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var g=Array.prototype.slice.call(arguments,1),S,R;for(S in this._layers)R=this._layers[S],R[c]&&R[c].apply(R,g);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,g){for(var S in this._layers)c.call(g,this._layers[S]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return d(c)}}),Pm=function(c,g){return new yo(c,g)},Nr=yo.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),yo.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),yo.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new H;for(var g in this._layers){var S=this._layers[g];c.extend(S.getBounds?S.getBounds():S.getLatLng())}return c}}),Vl=function(c,g){return new Nr(c,g)},xs=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){x(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,g){var S=this._getIconUrl(c);if(!S){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var R=this._createImg(S,g&&g.tagName==="IMG"?g:null);return this._setIconStyles(R,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(R.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),R},_setIconStyles:function(c,g){var S=this.options,R=S[g+"Size"];typeof R=="number"&&(R=[R,R]);var $=M(R),te=M(g==="shadow"&&S.shadowAnchor||S.iconAnchor||$&&$.divideBy(2,!0));c.className="leaflet-marker-"+g+" "+(S.className||""),te&&(c.style.marginLeft=-te.x+"px",c.style.marginTop=-te.y+"px"),$&&(c.style.width=$.x+"px",c.style.height=$.y+"px")},_createImg:function(c,g){return g=g||document.createElement("img"),g.src=c,g},_getIconUrl:function(c){return ot.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function ic(c){return new xs(c)}var ws=xs.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return typeof ws.imagePath!="string"&&(ws.imagePath=this._detectIconPath()),(this.options.imagePath||ws.imagePath)+xs.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var g=function(S,R,$){var te=R.exec(S);return te&&te[$]};return c=g(c,/^url\((['"])?(.+)\1\)$/,2),c&&g(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=jt("div","leaflet-default-icon-path",document.body),g=uo(c,"background-image")||uo(c,"backgroundImage");if(document.body.removeChild(c),g=this._stripUrl(g),g)return g;var S=document.querySelector('link[href$="leaflet.css"]');return S?S.href.substring(0,S.href.length-11-1):""}}),Kf=oi.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new La(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),vt(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&tn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var g=this._marker,S=g._map,R=this._marker.options.autoPanSpeed,$=this._marker.options.autoPanPadding,te=Ra(g._icon),me=S.getPixelBounds(),Se=S.getPixelOrigin(),Me=W(me.min._subtract(Se).add($),me.max._subtract(Se).subtract($));if(!Me.contains(te)){var Fe=M((Math.max(Me.max.x,te.x)-Me.max.x)/(me.max.x-Me.max.x)-(Math.min(Me.min.x,te.x)-Me.min.x)/(me.min.x-Me.min.x),(Math.max(Me.max.y,te.y)-Me.max.y)/(me.max.y-Me.max.y)-(Math.min(Me.min.y,te.y)-Me.min.y)/(me.min.y-Me.min.y)).multiplyBy(R);S.panBy(Fe,{animate:!1}),this._draggable._newPos._add(Fe),this._draggable._startPos._add(Fe),_n(g._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=J(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(ne(this._panRequest),this._panRequest=J(this._adjustPan.bind(this,c)))},_onDrag:function(c){var g=this._marker,S=g._shadow,R=Ra(g._icon),$=g._map.layerPointToLatLng(R);S&&_n(S,R),g._latlng=$,c.latlng=$,c.oldLatLng=this._oldLatLng,g.fire("move",c).fire("drag",c)},_onDragEnd:function(c){ne(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Ss=si.extend({options:{icon:new ws,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,g){x(this,g),this._latlng=ce(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var g=this._latlng;return this._latlng=ce(c),this.update(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,g="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),S=c.icon.createIcon(this._icon),R=!1;S!==this._icon&&(this._icon&&this._removeIcon(),R=!0,c.title&&(S.title=c.title),S.tagName==="IMG"&&(S.alt=c.alt||"")),vt(S,g),c.keyboard&&(S.tabIndex="0",S.setAttribute("role","button")),this._icon=S,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&mt(S,"focus",this._panOnFocus,this);var $=c.icon.createShadow(this._shadow),te=!1;$!==this._shadow&&(this._removeShadow(),te=!0),$&&(vt($,g),$.alt=""),this._shadow=$,c.opacity<1&&this._updateOpacity(),R&&this.getPane().appendChild(this._icon),this._initInteraction(),$&&te&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ut(this._icon,"focus",this._panOnFocus,this),en(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&en(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&_n(this._icon,c),this._shadow&&_n(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(g)},_initInteraction:function(){if(this.options.interactive&&(vt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Kf)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Kf(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&Sr(this._icon,c),this._shadow&&Sr(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var g=this.options.icon.options,S=g.iconSize?M(g.iconSize):M(0,0),R=g.iconAnchor?M(g.iconAnchor):M(0,0);c.panInside(this._latlng,{paddingTopLeft:R,paddingBottomRight:S.subtract(R)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Zf(c,g){return new Ss(c,g)}var ia=si.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return x(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ql=ia.extend({options:{fill:!0,radius:10},initialize:function(c,g){x(this,g),this._latlng=ce(c),this._radius=this.options.radius},setLatLng:function(c){var g=this._latlng;return this._latlng=ce(c),this.redraw(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var g=c&&c.radius||this._radius;return ia.prototype.setStyle.call(this,c),this.setRadius(g),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,g=this._radiusY||c,S=this._clickTolerance(),R=[c+S,g+S];this._pxBounds=new D(this._point.subtract(R),this._point.add(R))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Mm(c,g){return new ql(c,g)}var Xf=ql.extend({initialize:function(c,g,S){if(typeof g=="number"&&(g=i({},S,{radius:g})),x(this,g),this._latlng=ce(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new H(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:ia.prototype.setStyle,_project:function(){var c=this._latlng.lng,g=this._latlng.lat,S=this._map,R=S.options.crs;if(R.distance===k.distance){var $=Math.PI/180,te=this._mRadius/k.R/$,me=S.project([g+te,c]),Se=S.project([g-te,c]),Me=me.add(Se).divideBy(2),Fe=S.unproject(Me).lat,Xe=Math.acos((Math.cos(te*$)-Math.sin(g*$)*Math.sin(Fe*$))/(Math.cos(g*$)*Math.cos(Fe*$)))/$;(isNaN(Xe)||Xe===0)&&(Xe=te/Math.cos(Math.PI/180*g)),this._point=Me.subtract(S.getPixelOrigin()),this._radius=isNaN(Xe)?0:Me.x-S.project([Fe,c-Xe]).x,this._radiusY=Me.y-me.y}else{var tt=R.unproject(R.project(this._latlng).subtract([this._mRadius,0]));this._point=S.latLngToLayerPoint(this._latlng),this._radius=this._point.x-S.latLngToLayerPoint(tt).x}this._updateBounds()}});function a0(c,g,S){return new Xf(c,g,S)}var aa=ia.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,g){x(this,g),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var g=1/0,S=null,R=vo,$,te,me=0,Se=this._parts.length;me<Se;me++)for(var Me=this._parts[me],Fe=1,Xe=Me.length;Fe<Xe;Fe++){$=Me[Fe-1],te=Me[Fe];var tt=R(c,$,te,!0);tt<g&&(g=tt,S=R(c,$,te))}return S&&(S.distance=Math.sqrt(g)),S},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Yf(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,g){return g=g||this._defaultShape(),c=ce(c),g.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new H,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return tr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var g=[],S=tr(c),R=0,$=c.length;R<$;R++)S?(g[R]=ce(c[R]),this._bounds.extend(g[R])):g[R]=this._convertLatLngs(c[R]);return g},_project:function(){var c=new D;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),g=new I(c,c);this._rawPxBounds&&(this._pxBounds=new D([this._rawPxBounds.min.subtract(g),this._rawPxBounds.max.add(g)]))},_projectLatlngs:function(c,g,S){var R=c[0]instanceof ue,$=c.length,te,me;if(R){for(me=[],te=0;te<$;te++)me[te]=this._map.latLngToLayerPoint(c[te]),S.extend(me[te]);g.push(me)}else for(te=0;te<$;te++)this._projectLatlngs(c[te],g,S)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var g=this._parts,S,R,$,te,me,Se,Me;for(S=0,$=0,te=this._rings.length;S<te;S++)for(Me=this._rings[S],R=0,me=Me.length;R<me-1;R++)Se=Em(Me[R],Me[R+1],c,R,!0),Se&&(g[$]=g[$]||[],g[$].push(Se[0]),(Se[1]!==Me[R+1]||R===me-2)&&(g[$].push(Se[1]),$++))}},_simplifyPoints:function(){for(var c=this._parts,g=this.options.smoothFactor,S=0,R=c.length;S<R;S++)c[S]=Sm(c[S],g)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,g){var S,R,$,te,me,Se,Me=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(S=0,te=this._parts.length;S<te;S++)for(Se=this._parts[S],R=0,me=Se.length,$=me-1;R<me;$=R++)if(!(!g&&R===0)&&Gf(c,Se[$],Se[R])<=Me)return!0;return!1}});function o0(c,g){return new aa(c,g)}aa._flat=Am;var Cs=aa.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 ec(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var g=aa.prototype._convertLatLngs.call(this,c),S=g.length;return S>=2&&g[0]instanceof ue&&g[0].equals(g[S-1])&&g.pop(),g},_setLatLngs:function(c){aa.prototype._setLatLngs.call(this,c),tr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return tr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,g=this.options.weight,S=new I(g,g);if(c=new D(c.min.subtract(S),c.max.add(S)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var R=0,$=this._rings.length,te;R<$;R++)te=wm(this._rings[R],c,!0),te.length&&this._parts.push(te)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var g=!1,S,R,$,te,me,Se,Me,Fe;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(te=0,Me=this._parts.length;te<Me;te++)for(S=this._parts[te],me=0,Fe=S.length,Se=Fe-1;me<Fe;Se=me++)R=S[me],$=S[Se],R.y>c.y!=$.y>c.y&&c.x<($.x-R.x)*(c.y-R.y)/($.y-R.y)+R.x&&(g=!g);return g||aa.prototype._containsPoint.call(this,c,!0)}});function Lr(c,g){return new Cs(c,g)}var Dr=Nr.extend({initialize:function(c,g){x(this,g),this._layers={},c&&this.addData(c)},addData:function(c){var g=O(c)?c:c.features,S,R,$;if(g){for(S=0,R=g.length;S<R;S++)$=g[S],($.geometries||$.geometry||$.features||$.coordinates)&&this.addData($);return this}var te=this.options;if(te.filter&&!te.filter(c))return this;var me=Hl(c,te);return me?(me.feature=Es(c),me.defaultOptions=me.options,this.resetStyle(me),te.onEachFeature&&te.onEachFeature(c,me),this.addLayer(me)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=i({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(g){this._setLayerStyle(g,c)},this)},_setLayerStyle:function(c,g){c.setStyle&&(typeof g=="function"&&(g=g(c.feature)),c.setStyle(g))}});function Hl(c,g){var S=c.type==="Feature"?c.geometry:c,R=S?S.coordinates:null,$=[],te=g&&g.pointToLayer,me=g&&g.coordsToLatLng||ac,Se,Me,Fe,Xe;if(!R&&!S)return null;switch(S.type){case"Point":return Se=me(R),Qf(te,c,Se,g);case"MultiPoint":for(Fe=0,Xe=R.length;Fe<Xe;Fe++)Se=me(R[Fe]),$.push(Qf(te,c,Se,g));return new Nr($);case"LineString":case"MultiLineString":return Me=Gl(R,S.type==="LineString"?0:1,me),new aa(Me,g);case"Polygon":case"MultiPolygon":return Me=Gl(R,S.type==="Polygon"?1:2,me),new Cs(Me,g);case"GeometryCollection":for(Fe=0,Xe=S.geometries.length;Fe<Xe;Fe++){var tt=Hl({geometry:S.geometries[Fe],type:"Feature",properties:c.properties},g);tt&&$.push(tt)}return new Nr($);case"FeatureCollection":for(Fe=0,Xe=S.features.length;Fe<Xe;Fe++){var rt=Hl(S.features[Fe],g);rt&&$.push(rt)}return new Nr($);default:throw new Error("Invalid GeoJSON object.")}}function Qf(c,g,S,R){return c?c(g,S):new Ss(S,R&&R.markersInheritOptions&&R)}function ac(c){return new ue(c[1],c[0],c[2])}function Gl(c,g,S){for(var R=[],$=0,te=c.length,me;$<te;$++)me=g?Gl(c[$],g-1,S):(S||ac)(c[$]),R.push(me);return R}function Wl(c,g){return c=ce(c),c.alt!==void 0?[b(c.lng,g),b(c.lat,g),b(c.alt,g)]:[b(c.lng,g),b(c.lat,g)]}function oc(c,g,S,R){for(var $=[],te=0,me=c.length;te<me;te++)$.push(g?oc(c[te],tr(c[te])?0:g-1,S,R):Wl(c[te],R));return!g&&S&&$.length>0&&$.push($[0].slice()),$}function li(c,g){return c.feature?i({},c.feature,{geometry:g}):Es(g)}function Es(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var bo={toGeoJSON:function(c){return li(this,{type:"Point",coordinates:Wl(this.getLatLng(),c)})}};Ss.include(bo),Xf.include(bo),ql.include(bo),aa.include({toGeoJSON:function(c){var g=!tr(this._latlngs),S=oc(this._latlngs,g?1:0,!1,c);return li(this,{type:(g?"Multi":"")+"LineString",coordinates:S})}}),Cs.include({toGeoJSON:function(c){var g=!tr(this._latlngs),S=g&&!tr(this._latlngs[0]),R=oc(this._latlngs,S?2:g?1:0,!0,c);return g||(R=[R]),li(this,{type:(S?"Multi":"")+"Polygon",coordinates:R})}}),yo.include({toMultiPoint:function(c){var g=[];return this.eachLayer(function(S){g.push(S.toGeoJSON(c).geometry.coordinates)}),li(this,{type:"MultiPoint",coordinates:g})},toGeoJSON:function(c){var g=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(g==="MultiPoint")return this.toMultiPoint(c);var S=g==="GeometryCollection",R=[];return this.eachLayer(function($){if($.toGeoJSON){var te=$.toGeoJSON(c);if(S)R.push(te.geometry);else{var me=Es(te);me.type==="FeatureCollection"?R.push.apply(R,me.features):R.push(me)}}}),S?li(this,{geometries:R,type:"GeometryCollection"}):{type:"FeatureCollection",features:R}}});function sc(c,g){return new Dr(c,g)}var Rm=sc,zi=si.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,g,S){this._url=c,this._bounds=re(g),x(this,S)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(vt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){en(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&co(this._image),this},bringToBack:function(){return this._map&&fs(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=re(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",g=this._image=c?this._url:jt("img");if(vt(g,"leaflet-image-layer"),this._zoomAnimated&&vt(g,"leaflet-zoom-animated"),this.options.className&&vt(g,this.options.className),g.onselectstart=p,g.onmousemove=p,g.onload=s(this.fire,this,"load"),g.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=g.src;return}g.src=this._url,g.alt=this.options.alt},_animateZoom:function(c){var g=this._map.getZoomScale(c.zoom),S=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;Gr(this._image,S,g)},_reset:function(){var c=this._image,g=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),S=g.getSize();_n(c,g.min),c.style.width=S.x+"px",c.style.height=S.y+"px"},_updateOpacity:function(){Sr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),As=function(c,g,S){return new zi(c,g,S)},lc=zi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",g=this._image=c?this._url:jt("video");if(vt(g,"leaflet-image-layer"),this._zoomAnimated&&vt(g,"leaflet-zoom-animated"),this.options.className&&vt(g,this.options.className),g.onselectstart=p,g.onmousemove=p,g.onloadeddata=s(this.fire,this,"load"),c){for(var S=g.getElementsByTagName("source"),R=[],$=0;$<S.length;$++)R.push(S[$].src);this._url=S.length>0?R:[g.src];return}O(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(g.style,"objectFit")&&(g.style.objectFit="fill"),g.autoplay=!!this.options.autoplay,g.loop=!!this.options.loop,g.muted=!!this.options.muted,g.playsInline=!!this.options.playsInline;for(var te=0;te<this._url.length;te++){var me=jt("source");me.src=this._url[te],g.appendChild(me)}}});function Nm(c,g,S){return new lc(c,g,S)}var Da=zi.extend({_initImage:function(){var c=this._image=this._url;vt(c,"leaflet-image-layer"),this._zoomAnimated&&vt(c,"leaflet-zoom-animated"),this.options.className&&vt(c,this.options.className),c.onselectstart=p,c.onmousemove=p}});function Lm(c,g,S){return new Da(c,g,S)}var ui=si.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,g){c&&(c instanceof ue||O(c))?(this._latlng=ce(c),x(this,g)):(x(this,c),this._source=g),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&Sr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&Sr(this._container,1),this.bringToFront(),this.options.interactive&&(vt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(Sr(this._container,0),this._removeTimeout=setTimeout(s(en,void 0,this._container),200)):en(this._container),this.options.interactive&&(tn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=ce(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&co(this._container),this},bringToBack:function(){return this._map&&fs(this._container),this},_prepareOpen:function(c){var g=this._source;if(!g._map)return!1;if(g instanceof Nr){g=null;var S=this._source._layers;for(var R in S)if(S[R]._map){g=S[R];break}if(!g)return!1;this._source=g}if(!c)if(g.getCenter)c=g.getCenter();else if(g.getLatLng)c=g.getLatLng();else if(g.getBounds)c=g.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,g=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof g=="string")c.innerHTML=g;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(g)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),g=M(this.options.offset),S=this._getAnchor();this._zoomAnimated?_n(this._container,c.add(S)):g=g.add(c).add(S);var R=this._containerBottom=-g.y,$=this._containerLeft=-Math.round(this._containerWidth/2)+g.x;this._container.style.bottom=R+"px",this._container.style.left=$+"px"}},_getAnchor:function(){return[0,0]}});xt.include({_initOverlay:function(c,g,S,R){var $=g;return $ instanceof c||($=new c(R).setContent(g)),S&&$.setLatLng(S),$}}),si.include({_initOverlay:function(c,g,S,R){var $=S;return $ instanceof c?(x($,R),$._source=this):($=g&&!R?g:new c(R,this),$.setContent(S)),$}});var Yl=ui.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,ui.prototype.openOn.call(this,c)},onAdd:function(c){ui.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ia||this._source.on("preclick",ra))},onRemove:function(c){ui.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ia||this._source.off("preclick",ra))},getEvents:function(){var c=ui.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",g=this._container=jt("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),S=this._wrapper=jt("div",c+"-content-wrapper",g);if(this._contentNode=jt("div",c+"-content",S),ys(g),vs(this._contentNode),mt(g,"contextmenu",ra),this._tipContainer=jt("div",c+"-tip-container",g),this._tip=jt("div",c+"-tip",this._tipContainer),this.options.closeButton){var R=this._closeButton=jt("a",c+"-close-button",g);R.setAttribute("role","button"),R.setAttribute("aria-label","Close popup"),R.href="#close",R.innerHTML='<span aria-hidden="true">×</span>',mt(R,"click",function($){Cn($),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,g=c.style;g.width="",g.whiteSpace="nowrap";var S=c.offsetWidth;S=Math.min(S,this.options.maxWidth),S=Math.max(S,this.options.minWidth),g.width=S+1+"px",g.whiteSpace="",g.height="";var R=c.offsetHeight,$=this.options.maxHeight,te="leaflet-popup-scrolled";$&&R>$?(g.height=$+"px",vt(c,te)):tn(c,te),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),S=this._getAnchor();_n(this._container,g.add(S))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,g=parseInt(uo(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+g,R=this._containerWidth,$=new I(this._containerLeft,-S-this._containerBottom);$._add(Ra(this._container));var te=c.layerPointToContainerPoint($),me=M(this.options.autoPanPadding),Se=M(this.options.autoPanPaddingTopLeft||me),Me=M(this.options.autoPanPaddingBottomRight||me),Fe=c.getSize(),Xe=0,tt=0;te.x+R+Me.x>Fe.x&&(Xe=te.x+R-Fe.x+Me.x),te.x-Xe-Se.x<0&&(Xe=te.x-Se.x),te.y+S+Me.y>Fe.y&&(tt=te.y+S-Fe.y+Me.y),te.y-tt-Se.y<0&&(tt=te.y-Se.y),(Xe||tt)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Xe,tt]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),s0=function(c,g){return new Yl(c,g)};xt.mergeOptions({closePopupOnClick:!0}),xt.include({openPopup:function(c,g,S){return this._initOverlay(Yl,c,g,S).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),si.include({bindPopup:function(c,g){return this._popup=this._initOverlay(Yl,this._popup,c,g),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof Nr||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){Bi(c);var g=c.layer||c.target;if(this._popup._source===g&&!(g instanceof ia)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=g,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var uc=ui.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){ui.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){ui.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=ui.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",g=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=jt("div",g),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var g,S,R=this._map,$=this._container,te=R.latLngToContainerPoint(R.getCenter()),me=R.layerPointToContainerPoint(c),Se=this.options.direction,Me=$.offsetWidth,Fe=$.offsetHeight,Xe=M(this.options.offset),tt=this._getAnchor();Se==="top"?(g=Me/2,S=Fe):Se==="bottom"?(g=Me/2,S=0):Se==="center"?(g=Me/2,S=Fe/2):Se==="right"?(g=0,S=Fe/2):Se==="left"?(g=Me,S=Fe/2):me.x<te.x?(Se="right",g=0,S=Fe/2):(Se="left",g=Me+(Xe.x+tt.x)*2,S=Fe/2),c=c.subtract(M(g,S,!0)).add(Xe).add(tt),tn($,"leaflet-tooltip-right"),tn($,"leaflet-tooltip-left"),tn($,"leaflet-tooltip-top"),tn($,"leaflet-tooltip-bottom"),vt($,"leaflet-tooltip-"+Se),_n($,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&Sr(this._container,c)},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(g)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),l0=function(c,g){return new uc(c,g)};xt.include({openTooltip:function(c,g,S){return this._initOverlay(uc,c,g,S).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),si.include({bindTooltip:function(c,g){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(uc,this._tooltip,c,g),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(!(!c&&this._tooltipHandlersAdded)){var g=c?"off":"on",S={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?S.add=this._openTooltip:(S.mouseover=this._openTooltip,S.mouseout=this.closeTooltip,S.click=this._openTooltip,this._map?this._addFocusListeners():S.add=this._addFocusListeners),this._tooltip.options.sticky&&(S.mousemove=this._moveTooltip),this[g](S),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof Nr||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var g=typeof c.getElement=="function"&&c.getElement();g&&(mt(g,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),mt(g,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var g=typeof c.getElement=="function"&&c.getElement();g&&g.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var g=this;this._map.once("moveend",function(){g._openOnceFlag=!1,g._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var g=c.latlng,S,R;this._tooltip.options.sticky&&c.originalEvent&&(S=this._map.mouseEventToContainerPoint(c.originalEvent),R=this._map.containerPointToLayerPoint(S),g=this._map.layerPointToLatLng(R)),this._tooltip.setLatLng(g)}});var Jf=xs.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var g=c&&c.tagName==="DIV"?c:document.createElement("div"),S=this.options;if(S.html instanceof Element?(cr(g),g.appendChild(S.html)):g.innerHTML=S.html!==!1?S.html:"",S.bgPos){var R=M(S.bgPos);g.style.backgroundPosition=-R.x+"px "+-R.y+"px"}return this._setIconStyles(g,"icon"),g},createShadow:function(){return null}});function Dm(c){return new Jf(c)}xs.Default=ws;var _o=si.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ot.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){x(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),en(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(co(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(fs(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof I?c:new I(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var g=this.getPane().children,S=-c(-1/0,1/0),R=0,$=g.length,te;R<$;R++)te=g[R].style.zIndex,g[R]!==this._container&&te&&(S=c(S,+te));isFinite(S)&&(this.options.zIndex=S+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ot.ielt9){Sr(this._container,this.options.opacity);var c=+new Date,g=!1,S=!1;for(var R in this._tiles){var $=this._tiles[R];if(!(!$.current||!$.loaded)){var te=Math.min(1,(c-$.loaded)/200);Sr($.el,te),te<1?g=!0:($.active?S=!0:this._onOpaqueTile($),$.active=!0)}}S&&!this._noPrune&&this._pruneTiles(),g&&(ne(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=jt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,g=this.options.maxZoom;if(c!==void 0){for(var S in this._levels)S=Number(S),this._levels[S].el.children.length||S===c?(this._levels[S].el.style.zIndex=g-Math.abs(c-S),this._onUpdateLevel(S)):(en(this._levels[S].el),this._removeTilesAtZoom(S),this._onRemoveLevel(S),delete this._levels[S]);var R=this._levels[c],$=this._map;return R||(R=this._levels[c]={},R.el=jt("div","leaflet-tile-container leaflet-zoom-animated",this._container),R.el.style.zIndex=g,R.origin=$.project($.unproject($.getPixelOrigin()),c).round(),R.zoom=c,this._setZoomTransform(R,$.getCenter(),$.getZoom()),p(R.el.offsetWidth),this._onCreateLevel(R)),this._level=R,R}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var c,g,S=this._map.getZoom();if(S>this.options.maxZoom||S<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)g=this._tiles[c],g.retain=g.current;for(c in this._tiles)if(g=this._tiles[c],g.current&&!g.active){var R=g.coords;this._retainParent(R.x,R.y,R.z,R.z-5)||this._retainChildren(R.x,R.y,R.z,R.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var g in this._tiles)this._tiles[g].coords.z===c&&this._removeTile(g)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)en(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,g,S,R){var $=Math.floor(c/2),te=Math.floor(g/2),me=S-1,Se=new I(+$,+te);Se.z=+me;var Me=this._tileCoordsToKey(Se),Fe=this._tiles[Me];return Fe&&Fe.active?(Fe.retain=!0,!0):(Fe&&Fe.loaded&&(Fe.retain=!0),me>R?this._retainParent($,te,me,R):!1)},_retainChildren:function(c,g,S,R){for(var $=2*c;$<2*c+2;$++)for(var te=2*g;te<2*g+2;te++){var me=new I($,te);me.z=S+1;var Se=this._tileCoordsToKey(me),Me=this._tiles[Se];if(Me&&Me.active){Me.retain=!0;continue}else Me&&Me.loaded&&(Me.retain=!0);S+1<R&&this._retainChildren($,te,S+1,R)}},_resetView:function(c){var g=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),g,g)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var g=this.options;return g.minNativeZoom!==void 0&&c<g.minNativeZoom?g.minNativeZoom:g.maxNativeZoom!==void 0&&g.maxNativeZoom<c?g.maxNativeZoom:c},_setView:function(c,g,S,R){var $=Math.round(g);this.options.maxZoom!==void 0&&$>this.options.maxZoom||this.options.minZoom!==void 0&&$<this.options.minZoom?$=void 0:$=this._clampZoom($);var te=this.options.updateWhenZooming&&$!==this._tileZoom;(!R||te)&&(this._tileZoom=$,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),$!==void 0&&this._update(c),S||this._pruneTiles(),this._noPrune=!!S),this._setZoomTransforms(c,g)},_setZoomTransforms:function(c,g){for(var S in this._levels)this._setZoomTransform(this._levels[S],c,g)},_setZoomTransform:function(c,g,S){var R=this._map.getZoomScale(S,c.zoom),$=c.origin.multiplyBy(R).subtract(this._map._getNewPixelOrigin(g,S)).round();ot.any3d?Gr(c.el,$,R):_n(c.el,$)},_resetGrid:function(){var c=this._map,g=c.options.crs,S=this._tileSize=this.getTileSize(),R=this._tileZoom,$=this._map.getPixelWorldBounds(this._tileZoom);$&&(this._globalTileRange=this._pxBoundsToTileRange($)),this._wrapX=g.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,g.wrapLng[0]],R).x/S.x),Math.ceil(c.project([0,g.wrapLng[1]],R).x/S.y)],this._wrapY=g.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([g.wrapLat[0],0],R).y/S.x),Math.ceil(c.project([g.wrapLat[1],0],R).y/S.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var g=this._map,S=g._animatingZoom?Math.max(g._animateToZoom,g.getZoom()):g.getZoom(),R=g.getZoomScale(S,this._tileZoom),$=g.project(c,this._tileZoom).floor(),te=g.getSize().divideBy(R*2);return new D($.subtract(te),$.add(te))},_update:function(c){var g=this._map;if(g){var S=this._clampZoom(g.getZoom());if(c===void 0&&(c=g.getCenter()),this._tileZoom!==void 0){var R=this._getTiledPixelBounds(c),$=this._pxBoundsToTileRange(R),te=$.getCenter(),me=[],Se=this.options.keepBuffer,Me=new D($.getBottomLeft().subtract([Se,-Se]),$.getTopRight().add([Se,-Se]));if(!(isFinite($.min.x)&&isFinite($.min.y)&&isFinite($.max.x)&&isFinite($.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Fe in this._tiles){var Xe=this._tiles[Fe].coords;(Xe.z!==this._tileZoom||!Me.contains(new I(Xe.x,Xe.y)))&&(this._tiles[Fe].current=!1)}if(Math.abs(S-this._tileZoom)>1){this._setView(c,S);return}for(var tt=$.min.y;tt<=$.max.y;tt++)for(var rt=$.min.x;rt<=$.max.x;rt++){var ht=new I(rt,tt);if(ht.z=this._tileZoom,!!this._isValidTile(ht)){var nn=this._tiles[this._tileCoordsToKey(ht)];nn?nn.current=!0:me.push(ht)}}if(me.sort(function(nr,Wr){return nr.distanceTo(te)-Wr.distanceTo(te)}),me.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var xn=document.createDocumentFragment();for(rt=0;rt<me.length;rt++)this._addTile(me[rt],xn);this._level.el.appendChild(xn)}}}},_isValidTile:function(c){var g=this._map.options.crs;if(!g.infinite){var S=this._globalTileRange;if(!g.wrapLng&&(c.x<S.min.x||c.x>S.max.x)||!g.wrapLat&&(c.y<S.min.y||c.y>S.max.y))return!1}if(!this.options.bounds)return!0;var R=this._tileCoordsToBounds(c);return re(this.options.bounds).overlaps(R)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var g=this._map,S=this.getTileSize(),R=c.scaleBy(S),$=R.add(S),te=g.unproject(R,c.z),me=g.unproject($,c.z);return[te,me]},_tileCoordsToBounds:function(c){var g=this._tileCoordsToNwSe(c),S=new H(g[0],g[1]);return this.options.noWrap||(S=this._map.wrapLatLngBounds(S)),S},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var g=c.split(":"),S=new I(+g[0],+g[1]);return S.z=+g[2],S},_removeTile:function(c){var g=this._tiles[c];g&&(en(g.el),delete this._tiles[c],this.fire("tileunload",{tile:g.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){vt(c,"leaflet-tile");var g=this.getTileSize();c.style.width=g.x+"px",c.style.height=g.y+"px",c.onselectstart=p,c.onmousemove=p,ot.ielt9&&this.options.opacity<1&&Sr(c,this.options.opacity)},_addTile:function(c,g){var S=this._getTilePos(c),R=this._tileCoordsToKey(c),$=this.createTile(this._wrapCoords(c),s(this._tileReady,this,c));this._initTile($),this.createTile.length<2&&J(s(this._tileReady,this,c,null,$)),_n($,S),this._tiles[R]={el:$,coords:c,current:!0},g.appendChild($),this.fire("tileloadstart",{tile:$,coords:c})},_tileReady:function(c,g,S){g&&this.fire("tileerror",{error:g,tile:S,coords:c});var R=this._tileCoordsToKey(c);S=this._tiles[R],S&&(S.loaded=+new Date,this._map._fadeAnimated?(Sr(S.el,0),ne(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this)):(S.active=!0,this._pruneTiles()),g||(vt(S.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:S.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ot.ielt9||!this._map._fadeAnimated?J(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var g=new I(this._wrapX?m(c.x,this._wrapX):c.x,this._wrapY?m(c.y,this._wrapY):c.y);return g.z=c.z,g},_pxBoundsToTileRange:function(c){var g=this.getTileSize();return new D(c.min.unscaleBy(g).floor(),c.max.unscaleBy(g).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function ci(c){return new _o(c)}var xo=_o.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,g){this._url=c,g=x(this,g),g.detectRetina&&ot.retina&&g.maxZoom>0?(g.tileSize=Math.floor(g.tileSize/2),g.zoomReverse?(g.zoomOffset--,g.minZoom=Math.min(g.maxZoom,g.minZoom+1)):(g.zoomOffset++,g.maxZoom=Math.max(g.minZoom,g.maxZoom-1)),g.minZoom=Math.max(0,g.minZoom)):g.zoomReverse?g.minZoom=Math.min(g.maxZoom,g.minZoom):g.maxZoom=Math.max(g.minZoom,g.maxZoom),typeof g.subdomains=="string"&&(g.subdomains=g.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,g){return this._url===c&&g===void 0&&(g=!0),this._url=c,g||this.redraw(),this},createTile:function(c,g){var S=document.createElement("img");return mt(S,"load",s(this._tileOnLoad,this,g,S)),mt(S,"error",s(this._tileOnError,this,g,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(c),S},getTileUrl:function(c){var g={r:ot.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-c.y;this.options.tms&&(g.y=S),g["-y"]=S}return j(this._url,i(g,this.options))},_tileOnLoad:function(c,g){ot.ielt9?setTimeout(s(c,this,null,g),0):c(null,g)},_tileOnError:function(c,g,S){var R=this.options.errorTileUrl;R&&g.getAttribute("src")!==R&&(g.src=R),c(S,g)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,g=this.options.maxZoom,S=this.options.zoomReverse,R=this.options.zoomOffset;return S&&(c=g-c),c+R},_getSubdomain:function(c){var g=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[g]},_abortLoading:function(){var c,g;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(g=this._tiles[c].el,g.onload=p,g.onerror=p,!g.complete)){g.src=B;var S=this._tiles[c].coords;en(g),delete this._tiles[c],this.fire("tileabort",{tile:g,coords:S})}},_removeTile:function(c){var g=this._tiles[c];if(g)return g.el.setAttribute("src",B),_o.prototype._removeTile.call(this,c)},_tileReady:function(c,g,S){if(!(!this._map||S&&S.getAttribute("src")===B))return _o.prototype._tileReady.call(this,c,g,S)}});function kr(c,g){return new xo(c,g)}var Ir=xo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,g){this._url=c;var S=i({},this.defaultWmsParams);for(var R in g)R in this.options||(S[R]=g[R]);g=x(this,g);var $=g.detectRetina&&ot.retina?2:1,te=this.getTileSize();S.width=te.x*$,S.height=te.y*$,this.wmsParams=S},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var g=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[g]=this._crs.code,xo.prototype.onAdd.call(this,c)},getTileUrl:function(c){var g=this._tileCoordsToNwSe(c),S=this._crs,R=W(S.project(g[0]),S.project(g[1])),$=R.min,te=R.max,me=(this._wmsVersion>=1.3&&this._crs===jm?[$.y,$.x,te.y,te.x]:[$.x,$.y,te.x,te.y]).join(","),Se=xo.prototype.getTileUrl.call(this,c);return Se+A(this.wmsParams,Se,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+me},setParams:function(c,g){return i(this.wmsParams,c),g||this.redraw(),this}});function Ts(c,g){return new Ir(c,g)}xo.WMS=Ir,kr.wms=Ts;var fi=si.extend({options:{padding:.1},initialize:function(c){x(this,c),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),vt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,g){var S=this._map.getZoomScale(g,this._zoom),R=this._map.getSize().multiplyBy(.5+this.options.padding),$=this._map.project(this._center,g),te=R.multiplyBy(-S).add($).subtract(this._map._getNewPixelOrigin(c,g));ot.any3d?Gr(this._container,te,S):_n(this._container,te)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,g=this._map.getSize(),S=this._map.containerPointToLayerPoint(g.multiplyBy(-c)).round();this._bounds=new D(S,S.add(g.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Kl=fi.extend({options:{tolerance:0},getEvents:function(){var c=fi.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){fi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");mt(c,"mousemove",this._onMouseMove,this),mt(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),mt(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){ne(this._redrawRequest),delete this._ctx,en(this._container),Ut(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var g in this._layers)c=this._layers[g],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){fi.prototype._update.call(this);var c=this._bounds,g=this._container,S=c.getSize(),R=ot.retina?2:1;_n(g,c.min),g.width=R*S.x,g.height=R*S.y,g.style.width=S.x+"px",g.style.height=S.y+"px",ot.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){fi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[d(c)]=c;var g=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=g),this._drawLast=g,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var g=c._order,S=g.next,R=g.prev;S?S.prev=R:this._drawLast=R,R?R.next=S:this._drawFirst=S,delete c._order,delete this._layers[d(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var g=c.options.dashArray.split(/[, ]+/),S=[],R,$;for($=0;$<g.length;$++){if(R=Number(g[$]),isNaN(R))return;S.push(R)}c.options._dashArray=S}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||J(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var g=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D,this._redrawBounds.extend(c._pxBounds.min.subtract([g,g])),this._redrawBounds.extend(c._pxBounds.max.add([g,g]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var g=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,g.x,g.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var c,g=this._redrawBounds;if(this._ctx.save(),g){var S=g.getSize();this._ctx.beginPath(),this._ctx.rect(g.min.x,g.min.y,S.x,S.y),this._ctx.clip()}this._drawing=!0;for(var R=this._drawFirst;R;R=R.next)c=R.layer,(!g||c._pxBounds&&c._pxBounds.intersects(g))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,g){if(this._drawing){var S,R,$,te,me=c._parts,Se=me.length,Me=this._ctx;if(Se){for(Me.beginPath(),S=0;S<Se;S++){for(R=0,$=me[S].length;R<$;R++)te=me[S][R],Me[R?"lineTo":"moveTo"](te.x,te.y);g&&Me.closePath()}this._fillStroke(Me,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var g=c._point,S=this._ctx,R=Math.max(Math.round(c._radius),1),$=(Math.max(Math.round(c._radiusY),1)||R)/R;$!==1&&(S.save(),S.scale(1,$)),S.beginPath(),S.arc(g.x,g.y/$,R,0,Math.PI*2,!1),$!==1&&S.restore(),this._fillStroke(S,c)}},_fillStroke:function(c,g){var S=g.options;S.fill&&(c.globalAlpha=S.fillOpacity,c.fillStyle=S.fillColor||S.color,c.fill(S.fillRule||"evenodd")),S.stroke&&S.weight!==0&&(c.setLineDash&&c.setLineDash(g.options&&g.options._dashArray||[]),c.globalAlpha=S.opacity,c.lineWidth=S.weight,c.strokeStyle=S.color,c.lineCap=S.lineCap,c.lineJoin=S.lineJoin,c.stroke())},_onClick:function(c){for(var g=this._map.mouseEventToLayerPoint(c),S,R,$=this._drawFirst;$;$=$.next)S=$.layer,S.options.interactive&&S._containsPoint(g)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(S))&&(R=S);this._fireEvent(R?[R]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var g=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,g)}},_handleMouseOut:function(c){var g=this._hoveredLayer;g&&(tn(this._container,"leaflet-interactive"),this._fireEvent([g],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,g){if(!this._mouseHoverThrottled){for(var S,R,$=this._drawFirst;$;$=$.next)S=$.layer,S.options.interactive&&S._containsPoint(g)&&(R=S);R!==this._hoveredLayer&&(this._handleMouseOut(c),R&&(vt(this._container,"leaflet-interactive"),this._fireEvent([R],c,"mouseover"),this._hoveredLayer=R)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,g,S){this._map._fireDOMEvent(g,S||g.type,c)},_bringToFront:function(c){var g=c._order;if(g){var S=g.next,R=g.prev;if(S)S.prev=R;else return;R?R.next=S:S&&(this._drawFirst=S),g.prev=this._drawLast,this._drawLast.next=g,g.next=null,this._drawLast=g,this._requestRedraw(c)}},_bringToBack:function(c){var g=c._order;if(g){var S=g.next,R=g.prev;if(R)R.next=S;else return;S?S.prev=R:R&&(this._drawLast=R),g.prev=null,g.next=this._drawFirst,this._drawFirst.prev=g,this._drawFirst=g,this._requestRedraw(c)}}});function Zl(c){return ot.canvas?new Kl(c):null}var wo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Os={_initContainer:function(){this._container=jt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(fi.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var g=c._container=wo("shape");vt(g,"leaflet-vml-shape "+(this.options.className||"")),g.coordsize="1 1",c._path=wo("path"),g.appendChild(c._path),this._updateStyle(c),this._layers[d(c)]=c},_addPath:function(c){var g=c._container;this._container.appendChild(g),c.options.interactive&&c.addInteractiveTarget(g)},_removePath:function(c){var g=c._container;en(g),c.removeInteractiveTarget(g),delete this._layers[d(c)]},_updateStyle:function(c){var g=c._stroke,S=c._fill,R=c.options,$=c._container;$.stroked=!!R.stroke,$.filled=!!R.fill,R.stroke?(g||(g=c._stroke=wo("stroke")),$.appendChild(g),g.weight=R.weight+"px",g.color=R.color,g.opacity=R.opacity,R.dashArray?g.dashStyle=O(R.dashArray)?R.dashArray.join(" "):R.dashArray.replace(/( *, *)/g," "):g.dashStyle="",g.endcap=R.lineCap.replace("butt","flat"),g.joinstyle=R.lineJoin):g&&($.removeChild(g),c._stroke=null),R.fill?(S||(S=c._fill=wo("fill")),$.appendChild(S),S.color=R.fillColor||R.color,S.opacity=R.fillOpacity):S&&($.removeChild(S),c._fill=null)},_updateCircle:function(c){var g=c._point.round(),S=Math.round(c._radius),R=Math.round(c._radiusY||S);this._setPath(c,c._empty()?"M0 0":"AL "+g.x+","+g.y+" "+S+","+R+" 0,"+65535*360)},_setPath:function(c,g){c._path.v=g},_bringToFront:function(c){co(c._container)},_bringToBack:function(c){fs(c._container)}},Xl=ot.vml?wo:ge,ka=fi.extend({_initContainer:function(){this._container=Xl("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Xl("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){en(this._container),Ut(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){fi.prototype._update.call(this);var c=this._bounds,g=c.getSize(),S=this._container;(!this._svgSize||!this._svgSize.equals(g))&&(this._svgSize=g,S.setAttribute("width",g.x),S.setAttribute("height",g.y)),_n(S,c.min),S.setAttribute("viewBox",[c.min.x,c.min.y,g.x,g.y].join(" ")),this.fire("update")}},_initPath:function(c){var g=c._path=Xl("path");c.options.className&&vt(g,c.options.className),c.options.interactive&&vt(g,"leaflet-interactive"),this._updateStyle(c),this._layers[d(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){en(c._path),c.removeInteractiveTarget(c._path),delete this._layers[d(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var g=c._path,S=c.options;g&&(S.stroke?(g.setAttribute("stroke",S.color),g.setAttribute("stroke-opacity",S.opacity),g.setAttribute("stroke-width",S.weight),g.setAttribute("stroke-linecap",S.lineCap),g.setAttribute("stroke-linejoin",S.lineJoin),S.dashArray?g.setAttribute("stroke-dasharray",S.dashArray):g.removeAttribute("stroke-dasharray"),S.dashOffset?g.setAttribute("stroke-dashoffset",S.dashOffset):g.removeAttribute("stroke-dashoffset")):g.setAttribute("stroke","none"),S.fill?(g.setAttribute("fill",S.fillColor||S.color),g.setAttribute("fill-opacity",S.fillOpacity),g.setAttribute("fill-rule",S.fillRule||"evenodd")):g.setAttribute("fill","none"))},_updatePoly:function(c,g){this._setPath(c,de(c._parts,g))},_updateCircle:function(c){var g=c._point,S=Math.max(Math.round(c._radius),1),R=Math.max(Math.round(c._radiusY),1)||S,$="a"+S+","+R+" 0 1,0 ",te=c._empty()?"M0 0":"M"+(g.x-S)+","+g.y+$+S*2+",0 "+$+-S*2+",0 ";this._setPath(c,te)},_setPath:function(c,g){c._path.setAttribute("d",g)},_bringToFront:function(c){co(c._path)},_bringToBack:function(c){fs(c._path)}});ot.vml&&ka.include(Os);function So(c){return ot.svg||ot.vml?new ka(c):null}xt.include({getRenderer:function(c){var g=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return g||(g=this._renderer=this._createRenderer()),this.hasLayer(g)||this.addLayer(g),g},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var g=this._paneRenderers[c];return g===void 0&&(g=this._createRenderer({pane:c}),this._paneRenderers[c]=g),g},_createRenderer:function(c){return this.options.preferCanvas&&Zl(c)||So(c)}});var km=Cs.extend({initialize:function(c,g){Cs.prototype.initialize.call(this,this._boundsToLatLngs(c),g)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=re(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function Ur(c,g){return new km(c,g)}ka.create=Xl,ka.pointsToPath=de,Dr.geometryToLayer=Hl,Dr.coordsToLatLng=ac,Dr.coordsToLatLngs=Gl,Dr.latLngToCoords=Wl,Dr.latLngsToCoords=oc,Dr.getFeature=li,Dr.asFeature=Es,xt.mergeOptions({boxZoom:!0});var cc=oi.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){mt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ut(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){en(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),ki(),Ul(),this._startPoint=this._map.mouseEventToContainerPoint(c),mt(document,{contextmenu:Bi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=jt("div","leaflet-zoom-box",this._container),vt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var g=new D(this._point,this._startPoint),S=g.getSize();_n(this._box,g.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(en(this._box),tn(this._container,"leaflet-crosshair")),Il(),zf(),Ut(document,{contextmenu:Bi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var g=new H(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(g).fire("boxzoomend",{boxZoomBounds:g})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});xt.addInitHook("addHandler","boxZoom",cc),xt.mergeOptions({doubleClickZoom:!0});var Fi=oi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var g=this._map,S=g.getZoom(),R=g.options.zoomDelta,$=c.originalEvent.shiftKey?S-R:S+R;g.options.doubleClickZoom==="center"?g.setZoom($):g.setZoomAround(c.containerPoint,$)}});xt.addInitHook("addHandler","doubleClickZoom",Fi),xt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ed=oi.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new La(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}vt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tn(this._map._container,"leaflet-grab"),tn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var g=re(this._map.options.maxBounds);this._offsetLimit=W(this._map.latLngToContainerPoint(g.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(g.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var g=this._lastTime=+new Date,S=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(S),this._times.push(g),this._prunePositions(g)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),g=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=g.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,g){return c-(c-g)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),g=this._offsetLimit;c.x<g.min.x&&(c.x=this._viscousLimit(c.x,g.min.x)),c.y<g.min.y&&(c.y=this._viscousLimit(c.y,g.min.y)),c.x>g.max.x&&(c.x=this._viscousLimit(c.x,g.max.x)),c.y>g.max.y&&(c.y=this._viscousLimit(c.y,g.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,g=Math.round(c/2),S=this._initialWorldOffset,R=this._draggable._newPos.x,$=(R-g+S)%c+g-S,te=(R+g+S)%c-g-S,me=Math.abs($+S)<Math.abs(te+S)?$:te;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=me},_onDragEnd:function(c){var g=this._map,S=g.options,R=!S.inertia||c.noInertia||this._times.length<2;if(g.fire("dragend",c),R)g.fire("moveend");else{this._prunePositions(+new Date);var $=this._lastPos.subtract(this._positions[0]),te=(this._lastTime-this._times[0])/1e3,me=S.easeLinearity,Se=$.multiplyBy(me/te),Me=Se.distanceTo([0,0]),Fe=Math.min(S.inertiaMaxSpeed,Me),Xe=Se.multiplyBy(Fe/Me),tt=Fe/(S.inertiaDeceleration*me),rt=Xe.multiplyBy(-tt/2).round();!rt.x&&!rt.y?g.fire("moveend"):(rt=g._limitOffset(rt,g.options.maxBounds),J(function(){g.panBy(rt,{duration:tt,easeLinearity:me,noMoveStart:!0,animate:!0})}))}}});xt.addInitHook("addHandler","dragging",ed),xt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ql=oi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),mt(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ut(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,g=document.documentElement,S=c.scrollTop||g.scrollTop,R=c.scrollLeft||g.scrollLeft;this._map._container.focus(),window.scrollTo(R,S)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var g=this._panKeys={},S=this.keyCodes,R,$;for(R=0,$=S.left.length;R<$;R++)g[S.left[R]]=[-1*c,0];for(R=0,$=S.right.length;R<$;R++)g[S.right[R]]=[c,0];for(R=0,$=S.down.length;R<$;R++)g[S.down[R]]=[0,c];for(R=0,$=S.up.length;R<$;R++)g[S.up[R]]=[0,-1*c]},_setZoomDelta:function(c){var g=this._zoomKeys={},S=this.keyCodes,R,$;for(R=0,$=S.zoomIn.length;R<$;R++)g[S.zoomIn[R]]=c;for(R=0,$=S.zoomOut.length;R<$;R++)g[S.zoomOut[R]]=-c},_addHooks:function(){mt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ut(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var g=c.keyCode,S=this._map,R;if(g in this._panKeys){if(!S._panAnim||!S._panAnim._inProgress)if(R=this._panKeys[g],c.shiftKey&&(R=M(R).multiplyBy(3)),S.options.maxBounds&&(R=S._limitOffset(M(R),S.options.maxBounds)),S.options.worldCopyJump){var $=S.wrapLatLng(S.unproject(S.project(S.getCenter()).add(R)));S.panTo($)}else S.panBy(R)}else if(g in this._zoomKeys)S.setZoom(S.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[g]);else if(g===27&&S._popup&&S._popup.options.closeOnEscapeKey)S.closePopup();else return;Bi(c)}}});xt.addInitHook("addHandler","keyboard",Ql),xt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ia=oi.extend({addHooks:function(){mt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ut(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var g=Fl(c),S=this._map.options.wheelDebounceTime;this._delta+=g,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var R=Math.max(S-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),R),Bi(c)},_performZoom:function(){var c=this._map,g=c.getZoom(),S=this._map.options.zoomSnap||0;c._stop();var R=this._delta/(this._map.options.wheelPxPerZoomLevel*4),$=4*Math.log(2/(1+Math.exp(-Math.abs(R))))/Math.LN2,te=S?Math.ceil($/S)*S:$,me=c._limitZoom(g+(this._delta>0?te:-te))-g;this._delta=0,this._startTime=null,me&&(c.options.scrollWheelZoom==="center"?c.setZoom(g+me):c.setZoomAround(this._lastMousePos,g+me))}});xt.addInitHook("addHandler","scrollWheelZoom",Ia);var td=600;xt.mergeOptions({tapHold:ot.touchNative&&ot.safari&&ot.mobile,tapTolerance:15});var fc=oi.extend({addHooks:function(){mt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ut(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var g=c.touches[0];this._startPos=this._newPos=new I(g.clientX,g.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(mt(document,"touchend",Cn),mt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",g))},this),td),mt(document,"touchend touchcancel contextmenu",this._cancel,this),mt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){Ut(document,"touchend",Cn),Ut(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),Ut(document,"touchend touchcancel contextmenu",this._cancel,this),Ut(document,"touchmove",this._onMove,this)},_onMove:function(c){var g=c.touches[0];this._newPos=new I(g.clientX,g.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,g){var S=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:g.screenX,screenY:g.screenY,clientX:g.clientX,clientY:g.clientY});S._simulated=!0,g.target.dispatchEvent(S)}});xt.addInitHook("addHandler","tapHold",fc),xt.mergeOptions({touchZoom:ot.touch,bounceAtZoomLimits:!0});var Co=oi.extend({addHooks:function(){vt(this._map._container,"leaflet-touch-zoom"),mt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tn(this._map._container,"leaflet-touch-zoom"),Ut(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var g=this._map;if(!(!c.touches||c.touches.length!==2||g._animatingZoom||this._zooming)){var S=g.mouseEventToContainerPoint(c.touches[0]),R=g.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=g.getSize()._divideBy(2),this._startLatLng=g.containerPointToLatLng(this._centerPoint),g.options.touchZoom!=="center"&&(this._pinchStartLatLng=g.containerPointToLatLng(S.add(R)._divideBy(2))),this._startDist=S.distanceTo(R),this._startZoom=g.getZoom(),this._moved=!1,this._zooming=!0,g._stop(),mt(document,"touchmove",this._onTouchMove,this),mt(document,"touchend touchcancel",this._onTouchEnd,this),Cn(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var g=this._map,S=g.mouseEventToContainerPoint(c.touches[0]),R=g.mouseEventToContainerPoint(c.touches[1]),$=S.distanceTo(R)/this._startDist;if(this._zoom=g.getScaleZoom($,this._startZoom),!g.options.bounceAtZoomLimits&&(this._zoom<g.getMinZoom()&&$<1||this._zoom>g.getMaxZoom()&&$>1)&&(this._zoom=g._limitZoom(this._zoom)),g.options.touchZoom==="center"){if(this._center=this._startLatLng,$===1)return}else{var te=S._add(R)._divideBy(2)._subtract(this._centerPoint);if($===1&&te.x===0&&te.y===0)return;this._center=g.unproject(g.project(this._pinchStartLatLng,this._zoom).subtract(te),this._zoom)}this._moved||(g._moveStart(!0,!1),this._moved=!0),ne(this._animRequest);var me=s(g._move,g,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=J(me,this,!0),Cn(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ne(this._animRequest),Ut(document,"touchmove",this._onTouchMove,this),Ut(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))}});xt.addInitHook("addHandler","touchZoom",Co),xt.BoxZoom=cc,xt.DoubleClickZoom=Fi,xt.Drag=ed,xt.Keyboard=Ql,xt.ScrollWheelZoom=Ia,xt.TapHold=fc,xt.TouchZoom=Co,n.Bounds=D,n.Browser=ot,n.CRS=ve,n.Canvas=Kl,n.Circle=Xf,n.CircleMarker=ql,n.Class=Q,n.Control=Cr,n.DivIcon=Jf,n.DivOverlay=ui,n.DomEvent=Wy,n.DomUtil=ym,n.Draggable=La,n.Evented=U,n.FeatureGroup=Nr,n.GeoJSON=Dr,n.GridLayer=_o,n.Handler=oi,n.Icon=xs,n.ImageOverlay=zi,n.LatLng=ue,n.LatLngBounds=H,n.Layer=si,n.LayerGroup=yo,n.LineUtil=Tm,n.Map=xt,n.Marker=Ss,n.Mixin=Qy,n.Path=ia,n.Point=I,n.PolyUtil=Jy,n.Polygon=Cs,n.Polyline=aa,n.Popup=Yl,n.PosAnimation=Ju,n.Projection=Om,n.Rectangle=km,n.Renderer=fi,n.SVG=ka,n.SVGOverlay=Da,n.TileLayer=xo,n.Tooltip=uc,n.Transformation=le,n.Util=he,n.VideoOverlay=lc,n.bind=s,n.bounds=W,n.canvas=Zl,n.circle=a0,n.circleMarker=Mm,n.control=bs,n.divIcon=Dm,n.extend=i,n.featureGroup=Vl,n.geoJSON=sc,n.geoJson=Rm,n.gridLayer=ci,n.icon=ic,n.imageOverlay=As,n.latLng=ce,n.latLngBounds=re,n.layerGroup=Pm,n.map=$l,n.marker=Zf,n.point=M,n.polygon=Lr,n.polyline=o0,n.popup=s0,n.rectangle=Ur,n.setOptions=x,n.stamp=d,n.svg=So,n.svgOverlay=Lm,n.tileLayer=kr,n.tooltip=l0,n.transformation=q,n.version=r,n.videoOverlay=Nm;var js=window.L;n.noConflict=function(){return window.L=js,this},window.L=n})}(rh,rh.exports)),rh.exports}var om=kpe();const _R=ri(om);function qC(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function HC(e,t){return t==null?function(r,i){const a=T.useRef(void 0);return a.current||(a.current=e(r,i)),a}:function(r,i){const a=T.useRef(void 0);a.current||(a.current=e(r,i));const s=T.useRef(r),{instance:u}=a.current;return T.useEffect(function(){s.current!==r&&(t(u,r,s.current),s.current=r)},[u,r,t]),a}}function Ipe(e,t){T.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function Q7(e){return function(n){const r=Z7(),i=e(VC(n,r),r);return K7(r.map,n.attribution),X7(i.current,n.eventHandlers),Ipe(i.current,r),i}}function Upe(e,t){const n=HC(e,t),r=Q7(n);return Mpe(r)}function Bpe(e,t){const n=HC(e),r=Lpe(n,t);return Rpe(r)}function zpe(e,t){const n=HC(e,t),r=Q7(n);return Npe(r)}function Fpe(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 $pe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:s,style:u,whenReady:d,zoom:f,...m},p){const[b]=T.useState({className:i,id:a,style:u}),[_,w]=T.useState(null),x=T.useRef(void 0);T.useImperativeHandle(p,()=>_?.map??null,[_]);const A=T.useCallback(j=>{if(j!==null&&!x.current){const O=new om.Map(j,m);x.current=O,n!=null&&f!=null?O.setView(n,f):e!=null&&O.fitBounds(e,t),d!=null&&O.whenReady(d),w(jpe(O))}},[]);T.useEffect(()=>()=>{_?.map.remove()},[_]);const C=_?Xc.createElement($C,{value:_},r):s??null;return Xc.createElement("div",{...b,ref:A},C)}const Vpe=T.forwardRef($pe),qpe=Upe(function({position:t,...n},r){const i=new om.Marker(t,n);return qC(i,Ppe(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())}),Hpe=Bpe(function(t,n){const r=new om.Popup(t,n.overlayContainer);return qC(r,n)},function(t,n,{position:r},i){T.useEffect(function(){const{instance:s}=t;function u(f){f.popup===s&&(s.update(),i(!0))}function d(f){f.popup===s&&i(!1)}return n.map.on({popupopen:u,popupclose:d}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){n.map.off({popupopen:u,popupclose:d}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),Gpe=zpe(function({url:t,...n},r){const i=new om.TileLayer(t,VC(n,r));return qC(i,r)},function(t,n,r){Fpe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),Wpe={"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"},J7={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"},Dn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Br={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"},tl={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class $e{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=$e.getVersionPrecision(t),a=$e.getVersionPrecision(n);let s=Math.max(i,a),u=0;const d=$e.map([t,n],f=>{const m=s-$e.getVersionPrecision(f),p=f+new Array(m+1).join(".0");return $e.map(p.split("."),b=>new Array(20-b.length).join("0")+b).reverse()});for(r&&(u=s-Math.min(i,a)),s-=1;s>=u;){if(d[0][s]>d[1][s])return 1;if(d[0][s]===d[1][s]){if(s===u)return 0;s-=1}else if(d[0][s]<d[1][s])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 s=n[i];typeof s=="object"&&s!==null&&Object.keys(s).forEach(d=>{r[d]=s[d]})}return t}static getBrowserAlias(t){return Wpe[t]}static getBrowserTypeByAlias(t){return J7[t]||""}}const Kt=/version\/(\d+(\.?_?\d+)+)/i,Ype=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=$e.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=$e.getFirstMatch(Kt,e)||$e.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=$e.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=$e.getFirstMatch(Kt,e)||$e.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=$e.getFirstMatch(Kt,e)||$e.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=$e.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=$e.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=$e.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=$e.getFirstMatch(Kt,e)||$e.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=$e.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=$e.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=$e.getFirstMatch(Kt,e)||$e.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=$e.getFirstMatch(Kt,e)||$e.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=$e.getFirstMatch(Kt,e)||$e.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=$e.getFirstMatch(Kt,e)||$e.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=$e.getFirstMatch(Kt,e)||$e.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=$e.getFirstMatch(Kt,e)||$e.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=$e.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||$e.getFirstMatch(Kt,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=$e.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=$e.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=$e.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=$e.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=$e.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=$e.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=$e.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=$e.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=$e.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=$e.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=$e.getFirstMatch(Kt,e)||$e.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=$e.getFirstMatch(Kt,e)||$e.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=$e.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=$e.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=$e.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=$e.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=$e.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=$e.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=$e.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=$e.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=$e.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=$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=$e.getFirstMatch(Kt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:$e.getFirstMatch(i,e),version:$e.getSecondMatch(i,e)}}}],Kpe=[{test:[/Roku\/DVP/],describe(e){const t=$e.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Br.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=$e.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Br.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=$e.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=$e.getWindowsVersionName(t);return{name:Br.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Br.iOS},n=$e.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=$e.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=$e.getMacOSVersionName(t),r={name:Br.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=$e.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Br.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=$e.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=$e.getAndroidVersionName(t),r={name:Br.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=$e.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Br.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=$e.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||$e.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||$e.getFirstMatch(/\bbb(\d+)/i,e);return{name:Br.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=$e.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Br.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=$e.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Br.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Br.Linux}}},{test:[/CrOS/],describe(){return{name:Br.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=$e.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Br.PlayStation4,version:t}}}],Zpe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=$e.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Dn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Dn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Dn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Dn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Dn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Dn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Dn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=$e.getFirstMatch(/(ipod|iphone)/i,e);return{type:Dn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Dn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Dn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Dn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Dn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Dn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Dn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Dn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Dn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Dn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Dn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Dn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Dn.tv}}}],Xpe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:tl.Blink};const n=$e.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:tl.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:tl.Trident},n=$e.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:tl.Presto},n=$e.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:tl.Gecko},n=$e.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:tl.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:tl.WebKit},n=$e.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class xR{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=$e.find(Ype,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=$e.find(Kpe,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=$e.find(Zpe,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=$e.find(Xpe,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 $e.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(u=>{const d=t[u];typeof d=="string"?(i[u]=d,a+=1):typeof d=="object"&&(n[u]=d,r+=1)}),r>0){const u=Object.keys(n),d=$e.find(u,m=>this.isOS(m));if(d){const m=this.satisfies(n[d]);if(m!==void 0)return m}const f=$e.find(u,m=>this.isPlatform(m));if(f){const m=this.satisfies(n[f]);if(m!==void 0)return m}}if(a>0){const u=Object.keys(i),d=$e.find(u,f=>this.isBrowser(f,!0));if(d!==void 0)return this.compareVersion(i[d])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=$e.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($e.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 Qpe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new xR(t,n)}static parse(t){return new xR(t).getResult()}static get BROWSER_MAP(){return J7}static get ENGINE_MAP(){return tl}static get OS_MAP(){return Br}static get PLATFORMS_MAP(){return Dn}}const Jpe=e=>e?.type===Bw.INVALID_ARGUMENT,ege=e=>e?.type===Bw.INVALID_SHORT_URL_DELETION,tge=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Li=e=>tge(e)?e:void 0,GC=e=>"error"in e,Qa=({errorData:e,fallbackMessage:t})=>v.jsxs(v.Fragment,{children:[e?.detail??t,Jpe(e)&&v.jsxs("p",{children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),eI=T.createContext(""),nge=eI.Provider,as=()=>T.useContext(eI),tI=T.createContext(void 0),{Provider:WC}=tI,ky=()=>T.useContext(tI),rge=5,YC=()=>{const[e,t]=T.useState([]),n=T.useMemo(()=>e.length>=rge,[e.length]),r=T.useCallback(u=>!n&&t(d=>[...d,u]),[n]),i=T.useCallback(u=>!n&&e.every(d=>d.name!==u),[e,n]),a=T.useCallback(u=>t(d=>d.filter(f=>f!==u)),[]),s=T.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:a,clearItemsToCompare:s,canAddItemWithName:i}},KC=({className:e,type:t})=>{const n=as(),r=ky(),i=T.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(d=>d.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:a,clearItemsToCompare:s,removeItemToCompare:u}=r;return v.jsx("div",{className:Ne("sticky top-(--header-height) z-10",e),children:v.jsxs(Mt,{bodyClassName:"flex flex-col lg:flex-row gap-4 items-center",children:[v.jsx("ul",{className:"flex flex-wrap gap-1 grow items-center",children:a.map((d,f)=>v.jsxs("li",{className:Ne("flex items-center gap-1 text-sm font-bold text-white py-0.5 px-1.5 rounded",{"bg-gray-500":!d.style?.backgroundColor}),style:d.style,children:[d.name,v.jsx(Pu,{label:`Remove ${d.name}`,className:"text-xs",onClick:()=>u(d)})]},`${d.name}_${f}`))}),v.jsxs("div",{className:"flex gap-2 max-lg:w-full",children:[v.jsxs(Rt,{className:"grow whitespace-nowrap",disabled:a.length<2,to:a.length>1?`${n}/${t}/compare-visits?${t}=${i}`:void 0,children:[v.jsx(We,{icon:Iv}),"Compare (",a.length,"/5)",v.jsx(We,{icon:Ag})]}),v.jsx(Rt,{"aria-label":"Close compare",variant:"secondary",onClick:s,children:v.jsx(We,{icon:sw})})]})]})})},ige=(e,{maxVersion:t,minVersion:n})=>{const r=!n||qx(e,n,">=");return(!t||qx(e,t,"<="))&&r},nI={shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},deviceLongUrls:{maxVersion:"3.*.*"},urlValidation:{maxVersion:"3.*.*"},shortUrlRedirectRules:{minVersion:"4.0.0"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"},advancedQueryRedirectConditions:{minVersion:"4.5.0"},desktopDeviceTypes:{minVersion:"4.5.0"}};Object.freeze(nI);const Va=(e,t)=>ige(t==="latest"?"999.99.99":t,nI[e]),rI=e=>({deviceLongUrls:Va("deviceLongUrls",e),shortUrlVisitsDeletion:Va("shortUrlVisitsDeletion",e),orphanVisitsDeletion:Va("orphanVisitsDeletion",e),shortUrlRedirectRules:Va("shortUrlRedirectRules",e),urlValidation:Va("urlValidation",e),ipRedirectCondition:Va("ipRedirectCondition",e),geolocationRedirectCondition:Va("geolocationRedirectCondition",e),filterShortUrlsByDomain:Va("filterShortUrlsByDomain",e),advancedQueryRedirectConditions:Va("advancedQueryRedirectConditions",e),desktopDeviceTypes:Va("advancedQueryRedirectConditions",e)}),iI=T.createContext(rI("0.0.0")),age=iI.Provider,oge=e=>T.useMemo(()=>rI(e),[e]),Qi=e=>T.useContext(iI)[e],ff="DEFAULT",Z_=({children:e,onChange:t,infoTitle:n,...r})=>v.jsx(ni,{...r,onChange:i=>t(i.target.value),label:v.jsxs(v.Fragment,{children:[v.jsx(We,{className:"mr-1.5",icon:Bv,title:n}),e]}),type:"url",placeholder:"No redirect"}),sge=({isOpen:e,onClose:t,domain:n,editDomainRedirects:r})=>{const[i,a]=T.useState(n.redirects?.baseUrlRedirect??""),[s,u]=T.useState(n.redirects?.regular404Redirect??""),[d,f]=T.useState(n.redirects?.invalidShortUrlRedirect??""),[m,p]=T.useState(!1),b=T.useCallback(async()=>{p(!0);try{await r({domain:n.domain,redirects:{baseUrlRedirect:hb(i),regular404Redirect:hb(s),invalidShortUrlRedirect:hb(d)}}),t()}finally{p(!1)}},[r,n.domain,i,s,d,t]);return v.jsx(to,{title:`Edit redirects for ${n.domain}`,open:e,onClose:t,onConfirm:b,confirmText:m?"Saving...":"Save",confirmDisabled:m,children:v.jsxs("div",{className:"flex flex-col gap-y-3",children:[v.jsx(Z_,{value:i,onChange:a,infoTitle:`Visitors accessing the base url, as in https://${n.domain}/, will be redirected to this URL.`,children:"Base URL"}),v.jsx(Z_,{value:s,onChange:u,infoTitle:`Visitors accessing a url not matching a short URL pattern, as in https://${n.domain}/???/[...], will be redirected to this URL.`,children:"Regular 404"}),v.jsx(Z_,{value:d,onChange:f,infoTitle:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL.",children:"Invalid short URL"})]})})},lge=({domain:e,editDomainRedirects:t})=>{const{flag:n,setToTrue:r,setToFalse:i}=Sn(),a=as(),s=ky(),u=Qi("filterShortUrlsByDomain");return v.jsxs(v.Fragment,{children:[v.jsxs(on,{menuAlignment:"right",children:[v.jsxs(on.Item,{className:"gap-1.5",to:`${a}/domain/${e.domain}${e.isDefault?`_${ff}`:""}/visits`,children:[v.jsx(We,{icon:uw})," Visit stats"]}),v.jsxs(on.Item,{className:"gap-1.5",disabled:!s||!s.canAddItemWithName(e.domain),onClick:()=>s?.addItemToCompare({name:e.domain,query:e.domain}),children:[v.jsx(We,{icon:Iv})," Compare visits"]}),u&&v.jsxs(on.Item,{className:"gap-1.5",to:`${a}/list-short-urls/1?domain=${e.isDefault?ff:e.domain}`,children:[v.jsx(We,{icon:lw})," Short URLs"]}),v.jsx(on.Separator,{}),v.jsxs(on.Item,{onClick:r,className:"gap-1.5",children:[v.jsx(We,{icon:ow})," Edit redirects"]})]}),v.jsx(sge,{domain:e,isOpen:n,onClose:i,editDomainRedirects:t})]})},uge=({status:e})=>{const{anchor:t,tooltip:n}=no();return e==="validating"?v.jsx(We,{icon:aw,spin:!0}):v.jsxs("span",{...t,children:[v.jsx(We,{icon:e==="valid"?Tu:iV,className:Ne({"text-danger":e!=="valid"})}),v.jsx(ro,{...n,children:e==="valid"?v.jsxs(v.Fragment,{children:["Congratulations!",v.jsx("br",{}),"This domain is properly configured."]}):v.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",v.jsx("br",{}),"Check the ",v.jsx(Ei,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},X_=({fallback:e})=>v.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:[!e&&v.jsx("small",{children:"No redirect"}),e&&v.jsxs(v.Fragment,{children:[e," ",v.jsx("small",{children:"(as fallback)"})]})]}),cge=()=>{const{anchor:e,tooltip:t}=no();return v.jsxs(v.Fragment,{children:[v.jsx(We,{...e,icon:TV,className:"text-lm-brand dark:text-dm-brand","data-testid":"default-domain-icon"}),v.jsx(ro,{...t,children:"Default domain foo"})]})},fge=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:a,redirects:s,status:u}=e;return T.useEffect(()=>{n(e.domain)},[n,e.domain]),v.jsxs(Ke.Row,{className:"relative",children:[v.jsx(Ke.Cell,{columnName:"Is default domain:",children:a&&v.jsx(cge,{})}),v.jsx(Ke.Cell,{columnName:"Domain:",children:v.jsx("b",{children:i})}),v.jsx(Ke.Cell,{columnName:"Base path redirect:",children:s?.baseUrlRedirect??v.jsx(X_,{fallback:r?.baseUrlRedirect})}),v.jsx(Ke.Cell,{columnName:"Regular 404 redirect:",children:s?.regular404Redirect??v.jsx(X_,{fallback:r?.regular404Redirect})}),v.jsx(Ke.Cell,{columnName:"Invalid short URL redirect:",children:s?.invalidShortUrlRedirect??v.jsx(X_,{fallback:r?.invalidShortUrlRedirect})}),v.jsx(Ke.Cell,{className:"lg:text-center max-lg:border-none",columnName:"Status:",children:v.jsx(uge,{status:u})}),v.jsx(Ke.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:v.jsx(lge,{domain:e,editDomainRedirects:t})})]})},wR=[{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}],dge=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{const{filteredDomains:i,defaultRedirects:a,loading:s,error:u,errorData:d}=e,f=a??i.find(({isDefault:p})=>p)?.redirects,m=YC();return s?v.jsx(Vo,{loading:!0}):v.jsx(WC,{value:m,children:v.jsxs("div",{className:"flex flex-col gap-y-4",children:[v.jsx(xf,{onChange:t}),v.jsx(KC,{type:"domains"}),u&&v.jsx(Fr,{variant:"error",children:v.jsx(Qa,{errorData:d,fallbackMessage:"Error loading domains :("})}),!u&&v.jsx(Mt,{className:"card",children:v.jsxs(Ke,{header:v.jsx(Ke.Row,{children:wR.map((p,b)=>v.jsx(Ke.Cell,{children:v.jsx("span",{className:p.isHidden?"sr-only":void 0,children:p.value})},b))}),children:[i.length<1&&v.jsx(Ke.Row,{children:v.jsx(Ke.Cell,{colSpan:wR.length,className:"text-center",children:"No results found"})}),i.map(p=>v.jsx(fge,{domain:p,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:f},p.domain))]})})]})})},Yn=(e,t)=>XN(e,t,{serializeError:n=>n}),hge="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",mge=e=>Yn(hge,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),eg="shlink/domainsList",tg={domains:[],filteredDomains:[],loading:!1,error:!1},SR=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},CR=(e,t)=>n=>n.domain!==e?n:{...n,status:t},pge=(e,t,n)=>{const r=Yn(`${eg}/listDomains`,async()=>{const{data:u,defaultRedirects:d}=await e().listDomains();return{domains:u.map(f=>({...f,status:"validating"})),defaultRedirects:d}}),i=Yn(`${eg}/checkDomainHealth`,async u=>{try{const{status:d}=await e().health({domain:u});return{domain:u,status:d==="pass"?"valid":"invalid"}}catch{return{domain:u,status:"invalid"}}}),a=dn(`${eg}/filterDomains`),{reducer:s}=Nt({name:eg,initialState:tg,reducers:{},extraReducers:u=>{u.addCase(r.pending,()=>({...tg,loading:!0})),u.addCase(r.rejected,(d,{error:f})=>({...tg,error:!0,errorData:Li(f)})),u.addCase(r.fulfilled,(d,{payload:f})=>({...tg,...f,filteredDomains:f.domains})),u.addCase(i.fulfilled,({domains:d,filteredDomains:f,...m},{payload:p})=>({...m,domains:d.map(CR(p.domain,p.status)),filteredDomains:f.map(CR(p.domain,p.status))})),u.addCase(a,(d,{payload:f})=>({...d,filteredDomains:d.domains.filter(({domain:m})=>m.toLowerCase().match(f.toLowerCase()))})),u.addCase(t.fulfilled,(d,{payload:f})=>({...d,domains:d.domains.map(SR(f)),filteredDomains:d.filteredDomains.map(SR(f))})),u.addCase(n.fulfilled,(d,{payload:f})=>{f.domain===null||d.domains.some(m=>m.domain===f.domain)||d.domains.push({domain:f.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:s,listDomains:r,checkDomainHealth:i,filterDomains:a}},gge=(e,t)=>{e.serviceFactory("ManageDomains",()=>dge),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",pge,"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",mge,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},ER="shlink/mercure",vge={loading:!0,error:!1},yge=e=>{const t=Yn(`${ER}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Nt({name:ER,initialState:vge,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}},bge=e=>{e.serviceFactory("mercureInfoReducerCreator",yge,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Pn(e){return T.useMemo(()=>e,[e])}function Mn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const _ge=(e,t,n,r)=>{const{mercureHubUrl:i,token:a,loading:s,error:u}=e;if(s||u||!i)return;const d=({data:p})=>n(JSON.parse(p)),f=({status:p})=>p===401&&r(),m=t.map(p=>{const b=new URL(i);b.searchParams.append("topic",p);const _=new FX.EventSourcePolyfill(b,{headers:{Authorization:`Bearer ${a}`}});return _.onmessage=d,_.onerror=f,_});return()=>m.forEach(p=>p.close())};function Ta(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:a,mercureInfo:s}=r,u=vf();return T.useEffect(()=>{const{interval:d}=s,f=_=>d?n.add(_):i([_]),m=t(u),p=_ge(s,m,f,a);if(!d)return p;const b=setInterval(()=>{i([...n]),n.clear()},d*1e3*60);return()=>{clearInterval(b),p?.()}},[i,a,s,u]),v.jsx(e,{...r})}}class ea{static visits="https://shlink.io/new-visit";static orphanVisits="https://shlink.io/new-orphan-visit";static shortUrlVisits=t=>`https://shlink.io/new-visit/${t}`}const Lf=dn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),fh=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,xge=(e,t)=>!e.domain&&t===ff?!0:e.domain===t,wge=(e,t)=>{const n=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}},aI=e=>e.replaceAll("/","__"),ZC=e=>e.replaceAll("__","/"),XC=({domain:e,shortCode:t})=>`${e??ff}__${aI(t)}`,oI=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===ff?null:t,shortCode:ZC(n)}},QC="shlink/shortUrlDeletion",AR={shortCode:"",loading:!1,deleted:!1,error:!1},Sge=e=>Yn(`${QC}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl({shortCode:t,domain:n}),{shortCode:t,domain:n})),sI=dn(`${QC}/shortUrlDeleted`),Cge=e=>{const{actions:t,reducer:n}=Nt({name:QC,initialState:AR,reducers:{resetDeleteShortUrl:()=>AR},extraReducers:i=>{i.addCase(e.pending,a=>({...a,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(a,{error:s})=>({...a,errorData:Li(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(a,{payload:s})=>({...a,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},lI="shlink/shortUrlsList",uI=5,Ege={loading:!0,error:!1},Age=e=>Yn(`${lI}/listShortUrls`,t=>e().listShortUrls(t??{})),Tge=(e,t,n)=>Nt({name:lI,initialState:Ege,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,uI-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>{const{shortCode:u,domain:d}=a;return fh(s,u,d)?a:s}))}),r.addCase(sI,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(s=>!fh(s,a.shortCode,a.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Lf,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>a.createdVisits.findLast(({shortUrl:u})=>u&&fh(s,u.shortCode,u.domain))?.shortUrl??s))})}}),D2=({children:e,title:t,link:n,tooltip:r})=>{const{anchor:i,tooltip:a}=no({placement:"bottom"});return v.jsxs(v.Fragment,{children:[v.jsx(Mr,{to:n,className:"no-underline text-inherit",...i,children:v.jsxs(Mt,{className:Ne("text-center border-t-3 border-t-lm-main dark:border-t-dm-main relative"),children:[v.jsx(We,{icon:UY,size:"3x",className:"absolute right-[5px] bottom-[5px] opacity-10 -rotate-45"}),v.jsx("div",{role:"heading","aria-level":5,className:"text-xl uppercase text-placeholder font-bold mb-2",children:t}),v.jsx("div",{className:"text-4xl font-semibold",children:e})]})}),r&&v.jsx(ro,{...a,children:r})]})},TR=({loading:e,excludeBots:t,visitsSummary:n,...r})=>v.jsx(D2,{tooltip:n.bots!==void 0?v.jsxs(v.Fragment,{children:[t?"Plus":"Including"," ",v.jsx("b",{"data-testid":"tooltip-amount",children:On(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":On(t&&n.nonBots!==void 0?n.nonBots:n.total)}),OR=({children:e,titleLinkText:t,titleLink:n,title:r})=>v.jsxs(cn,{className:"card",children:[v.jsxs(cn.Header,{className:"flex justify-between items-center",children:[v.jsx("span",{className:"sm:hidden",children:r}),v.jsx("h5",{className:"hidden sm:inline",children:r}),v.jsxs(Mr,{to:n,children:[t," »"]})]}),v.jsx(cn.Body,{children:e})]}),cI=Ta(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:a,CreateShortUrl:s}=Pn(cI),{loading:u,shortUrls:d}=e,{loading:f}=n,{loading:m,nonOrphanVisits:p,orphanVisits:b}=i,_=as(),w=eo(),x=kn("visits");return T.useEffect(()=>{t({itemsPerPage:uI,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-4 gap-4",children:[v.jsx(TR,{title:"Visits",link:`${_}/non-orphan-visits`,excludeBots:x?.excludeBots??!1,loading:m,visitsSummary:p}),v.jsx(TR,{title:"Orphan visits",link:`${_}/orphan-visits`,excludeBots:x?.excludeBots??!1,loading:m,visitsSummary:b}),v.jsx(D2,{title:"Short URLs",link:`${_}/list-short-urls/1`,children:u?"Loading...":On(d?.pagination.totalItems??0)}),v.jsx(D2,{title:"Tags",link:`${_}/manage-tags`,children:f?"Loading...":On(n.tags.length)})]}),v.jsx(OR,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${_}/create-short-url`,children:v.jsx(s,{basicMode:!0})}),v.jsx(OR,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${_}/list-short-urls/1`,children:v.jsx(a,{shortUrlsList:e,onTagClick:A=>w(`${_}/list-short-urls/1?tags=${encodeURIComponent(A)}`)})})]})},()=>[ea.visits,ea.orphanVisits]),Oge=Mn(cI,["ShortUrlsTable","CreateShortUrl"]);function jge(e,t){e.factory("Overview",Oge),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const fI="shlink/setShortUrlRedirectRules",jR={saving:!1,saved:!1,error:!1},Pge=e=>Yn(`${fI}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules({shortCode:r,domain:i},n)}),Mge=e=>{const{reducer:t,actions:n}=Nt({name:fI,initialState:jR,reducers:{resetSetRules:()=>jR},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Li(s)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},dI="shlink/getShortUrlRedirectRules",Rge={loading:!0,error:!1},Nge=e=>Yn(`${dI}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules({shortCode:t,domain:n})),Lge=e=>Nt({name:dI,initialState:Rge,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 Vr(e){e.preventDefault()}function Ll(e){e.stopPropagation()}function hI(){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[mI,pI]=hI();function Dge(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function Mh(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 Dge(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 s of r)if((s in i||s in a)&&i[s]!==a[s])return!1;for(const s in i)if(!(s in a)||i[s]!==a[s]&&!n||n&&!Mh(i[s],a[s],n,r))return!1;return!0}return!1}function gI(e){return e.split(" ").filter(t=>t)}function Df(e){return{x:e.clientX,y:e.clientY}}Array();var JC=typeof window<"u",Pr=new WeakMap,Ja=new WeakMap;function vI(){if(!JC)return!1;if("userAgentData"in navigator)return navigator.userAgentData.mobile===!0;const e=navigator.userAgent,t=/android|iphone|ipod/i.test(e),n=/iPad/.test(e)||e.includes("Macintosh")&&navigator.maxTouchPoints>1;return t||n}var kge={affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:pI,emit:mI,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,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0},Ge=kge,El=!1,PR,Q_;function Ige(){Ge.scrollDebounceTimeout&&clearTimeout(Ge.scrollDebounceTimeout),Ge.longPressTimeout&&clearTimeout(Ge.longPressTimeout),Ge.frameIdX!==void 0&&cancelAnimationFrame(Ge.frameIdX),Ge.frameIdY!==void 0&&cancelAnimationFrame(Ge.frameIdY),Ge={affectedNodes:[],coordinates:{x:0,y:0},on:pI,emit:mI,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,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0}}function yI(e){return Object.assign(Ge,e),e.initialParent.data.emit("dragStarted",Ge),El=!1,Ge.emit("dragStarted",Ge),Ge}function Uge(){Ge.activeState&&Uu(Ge.activeState.parent,void 0,Ge),Ge.selectedState&&Au(Ge.selectedState.nodes,Ge.selectedState.parent,Ge),Ge.selectedState=Ge.activeState=void 0}function Bge(){if(Ge.pointerDown&&(Ge.pointerDown.node.el.draggable=!0),Ge.pointerDown=void 0,!Mi(Ge))return;const e=Ge.currentParent.data.config;Mi(Ge)&&e.handleEnd(Ge)}function zge(e){e.key==="Escape"&&(Ge.selectedState&&Au(Ge.selectedState.nodes,Ge.selectedState.parent,Ge),Ge.activeState&&Uu(Ge.activeState.parent,void 0,Ge),Ge.selectedState=Ge.activeState=void 0)}function Fge(e){if(!qr(Ge))return;El=!0;const t=Ge.initialParent.data.config.handleEnd;t(Ge)}function $ge(e){if(!qr(Ge))return;Vr(e);const{x:t,y:n}=Df(e);qr(Ge)&&By({x:t,y:n},e,Ge)}function Vge(e){if(!Ge.pointerDown||!Ge.pointerDown.validated)return;const t=Ge.pointerDown.parent.data.config;if(!(e.pointerType==="mouse"&&!vI()))if(Mi(Ge))Mi(Ge)&&MR(e,Ge);else{if(Vr(e),t.longPress&&!Ge.longPress){clearTimeout(Ge.longPressTimeout),Ge.longPress=!1;return}const n=t.draggedNodes(Ge.pointerDown);t.dragstartClasses(Ge.pointerDown.node,n,t,!0);const r=Ge.pointerDown.node.el.getBoundingClientRect(),i=yve(Ge.pointerDown.node,Ge.pointerDown.parent,e,Ge,n,r);MR(e,i,!0)}}function qge({parent:e,getValues:t,setValues:n,config:r={}}){if(!JC)return;PR||(PR=Ev(document,{dragover:$ge,pointerdown:Uge,pointerup:Bge,keydown:zge,drop:Fge,pointermove:Vge,pointercancel:vi(r.handlePointercancel),touchmove:u=>{qr(Ge)&&u.cancelable&&Vr(u)},contextmenu:u=>{Mi(Ge)&&Vr(u)}})),_I(e);const[i,a]=hI(),s={getValues:t,setValues:n,config:{dragDropEffect:r.dragDropEffect??"move",dragEffectAllowed:r.dragEffectAllowed??"move",draggedNodes:rve,dragstartClasses:sve,handleNodeKeydown:uve,handleDragstart:ave,handleNodeDragover:_ve,handleParentDragover:xve,handleNodeDrop:fve,handleNodeFocus:dve,handleNodeBlur:hve,handlePointercancel:pve,handleEnd:gve,handleDragend:mve,handleParentFocus:Gge,handleNodePointerup:vve,handleNodePointerover:cve,handleParentPointerover:wve,handleParentScroll:ive,handleNodePointerdown:ove,handleNodeDragenter:Cve,handleNodeDragleave:Eve,handleParentDrop:Yge,multiDrag:r.multiDrag??!1,nativeDrag:r.nativeDrag??!0,performSort:Hge,performTransfer:Wge,root:r.root??document,setupNode:Zge,setupNodeRemap:xI,reapplyDragClasses:Xge,tearDownNode:Jge,tearDownNodeRemap:Qge,remapFinished:tve,threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{},privateClasses:[],on:a,emit:i};new MutationObserver(eve).observe(e,{childList:!0}),Pr.set(e,s),r.plugins?.forEach(u=>{u(e)?.tearDown?.()}),r.plugins?.forEach(u=>{u(e)?.tearDown?.()}),r.plugins?.forEach(u=>{u(e)?.setup?.()}),Kge(e,s),Iy(e,!0)}function bI(e,t,n,r,i,a){const{x:s,y:u}=Df(n),d=e.el.getBoundingClientRect();return{affectedNodes:[],ascendingDirection:!1,clonedDraggedEls:[],coordinates:{x:s,y:u},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||s-(d?.left??0),startTop:a||u-(d?.top??0),targetIndex:e.data.index,transferred:!1}}function Hge({parent:e,draggedNodes:t,targetNodes:n}){Iy(e.el);const r=t.map(d=>d.data.value),i=df(e.el,e.data),a=t[0].data.index,s=[...e.data.enabledNodes],u=[...i.filter(d=>!r.some(f=>Mh(d,f)))];u.splice(n[0].data.index,0,...r),"draggedNode"in Ge&&(Ge.currentTargetValue=n[0].data.value),k2(e.el,e.data,[...u]),e.data.config.onSort&&e.data.config.onSort({parent:{el:e.el,data:e.data},previousValues:[...i],previousNodes:[...s],nodes:[...e.data.enabledNodes],values:[...u],draggedNodes:t,previousPosition:a,position:n[0].data.index,targetNodes:n,state:Ge})}function Uu(e,t,n){if(!t){n.activeState=void 0;return}n.activeState={node:t,parent:e}}function Au(e,t,n){const r=t.data.config.selectedClass;if(!n.selectedState)return;const i=Array.from(e);dl(e.map(a=>a.el),r);for(const a of i){a.el.setAttribute("aria-selected","false");const s=n.selectedState.nodes.findIndex(u=>u.el===a.el);s!==-1&&n.selectedState.nodes.splice(s,1)}}function ng(e,t,n,r,i=!1){r.pointerSelection=i;for(const a of t)a.el.setAttribute("aria-selected","true"),Zc([a.el],e.data.config.selectedClass,!0);r.selectedState={nodes:t,parent:e},Uu(e,n,r)}function Gge(e,t){const n=e.targetData.parent.data.enabledNodes[0];n&&(t.selectedState&&t.selectedState.parent.el!==e.targetData.parent.el?Uu(e.targetData.parent,n,t):t.selectedState||Uu(e.targetData.parent,n,t))}function Wge({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,initialIndex:i,targetNodes:a,state:s}){Iy(n.el);const u=r.map(b=>b.data.value),d=[...df(e.el,e.data).filter(b=>!u.some(_=>Mh(b,_)))],f=df(t.el,t.data),m=n.el===t.el&&t.data.config.sortable===!1;let p;a.length?(m?p=i:t.data.config.sortable===!1?p=t.data.enabledNodes.length:p=a[0].data.index,f.splice(p,0,...u)):(p=m?i:t.data.enabledNodes.length,f.splice(p,0,...u)),k2(e.el,e.data,d),k2(t.el,t.data,f),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:p,state:s,targetNodes:a}),e.data.config.onTransfer&&e.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:p,state:s,targetNodes:a||[]})}function df(e,t){return[...t.getValues(e)]}function k2(e,t,n){t.setValues(n,e)}function Yge(e,t){Ll(e.e),El=!0;const n=t.initialParent.data.config.handleEnd;n(t)}function _I(e){const t=Pr.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function qr(e){return"draggedNode"in e&&!!e.draggedNode}function Mi(e){return"synthDragging"in e&&!!e.synthDragging}function Kge(e,t){t.abortControllers.mainParent=Ev(e,{dragover:rg(t.config.handleParentDragover),handleParentPointerover:t.config.handleParentPointerover,scroll:rg(t.config.handleParentScroll),drop:rg(t.config.handleParentDrop),hasNestedParent:n=>{const r=Pr.get(n.target);r&&(r.nestedParent=n.detail.parent)},focus:rg(t.config.handleParentFocus)}),t.config.externalDragHandle&&t.config.externalDragHandle.el&&t.config.externalDragHandle.callback&&(t.abortControllers.externalDragHandle=Ev(t.config.externalDragHandle.el,{pointerdown:n=>{if(!t.config.externalDragHandle||!t.config.externalDragHandle.callback)return;const r=t.config.externalDragHandle.callback();if(!zy(r)){console.warn("No draggable item found from external drag handle callback");return}const i=Ja.get(r);if(!i)return;const a=r.parentNode;if(!(a instanceof HTMLElement))return;const s=Pr.get(a);s&&(Ge.pointerDown={parent:{el:a,data:s},node:{el:r,data:i},validated:!0},r.draggable=!0)}}))}function Zge(e){const t=e.parent.data.config;e.node.data.abortControllers.mainNode=Ev(e.node.el,{keydown:vi(t.handleNodeKeydown),dragstart:vi(t.handleDragstart),dragover:vi(t.handleNodeDragover),dragenter:vi(t.handleNodeDragenter),dragleave:vi(t.handleNodeDragleave),dragend:vi(t.handleDragend),drop:vi(t.handleNodeDrop),focus:vi(t.handleNodeFocus),blur:vi(t.handleNodeBlur),pointerup:vi(t.handleNodePointerup),pointercancel:vi(t.handlePointercancel),pointerdown:vi(t.handleNodePointerdown),handleNodePointerover:t.handleNodePointerover,touchmove:n=>{qr(Ge)&&n.cancelable&&Vr(n)},contextmenu:n=>{Mi(Ge)&&Vr(n)}}),e.node.el.draggable=!0,t.reapplyDragClasses(e.node.el,e.parent.data),e.parent.data.config.plugins?.forEach(n=>{n(e.parent.el)?.setupNode?.(e)})}function xI(e){Ja.set(e.node.el,e.node.data),e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.setupNodeRemap?.(e)})}function Xge(e,t){if(!qr(Ge))return;const n=Mi(Ge)?t.config.synthDropZoneClass:t.config.dropZoneClass;Ge.draggedNode.el===e&&Zc([e],n,!0)}function Qge(e){e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.tearDownNodeRemap?.(e)})}function Jge(e){e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.tearDownNode?.(e)}),e.node.el.draggable=!1,e.node.data?.abortControllers?.mainNode&&e.node.data?.abortControllers?.mainNode.abort()}function eve(e){if(e.length===1&&e[0].addedNodes.length===1&&!(e[0].addedNodes[0]instanceof HTMLElement))return;const t=e[0].target;!(t instanceof HTMLElement)||!Pr.get(t)||Iy(t)}function Iy(e,t){const n=Pr.get(e);if(!n)return;n.privateClasses=Array.from(e.classList);const r=[],i=n.config;for(let u=0;u<e.children.length;u++){const d=e.children[u];if(!zy(d)||d.id==="dnd-dragged-node-clone")continue;const f=Ja.get(d);(t||!f)&&i.tearDownNode({parent:{el:e,data:n},node:{el:d,data:f}}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(d))&&r.push(d)}if(r.length!==n.getValues(e).length&&!i.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 a=n.getValues(e),s=[];for(let u=0;u<r.length;u++){const d=r[u],f=Ja.get(d);if(i.draggableValue&&!i.draggableValue(a[u]))continue;const m=Object.assign(f??{privateClasses:[],abortControllers:{}},{value:a[u],index:u});if(!qr(Ge)&&Ge.activeState&&Mh(Ge.activeState.node.data.value,m.value)&&Uu({data:n,el:e},{el:d,data:m},Ge),qr(Ge)&&Mh(Ge.draggedNode.data.value,m.value)){Ge.draggedNode.data=m,Ge.draggedNode.el=d;const p=Ge.draggedNodes.find(b=>b.data.value===m.value);p&&(p.el=d)}s.push({el:d,data:m}),(t||!f)&&i.setupNode({parent:{el:e,data:n},node:{el:d,data:m}}),xI({parent:{el:e,data:n},node:{el:d,data:m}})}Pr.set(e,{...n,enabledNodes:s}),i.remapFinished(n),n.config.plugins?.forEach(u=>{u(e)?.remapFinished?.()})}function tve(){Ge.remapJustFinished=!0,"draggedNode"in Ge&&(Ge.affectedNodes=[])}function nve(e){return!!e.targetData.parent.data.config.nativeDrag}function rve(e){if(e.parent.data.config.multiDrag){if(Ge.selectedState)return[e.node,...Ge.selectedState?.nodes.filter(t=>t.el!==e.node.el)]}else return[e.node];return[]}function ive(e){qr(Ge)&&(Ge.emit("scrollStarted",Ge),!Mi(Ge)&&(Ge.preventEnter=!0,Q_&&clearTimeout(Q_),Q_=setTimeout(()=>{Ge.preventEnter=!1,Ge.emit("scrollEnded",Ge)},100)))}function ave(e,t){const n=e.targetData.parent.data.config;if(!n.nativeDrag||!nve(e)||!wI({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:n})){Vr(e.e);return}let r=n.draggedNodes({parent:e.targetData.parent,node:e.targetData.node});r.length===0&&(r=[e.targetData.node]),n.dragstartClasses(e.targetData.node,r,n);const i=lve(e,r);if(n.onDragstart){const a={parent:e.targetData.parent,values:df(e.targetData.parent.el,e.targetData.parent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,position:i.initialIndex,state:i};n.onDragstart(a)}}function ove(e,t){if(Ll(e.e),t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!1},!wI({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:e.targetData.parent.data.config}))return;t.pointerDown.validated=!0,bve(e,t,e.targetData.node);const n=e.targetData.parent.data;let r=[e.targetData.node];const i=e.e.ctrlKey||e.e.metaKey,a=e.e.shiftKey,s=e.targetData.node;if(i&&n.config.multiDrag){t.selectedState?t.selectedState.nodes.findIndex(u=>u.el===s.el)===-1?r=[...t.selectedState.nodes,s]:r=t.selectedState.nodes.filter(u=>u.el!==s.el):r=[s],ng(e.targetData.parent,r,e.targetData.node,t,!0);return}if(a&&n.config.multiDrag){const u=e.targetData.parent.data.enabledNodes;if(t.selectedState&&t.activeState)if(t.selectedState.parent.el!==e.targetData.parent.el){Au(t.selectedState.nodes,t.selectedState.parent,t),t.selectedState=void 0;for(let d=0;d<=s.data.index;d++)r.push(u[d])}else{const[d,f]=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];r=u.slice(d,f+1)}else for(let d=0;d<=s.data.index;d++)r.push(u[d]);ng(e.targetData.parent,r,e.targetData.node,t,!0);return}t.selectedState?.nodes?.length?t.selectedState.nodes.findIndex(u=>u.el===e.targetData.node.el)===-1&&(t.selectedState.parent.el!==e.targetData.parent.el?Au(t.selectedState.nodes,e.targetData.parent,t):n.config.multiDrag&&vI()?r.push(...t.selectedState.nodes):Au(t.selectedState.nodes,e.targetData.parent,t),ng(e.targetData.parent,r,e.targetData.node,t,!0)):ng(e.targetData.parent,[e.targetData.node],e.targetData.node,t,!0)}function sve(e,t,n,r=!1){Zc(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),setTimeout(()=>{dl(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),Zc(t.map(i=>i.el),r?n.synthDragPlaceholderClass:n.dragPlaceholderClass),Zc(t.map(i=>i.el),r?n.synthDropZoneClass:n.dropZoneClass),dl(t.map(i=>i.el),n.selectedClass)})}function lve(e,t){Ll(e.e);const n=yI(bI(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(e.e.dataTransfer.setData("text/plain",""),r.dragImage)i=r.dragImage(e,t);else{if(!r.multiDrag||t.length===1)return e.targetData.node.el.style.zIndex="9999",e.targetData.node.el.style.boxSizing="border-box",e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY),n.originalZIndex=e.targetData.node.el.style.zIndex,n;{const a=document.createElement("div");a.setAttribute("id","dnd-dragged-node-clone"),a.setAttribute("popover","manual");for(const u of t){const d=u.el.cloneNode(!0);d.id=u.el.id+"-clone",d.style.pointerEvents="none",a.appendChild(d)}const{width:s}=t[0].el.getBoundingClientRect();Object.assign(a.style,{display:"flex",flexDirection:"column",width:`${s}px`,position:"absolute",pointerEvents:"none",zIndex:"9999",left:"-9999px",boxSizing:"border-box",background:"transparent",overflow:"hidden"}),e.targetData.parent.el.appendChild(a),a.showPopover(),a.getBoundingClientRect(),i=a,e.e.dataTransfer.setDragImage(i,e.e.offsetX,e.e.offsetY)}}setTimeout(()=>{i?.remove()})}return n}function wI({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 s of Array.from(i))if(a===s||s.contains(a))return!0;return!1}function uve(e){}function cve(e){e.detail.targetData.parent.el===e.detail.state.currentParent.el?CI(e.detail,e.detail.state):Uy(e.detail,e.detail.state)}function fve(e,t){const n=e.targetData.parent.data.config;n.nativeDrag&&(Ll(e.e),El=!0,n.handleEnd(t))}function dve(e){e.e.target!==e.e.currentTarget&&Ge.pointerDown&&(Ge.pointerDown.node.el.draggable=!1)}function hve(e){e.e.target!==e.e.currentTarget&&Ge.pointerDown&&(Ge.pointerDown.node.el.draggable=!0)}function mve(e,t){const n=e.targetData.parent.data.config;if(n.nativeDrag){if(Vr(e.e),Ll(e.e),El){El=!1;return}n.handleEnd(t)}}function pve(e,t){if(!Mi(t))return;if(Vr(e.e),El){El=!1;return}const n=Pr.get(t.initialParent.el)?.config;n?.onDragend&&n.onDragend({parent:t.currentParent,values:df(t.currentParent.el,t.currentParent.data),draggedNode:t.draggedNode,draggedNodes:t.draggedNodes,state:t}),n?.handleEnd(t)}function gve(e){e.draggedNode&&(e.draggedNode.el.draggable=!0);const t=e.draggedNodes.map(m=>m.el),n=e.initialParent.data,r=Mi(e),i=Pr.get(e.initialParent.el)?.config,a=r?i?.synthDropZoneClass:i?.dropZoneClass,s=n?.config?.longPressClass,u=r?n?.config?.synthDragPlaceholderClass:n?.config?.dragPlaceholderClass,d=e.originalZIndex;Mi(e)&&(e.clonedDraggedNode&&e.clonedDraggedNode.remove(),e.longPressTimeout&&clearTimeout(e.longPressTimeout)),I2(e),e.lastScrollDirectionX=void 0,e.lastScrollDirectionY=void 0,e.preventEnter=!1,e.scrollDebounceTimeout&&(clearTimeout(e.scrollDebounceTimeout),e.scrollDebounceTimeout=void 0),d!==void 0&&e.draggedNode&&(e.draggedNode.el.style.zIndex=d),requestAnimationFrame(()=>{dl(t,a),dl(t,s),dl(t,u)}),Au(e.draggedNodes,e.currentParent,e),Uu(e.currentParent,void 0,e);const f={...e};i?.onDragend?.({parent:f.currentParent,values:df(f.currentParent.el,f.currentParent.data),draggedNode:f.draggedNode,draggedNodes:f.draggedNodes,state:f}),e.emit("dragEnded",f),Ige()}function vve(e,t){Ll(e.e),!t.pointerSelection&&t.selectedState&&Au(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),t.longPress=!1,dl(e.targetData.parent.data.enabledNodes.map(r=>r.el),n.longPressClass),qr(t)&&n.handleEnd(t)}function yve(e,t,n,r,i,a){const s=t.data.config;let u,d;const f=["display","flexDirection","alignItems","justifyContent","padding","paddingTop","margin","marginTop","marginBottom","marginLeft","marginRight","paddingBottom","paddingLeft","paddingRight","border","borderRadius","background","backgroundColor","boxShadow","font","color","lineHeight","gap","width","height","boxSizing","overflow"],m=(_,w)=>{const x=window.getComputedStyle(_);f.forEach(A=>{w.style[A]=x[A]})},p=(_,w={})=>{Object.assign(_.style,{position:"absolute",zIndex:"9999",pointerEvents:"none",willChange:"transform",boxSizing:"border-box",opacity:"0",overflow:"hidden",width:`${a.width}px`,height:`${a.height}px`,...w})};if(s.synthDragImage)d=s.synthDragImage(e,t,n,i),u=d.dragImage,u.setAttribute("popover","manual"),p(u);else if(!s.multiDrag||i.length===1)u=e.el.cloneNode(!0),m(e.el,u),u.setAttribute("popover","manual"),p(u);else{const _=document.createElement("div");_.setAttribute("popover","manual"),i.forEach(w=>{const x=w.el.cloneNode(!0);m(w.el,x),x.style.pointerEvents="none",x.style.margin="0",_.append(x)}),_.style.display="flex",_.style.flexDirection="column",_.style.padding="0",_.style.margin="0",_.style.position="absolute",_.style.zIndex="9999",_.style.pointerEvents="none",u=_}u.id="dnd-dragged-node-clone",t.el.appendChild(u),u.showPopover();const b={clonedDraggedEls:[],clonedDraggedNode:u,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:document.scrollingElement?.scrollWidth,rootScrollHeight:document.scrollingElement?.scrollHeight};return yI({...bI(e,t,n,i,d?.offsetX,d?.offsetY),...b})}function bve(e,t,n){const r=e.targetData.parent.data.config;t.longPressTimeout=setTimeout(()=>{t&&(t.longPress=!0,r.longPressClass&&e.e.cancelable&&Zc([n.el],r.longPressClass),Vr(e.e))},r.longPressDuration||1e3)}function I2(e,t=!0,n=!0){t&&(e.frameIdX!==void 0&&(cancelAnimationFrame(e.frameIdX),e.frameIdX=void 0),e.lastScrollDirectionX=void 0),n&&(e.frameIdY!==void 0&&(cancelAnimationFrame(e.frameIdY),e.frameIdY=void 0),e.lastScrollDirectionY=void 0),!e.frameIdX&&!e.frameIdY&&(e.preventEnter=!1)}function SI(e,t=!1){const{x:n,y:r}=e.coordinates,i=e.startLeft??0,a=e.startTop??0,s=window.scrollX??0,u=window.scrollY??0,d=n-i+s,f=r-a+u;e.clonedDraggedNode.style.transform=`translate3d(${d}px, ${f}px, 0px)`,t&&(e.clonedDraggedNode.style.opacity="1",dl(e.draggedNodes.map(m=>m.el),e.initialParent.data.config?.longPressClass))}function MR(e,t,n=!1){const r=Df(e);t.coordinates.x=r.x,t.coordinates.y=r.y,SI(t,n),t.scrollDebounceTimeout&&(clearTimeout(t.scrollDebounceTimeout),t.scrollDebounceTimeout=void 0),t.scrollDebounceTimeout=setTimeout(()=>{Mi(t)&&By(t.coordinates,e,t)},16);const i=jve(r);if(!i){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e,state:t}}));return}const a={e,targetData:i,state:t};"node"in i?i.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:a})):i.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:a}))}function _ve(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;const{x:n,y:r}=Df(e.e);t.coordinates.y=r,t.coordinates.x=n,Vr(e.e),Ll(e.e),qr(t)&&By({x:n,y:r},e.e,t),e.targetData.parent.el===t.currentParent?.el?CI(e,t):Uy(e,t)}function xve(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;Vr(e.e),Ll(e.e);const{x:n,y:r}=Df(e.e);qr(t)&&By({x:n,y:r},e.e,t),Uy(e,t)}function wve(e){e.detail.targetData.parent.el!==e.detail.state.currentParent.el&&Uy(e.detail,e.detail.state)}function Sve({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 s=n.data.config;return a.accepts?a.accepts(t,n,e,i):!(!a.group||a.group!==s.group)}function Cve(e,t){Vr(e.e)}function Eve(e,t){Vr(e.e)}function Ave(e,t,n,r){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!==t.currentParent?.el||e.targetData.parent.data.config.sortable===!1||e.targetData.node.el.contains(t.draggedNodes[0].el))return!1;const i=e.targetData.node.el.getBoundingClientRect(),a=t.draggedNode.el.getBoundingClientRect(),s=i.y-a.y,u=i.x-a.x;let d;Math.abs(s)>Math.abs(u)?d=s>0?"above":"below":d=u>0?"left":"right";const f=t.currentParent.data.config.threshold;switch(d){case"left":if(n>i.x+i.width*f.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<i.x+i.width*(1-f.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>i.y+i.height*f.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<i.y+i.height*(1-f.vertical))return t.incomingDirection="below",!0;break}return!1}function CI(e,t){const{x:n,y:r}=Df(e.e);if(!Ave(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 vi(e){function t(n){const r=Ja.get(n);if(!r)return;const i=Pr.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},Ge)}}function Uy(e,t){Vr(e.e),Sve({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 rg(e){function t(n){const r=Pr.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},Ge)}}function Zc(e,t,n=!1){function r(i,a){Ja.set(i,a)}for(const i of e){const a=Ja.get(i),s=Tve(i,t,a,n);s&&r(i,s)}}function Tve(e,t,n,r=!1){if(!t)return;const i=gI(t);if(!i.length)return;if(!n){e.classList.add(...i);return}const a=[];for(const s of i)e.classList.contains(s)?e.classList.contains(s)&&r===!1&&a.push(s):e.classList.add(s);return n.privateClasses=a,n}function dl(e,t){if(!t)return;const n=gI(t);if(n.length)for(const r of e){if(!zy(r)){r.classList.remove(...n);continue}const i=Ja.get(r)||Pr.get(r);if(i)for(const a of n)i.privateClasses.includes(a)||r.classList.remove(a)}}function RR(e,t,n,r,i){const a=i.axis==="x",s=e===document.scrollingElement,u=a?"scrollLeft":"scrollTop",d=a?"clientWidth":"clientHeight",f=a?"offsetWidth":"offsetHeight",m=a?"scrollWidth":"scrollHeight",p=a?t.clientX:t.clientY,b=a?r.left:r.top,_=a?n.overflowX:n.overflowY;if(s){const w=e[u],x=e[d],A=w>0,C=w+x<(a?i.state.rootScrollWidth||0:e[m]);return a?{left:A&&p<x*.075,right:C&&p>x*(1-.075)}:{up:A&&p<x*.075,down:C&&p>x*(1-.075)}}if((_==="auto"||_==="scroll")&&e!==document.body&&e!==document.documentElement){const w=e[m],x=e[f],A=e[u],C=A>0,j=A<w-x;return a?{left:C&&p<b+x*.075,right:j&&p>b+x*(1-.075)}:{up:C&&p<b+x*.075,down:j&&p>b+x*(1-.075)}}return a?{left:!1,right:!1}:{up:!1,down:!1}}function Ove(e,t,n,r){if(!qr(n)||!n.draggedNode)return;n.preventEnter=!0;const i=r.axis==="x",a=r.direction==="positive"?1:-1,s=20,u=i?"lastScrollDirectionX":"lastScrollDirectionY",d=i?"frameIdX":"frameIdY";n[d]!==void 0&&(cancelAnimationFrame(n[d]),n[d]=void 0),n[u]=r.direction;const f=()=>{if(!qr(n)||!n.draggedNode){n[d]!==void 0&&(cancelAnimationFrame(n[d]),n[d]=void 0);return}const m=i?"scrollLeft":"scrollTop",p=i?"clientWidth":"clientHeight",b=i?"scrollWidth":"scrollHeight",_=e[m],w=e[p],x=e[b];if(!(a>0?_+w<x:_>0)){n[d]=void 0,n[u]=void 0;return}e[m]+=s*a,Mi(n)&&SI(n),n[d]=requestAnimationFrame(f)};n[d]=requestAnimationFrame(f)}function NR(e,t,n){const r=e.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom}function By(e,t,n){if(!qr(n)||!n.draggedNode)return;I2(n);const{x:r,y:i}=e;let a=!1;const s=(d,f,m)=>{Ove(m,t,n,{axis:d,direction:f}),a=!0},u=d=>{const f=window.getComputedStyle(d),m=d.getBoundingClientRect(),p=RR(d,t,f,m,{axis:"x",state:n}),b=RR(d,t,f,m,{axis:"y"});(p.left||p.right)&&(n.lastScrollContainerX=d,s("x",p.right?"positive":"negative",d)),(b.up||b.down)&&(n.lastScrollContainerY=d,s("y",b.down?"positive":"negative",d))};if(n.lastScrollContainerX&&NR(n.lastScrollContainerX,r,i)&&u(n.lastScrollContainerX),!a&&n.lastScrollContainerY&&NR(n.lastScrollContainerY,r,i)&&u(n.lastScrollContainerY),!a){let d=document.elementFromPoint(r,i);for(;d&&!(a&&n.lastScrollContainerX&&n.lastScrollContainerY);)d instanceof HTMLElement&&u(d),d=d.parentElement}if(!a){const d=document.scrollingElement;d instanceof HTMLElement&&u(d)}a||I2(n)}function jve(e){let t=document.elementFromPoint(e.x,e.y);if(!zy(t))return;let n,r=!0;for(;t&&r;){if(Ja.has(t)||Pr.has(t)){r=!1,n=Pr.has(t);break}t=t.parentNode}if(n){const i=Pr.get(t);return i?{parent:{el:t,data:i}}:void 0}else{const i=Ja.get(t);if(!i)return;const a=Pr.get(t.parentNode);return a?{node:{el:t,data:i},parent:{el:t.parentNode,data:a}}:void 0}}function zy(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Ev(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 Pve(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 Mve(e,t){const n=Pve(e);n&&t(n)}var Av=new WeakMap;function Rve(e){const t=Av.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function Nve(e,t){const n=Av.get(t);n&&n[1](e),Av.set(t,[e,n[1]])}function Lve(e,t){return n=>{Av.set(n,t),qge({parent:n,getValues:Rve,setValues:Nve,config:e})}}function LR(e){JC&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;Mve(n,Lve(i,r))}))}function Dve(e,t={}){const n=T.useRef(null),[r,i]=T.useState(e);function a(s={}){LR({parent:n,state:[r,i],...s})}return T.useEffect(()=>{LR({parent:n,state:[r,i],...t})},[r]),T.useEffect(()=>()=>{n.current&&_I(n.current)},[]),[n,r,i,a]}const Fy=()=>{const e=eo(),t=as(),n=wf(),r=T.useMemo(()=>{const{orderBy:a,tags:s,excludeBots:u,excludeMaxVisitsReached:d,excludePastValidUntil:f,...m}=n,p=a?NK(a):void 0,b=s?.split(",")??[];return{...m,orderBy:p,tags:b,excludeBots:u!==void 0?u==="true":void 0,excludeMaxVisitsReached:d!==void 0?d==="true":void 0,excludePastValidUntil:f!==void 0?f==="true":void 0}},[n]),i=T.useCallback(a=>{const s={...r,...a},{orderBy:u,tags:d,excludeBots:f,excludeMaxVisitsReached:m,excludePastValidUntil:p,...b}=s,_={...b,orderBy:u&&RK(u),tags:d.length>0?d.join(","):void 0,excludeBots:mb(f),excludeMaxVisitsReached:mb(m),excludePastValidUntil:mb(p)},w=Pw(_),x=w?`?${w}`:"";e(`${t}/list-short-urls/1${x}`)},[r,e,t]);return[r,i]},e3=()=>{const{domain:e}=wf(),{shortCode:t=""}=vf();return T.useMemo(()=>({shortCode:ZC(t),domain:e}),[e,t])},$y=()=>{const e=lK();return v.jsx(Kv,{size:"lg",className:"[&]:p-1 mr-4",onClick:e,"aria-label":"Go back",children:v.jsx(We,{icon:mV})})},kve={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"},Ive=({deviceType:e,onDeviceTypeChange:t})=>{const n=Qi("desktopDeviceTypes"),r=T.useMemo(()=>{const i={android:"Android",ios:"iOS"};return n&&(i.mobile="Any mobile device",i.windows="Windows",i.macos="MacOS",i.linux="Linux",i.chromeos="ChromeOS"),i.desktop="Any desktop device",i},[n]);return v.jsxs(Ow,{label:"Device type:",value:e??void 0,onChange:i=>t(i.target.value),hiddenRequired:!0,children:[!e&&v.jsx("option",{value:"",children:"- Select type -"}),Object.entries(r).map(([i,a])=>v.jsx("option",{value:i,children:a},i))]})},t3=({value:e,onValueChange:t,label:n,placeholder:r})=>v.jsx(ni,{label:`${n}:`,value:e??"",onChange:i=>t(i.target.value),placeholder:r,hiddenRequired:!0}),Uve=({language:e,onLanguageChange:t})=>v.jsx(t3,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),J_=({name:e,value:t,onNameChange:n,onValueChange:r})=>v.jsxs(v.Fragment,{children:[v.jsx(ni,{label:"Param name:",value:e??"",onChange:i=>n(i.target.value),placeholder:"hello",hiddenRequired:!0}),typeof t=="string"&&v.jsx(ni,{label:"Param value:",value:t,onChange:i=>r(i.target.value),placeholder:"world",hiddenRequired:!0})]}),Bve=({ipAddress:e,onIpAddressChange:t})=>v.jsx(t3,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),zve=({countryCode:e,onCountryCodeChange:t})=>v.jsxs(Ow,{label:"Country:",value:e??void 0,onChange:n=>t(n.target.value),hiddenRequired:!0,children:[!e&&v.jsx("option",{value:"",children:"- Select country -"}),Object.entries(kve).map(([n,r])=>v.jsx("option",{value:n,children:r},n))]}),Fve=({cityName:e,onCityNameChange:t})=>v.jsx(t3,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),$ve=({condition:e,onConditionChange:t,onDelete:n})=>{const r=T.useCallback(m=>t({type:m,matchValue:null,matchKey:null}),[t]),i=T.useCallback(m=>t({...e,matchValue:m}),[e,t]),a=T.useCallback(m=>t({...e,matchKey:m}),[e,t]),s=Qi("ipRedirectCondition"),u=Qi("geolocationRedirectCondition"),d=Qi("advancedQueryRedirectConditions"),f=T.useMemo(()=>{const m={device:"Device type",language:"Language","query-param":"Query param"};return d&&(m["any-value-query-param"]="Any value query param",m["valueless-query-param"]="Valueless query param"),s&&(m["ip-address"]="IP address"),u&&(m["geolocation-country-code"]="Country (geolocation)",m["geolocation-city-name"]="City name (geolocation)"),m},[d,u,s]);return v.jsxs("div",{className:Ne("flex flex-col gap-2","border border-lm-border dark:border-dm-border","rounded-md relative p-4 h-full"),children:[v.jsxs("div",{children:[v.jsx(Rt,{variant:"secondary","aria-label":"Remove condition",onClick:n,className:Ne("absolute -top-3.5 -right-3.5 [&]:px-2","[&]:rounded-full bg-lm-primary dark:bg-dm-primary"),children:v.jsx(We,{icon:Uv,widthAuto:!0})}),v.jsx(Ow,{label:"Type:",value:e.type,onChange:m=>r(m.target.value),hiddenRequired:!0,children:Object.entries(f).map(([m,p])=>v.jsx("option",{value:m,children:p},m))})]}),e.type==="device"&&v.jsx(Ive,{deviceType:e.matchValue,onDeviceTypeChange:i}),e.type==="language"&&v.jsx(Uve,{language:e.matchValue,onLanguageChange:i}),e.type==="query-param"&&v.jsx(J_,{name:e.matchKey,value:e.matchValue??"",onNameChange:a,onValueChange:i}),e.type==="any-value-query-param"&&v.jsx(J_,{name:e.matchKey,onNameChange:a,onValueChange:i}),e.type==="valueless-query-param"&&v.jsx(J_,{name:e.matchKey,onNameChange:a,onValueChange:i}),e.type==="ip-address"&&v.jsx(Bve,{ipAddress:e.matchValue,onIpAddressChange:i}),e.type==="geolocation-country-code"&&v.jsx(zve,{countryCode:e.matchValue,onCountryCodeChange:i}),e.type==="geolocation-city-name"&&v.jsx(Fve,{cityName:e.matchValue,onCityNameChange:i})]})},EI=({isOpen:e,onClose:t,onSave:n,initialData:r})=>{const[i,a]=T.useState(r??{longUrl:"",conditions:[]}),s=T.useCallback(()=>{i&&n(i),t()},[n,i,t]),u=T.useCallback(()=>a(({longUrl:b,conditions:_})=>({longUrl:b,conditions:[..._,{type:"device",matchValue:null,matchKey:null}]})),[]),d=T.useCallback((b,_)=>a(({longUrl:w,conditions:x})=>{const A=[...x];return A[b]=_,{longUrl:w,conditions:A}}),[]),f=T.useCallback(b=>a(({longUrl:_,conditions:w})=>{const x=[...w];return x.splice(b,1),{longUrl:_,conditions:x}}),[]),m=T.useRef(null),p=T.useCallback(()=>a(r??{longUrl:"",conditions:[]}),[r]);return T.useEffect(()=>{const b=new MutationObserver(()=>{m.current&&e&&(m.current.focus(),b.disconnect())});return b.observe(document.body,{childList:!0,subtree:!0}),()=>b.disconnect()},[e]),v.jsxs(to,{size:"xl",title:"Redirect rule",open:e,onClose:t,onClosed:p,onConfirm:s,confirmDisabled:i.conditions.length===0,confirmText:"Confirm",children:[v.jsx(ni,{label:"Long URL:",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>a(_=>({..._,longUrl:b.target.value})),hiddenRequired:!0,ref:m}),v.jsx("hr",{}),v.jsxs("div",{className:"flex justify-between",children:[v.jsx("b",{children:"Conditions:"}),v.jsx(Rt,{className:"[&]:px-1.5",variant:"secondary","aria-label":"Add condition",onClick:u,children:v.jsx(We,{icon:kh})})]}),i.conditions.length===0&&v.jsx("div",{className:"text-center",children:v.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&v.jsx("div",{className:"pr-3 mt-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:i.conditions.map((b,_)=>v.jsx($ve,{condition:b,onConditionChange:w=>d(_,w),onDelete:()=>f(_)},`${_}_${b.type}`))})]})},Vve=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:a,onUpdate:s})=>{const{flag:u,setToTrue:d,setToFalse:f}=Sn();return v.jsxs(Mt,{children:[v.jsxs("div",{className:"flex align-center gap-4",children:[v.jsx("div",{className:"flex flex-col my-auto hidden md:block cursor-grab drag-n-drop-handler",children:v.jsx(We,{icon:uV})}),v.jsxs("div",{className:"flex flex-col my-auto",children:[v.jsx(Rt,{variant:"secondary","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"[&]:px-2 rounded-b-none mb-[-1px]",children:v.jsx(We,{icon:eV})}),v.jsx(Rt,{variant:"secondary","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:a,className:"[&]:px-2 rounded-t-none",children:v.jsx(We,{icon:CV})})]}),v.jsxs("div",{className:"grow",children:[v.jsxs("div",{className:"mb-2",children:[v.jsx("b",{children:"Long URL:"})," ",v.jsx(Ei,{href:n.longUrl,"data-testid":"rule-long-url"})]}),v.jsxs("div",{className:"flex flex-col lg:flex-row gap-2",children:[v.jsx("b",{children:"Conditions:"}),n.conditions.map((m,p)=>v.jsxs("div",{className:"rounded-sm bg-gray-600 px-1 text-white",children:[m.type==="device"&&v.jsxs(v.Fragment,{children:["Device is ",m.matchValue]}),m.type==="language"&&v.jsxs(v.Fragment,{children:[m.matchValue," language is accepted"]}),m.type==="query-param"&&v.jsxs(v.Fragment,{children:["Query string contains ",m.matchKey,"=",m.matchValue]}),m.type==="ip-address"&&v.jsxs(v.Fragment,{children:["IP address matches ",m.matchValue]}),m.type==="geolocation-country-code"&&v.jsxs(v.Fragment,{children:["Country code is ",m.matchValue]}),m.type==="geolocation-city-name"&&v.jsxs(v.Fragment,{children:["City name is ",m.matchValue]})]},`${m.type}_${p}`))]})]}),v.jsxs("div",{className:"flex flex-col sm:flex-row gap-1 my-auto",children:[v.jsx(Rt,{className:"[&]:px-1.5",variant:"secondary","aria-label":`Edit rule with priority ${e}`,onClick:d,children:v.jsx(We,{icon:Z5})}),v.jsx(Rt,{className:"[&]:px-2",variant:"danger","aria-label":`Delete rule with priority ${e}`,onClick:r,children:v.jsx(We,{icon:tV})})]})]}),v.jsx(EI,{onSave:s,isOpen:u,onClose:f,initialData:n})]})},qve=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:a,resetSetRules:s})=>{const u=e3(),{shortUrls:d}=r,f=u&&d?.get(u),[m,p,b]=Dve([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:_,saved:w,errorData:x}=a,{flag:A,setToFalse:C,setToTrue:j}=Sn(),O=T.useCallback(ee=>b((J=[])=>[...J,ee]),[b]),N=T.useCallback(ee=>b((J=[])=>{const ne=[...J];return ne.splice(ee,1),ne}),[b]),B=T.useCallback((ee,J)=>b((ne=[])=>{const he=[...ne];return he[ee]=J,he}),[b]),V=T.useCallback((ee,J)=>b((ne=[])=>{if(!ne[J])return ne;const he=[...ne],Q=he[J];return he[J]=he[ee],he[ee]=Q,he}),[b]),Z=T.useCallback(ee=>V(ee,ee-1),[V]),X=T.useCallback(ee=>V(ee,ee+1),[V]),oe=T.useCallback(ee=>{ee.preventDefault(),p&&i({shortUrl:u,data:{redirectRules:p}})},[u,p,i]);return T.useEffect(()=>(t(u),n([u]),s),[t,n,u,s]),T.useEffect(()=>{e.redirectRules&&b(e.redirectRules)},[b,e.redirectRules]),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx("header",{children:v.jsxs(Mt,{children:[v.jsxs("h2",{className:"sm:flex justify-between items-center",children:[v.jsx($y,{}),v.jsxs("div",{className:"text-center grow",children:[r.loading&&v.jsx(v.Fragment,{children:"Loading..."}),!r.loading&&v.jsxs("small",{children:["Redirect rules for ",v.jsx(Ei,{href:f?.shortUrl??""})]})]})]}),v.jsx("hr",{}),v.jsxs("div",{children:[v.jsx("p",{children:"Configure dynamic conditions that will be checked at runtime."}),v.jsxs("p",{children:["If no conditions match, visitors will be redirected to: ",v.jsx(Ei,{href:e.defaultLongUrl??""})]})]})]})}),v.jsx("div",{children:v.jsxs(Rt,{onClick:j,children:[v.jsx(We,{icon:kh})," Add rule"]})}),v.jsxs("form",{onSubmit:oe,children:[e.loading&&v.jsx(Vo,{loading:!0}),p.length===0&&!e.loading&&v.jsx(Mt,{className:"text-center",children:v.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),v.jsx("div",{className:"flex flex-col gap-2",ref:m,children:p.map((ee,J)=>v.jsx(Vve,{redirectRule:ee,priority:J+1,isLast:J===p.length-1,onDelete:()=>N(J),onMoveUp:()=>Z(J),onMoveDown:()=>X(J),onUpdate:ne=>B(J,ne)},`${ee.longUrl}_${J}`))}),v.jsx("div",{className:"text-center mt-4",children:v.jsx(Rt,{type:"submit",inline:!0,className:"max-md:w-full",disabled:_,"data-testid":"save-button",children:_?"Saving...":"Save rules"})})]}),x&&v.jsx(Fr,{variant:"error",children:v.jsx(Qa,{errorData:x,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),w&&v.jsx(Fr,{variant:"success",children:"Redirect rules properly saved."}),v.jsx(EI,{isOpen:A,onClose:C,onSave:O})]})},Hve=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>qve),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",Nge,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",Pge,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",Lge,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",Mge,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},Gve=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{error:r,saved:i}=e;if(T.useEffect(()=>{t()},[t]),r)return v.jsxs(Fr,{variant:"error",className:"mt-4 relative",children:[n&&v.jsx("div",{className:"absolute right-1.5 top-1.5","data-testid":"error-close-button",children:v.jsx(Pu,{onClick:t})}),v.jsx(Qa,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!i)return null;const{shortUrl:a}=e.result;return v.jsxs(Fr,{variant:"success",className:"mt-4 relative",children:[n&&v.jsx("div",{className:"absolute right-1.5 top-1.5","data-testid":"success-close-button",children:v.jsx(Pu,{onClick:t})}),v.jsxs("div",{className:"flex items-center justify-center gap-1",children:[v.jsxs("span",{children:[v.jsx("b",{children:"Great!"})," The short URL is ",v.jsx("b",{children:a})]}),v.jsx(CN,{text:a})]})]})},Wve=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:e?.validateUrls??!1,forwardQuery:e?.forwardQuery??!0}),AI=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i}=Pn(AI),a=kn("shortUrlCreation"),s=T.useMemo(()=>Wve(a),[a]);return v.jsxs(v.Fragment,{children:[v.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async u=>(n(),e(u))}),v.jsx(Gve,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},Yve=Mn(AI,["ShortUrlForm"]),TI=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Pn(TI),a=e3(),{loading:s,error:u,errorData:d,shortUrls:f}=e,m=a&&f?.get(a),{saving:p,saved:b,error:_,errorData:w}=n,x=kn("shortUrlCreation"),A=T.useMemo(()=>wge(m,x),[m,x]);return T.useEffect(()=>{a&&t([a])},[t,a]),s?v.jsx(Vo,{loading:!0}):u?v.jsx(Fr,{variant:"error",children:v.jsx(Qa,{errorData:d,fallbackMessage:"An error occurred while loading short URL detail :("})}):v.jsxs("div",{className:"flex flex-col gap-y-4",children:[v.jsx("header",{children:v.jsx(Mt,{children:v.jsxs("h2",{className:"sm:flex items-center",children:[v.jsx($y,{}),v.jsx("div",{className:"text-center grow",children:v.jsxs("small",{children:["Edit ",v.jsx(Ei,{href:m?.shortUrl??""})]})})]})})}),v.jsx(i,{initialState:A,saving:p,onSave:async C=>{m&&r({...m,data:C})}}),b&&_&&v.jsx(Fr,{variant:"error",children:v.jsx(Qa,{errorData:w,fallbackMessage:"An error occurred while updating short URL :("})}),b&&!_&&v.jsx(Fr,{variant:"success",children:"Short URL properly edited."})]})},Kve=Mn(TI,["ShortUrlForm"]),ex="delete",Zve=({shortUrl:e,onClose:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:a,shortUrlDeleted:s})=>{const[u,d]=T.useState("");T.useEffect(()=>i,[i]);const{loading:f,error:m,deleted:p,errorData:b}=r,_=T.useCallback(()=>{i(),t()},[i,t]),w=T.useCallback(()=>a(e).then(x=>!GC(x)&&t()),[a,e,t]);return v.jsx(to,{open:n,title:"Delete short URL",variant:"danger",confirmText:f?"Deleting...":"Delete",confirmDisabled:u!==ex||f,onConfirm:w,onClose:_,onClosed:()=>p&&s(e),children:v.jsxs("div",{className:"flex flex-col gap-y-2",children:[v.jsxs("p",{children:[v.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),v.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),v.jsx(ni,{label:v.jsxs(v.Fragment,{children:["Type ",v.jsx("b",{children:ex})," to confirm deletion."]}),type:"text",placeholder:ex,value:u,onChange:x=>d(x.target.value),onKeyDown:x=>x.key==="Enter"&&w()}),m&&v.jsx(Fr,{variant:ege(b)?"warning":"error",size:"sm",className:"mt-2",children:v.jsx(Qa,{errorData:b,fallbackMessage:"Something went wrong while deleting the URL :("})})]})})},OI=({amount:e=0,loading:t=!1,...n})=>v.jsxs(Rt,{...n,disabled:t,solid:!Qo(),children:[v.jsx(We,{icon:lV})," ",t?"Exporting...":v.jsxs(v.Fragment,{children:["Export (",On(e),")"]})]}),DR=20,jI=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Pn(jI),[{tags:r,search:i,startDate:a,endDate:s,orderBy:u,tagsMode:d}]=Fy(),{flag:f,setToTrue:m,setToFalse:p}=Sn(),b=T.useCallback(async()=>{const _=e/DR,w=async(A=1)=>{const{data:C}=await t().listShortUrls({page:`${A}`,tags:r,searchTerm:i,startDate:a,endDate:s,orderBy:u,tagsMode:d,itemsPerPage:DR});return A>=_?C:C.concat(await w(A+1))};m();const x=await w();n.exportShortUrls(x.map(A=>{const{hostname:C,pathname:j}=new URL(A.shortUrl),O=j.substring(1);return{createdAt:A.dateCreated,domain:C,shortCode:O,shortUrl:A.shortUrl,longUrl:A.longUrl,title:A.title??"",tags:A.tags.join("|"),visits:A?.visitsSummary?.total??A.visitsCount??0}})),p()},[e,t,s,u,n,i,a,m,p,r,d]);return v.jsx(OI,{loading:f,className:"max-lg:w-full",amount:e,onClick:b})},Xve=Mn(jI,["apiClientFactory","ReportExporter"]),Qve="yyyy-MM-dd",PI="yyyy-MM-dd HH:mm",Al=()=>new Date,n3=e=>typeof e!="string",r3=(e,t)=>!e||!n3(e)?e:t?Gg(e,t):iJ(e),Tl=e=>r3(e,void 0),ll=e=>r3(e,Qve),Rh=e=>r3(e,PI),wi=e=>n3(e)?e:bl(e),sm=(e,t,n)=>{const r=wi(e),i=t&&wi(t),a=n&&wi(n);if(i&&a)try{return sJ(r,{start:i,end:a})}catch{return!1}return i?Gx(r,i)||oJ(r,i):a?Gx(r,a)||Wg(r,a):!0},uu=(e,t)=>Gx(e,t)||Wg(e,t),Tv=({date:e,format:t=PI,relative:n=!1})=>{const r=n3(e)?e:bl(e);return v.jsx("time",{dateTime:`${aJ(r)}000`,children:n?`${rJ(Al(),r)} ago`:Gg(r,t)})},MI=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${aI(t)}/${r}${i}`},RI=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const a=as();return!n||!e?v.jsx("span",{...i,children:r}):v.jsx(Mr,{to:MI(a,e,t),...i,children:r})},Jve=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:a,validUntil:s}=t,u=r?.total??n??0;return i&&u>=i?{icon:gV,className:"text-danger",description:`This short URL cannot be currently visited because it has reached the maximum amount of ${i} visit${i>1?"s":""}`}:s&&Wg(wi(s),Al())?{icon:DA,className:"text-danger",description:`This short URL cannot be visited since ${Rh(wi(s))}`}:a&&Wg(Al(),wi(a))?{icon:DA,className:"text-warning",description:`This short URL will start working on ${Rh(wi(a))}`}:{icon:Tu,className:"text-lm-brand dark:text-dm-brand",description:"This short URL can be visited normally"}},eye=({shortUrl:e})=>{const{icon:t,className:n,description:r}=T.useMemo(()=>Jve(e),[e]);return v.jsx("span",{className:"cursor-help",title:r,children:v.jsx(We,{icon:t,className:n})})},NI=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const{anchor:i,tooltip:a}=no(),{maxVisits:s,validSince:u,validUntil:d}=t?.meta??{},f=!!s||!!u||!!d,m=v.jsx(RI,{shortUrl:t,suffix:"visits",asLink:r,children:v.jsx("strong",{className:Ne("inline-block transition-all duration-300",{"scale-150":n}),children:On(e)})});return f?v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"whitespace-nowrap",children:[m,v.jsxs("small",{className:"cursor-help",...i,children:[s&&v.jsxs(v.Fragment,{children:[" / ",On(s)]}),v.jsx("sup",{className:"ml-1",children:v.jsx(We,{icon:Bv})})]})]}),v.jsx(ro,{...a,children:v.jsxs("ul",{className:"flex flex-col gap-y-2",children:[s&&v.jsxs("li",{children:["This short URL will not accept more than ",v.jsx("b",{children:On(s)})," visit",s===1?"":"s","."]}),u&&v.jsxs("li",{children:["This short URL will not accept visits before ",v.jsx("b",{className:"whitespace-nowrap",children:Rh(wi(u))}),"."]}),d&&v.jsxs("li",{children:["This short URL will not accept visits after ",v.jsx("b",{className:"whitespace-nowrap",children:Rh(wi(d))}),"."]})]})})]}):m},hf=({className:e,...t})=>v.jsx("button",{type:"button",className:Ne("rounded-sm focus-ring cursor-pointer",e),...t}),tye=e=>!!e.onClose,nye=e=>!!e.onClick,i3=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,a=nye(e),s=tye(e),u=a?hf:"span",d=T.useMemo(()=>i.stylesForKey(t),[t,i]);return v.jsxs(u,{className:Ne("inline-flex items-center gap-1","font-bold [&]:rounded-md",{"text-sm px-1.5 py-0.5":!s,"py-1 px-2":s,"cursor-pointer":a},r),style:d,onClick:a?e.onClick:void 0,"data-testid":"tag",children:[n??t,s&&v.jsx(hf,{"aria-label":`Remove ${t}`,className:"p-0 text-lg leading-5.5",onClick:e.onClose,children:v.jsx(We,{icon:sw,size:"sm"})})]})},rye=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?v.jsx("i",{className:"whitespace-nowrap",children:v.jsx("small",{children:"No tags"})}):v.jsx("div",{className:"inline-flex flex-wrap gap-1 items-center",children:e.map(r=>v.jsx(i3,{text:r,colorGenerator:n,onClick:()=>t?.(r)},r))}),LI=({shortUrl:e,onTagClick:t})=>{const{ShortUrlsRowMenu:n,ColorGenerator:r,useTimeoutToggle:i}=Pn(LI),[a,s]=i({initialValue:!1,delay:500}),u=T.useRef(!0),[{excludeBots:d}]=Fy(),f=kn("visits"),m=d??f?.excludeBots;return T.useEffect(()=>{u.current||s(),u.current=!1},[e.visitsSummary?.total,e.visitsSummary?.nonBots,e.visitsCount,s]),v.jsxs(Ke.Row,{className:"relative",children:[v.jsx(Ke.Cell,{className:"whitespace-nowrap",columnName:"Created at:",children:v.jsx(Tv,{date:e.dateCreated})}),v.jsx(Ke.Cell,{columnName:"Short URL:",children:v.jsxs("span",{className:"lg:whitespace-nowrap inline-flex items-center gap-x-2",children:[v.jsx(Ei,{href:e.shortUrl,className:"max-md:break-all lg:truncate max-w-72"}),v.jsx(CN,{text:e.shortUrl})]})}),v.jsx(Ke.Cell,{className:"break-all",columnName:`${e.title?"Title":"Long URL"}:`,children:v.jsx(Ei,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&v.jsx(Ke.Cell,{className:"break-all [&]:lg:hidden",columnName:"Long URL:",children:v.jsx(Ei,{href:e.longUrl})}),v.jsx(Ke.Cell,{columnName:"Tags:",children:v.jsx(rye,{tags:e.tags,colorGenerator:r,onTagClick:t})}),v.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Visits:",children:v.jsx(NI,{visitsCount:(m?e.visitsSummary?.nonBots:e.visitsSummary?.total)??e.visitsCount??0,shortUrl:e,active:a,asLink:!0})}),v.jsx(Ke.Cell,{columnName:"Status:",className:"max-lg:border-none",children:v.jsxs("div",{className:"inline-flex gap-2",children:[v.jsx(eye,{shortUrl:e}),e.hasRedirectRules&&v.jsx(RI,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:v.jsx(We,{icon:K5})})]})}),v.jsx(Ke.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:v.jsx(n,{shortUrl:e})})]})},iye=Mn(LI,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),DI=T.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>v.jsxs("div",{className:Ne("relative rounded w-12",r),style:{backgroundColor:t,borderColor:t},children:[v.jsx(Jr,{className:"w-full h-full cursor-pointer relative z-1 opacity-0",type:"color",value:t,onChange:a=>n(a.target.value),ref:i,name:e,"aria-label":e.replace("-"," ")}),v.jsx(We,{icon:B$,className:"absolute top-1/2 left-1/2 -translate-1/2",style:{color:jw(t.substring(1))?"#000":"#fff"}})]})),kR=({color:e,onChange:t,name:n})=>{const r=T.useRef(null);return v.jsxs("div",{className:"flex",children:[v.jsx(DI,{name:`${n}-picker`,color:e,onChange:t,className:"rounded-r-none",ref:r}),v.jsx(Jr,{readOnly:!0,value:e,onClick:()=>r.current?.click(),"aria-label":n,"data-testid":"text-input",className:"grow rounded-l-none"})]})};function aye(e){switch(e){case"L":return 1;case"M":return .5;default:return .3}}const oye=T.forwardRef(({data:e,color:t="#000000",bgColor:n="#ffffff",margin:r=0,errorCorrection:i="L",size:a=300,drawType:s="canvas",logo:u},d)=>{const f=T.useRef(null),m=T.useRef(new AJ),p=T.useCallback((_,w)=>m.current.download({name:_,extension:w}),[]),b=T.useCallback(_=>new Promise((w,x)=>{const A=m.current.getRawData(_),C=new FileReader;C.onload=()=>{const{result:j}=C;j&&w(j.toString())},C.onerror=x,A.then(j=>{j instanceof Blob?C.readAsDataURL(j):x(new Error("QR code image blob not available"))})}),[]);return T.useImperativeHandle(d,()=>({download:p,getDataUri:b}),[p,b]),T.useEffect(()=>{const _=f.current;m.current.append(_)},[]),T.useEffect(()=>{m.current.update({type:s,data:e,width:a+r,height:a+r,margin:r,dotsOptions:{color:t},backgroundOptions:{color:n},qrOptions:{errorCorrectionLevel:i},imageOptions:{margin:5,imageSize:aye(i)},image:u})},[n,t,e,s,i,u,r,a]),v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"#qr-code-canvas-container canvas { max-width: 100% }"}}),v.jsx("div",{ref:f,id:"qr-code-canvas-container"})]})}),sye=async({text:e,onCopy:t},n=navigator)=>{const r=typeof e=="string"?e:await e;return n.clipboard?.writeText(r).then(()=>t?.({text:r,copied:!0})).catch(()=>t?.({text:r,copied:!1}))},IR=({name:e,value:t,step:n,min:r,max:i,onChange:a})=>{const s=T.useId();return v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsxs("label",{htmlFor:s,className:"capitalize",children:[e,": ",t,"px"]}),v.jsx("input",{id:s,type:"range",value:t,step:n,min:r,max:i,onChange:u=>a(Number(u.target.value))})]})},lye=({shortUrl:{shortUrl:e,shortCode:t},onClose:n,isOpen:r,qrDrawType:i})=>{const a=kn("qrCodes",Cf),[{size:s,margin:u,color:d,bgColor:f,errorCorrection:m,format:p},b]=T.useState(a),_=T.useCallback(X=>b(oe=>({...oe,...X})),[]),w=T.useRef(null),[x,A]=T.useState(),C=T.useCallback(X=>{const oe=X.target.files?.[0];oe&&A({url:URL.createObjectURL(new Blob([oe],{type:oe.type})),name:oe.name})},[]),j=T.useRef(null),O=T.useCallback(()=>j.current?.download(`${t}-qr-code`,p),[p,t]),[N,B]=Yv({}),V=T.useCallback(()=>{const X=j.current?.getDataUri(p)??"";return sye({text:X,onCopy:B})},[p,B]),Z=T.useCallback(()=>{b(a),A(void 0)},[a]);return v.jsx(to,{size:"lg",open:r,onClose:n,title:v.jsxs(v.Fragment,{children:["QR code for ",v.jsx(Ei,{href:e})]}),onClosed:Z,children:v.jsxs("div",{className:"flex flex-col-reverse lg:flex-row gap-4",children:[v.jsx("div",{className:"grow flex items-center justify-around",children:v.jsxs("div",{className:"flex flex-col gap-1 items-center","data-testid":"qr-code-container",children:[v.jsx(oye,{ref:j,data:e,size:s,margin:u,errorCorrection:m,color:d,bgColor:f,logo:x?.url,drawType:i}),v.jsxs("div",{className:"italic",children:["Preview (",s+u,"x",s+u,")"]})]})}),v.jsxs("div",{className:"flex flex-col gap-2 lg:w-64",children:[v.jsx(IR,{name:"size",value:s,onChange:X=>_({size:X}),step:10,min:50,max:1e3}),v.jsx(IR,{name:"margin",value:u,onChange:X=>_({margin:X}),step:1,min:0,max:100}),v.jsx(bL,{errorCorrection:m,onChange:X=>_({errorCorrection:X})}),v.jsx(kR,{name:"color",color:d,onChange:X=>_({color:X})}),v.jsx(kR,{name:"background",color:f,onChange:X=>_({bgColor:X})}),!x&&v.jsxs(v.Fragment,{children:[v.jsxs(Rt,{variant:"secondary",onClick:()=>w.current?.click(),children:[v.jsx(We,{icon:DY}),"Select logo"]}),v.jsx("input",{ref:w,type:"file",accept:"image/*","aria-hidden":!0,tabIndex:-1,className:"hidden",onChange:C,"data-testid":"logo-input"})]}),x&&v.jsxs(Rt,{variant:"secondary",onClick:()=>A(void 0),children:[v.jsx(We,{icon:Uv}),v.jsxs("div",{className:"truncate",children:["Clear logo (",x.name,")"]})]}),v.jsx("div",{className:"my-auto",children:v.jsx("hr",{className:"my-2"})}),v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx(_L,{format:p,onChange:X=>_({format:X})}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Rt,{onClick:V,"aria-label":"Copy data URI",title:"Copy data URI",className:"h-full",children:v.jsx(We,{icon:N?Tu:wN})}),v.jsxs(Rt,{solid:!0,onClick:O,className:"grow",children:["Download ",v.jsx(We,{icon:Y5})]})]})]})]})]})})},kI=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r}=Pn(kI),{flag:i,setToTrue:a,setToFalse:s}=Sn(),{flag:u,setToTrue:d,setToFalse:f}=Sn(),m=ky(),p=Qi("shortUrlRedirectRules"),{confirmDeletions:b=!0}=kn("shortUrlsList",{}),_=T.useCallback(async()=>{const A=await t(e);GC(A)||n(e)},[t,e,n]),w=as(),x=T.useCallback(A=>MI(w,e,A),[w,e]);return v.jsxs(v.Fragment,{children:[v.jsxs(on,{menuAlignment:"right",children:[v.jsxs(on.Item,{to:x("visits"),className:"gap-1.5",children:[v.jsx(We,{icon:uw})," Visit stats"]}),m&&v.jsxs(v.Fragment,{children:[v.jsxs(on.Item,{className:"gap-1.5",disabled:!m.canAddItemWithName(e.shortUrl),onClick:()=>m.addItemToCompare({name:e.shortUrl,query:XC(e)}),children:[v.jsx(We,{icon:Iv})," Compare visits"]}),v.jsx(on.Separator,{})]}),v.jsxs(on.Item,{to:x("edit"),className:"gap-1.5",children:[v.jsx(We,{icon:ow})," Edit short URL"]}),p&&v.jsxs(on.Item,{to:x("redirect-rules"),className:"gap-1.5",children:[v.jsx(We,{icon:K5})," Manage redirect rules"]}),v.jsxs(on.Item,{onClick:a,className:"gap-1.5",children:[v.jsx(We,{icon:OV})," QR code"]}),v.jsx(on.Separator,{}),v.jsxs(on.Item,{className:"[&]:text-danger gap-1.5",onClick:b?d:_,children:[v.jsx(We,{icon:e6})," Delete short URL"]})]}),v.jsx(lye,{shortUrl:e,isOpen:i,onClose:s}),v.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:u,onClose:f})]})},uye=Mn(kI,["DeleteShortUrlModal"]),II="shlink/shortUrlCreation",UR={saving:!1,saved:!1,error:!1},cye=e=>Yn(`${II}/createShortUrl`,t=>e().createShortUrl(t)),fye=e=>{const{reducer:t,actions:n}=Nt({name:II,initialState:UR,reducers:{resetCreateShortUrl:()=>UR},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Li(s)})),i.addCase(e.fulfilled,(a,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},UI="shlink/shortUrlEdition",dye={saving:!1,saved:!1,error:!1},hye=e=>Yn(`${UI}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl({shortCode:t,domain:n},r)),mye=e=>Nt({name:UI,initialState:dye,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:Li(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),BR="shlink/shortUrlsDetails",zR={loading:!1,error:!1},pye=e=>{const t=Yn(`${BR}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:a}=i(),s=await Promise.all(r.map(async u=>{const{shortCode:d,domain:f}=u,m=a?.shortUrls?.data.find(p=>fh(p,d,f));return[u,m??await e().getShortUrl({shortCode:d,domain:f})]}));return new Map(s)}),{reducer:n}=Nt({name:BR,initialState:zR,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({loading:!1,error:!0,errorData:Li(a)})),r.addCase(t.fulfilled,(i,{payload:a})=>({...zR,shortUrls:a}))}});return{reducer:n,getShortUrlsDetails:t}},gye=({domains:e,value:t,onChange:n})=>{const{flag:r,setToTrue:i,setToFalse:a}=Sn(),s=!t,u=T.useCallback(()=>{n(""),a()},[n,a]),d=T.useCallback(()=>{n(""),i()},[n,i]);return r?v.jsxs("div",{className:"flex",children:[v.jsx(Jr,{value:t??"",placeholder:"Domain",onChange:f=>n(f.target.value),className:"flex-grow rounded-r-none [&]:border-r-0"}),v.jsx(Rt,{variant:"secondary",type:"button",className:"rounded-l-none","aria-label":"Back to domains list",title:"Existing domains",onClick:u,children:v.jsx(We,{icon:xV})})]}):v.jsxs(Qe,{buttonContent:s?"Domain":`Domain: ${t}`,buttonClassName:Ne("w-full",{"text-placeholder":s}),children:[e.map(({domain:f,isDefault:m})=>v.jsxs(Qe.Item,{selected:(t===f||m)&&s,onClick:()=>n(f),className:"flex justify-between items-center",children:[f,m&&v.jsx(Nu,{children:"default"})]},f)),v.jsx(Qe.Separator,{}),v.jsx(Qe.Item,{onClick:d,children:v.jsx("i",{children:"New domain"})})]})},tx=({icon:e,className:t,...n})=>{const r=T.useRef(null);return v.jsxs("div",{className:"relative",children:[v.jsx(Jr,{className:Ne("pr-11",t),ref:r,...n}),v.jsx(We,{icon:e,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer",onClick:()=>r.current?.focus()})]})},vye=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...a})=>{const s=T.useCallback(({target:d})=>{if(!d.value){r?.(null);return}r?.(wi(d.value))},[r]),u=T.useMemo(()=>i?Rh:ll,[i]);return v.jsx(Jr,{...a,type:i?"datetime-local":"date",value:u(n)??"",max:u(t)??void 0,min:u(e)??void 0,onChange:s})},Ov=({label:e,id:t,...n})=>{const r=T.useId();return v.jsxs(v.Fragment,{children:[v.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),v.jsx(vye,{id:t??r,...n})]})},yye=({className:e,placement:t,children:n})=>{const{anchor:r,tooltip:i}=no({placement:t});return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:e,...r,"data-placement":t,"data-testid":"tooltip-anchor",children:v.jsx(We,{icon:Bv})}),v.jsx(ro,{...i,children:n})]})},nx=({children:e,infoTooltip:t,checked:n,onChange:r})=>v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsxs(Sa,{className:"inline-flex items-center gap-x-1.5",children:[v.jsx(Aw,{checked:n,onChange:r}),e]}),v.jsx(yye,{placement:"right",children:t})]}),bye=e=>v.jsx(to,{...e,title:"Info",size:"lg",children:v.jsxs("div",{className:"flex flex-col gap-y-2",children:[v.jsxs("p",{children:["When the ",v.jsx("b",{children:v.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),v.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),v.jsxs("ul",{className:"list-disc pl-5",children:[v.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."}),v.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.",v.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),v.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"})]})]})}),_ye=()=>{const{flag:e,setToFalse:t,setToTrue:n}=Sn();return v.jsxs(v.Fragment,{children:[v.jsx(hf,{title:"What does this mean?",onClick:n,children:v.jsx(We,{icon:Bv})}),v.jsx(bye,{open:e,onClose:t})]})},ig=e=>typeof e=="string"?bl(e):e,xye=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,BI=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:a})=>{const{TagsSelector:s}=Pn(BI),[u,d]=T.useState(r),f=xye(u),m=Qi("deviceLongUrls"),p=Qi("urlValidation"),b=p||f,_=T.useCallback(()=>d(r),[r]),w=T.useCallback((O,N)=>mu(O)?O:mu(N)?null:void 0,[]),x=T.useCallback((O,N)=>d(({deviceLongUrls:B={},...V})=>({...V,deviceLongUrls:{...B,[O]:w(N,r.deviceLongUrls?.[O])}})),[r.deviceLongUrls,w]),A=T.useCallback(O=>d(N=>({...N,tags:O})),[]),C=T.useCallback(async O=>(O.preventDefault(),n(u).then(N=>f&&!GC(N)&&_()).catch(()=>{})),[f,n,_,u]),j=T.useMemo(()=>v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx(Jr,{size:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:u.longUrl,onChange:O=>d(N=>({...N,longUrl:O.target.value}))}),v.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[e&&f&&v.jsx("div",{className:"w-full lg:w-1/2",children:v.jsx(Jr,{size:"lg",placeholder:"Custom slug",value:u.customSlug??"",onChange:O=>d(N=>({...N,customSlug:O.target.value}))})}),v.jsx("div",{className:Ne("w-full",{"lg:w-1/2":e}),children:v.jsx(s,{tags:i.tags,selectedTags:u.tags??[],onChange:A})})]})]}),[s,e,A,f,u,i.tags]);return v.jsxs("form",{name:"shortUrlForm",onSubmit:C,className:"flex flex-col gap-4",children:[e&&j,!e&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("div",{className:Ne({"sm:w-1/2":m,"w-full":!m}),children:v.jsx(Mt,{title:"Main options",className:"card",children:j})}),m&&v.jsx("div",{className:"w-full sm:w-1/2",children:v.jsxs(Mt,{title:"Device-specific long URLs",bodyClassName:"flex flex-col gap-y-4",className:"card",children:[v.jsx(tx,{type:"url",icon:OJ,placeholder:"Android-specific redirection",value:u.deviceLongUrls?.android??"",onChange:({target:O})=>x("android",O.value)}),v.jsx(tx,{type:"url",icon:TJ,placeholder:"iOS-specific redirection",value:u.deviceLongUrls?.ios??"",onChange:({target:O})=>x("ios",O.value)}),v.jsx(tx,{type:"url",icon:SV,placeholder:"Desktop-specific redirection",value:u.deviceLongUrls?.desktop??"",onChange:({target:O})=>x("desktop",O.value)})]})})]}),v.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[v.jsx("div",{className:"w-full sm:w-1/2",children:v.jsxs(Mt,{title:"Customize the short URL",bodyClassName:"flex flex-col gap-4",className:"card h-full",children:[v.jsx(Jr,{placeholder:"Title",value:u.title??"",onChange:({target:O})=>d(N=>({...N,title:w(O.value,r.title)}))}),f&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[v.jsx("div",{className:"lg:w-1/2",children:v.jsx(Jr,{placeholder:"Custom slug",value:u.customSlug??"",onChange:O=>d(N=>({...N,customSlug:O.target.value})),disabled:mu(u.shortCodeLength)})}),v.jsx("div",{className:"lg:w-1/2",children:v.jsx(Jr,{type:"number",placeholder:"Short code length",value:u.shortCodeLength??"",onChange:O=>d(N=>({...N,shortCodeLength:O.target.value})),min:4,disabled:mu(u.customSlug)})})]}),v.jsx(gye,{value:u.domain,onChange:O=>d(N=>({...N,domain:O})),domains:a.domains})]})]})}),v.jsx("div",{className:"w-full sm:w-1/2",children:v.jsxs(Mt,{title:"Limit access to the short URL",className:"card h-full",bodyClassName:"flex flex-col gap-y-4",children:[v.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[v.jsx("div",{className:"lg:w-1/2",children:v.jsx(Ov,{label:"Enabled since",withTime:!0,maxDate:u.validUntil?ig(u.validUntil):void 0,value:u.validSince?ig(u.validSince):null,onChange:O=>d(N=>({...N,validSince:Tl(O)}))})}),v.jsx("div",{className:"lg:w-1/2",children:v.jsx(Ov,{label:"Enabled until",withTime:!0,minDate:u.validSince?ig(u.validSince):void 0,value:u.validUntil?ig(u.validUntil):null,onChange:O=>d(N=>({...N,validUntil:Tl(O)}))})})]}),v.jsx(ni,{label:"Maximum visits allowed:",type:"number",min:1,placeholder:"25...",value:u.maxVisits??"",onChange:O=>d(N=>({...N,maxVisits:mu(O.target.value)?Number(O.target.value):null}))})]})})]}),v.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[b&&v.jsx("div",{className:"w-full sm:w-1/2",children:v.jsxs(Mt,{title:"Extra checks",className:"h-full",children:[p&&v.jsx(nx,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:u.validateUrl,onChange:O=>d(N=>({...N,validateUrl:O})),children:"Validate URL"}),f&&v.jsxs("p",{className:"inline-flex items-center gap-x-2",children:[v.jsxs(Sa,{className:"inline-flex items-center gap-x-1.5",children:[v.jsx(Aw,{checked:u.findIfExists,onChange:O=>d(N=>({...N,findIfExists:O}))}),"Use existing URL if found"]}),v.jsx(_ye,{})]})]})}),v.jsx("div",{className:Ne("w-full",{"sm:w-1/2":b}),children:v.jsxs(Mt,{title:"Configure behavior",children:[v.jsx(nx,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:u.crawlable,onChange:O=>d(N=>({...N,crawlable:O})),children:"Make it crawlable"}),v.jsx(nx,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:u.forwardQuery,onChange:O=>d(N=>({...N,forwardQuery:O})),children:"Forward query params on redirect"})]})})]})]}),v.jsx("div",{className:"text-center",children:v.jsx(Rt,{type:"submit",inline:!0,solid:!0,disabled:t||!u.longUrl,className:"max-md:w-full",children:t?"Saving...":"Save"})})]})},wye=Mn(BI,["TagsSelector"]),Sye=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-y-3 gap-x-4",children:[v.jsx("div",{className:"flex flex-col",children:v.jsx(Ov,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),v.jsx("div",{className:"flex flex-col",children:v.jsx(Ov,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:a=>i(a&&nf(a))})})]}),Vy="all",zI={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Vy]:void 0},FI=Object.keys(zI),Cye=e=>!e||!e.startDate&&!e.endDate,jv=e=>typeof e=="string"&&FI.includes(e),Eye=FI.filter(e=>e!==Vy),FR=e=>e?wi(e):null,$I=(e,t)=>({startDate:FR(e),endDate:FR(t)}),Aye=e=>{if(!(!e||Cye(e)))return e.startDate&&!e.endDate?`Since ${ll(e.startDate)}`:!e.startDate&&e.endDate?`Until ${ll(e.endDate)}`:`${ll(e.startDate)} - ${ll(e.endDate)}`},$R=e=>{if(!(!e||e===Vy))return jv(e)?zI[e]:Aye(e)},Zi=e=>Du(Yg(Al(),e)),Bc=e=>({startDate:e,endDate:nf(Al())}),VI=e=>[[()=>e==="today",()=>Bc(Du(Al()))],[()=>e==="yesterday",()=>({startDate:Zi(1),endDate:nf(Yg(Al(),1))})],[()=>e==="last7Days",()=>Bc(Zi(7))],[()=>e==="last30Days",()=>Bc(Zi(30))],[()=>e==="last90Days",()=>Bc(Zi(90))],[()=>e==="last180Days",()=>Bc(Zi(180))],[()=>e==="last365Days",()=>Bc(Zi(365))]].find(([t])=>t())?.[1]()??{},Tye=e=>{const t=wi(e);return[[()=>uu(Du(Al()),t),"today"],[()=>uu(Zi(1),t),"yesterday"],[()=>uu(Zi(7),t),"last7Days"],[()=>uu(Zi(30),t),"last30Days"],[()=>uu(Zi(90),t),"last90Days"],[()=>uu(Zi(180),t),"last180Days"],[()=>uu(Zi(365),t),"last365Days"]].find(([n])=>n())?.[1]??Vy},qI=e=>jv(e)?VI(e):e,HI=e=>!!(e&&e.startDate),Oye=({startDate:e,endDate:t})=>{const n=OL(nf(t??new Date),Du(e))+1,r=Yg(Du(e),n),i=Yg(nf(e),1);return{startDate:r,endDate:i}},jye=e=>{if(HI(e))return OL(e.endDate??new Date,e.startDate)},a3=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=T.useMemo(()=>$R(t)??n,[t,n]),[a,s]=T.useMemo(()=>jv(t)?[void 0,t]:[t,void 0],[t]),u=T.useCallback(d=>{jv(d)?e(VI(d),d):e(d)},[e]);return v.jsxs(Qe,{buttonDisabled:r,buttonContent:i,containerClassName:"[&]:block",buttonClassName:"w-full",children:[v.jsx(Qe.Item,{selected:s==="all",onClick:()=>u("all"),children:n}),v.jsx(Qe.Separator,{}),Eye.map(d=>v.jsx(Qe.Item,{selected:s===d,onClick:()=>u(d),children:$R(d)},d)),v.jsx(Qe.Separator,{}),v.jsx(Qe.Misc,{children:v.jsx(Sye,{...a,onStartDateChange:d=>u({...a,startDate:d}),onEndDateChange:d=>u({...a,endDate:d})})})]})},Pye={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Mye=({onChange:e,selected:t={},domains:n})=>{const r=Qi("filterShortUrlsByDomain"),{excludeBots:i=!1,excludeMaxVisitsReached:a=!1,excludePastValidUntil:s=!1,domain:u}=t,d=T.useCallback(m=>e({...t,...m}),[e,t]),f=T.useCallback(m=>d({[m]:!t?.[m]}),[d,t]);return v.jsxs(Qe,{buttonContent:"Filters",buttonClassName:"w-full",menuAlignment:"right",children:[v.jsx(Qe.Title,{children:"Visits:"}),v.jsx(Qe.Item,{selected:i,onClick:()=>f("excludeBots"),children:"Ignore visits from bots"}),v.jsx(Qe.Separator,{}),v.jsx(Qe.Title,{children:"Short URLs:"}),v.jsx(Qe.Item,{selected:a,onClick:()=>f("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),v.jsx(Qe.Item,{selected:s,onClick:()=>f("excludePastValidUntil"),children:"Exclude enabled in the past"}),r&&v.jsxs(v.Fragment,{children:[v.jsx(Qe.Separator,{}),v.jsxs(Qe.Title,{children:["Domain: ",!n&&v.jsx("i",{children:"loading..."})]}),n?.map(m=>{const p=m.isDefault?ff:m.domain,b=u===p;return v.jsx(Qe.Item,{selected:b,onClick:()=>d({domain:b?void 0:p}),children:m.domain},m.domain)})]}),v.jsx(Qe.Separator,{}),v.jsx(Qe.Item,{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:"italic",children:"Reset to defaults"})]})},GI=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:a})=>{const{ExportShortUrlsBtn:s,TagsSelector:u}=Pn(GI),[{search:d,tags:f,startDate:m,endDate:p,excludeBots:b,excludeMaxVisitsReached:_,excludePastValidUntil:w,domain:x,tagsMode:A="any"},C]=Fy(),j=kn("visits"),[O,N]=T.useState(),B=T.useCallback(({startDate:J,endDate:ne},he)=>{C({startDate:Tl(J)??void 0,endDate:Tl(ne)??void 0}),N(he)},[C]),V=T.useCallback(J=>C({search:J||void 0}),[C]),Z=T.useCallback(J=>C({tags:J}),[C]),X=T.useCallback(()=>C({tagsMode:A==="any"?"all":"any"}),[A,C]),{anchor:oe,tooltip:ee}=no({placement:"left"});return v.jsxs("div",{className:Ne("flex flex-col gap-y-4",e),children:[v.jsx(xf,{defaultValue:d,onChange:V}),v.jsxs("div",{className:"flex w-full",children:[v.jsx("div",{className:"flex-grow",children:v.jsx(u,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:f,onChange:Z,containerClassName:Ne(f.length>1&&"[&]:rounded-r-none")})}),f.length>1&&v.jsxs(v.Fragment,{children:[v.jsx(Rt,{variant:"secondary",onClick:X,"aria-label":"Change tags mode",className:"[&]:border-l-none [&]:rounded-l-none",...oe,children:v.jsx(We,{className:"text-2xl",icon:A==="all"?X5:wV})}),v.jsx(ro,{...ee,children:A==="all"?v.jsxs(v.Fragment,{children:["With ",v.jsx("b",{children:"all"})," the tags"]}):v.jsxs(v.Fragment,{children:["With ",v.jsx("b",{children:"any"})," of the tags"]})})]})]}),v.jsxs("div",{className:"flex flex-col lg:flex-row-reverse gap-y-4",children:[v.jsxs("div",{className:"lg:w-2/3 xl:w-1/2 inline-flex flex-col md:flex-row gap-4",children:[v.jsx("div",{className:"grow",children:v.jsx(a3,{defaultText:"All short URLs",dateRangeOrInterval:O??$I(m,p),onDatesChange:B})}),v.jsx(Mye,{selected:{excludeBots:b??j?.excludeBots,excludeMaxVisitsReached:_,excludePastValidUntil:w,domain:x},onChange:C,domains:a.loading?void 0:a.domains})]}),v.jsxs("div",{className:"lg:w-1/3 xl:w-1/2 inline-flex gap-3",children:[v.jsx("div",{className:"max-lg:w-1/2 lg:hidden",children:v.jsx(Vh,{containerClassName:"[&]:block",buttonClassName:"w-full",prefixed:!1,items:Pye,order:n,onChange:({field:J,dir:ne})=>r(J,ne)})}),v.jsx("div",{className:"max-lg:w-1/2",children:v.jsx(s,{amount:t})})]})]})]})},Rye=Mn(GI,["ExportShortUrlsBtn","TagsSelector"]);function dh({currentOrder:e,field:t,className:n="ml-1"}){return!e.dir||e.field!==t?null:v.jsx(We,{icon:e.dir==="ASC"?dV:J5,className:n})}const Nye=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=as(),a=T.useCallback(s=>`${i}/list-short-urls/${s}${t}`,[t,i]);return r<=1?v.jsx("div",{"data-testid":"empty-gap",className:"pb-4"}):v.jsx("div",{"data-testid":"short-urls-paginator",className:Ne("sticky bottom-0 py-4 -mx-0.5","flex justify-around","bg-lm-primary dark:bg-dm-primary","border-t border-lm-border dark:border-dm-border"),children:v.jsx(Zv,{urlForPage:a,currentPage:n,pagesCount:r})})},Lye={field:"dateCreated",dir:"DESC"},WI=Ta(({listShortUrls:e,shortUrlsList:t})=>{const{ShortUrlsTable:n,ShortUrlsFilteringBar:r}=Pn(WI),{page:i}=vf(),a=xr(),[{tags:s,search:u,startDate:d,endDate:f,orderBy:m,tagsMode:p,excludeBots:b,excludePastValidUntil:_,excludeMaxVisitsReached:w,domain:x},A]=Fy(),C=Fw(),[j,O]=T.useState(m??C.shortUrlsList?.defaultOrdering??Lye),{pagination:N}=t?.shortUrls??{},B=T.useMemo(()=>b??C.visits?.excludeBots,[b,C.visits?.excludeBots]),V=T.useCallback((ne,he)=>{A({orderBy:{field:ne,dir:he}}),O({field:ne,dir:he})},[A]),Z=ne=>()=>V(ne,RN({currentOrderDir:j.dir,currentField:j.field,newField:ne})),X=ne=>v.jsx(dh,{currentOrder:j,field:ne}),oe=T.useCallback(ne=>A({tags:[...new Set([...s,ne])]}),[s,A]),ee=T.useCallback(({field:ne,dir:he})=>B&&ne==="visits"?{field:"nonBotVisits",dir:he}:{field:ne,dir:he},[B]),J=YC();return T.useEffect(()=>{e({page:i,searchTerm:u,tags:s,startDate:d,endDate:f,orderBy:ee(j),tagsMode:p,excludePastValidUntil:_,excludeMaxVisitsReached:w,domain:x})},[e,ee,i,u,s,d,f,j,p,_,w,x]),v.jsxs(WC,{value:J,children:[v.jsx(r,{shortUrlsAmount:t.shortUrls?.pagination.totalItems,order:j,handleOrderBy:V,className:"mb-4"}),v.jsx(KC,{type:"short-urls",className:"mb-4"}),v.jsxs(Mt,{bodyClassName:Ne({"pb-0":!t.loading}),children:[v.jsx(n,{shortUrlsList:t,orderByColumn:Z,renderOrderIcon:X,onTagClick:oe}),!t.loading&&v.jsx(Nye,{paginator:N,currentQueryString:a.search})]})]})},()=>[ea.visits]),Dye=Mn(WI,["ShortUrlsTable","ShortUrlsFilteringBar"]),rx=({children:e,danger:t})=>v.jsx(Ke.Row,{children:v.jsx(Ke.Cell,{colSpan:6,className:Ne("text-center",{"text-danger font-bold":t}),children:e})}),kye=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:a}=e;return r?v.jsx(rx,{danger:!0,children:"Something went wrong while loading short URLs :("}):i?v.jsx(rx,{children:"Loading..."}):!a||a.data.length===0?v.jsx(rx,{children:"No results found"}):a?.data.map(s=>v.jsx(n,{shortUrl:s,onTagClick:t},s.shortUrl))},YI=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r})=>{const{ShortUrlsRow:i}=Pn(YI),a=Ne({"cursor-pointer":!!e});return v.jsx(Ke,{className:"mb-[-1px] w-full",header:v.jsxs(Ke.Row,{children:[v.jsxs(Ke.Cell,{className:a,onClick:e?.("dateCreated"),children:["Created at ",t?.("dateCreated")]}),v.jsxs(Ke.Cell,{className:a,onClick:e?.("shortCode"),children:["Short URL ",t?.("shortCode")]}),v.jsxs(Ke.Cell,{children:[v.jsxs(hf,{className:Ne("p-0",a),onClick:e?.("title"),children:["Title ",t?.("title")]})," / ",v.jsxs(hf,{className:Ne("p-0",a),onClick:e?.("longUrl"),children:[v.jsx("span",{className:"whitespace-nowrap",children:"Long URL"})," ",t?.("longUrl")]})]}),v.jsx(Ke.Cell,{children:"Tags"}),v.jsx(Ke.Cell,{className:a,onClick:e?.("visits"),children:v.jsxs("span",{className:"whitespace-nowrap",children:["Visits ",t?.("visits")]})}),v.jsx(Ke.Cell,{colSpan:2,"aria-hidden":!0})]}),children:v.jsx(kye,{ShortUrlsRow:i,shortUrlsList:n,onTagClick:r})})},Iye=Mn(YI,["ShortUrlsRow"]),Uye=(e,t)=>{e.factory("ShortUrlsList",Dye),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",Iye),e.factory("ShortUrlsRow",iye),e.factory("ShortUrlsRowMenu",uye),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",wye),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",Yve),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Kve),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>Zve),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("ExportShortUrlsBtn",Xve),e.factory("ShortUrlsFilteringBar",Rye),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",Tge,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",fye,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",mye,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Cge,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",pye,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",Age,"apiClientFactory"),e.serviceFactory("createShortUrl",cye,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",Sge,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>sI),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",hye,"apiClientFactory")},Bye=({tag:e,onClose:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:a})=>{const{deleting:s,error:u,deleted:d,errorData:f}=i;return v.jsxs(to,{title:"Delete tag",variant:"danger",open:n,onClose:t,onClosed:()=>d&&a(e),onConfirm:async()=>{await r(e),t()},confirmText:s?"Deleting tag...":"Delete tag",confirmDisabled:s,children:["Are you sure you want to delete tag ",v.jsx("b",{children:e}),"?",u&&v.jsx(Fr,{variant:"error",size:"sm",className:"mt-2",children:v.jsx(Qa,{errorData:f,fallbackMessage:"Something went wrong while deleting the tag :("})})]})},KI=({tag:e,editTag:t,onClose:n,tagEdited:r,isOpen:i,tagEdit:a})=>{const{ColorGenerator:s}=Pn(KI),[u,d]=T.useState(e),[f,m]=T.useState(s.getColorForKey(e)),{editing:p,error:b,edited:_,errorData:w}=a,x=T.useCallback(async()=>{await t({oldName:e,newName:u,color:f}),n()},[f,t,u,n,e]),A=T.useCallback(()=>_&&r({oldName:e,newName:u,color:f}),[f,_,u,e,r]);return v.jsxs(to,{title:"Edit tag",open:i,onClose:n,onClosed:A,onConfirm:x,confirmText:p?"Saving...":"Save",confirmDisabled:p,children:[v.jsxs("div",{className:"flex",children:[v.jsx(DI,{color:f,onChange:m,className:"rounded-r-none",name:"tag-color"}),v.jsx(Jr,{className:"grow [&]:rounded-l-none",value:u,placeholder:"Tag",required:!0,onChange:({target:C})=>d(C.value)})]}),b&&v.jsx(Fr,{variant:"error",size:"sm",className:"mt-2",children:v.jsx(Qa,{errorData:w,fallbackMessage:"Something went wrong while editing the tag :("})})]})},zye=Mn(KI,["ColorGenerator"]),ZI=({onChange:e,placeholder:t,...n})=>{const{ColorGenerator:r}=Pn(ZI),i=kn("shortUrlCreation")?.tagFilteringMode??"startsWith";return v.jsx(aK,{...n,onTagsChange:e,getColorForTag:a=>r.getColorForKey(a),size:"lg",placeholder:t??"Add tags to the URL",searchMode:i})},Fye=Mn(ZI,["ColorGenerator"]),U2="shlink/tagDelete",$ye={deleting:!1,deleted:!1,error:!1},XI=dn(`${U2}/tagDeleted`),Vye=e=>{const t=Yn(`${U2}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Nt({name:U2,initialState:$ye,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:Li(a)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},o3="shlink/tagEdit",qye={editing:!1,edited:!1,error:!1},QI=dn(`${o3}/tagEdited`),Hye=(e,t)=>Yn(`${o3}/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})),Gye=e=>Nt({name:o3,initialState:qye,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:Li(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}})}}),s3="shlink/tagsList",ix={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},VR=(e,t)=>n=>n===e?t:n,qR=(e,t)=>e.filter(n=>n!==t),Wye=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:a,nonBots:s}=i,u=n[r];return{...n,[r]:{...u,visitsSummary:u.visitsSummary&&{total:u.visitsSummary.total+a+s,bots:u.visitsSummary.bots+a,nonBots:u.visitsSummary.nonBots+s},visitsCount:(u.visitsCount??0)+a+s}}},{...t}),Yye=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n?.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),Kye=e=>Yn(`${s3}/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}}),JI=dn(`${s3}/filterTags`),Zye=(e,t)=>Nt({name:s3,initialState:ix,reducers:{},extraReducers:n=>{n.addCase(JI,(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})=>({...ix,error:!0,errorData:Li(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...ix,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(XI,({tags:r,filteredTags:i,...a},{payload:s})=>({...a,tags:qR(r,s),filteredTags:qR(i,s)})),n.addCase(QI,({tags:r,filteredTags:i,stats:a,...s},{payload:u})=>({...s,stats:{...a,[u.newName]:a[u.oldName]},tags:r.map(VR(u.oldName,u.newName)).sort(),filteredTags:i.map(VR(u.oldName,u.newName)).sort()})),n.addCase(Lf,(r,{payload:i})=>({...r,stats:Wye(Yye(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:a})=>({...i,tags:r.concat(a.tags.filter(s=>!r.includes(s)))}))}}),Xye={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},e9=Ta(({filterTags:e,tagsList:t})=>{const{TagsTable:n}=Pn(e9),r=Fw(),[i,a]=T.useState(r.tags?.defaultOrdering??{}),s=T.useMemo(()=>{const d=t.filteredTags.map(f=>{const m=t.stats[f],p=(r.visits?.excludeBots?m?.visitsSummary?.nonBots:m?.visitsSummary?.total)??m?.visitsCount??0;return{tag:f,visits:p,shortUrls:m?.shortUrlsCount??0}});return NN(d,i)},[i,r.visits?.excludeBots,t.filteredTags,t.stats]),u=YC();return t.loading?v.jsx(Vo,{loading:!0}):t.error?v.jsx(Fr,{variant:"error",children:v.jsx(Qa,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):v.jsx(WC,{value:u,children:v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx(xf,{onChange:e}),v.jsx("div",{className:"flex flex-col lg:flex-row lg:justify-end",children:v.jsx("div",{className:"lg:w-1/2",children:v.jsx(Vh,{containerClassName:"[&]:block",buttonClassName:"w-full",items:Xye,order:i,onChange:a})})}),v.jsx(KC,{type:"tags"}),v.jsx(n,{sortedTags:s,currentOrder:i,orderByColumn:d=>()=>a(Mw({currentField:i.field,currentOrderDir:i.dir,newField:d}))})]})})},()=>[ea.visits]),Qye=Mn(e9,["TagsTable"]),Jye=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:a})=>a?.contains("visits-table"))||document.querySelector(".modal")||r()};return BJ({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},e0e=(e,t)=>{const[n,r]=T.useState(t),i=T.useCallback(a=>{const{location:s,history:u}=window,d=EN(s.search);d[e]=a,u.pushState(null,"",`${s.pathname}?${Pw(d)}`),r(a)},[e]);return[n,i]},l3=e=>{const t=wf();return T.useMemo(()=>t[e]?.split(",").filter(Boolean)??[],[e,t])},t0e=(e,t)=>{const n=T.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=T.useState(n());return T.useEffect(()=>{const a=()=>i(n());return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[n]),r},n0e=(e,t,n)=>{T.useEffect(()=>{if(!n)return()=>{};const r=new AbortController;return document.addEventListener("keydown",i=>i.key===e&&t(),{signal:r.signal}),()=>r.abort()},[n,t,e])},r0e=20,t9=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Pn(t9),i=T.useRef(!0),{page:a=1}=wf(),[s,u]=e0e("page",Number(a)),d=T.useCallback(_=>{u(_),scrollTo(0,0)},[u]),f=Yc(e,r0e),m=f.length>1,p=f[s-1]??[];T.useEffect(()=>{i.current||d(1),i.current=!1},[d,e]);const b="cursor-pointer top-(--header-height) sticky-cell";return v.jsxs(Mt,{bodyClassName:m?"pb-1":"",children:[v.jsxs(Ke,{header:v.jsxs(Ke.Row,{children:[v.jsxs(Ke.Cell,{onClick:t("tag"),className:b,children:["Tag ",v.jsx(dh,{currentOrder:n,field:"tag"})]}),v.jsxs(Ke.Cell,{onClick:t("shortUrls"),className:`lg:text-right ${b}`,children:["Short URLs ",v.jsx(dh,{currentOrder:n,field:"shortUrls"})]}),v.jsxs(Ke.Cell,{onClick:t("visits"),className:`lg:text-right ${b}`,children:["Visits ",v.jsx(dh,{currentOrder:n,field:"visits"})]}),v.jsx(Ke.Cell,{className:b,children:v.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[p.length===0&&v.jsx(Ke.Row,{children:v.jsx(Ke.Cell,{colSpan:4,className:"text-center",children:"No tags found"})}),p.map(_=>v.jsx(r,{tag:_},_.tag))]}),m&&v.jsx("div",{className:Ne("sticky bottom-0 py-4 -mx-0.5","flex justify-around","bg-lm-primary dark:bg-dm-primary","border-t border-lm-border dark:border-dm-border"),"data-testid":"tags-paginator",children:v.jsx(Zv,{pagesCount:f.length,currentPage:s,onPageChange:d})})]},s)},i0e=Mn(t9,["TagsTableRow"]),u3=({color:e,testId:t})=>v.jsx("div",{"data-testid":t,style:{backgroundColor:e},className:Ne("inline-block w-[20px] h-[20px] rounded-full","align-[-4px] mr-1.5")}),a0e=({tag:e,colorGenerator:t})=>v.jsx(u3,{color:t.getColorForKey(e)}),n9=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Pn(n9),{flag:i,setToFalse:a,setToTrue:s}=Sn(),{flag:u,setToFalse:d,setToTrue:f}=Sn(),m=as(),p=ky();return v.jsxs(Ke.Row,{className:"max-lg:relative",children:[v.jsxs(Ke.Cell,{columnName:"Tag",children:[v.jsx(a0e,{tag:e.tag,colorGenerator:r})," ",e.tag]}),v.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Short URLs",children:v.jsx(Mr,{to:`${m}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:On(e.shortUrls)})}),v.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Visits",children:v.jsx(Mr,{to:`${m}/tag/${e.tag}/visits`,children:On(e.visits)})}),v.jsx(Ke.Cell,{className:"lg:text-right max-lg:absolute max-lg:top-1.25 max-lg:right-0 max-lg:p-0",children:v.jsxs(on,{menuAlignment:"right",children:[v.jsxs(on.Item,{onClick:f,className:"gap-1.5",children:[v.jsx(We,{icon:Z5})," Edit"]}),v.jsxs(on.Item,{className:"gap-1.5",disabled:!p||!p.canAddItemWithName(e.tag),onClick:()=>p?.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[v.jsx(We,{icon:Iv})," Compare visits"]}),v.jsx(on.Separator,{}),v.jsxs(on.Item,{className:"[&]:text-danger gap-1.5",onClick:s,children:[v.jsx(We,{icon:F$})," Delete tag"]})]})}),v.jsx(n,{tag:e.tag,onClose:d,isOpen:u}),v.jsx(t,{tag:e.tag,onClose:a,isOpen:i})]})},o0e=Mn(n9,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),s0e=(e,t)=>{e.factory("TagsSelector",Fye),e.serviceFactory("DeleteTagConfirmModal",()=>Bye),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",zye),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",o0e),e.factory("TagsTable",i0e),e.factory("TagsList",Qye),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Gye,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Vye,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Zye,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",Kye,"apiClientFactory"),e.serviceFactory("filterTags",()=>JI),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>XI),e.serviceFactory("editTag",Hye,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>QI)},l0e=new DL,u0e=e=>l0e.parse(e),c0e=6,HR="0123456789ABCDEF";function f0e(){return`#${zw(c0e,()=>HR[Math.floor(Math.random()*HR.length)]).join("")}`}const GR=e=>e.toLowerCase().trim();class d0e{constructor(t){this.storage=t,this.colors=this.storage?.getTagColors()??{},this.lights={}}colors;lights;getColorForKey(t){const n=GR(t);return this.colors[n]||this.setColorForKey(n,f0e())}setColorForKey(t,n){const r=GR(t);return this.colors[r]=n,this.storage?.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]=jw(n)),this.lights[n]}}const r9=({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)},h0e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);r9(e,i,n)};class m0e{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);r9(this.window,i,n)}}class p0e{constructor(t,n){this.window=t,this.jsonToCsv=n}exportVisits=(t,n)=>{n.length&&this.exportCsv(t,n)};exportShortUrls=t=>{t.length&&this.exportCsv("short_urls.csv",t)};exportCsv=(t,n)=>{const r=this.jsonToCsv(n);h0e(this.window,r,t)}}function g0e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",m0e,"fetch","window"),e.service("ColorGenerator",d0e,"TagColorsStorage"),e.constant("jsonToCsv",u0e),e.service("ReportExporter",p0e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>Yv)}const lm=({visits:e,shortUrl:t,children:n,title:r})=>v.jsx("header",{children:v.jsxs(Mt,{children:[v.jsxs("h2",{className:"flex justify-between items-center",children:[v.jsx($y,{}),v.jsx("span",{className:"text-center hidden sm:block",children:v.jsx("small",{children:r})}),v.jsxs("span",{className:Ne("px-3 py-1.5 rounded-md ml-3","font-bold text-white text-2xl","bg-lm-main dark:bg-dm-main"),"data-testid":"badge",children:["Visits:"," ",v.jsx(NI,{visitsCount:e.length,shortUrl:t})]})]}),v.jsx("h3",{className:"text-center block sm:hidden mt-3",children:v.jsx("small",{children:r})}),n&&v.jsx("div",{className:"md:mt-3",children:n})]})}),c3=({children:e,className:t})=>v.jsx("div",{className:Ne("flex justify-between items-center",t),children:e}),i9=({title:e,footer:t,children:n})=>v.jsxs(cn,{role:"document",children:[v.jsx(cn.Header,{children:e}),v.jsx(cn.Body,{children:n}),t&&v.jsx(cn.Footer,{className:"sticky bottom-0",children:t})]}),a9=T.createContext(null),{Provider:rxe}=a9,f3=e=>{const t=T.useContext(a9)??void 0,n=T.useMemo(()=>t?{}:{width:"100%",height:e},[e,t]);return{ChartWrapper:t?T.Fragment:pue,dimensions:t,wrapperDimensions:n}},o9={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},v0e={marginBottom:"5px",fontWeight:"bold"},s9={contentStyle:o9,labelStyle:v0e,itemStyle:{padding:0}},WR=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],l9=e=>WR[e%WR.length],Pv=()=>Qo()?"#46e587":"#1DAA58",y0e=()=>Qo()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",b0e=({chartData:e,showNumbers:t})=>v.jsx("ul",{className:"space-y-1",children:e.map(({name:n,color:r,value:i},a)=>v.jsxs("li",{className:"flex items-center",children:[v.jsx(u3,{color:r,testId:`color-bullet-${a}`}),v.jsxs("small",{className:"truncate grow","data-testid":`name-${a}`,children:[n,t&&v.jsxs("b",{children:[" (",On(i),")"]})]})]},n))}),YR=e=>T.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:l9(r)})),[e]),_0e=({stats:e,prevStats:t,showNumbersInLegend:n})=>{const r=YR(e),i=YR(t),a=i.length>0,s=Qo()?FK:zK,{ChartWrapper:u,dimensions:d,wrapperDimensions:f}=f3(300);return v.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-y-4",children:[v.jsx("div",{className:"md:flex-7",children:v.jsx("div",{style:f,children:v.jsx(u,{children:v.jsxs(Epe,{...d,children:[v.jsx(vC,{formatter:On,contentStyle:o9,itemStyle:{color:"white"}}),v.jsx(A2,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:r.map((m,p)=>v.jsx(cl,{fill:m.color,stroke:s},`${m.name}-${p}`))}),a&&v.jsx(A2,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:Pv()})]})})})}),v.jsx("div",{className:"md:flex-5",children:v.jsx(b0e,{chartData:r,showNumbers:n})})]})},KR=({title:e,...t})=>{const{flag:n,toggle:r}=Sn();return v.jsx(i9,{title:v.jsxs(c3,{children:[e,v.jsx(Ho,{checked:n,onChange:r,children:"Show numbers"})]}),children:v.jsx(_0e,{...t,showNumbersInLegend:n})})},x0e=T.forwardRef(({visitsGroups:e},t)=>{const n=T.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:v.jsx("ul",{className:"mt-2 flex flex-wrap justify-center gap-4",ref:t,children:n.map(([r,i],a)=>v.jsxs("li",{className:"inline",children:[v.jsx(u3,{color:u9(i)}),v.jsxs("strong",{children:[r," (",On(i.length),")"]})]},`${r}${a}`))})}),w0e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},S0e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},C0e={hourly:XX,daily:ay,weekly:ZX,monthly:Hg},d3={hourly:e=>Gg(e,"yyyy-MM-dd HH:00"),daily:e=>ll(e),weekly(e){const t=ll(xh(e)),n=ll(aQ(e));return`${t} - ${n}`},monthly:e=>Gg(e,"yyyy-MM")},E0e=e=>{const t=Object.values(e).filter(a=>a.length>0);if(t.length===0)return"monthly";const n=new Date,r=t.map(a=>bl(a[a.length-1].date)),i=TL(r);return[[()=>ay(n,i)<=2,"hourly"],[()=>Hg(n,i)<=1,"daily"],[()=>Hg(n,i)<=6,"weekly"]].find(([a])=>a())?.[1]??"monthly"},A0e=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=fL(t[r],i=>d3[e](bl(i.date))),n),{}),T0e=(e,t)=>t.reduce((n,r)=>{const i=d3[e](bl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),O0e=(e,t)=>{const n=Object.values(t).filter(m=>m.length>0).map(m=>[...m].reverse());if(n.length===0)return[];const r=C0e[e],i=d3[e],a=S0e[e],s=n.flat(),u=bl(s[0].date),d=bl(s[s.length-1].date),f=r(d,u)||1;return[{formattedDate:i(u),date:u},...zw(f,m=>{const p=qX(u,a(m));return{formattedDate:i(p),date:p}})]},u9=e=>{if(e.color)return e.color;const t={main:yh(),highlighted:Dx,previous:Pv()};return e.type?t[e.type]:yh()},ZR=(e,t)=>T.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),j0e=(e,t,n)=>{const r=ZR(e,"main"),i=ZR(e,"highlighted"),a=T.useMemo(()=>n?T0e(t,r):{},[n,t,r]),s=T.useCallback((u,{payload:d})=>{const f=a[d.formattedDate]??[];n?.(f===i?[]:f)},[a,i,n]);return n&&{cursor:"pointer",onClick:s}},c9=({visitsGroups:e,setSelectedVisits:t,matchMedia:n,onDateRangeChange:r})=>{const[i,a]=T.useState(E0e(e)),s=t0e(767,n??window.matchMedia),u=T.useMemo(()=>{const J=A0e(i,e),ne=Object.keys(J);return O0e(i,e).map(({formattedDate:he,date:Q})=>({date:Q,formattedDate:he,...ne.reduce((se,Y)=>(se[Y]=J[Y][he]??0,se),{})}))},[i,e]),d=j0e(e,i,t),{flag:f,toggle:m,setToFalse:p}=Sn(),b=T.useId(),_=T.useRef(null),[w,x]=T.useState(s?300:400);T.useLayoutEffect(()=>{if(!f)return x(s?300:400),()=>{};const J=new ResizeObserver(()=>{const ne=window.innerHeight,{height:he}=_.current.getBoundingClientRect();x(ne-he-98)});return J.observe(_.current),()=>J.disconnect()},[f,s,_]),n0e("Escape",p,f);const{ChartWrapper:A,dimensions:C,wrapperDimensions:j}=f3(w),[O,N]=T.useState(),[B,V]=T.useState(),Z=T.useCallback(()=>{N(void 0),V(void 0)},[]),X=T.useCallback((J,ne)=>{const he=J.activeIndex&&u[J.activeIndex];ne.button===0&&he&&N(he)},[u]),oe=T.useCallback(J=>{const ne=J.activeIndex&&u[J.activeIndex];O&&ne&&V(ne)},[u,O]),ee=T.useCallback(()=>{if(!O||!B){Z();return}const J=[O.date,B.date],ne=WX(J),he=TL(J);Z(),r({startDate:ne,endDate:he})},[r,Z,B,O]);return v.jsxs(cn,{className:Ne({"fixed top-0 bottom-0 left-0 right-0 z-1030":f}),"data-testid":"line-chart-card",children:[v.jsxs(cn.Header,{role:"heading","aria-level":4,className:"flex justify-between items-center",children:["Visits over time",v.jsxs("div",{className:"flex content-center gap-1",children:[v.jsx(Kv,{"aria-label":f?"Collapse":"Expand","aria-expanded":f,"aria-controls":b,size:"sm",onClick:m,children:v.jsx(We,{icon:f?pV:J$})}),v.jsx(Qe,{buttonContent:"Group by",buttonSize:"sm",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",menuClassName:"w-40",children:Object.entries(w0e).map(([J,ne])=>v.jsx(Qe.Item,{selected:i===J,onClick:()=>a(J),children:ne},J))})]})]}),v.jsxs(cn.Body,{id:b,children:[v.jsx(A,{...j,children:v.jsxs(ppe,{className:"select-none",data:u,...C,onMouseDown:X,onMouseMove:oe,onMouseUp:ee,children:[v.jsx(Ly,{dataKey:"formattedDate"}),v.jsx(Dy,{tickFormatter:On,yAxisId:"1"}),v.jsx(vC,{formatter:On,...s9}),v.jsx(IC,{strokeOpacity:Qo()?.1:.9}),Object.entries(e).map(([J,ne])=>ne.length>0&&v.jsx(j7,{yAxisId:"1",dataKey:J,type:"monotone",stroke:u9(ne),strokeWidth:2,activeDot:ne.type==="previous"?void 0:d,strokeDasharray:ne.type==="previous"?"8 3":void 0},J)),O&&B&&v.jsx(LC,{yAxisId:"1",x1:O.formattedDate,x2:B.formattedDate})]})}),v.jsx(x0e,{visitsGroups:e,ref:_})]})]})},P0e=({ranges:e,value:t,setValue:n})=>v.jsxs(Qe,{buttonContent:"Paginate",buttonVariant:"link",buttonClassName:"[&]:p-0",buttonSize:"sm",menuAlignment:"right",children:[e.map(r=>v.jsxs(Qe.Item,{selected:r===t,onClick:()=>n(r),children:[v.jsx("b",{children:r})," items per page"]},r)),v.jsx(Qe.Separator,{}),v.jsx(Qe.Item,{disabled:t===1/0,onClick:()=>n(1/0),children:v.jsx("i",{children:"Clear pagination"})})]}),XR=e=>typeof e!="string"||e.startsWith("hidden_"),M0e=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:a})=>{const s=T.useMemo(()=>Object.entries(e).map(([p,b])=>{const _=n?.[p]??0,w=t?.[p]??0,x=XR(p);return{name:p,amount:Math.max(b,w),nonHighlightedAmount:x?null:b-_,highlightedAmount:x?null:_,prevAmount:x?null:w}}),[e,t,n]),u=T.useMemo(()=>{const p=s.reduce((b,{name:_})=>b>_.length?b:_.length,0);return Math.min(150,p*7)},[s]),{ChartWrapper:d,dimensions:f,wrapperDimensions:m}=f3(Math.max(300,s.length*(t?44:22)));return v.jsx(d,{...m,children:v.jsxs(Tpe,{layout:"vertical",data:s,barCategoryGap:3,...f,children:[v.jsx(Ly,{type:"number",dataKey:"amount",tickFormatter:On,domain:i?[0,i]:void 0}),v.jsx(Dy,{type:"category",dataKey:"name",width:u,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>XR(p)?"":p}),v.jsx(IC,{strokeOpacity:Qo()?.05:.9}),v.jsx(vC,{filterNull:!0,...s9,formatter:(p,b)=>[On(p),b==="highlightedAmount"?r:b==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),v.jsx(_g,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:yh(),onClick:({name:p})=>p&&a?.(p),children:s.map(p=>v.jsx(cl,{fill:UK(),stroke:yh(),strokeWidth:2},p.name))}),n&&v.jsx(_g,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:Dx,onClick:({name:p})=>p&&a?.(p),children:s.map(p=>v.jsx(cl,{fill:BK,stroke:Dx,strokeWidth:2},p.name))}),t&&v.jsx(_g,{dataKey:"prevAmount",fill:Pv(),children:s.map(p=>v.jsx(cl,{fill:y0e(),stroke:Pv(),strokeWidth:2},p.name))})]})})},R0e=e=>typeof e=="string"?e.toLowerCase():e,N0e=([e])=>e,L0e=([,e])=>e,ag=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:a,withPagination:s=!0,...u})=>{const[d,f]=T.useState({}),[m,p]=T.useState(1),[b,_]=T.useState(50),w=T.useCallback((X,oe)=>{const ee=Object.entries(X),J=d.field?cX(ee,([ne,he])=>R0e(d.field===Object.keys(oe)[0]?ne:he)):ee;return!d.dir||d.dir==="ASC"?J:[...J].reverse()},[d.dir,d.field]),x=T.useCallback(X=>{const oe=X[m-1];if(m<X.length)return oe;const ee=X[0].length;return[...oe,...zw(ee-oe.length,J=>[`hidden_${J}`,0])]},[m]),A=T.useCallback(X=>v.jsx(Zv,{currentPage:m,pagesCount:X,onPageChange:p}),[m]),C=T.useCallback((X,oe,ee,J)=>{const ne=w(X,oe),he=ne.map(N0e),Q=ee&&Object.entries({...rO(he,he.map(()=>0)),...ee}),se=J&&Object.entries({...rO(he,he.map(()=>0)),...J});if(ne.length<=b)return{currentPageStats:Object.fromEntries(ne),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:se&&Object.fromEntries(se)};const Y=Yc(ne,b),U=Q&&Yc(Q,b),I=se&&Yc(se,b);return{currentPageStats:Object.fromEntries(x(Y)),currentPageHighlightedStats:U&&Object.fromEntries(x(U)),currentPagePrevStats:I&&Object.fromEntries(x(I)),pagination:A(Y.length),max:SK(Math.max(...ne.map(L0e)))}},[x,w,b,A]),{currentPageStats:j,currentPagePrevStats:O,currentPageHighlightedStats:N,pagination:B,max:V}=T.useMemo(()=>C(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[C,n,t,i,e]),Z=T.useMemo(()=>Object.keys(j),[j]);return v.jsx(i9,{title:v.jsxs(c3,{children:[r,v.jsxs("div",{className:"flex items-center gap-3",children:[a?.(B?Z:void 0),s&&Object.keys(e).length>50&&v.jsx(P0e,{ranges:[50,100,200,500],value:b,setValue:X=>{_(X),p(1)}}),v.jsx(Vh,{buttonVariant:"link",menuAlignment:"right",buttonSize:"sm",buttonClassName:"[&]:p-0",items:i,order:d,onChange:X=>{f(X),p(1)}})]})]}),footer:B&&v.jsx("div",{className:"flex justify-around items-center","data-testid":"chart-paginator",children:B}),children:v.jsx(M0e,{stats:j,prevStats:O,highlightedStats:N,max:V,...u})})},h3=e=>e.type!==void 0,D0e=e=>e.type!==void 0,k0e=e=>{const t=dL(e,n=>h3(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},f9=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:a,visit:s})=>a&&fh(a,t,n)&&sm(s.date,i,r)),d9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>i&&xge(i,t)&&sm(a.date,r,n)),h9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>i?.tags.includes(t)&&sm(a.date,r,n)),og=(e,t)=>fL(e,n=>n[t]),I0e=e=>{const t=(e?.startDate&&Tl(e?.startDate))??void 0,n=(e?.endDate&&Tl(e?.endDate))??void 0;return{startDate:t,endDate:n}},B2=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=I0e(t),i=e?.excludeBots||void 0;return{startDate:n,endDate:r,excludeBots:i}},U0e=e=>HI(e.dateRange),B0e=({dateRange:e,...t})=>({...t,dateRange:Oye(e)}),QR=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&Tl(t[e])||""},m9=()=>{const e=eo(),t=wf(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:a,loadPrevInterval:s,...u}=t,d=T.useMemo(()=>({dateRange:n!=null||r!=null?$I(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:a!==void 0?a==="true":void 0},loadPrevInterval:s!==void 0?s==="true":void 0}),[r,a,s,i,n]),f=T.useCallback(m=>{const{dateRange:p,visitsFilter:b={},loadPrevInterval:_}=Sf(d,m),{excludeBots:w,orphanVisitsType:x}=b,A={...u,startDate:QR("startDate",p),endDate:QR("endDate",p),excludeBots:w===void 0?void 0:Hx(w),orphanVisitsType:x,loadPrevInterval:_===void 0?void 0:Hx(_)},C=Pw(A),j=C?`?${C}`:"";e(j,{replace:!0,relative:"route"})},[d,e,u]);return[d,f]},z0e=()=>v.jsx(Gpe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),F0e=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}},p9=({toggle:e,isOpen:t,title:n,locations:r=[]})=>v.jsx(to,{open:t,onClose:e,title:n,variant:"cover",children:v.jsxs(Vpe,{...F0e(r),className:"h-full w-full",children:[v.jsx(z0e,{}),r.map(({cityName:i,latLong:a,count:s},u)=>v.jsx(qpe,{position:a,children:v.jsxs(Hpe,{children:[v.jsx("b",{children:s})," visit",s>1?"s":""," from ",v.jsx("b",{children:i})]})},u))]})}),$0e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const{flag:r,setToTrue:i,setToFalse:a}=Sn(),[s,u]=T.useState([]),d=T.useCallback(f=>{u(f?n.filter(f):n),i()},[n,i]);return v.jsxs(v.Fragment,{children:[!t&&v.jsx(Kv,{onClick:()=>d(),"aria-label":"Show in map",title:"Show in map",className:"[&]:p-0",children:v.jsx(We,{icon:dx})}),t&&v.jsxs(Qe,{buttonContent:v.jsx(We,{icon:dx,title:"Show in map"}),buttonLabel:"Show in map",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",caretless:!0,children:[v.jsx(Qe.Item,{onClick:()=>d(),children:"Show all locations"}),v.jsx(Qe.Item,{onClick:()=>d(({cityName:f})=>t.includes(f)),children:"Show locations in current page"})]}),v.jsx(p9,{toggle:a,isOpen:r,title:e,locations:s})]})},g9=({onChange:e,selected:t={},isOrphanVisits:n=!1,withPrevInterval:r=!1,disabled:i})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:u=!1}=t,d=p=>({selected:a===p,onClick:()=>e({...t,orphanVisitsType:p===a?void 0:p})}),f=T.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),m=T.useCallback(()=>e({...t,loadPrevInterval:!u}),[u,e,t]);return v.jsxs(Qe,{buttonDisabled:i,buttonContent:"More",buttonClassName:"w-full",menuAlignment:"right",children:[r&&v.jsxs(v.Fragment,{children:[v.jsx(Qe.Item,{selected:u,onClick:m,children:"Compare with previous period"}),v.jsx(Qe.Separator,{})]}),v.jsx(Qe.Title,{children:"Bots:"}),v.jsx(Qe.Item,{selected:s,onClick:f,children:"Exclude potential bots"}),n&&v.jsxs(v.Fragment,{children:[v.jsx(Qe.Separator,{}),v.jsx(Qe.Title,{children:"Orphan visits type:"}),v.jsx(Qe.Item,{...d("base_url"),children:"Base URL"}),v.jsx(Qe.Item,{...d("invalid_short_url"),children:"Invalid short URL"}),v.jsx(Qe.Item,{...d("regular_404"),children:"Regular 404"})]}),v.jsx(Qe.Separator,{}),v.jsx(Qe.Item,{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:v.jsx("i",{children:"Reset to defaults"})})]})},V0e=({className:e,value:t,...n})=>{const r=Math.min(100,Math.max(0,t));return v.jsx("div",{className:Ne("flex h-4 bg-gray-100 overflow-hidden rounded-md",e),...n,children:v.jsx("div",{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r,className:"bg-lm-brand dark:bg-dm-brand transition-[width]",style:{width:`${r}%`}})})},v9=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return v.jsxs(v.Fragment,{children:[t&&r===null&&v.jsx(Vo,{loading:!0}),t&&r!==null&&v.jsxs(Vo,{loading:!0,children:["This is going to take a while... :S",v.jsx(V0e,{value:r,className:"mt-4"})]}),n&&v.jsx(Fr,{variant:"error",children:v.jsx(Qa,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},xg=({children:e,showFallback:t})=>v.jsxs(v.Fragment,{children:[t&&v.jsx(Vo,{children:"There are no visits matching current filter"}),!t&&v.jsx(v.Fragment,{children:e})]}),q0e=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,{flag:r,setToTrue:i}=Sn();return v.jsx(Mt,{title:v.jsx("span",{className:"text-danger font-bold text-base",children:"Danger zone"}),children:v.jsxs(c3,{children:[v.jsxs("dl",{className:"m-0 mr-3",children:[v.jsx("dt",{children:"Delete visits."}),v.jsxs("dd",{className:"m-0",children:["This will delete ",v.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&v.jsx(Rt,{variant:"danger",solid:!0,className:"whitespace-nowrap",onClick:i,children:"Delete visits"}),r&&v.jsxs(Rt,{solid:!0,variant:"danger",disabled:n,className:"whitespace-nowrap",onClick:t,autoFocus:!0,children:[!n&&v.jsx(v.Fragment,{children:"Click again to confirm"}),n&&v.jsx(v.Fragment,{children:"Deleting..."})]})]})})},sg="Others",H0e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],G0e=e=>{if(!mu(e))return{browser:sg,os:sg};const{browser:{name:t},os:{name:n}}=Qpe.parse(e);return{os:n??sg,browser:t&&H0e.includes(t)?t:sg}},W0e=e=>mu(e)?e.split("/")[e.includes("://")?2:0]?.split(":")[0]??"":"Direct",y9=(e,t)=>e[t]!==void 0,JR=e=>typeof e=="number"?e:e?parseFloat(e):0,Y0e=(e,{os:t})=>{e[t]=(e[t]||0)+1},K0e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},Z0e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},b9=e=>(t,n)=>{const r=y9(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},X0e=b9("country"),Q0e=b9("city"),J0e=(e,t)=>{if(!y9(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,a=e[n]||{cityName:n,count:0,latLong:[JR(r),JR(i)]};a.count+=1,e[n]=a},e1e=(e,t)=>{if(!D0e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},z2=e=>e.reduce((t,n)=>(Y0e(t.os,n),K0e(t.browsers,n),Z0e(t.referrers,n),X0e(t.countries,n),Q0e(t.cities,n),J0e(t.citiesForMap,n),e1e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),Mv=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:a,potentialBot:s}=t;return{date:r,potentialBot:s,userAgent:n,...G0e(n),referer:W0e(i),country:a?.countryName||"Unknown",region:a?.regionName||"Unknown",city:a?.cityName||"Unknown",latitude:a?.latitude,longitude:a?.longitude,visitedUrl:t.visitedUrl,type:h3(t)?t.type:void 0}}),t1e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:Mv,processStatsFromVisits:z2},Symbol.toStringTag,{value:"Module"})),ih=20,n1e=({browser:e,os:t,referer:n,country:r,city:i,userAgent:a,...s},u,d)=>{const f=d?a:`${r} ${i}`;return`${e} ${t} ${n} ${f} ${s.visitedUrl}`.toLowerCase().includes(u.toLowerCase())},r1e=(e,t,n)=>t.filter(r=>n1e(r,e,n)),i1e=(e,t)=>NN(t,e),a1e=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?r1e(t,e,r):[...e],a=i1e(n,i),s=a.length;return{visitsGroups:Yc(a,ih),total:s}},fa="cursor-pointer md:sticky-cell-separated md:top-[calc(var(--header-height)+41px)]",o1e=()=>{const{anchor:e,tooltip:t}=no({placement:"right"});return v.jsxs(v.Fragment,{children:[v.jsx(We,{icon:Q5,...e}),v.jsx(ro,{...t,children:"Potentially a visit from a bot or crawler"})]})},s1e=({visits:e,selectedVisits:t=[],setSelectedVisits:n})=>{const[r,i]=T.useState(),a=T.useCallback(N=>{i(N),b(1),n([])},[n]),[s,u]=T.useState({}),d=kn("visitsList"),f=T.useMemo(()=>Sf(iy,d?.columns??{}),[d?.columns]),m=T.useMemo(()=>a1e({visits:e,searchTerm:r,order:s,searchInRawUserAgent:f.userAgent}),[e,r,s,f.userAgent]),[p,b]=T.useState(1),_=p*ih,w=_-ih,x=T.useMemo(()=>f.visitedUrl?m.visitsGroups.length===0||!!m.visitsGroups[p-1]?.[0]?.visitedUrl:!1,[f.visitedUrl,p,m.visitsGroups]),A=6+Number(x)+(f.userAgent?1:2),C=m.total>0,j=N=>u(Mw({currentField:s.field,currentOrderDir:s.dir,newField:N})),O=N=>v.jsx(dh,{currentOrder:s,field:N,className:"float-right mt-[5px] ml-[5px]"});return v.jsx(Mt,{bodyClassName:"[&]:p-0 [&]:pb-1",title:"Visits list",children:v.jsxs(Ke,{responsive:!1,size:"sm",className:"w-full relative overflow-y-hidden bg-lm-primary dark:bg-dm-primary",header:v.jsxs(v.Fragment,{children:[v.jsxs(Ke.Row,{children:[v.jsxs(Ke.Cell,{className:Ne(fa,"[&]:text-center"),onClick:()=>n(t.length<m.total?m.visitsGroups.flat():[]),children:[v.jsx("span",{className:"sr-only",children:"Is selected"}),v.jsx(We,{icon:Tu,className:Ne({"text-lm-brand dark:text-dm-brand":t.length>0})})]}),f.potentialBot&&v.jsxs(Ke.Cell,{className:Ne(fa,"[&]:text-center"),onClick:()=>j("potentialBot"),children:[v.jsx("span",{className:"sr-only",children:"Is bot"}),v.jsx(We,{icon:Q5}),O("potentialBot")]}),f.date&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("date"),children:["Date",O("date")]}),f.country&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("country"),children:["Country",O("country")]}),f.region&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("region"),children:["Region",O("region")]}),f.city&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("city"),children:["City",O("city")]}),f.userAgent&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("userAgent"),children:["User agent",O("userAgent")]}),f.browser&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("browser"),children:["Browser",O("browser")]}),f.browser&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("os"),children:["OS",O("os")]}),f.referer&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("referer"),children:["Referrer",O("referer")]}),x&&v.jsxs(Ke.Cell,{className:fa,onClick:()=>j("visitedUrl"),children:["Visited URL",O("visitedUrl")]})]}),v.jsx(Ke.Row,{children:v.jsx(Ke.Cell,{colSpan:A,className:"[&]:p-0",children:v.jsx(xf,{size:"md",borderless:!0,onChange:a})})})]}),footer:m.total>ih?v.jsx(Ke.Row,{children:v.jsx(Ke.Cell,{type:"td",colSpan:A,className:"md:sticky-cell-separated bottom-0",children:v.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 p-1",children:[v.jsx(Zv,{pagesCount:Math.ceil(m.total/ih),currentPage:p,onPageChange:b}),v.jsxs("div",{children:["Visits ",v.jsx("b",{children:On(w+1)})," to"," ",v.jsx("b",{children:On(Math.min(_,m.total))})," of"," ",v.jsx("b",{children:On(m.total)})]})]})})}):void 0,children:[!C&&v.jsx(Ke.Row,{children:v.jsx(Ke.Cell,{colSpan:A,className:"text-center",children:"There are no visits matching current filter"})}),m.visitsGroups[p-1]?.map((N,B)=>{const V=t.includes(N);return v.jsxs(Ke.Row,{className:Ne("cursor-pointer",V&&["bg-lm-table-highlight hover:[&]:bg-lm-table-highlight","dark:bg-dm-table-highlight dark:hover:[&]:bg-dm-table-highlight"]),onClick:()=>n(V?t.filter(Z=>Z!==N):[...t,N]),children:[v.jsx(Ke.Cell,{className:"text-center",children:V&&v.jsx(We,{icon:Tu,className:"text-lm-brand dark:text-dm-brand"})}),f.potentialBot&&v.jsx(Ke.Cell,{className:"text-center",children:N.potentialBot&&v.jsx(o1e,{})}),f.date&&v.jsx(Ke.Cell,{children:v.jsx(Tv,{date:N.date})}),f.country&&v.jsx(Ke.Cell,{children:N.country}),f.region&&v.jsx(Ke.Cell,{children:N.region}),f.city&&v.jsx(Ke.Cell,{children:N.city}),f.userAgent&&v.jsx(Ke.Cell,{children:N.userAgent}),f.browser&&v.jsx(Ke.Cell,{children:N.browser}),f.os&&v.jsx(Ke.Cell,{children:N.os}),f.referer&&v.jsx(Ke.Cell,{children:N.referer}),x&&v.jsx(Ke.Cell,{children:N.visitedUrl??""})]},B)})]})})},nl={byTime:{title:"By time",subPath:"by-time",icon:R$},byContext:{title:"By context",subPath:"by-context",icon:uw},byLocation:{title:"By location",subPath:"by-location",icon:dx},list:{title:"List",subPath:"list",icon:lw},options:{title:"Options",subPath:"options",icon:W5,shouldRender:({deletion:e})=>!!e}};Object.freeze(nl);const ax=({display:e})=>e&&v.jsx("div",{className:"mx-auto w-3/4",children:v.jsx(Mt,{children:v.jsxs("div",{className:"flex gap-2",children:[v.jsx(We,{icon:fV,className:"mt-1"}),v.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})}),um=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:a,exportCsv:s,isOrphanVisits:u=!1}=e,{visits:d,prevVisits:f,loading:m,errorData:p,fallbackInterval:b}=n,[{dateRange:_,visitsFilter:w,loadPrevInterval:x},A]=m9(),C=kn("visits"),[j,O]=T.useState(),N=T.useCallback(({startDate:G,endDate:le},q)=>{A({dateRange:{startDate:G??void 0,endDate:le??void 0}}),O(q)},[A]),[B,V]=T.useState(b??C?.defaultInterval??"last30Days"),[Z,X]=T.useState([]),[oe,ee]=T.useState(),J=T.useRef(!0),{search:ne}=xr(),he=T.useCallback(G=>G?`../${G}${ne}`:ne,[ne]),Q=T.useMemo(()=>Mv(d),[d]),se=T.useMemo(()=>f&&Mv(f),[f]),{os:Y,browsers:U,referrers:I,countries:z,cities:M,citiesForMap:D,visitedUrls:W}=T.useMemo(()=>z2(Q),[Q]),H=T.useMemo(()=>z2(se??[]),[se]),re=T.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],se&&["Previous period",Object.assign(se,{type:"previous"})],Z.length>0&&[oe??"Selected",Object.assign(Z,{type:"highlighted"})]].filter(Boolean)),[oe,Z,se,Q]),ue=T.useMemo(()=>({...w,excludeBots:w.excludeBots??C?.excludeBots,loadPrevInterval:x??C?.loadPrevInterval}),[x,w,C?.excludeBots,C?.loadPrevInterval]),ce=T.useMemo(()=>Object.values(D),[D]),ve=T.useRef(void 0),k=T.useCallback(G=>{ve.current=void 0,X(G)},[]),F=T.useCallback((G,le)=>{const q=`${G}_${le}`;ve.current===q?(X([]),ee(void 0),ve.current=void 0):(X(Q.filter(ae=>ae[G]===le)),ee(le),ve.current=q)},[Q]);return T.useEffect(()=>i,[i]),T.useEffect(()=>{const G=_??qI(B),{loadPrevInterval:le,...q}=ue,ae={doIntervalFallback:J.current,loadPrevInterval:le};r({dateRange:G,filter:q},ae),k([]),J.current=!1},[B,_,r,ue,k]),T.useEffect(()=>{b&&B===(C?.defaultInterval??"last30Days")&&V(b)},[B,b,C?.defaultInterval]),v.jsxs("div",{className:"flex flex-col gap-y-4",children:[t,v.jsxs("section",{className:"flex flex-col lg:flex-row-reverse gap-4",children:[v.jsxs("div",{className:"lg:flex-3 flex flex-col md:flex-row gap-x-2 gap-y-4",children:[v.jsx("div",{className:"grow",children:v.jsx(a3,{disabled:m,dateRangeOrInterval:j??_??B,defaultText:"All visits",onDatesChange:N})}),v.jsx(g9,{disabled:m,isOrphanVisits:u,withPrevInterval:!0,selected:ue,onChange:({loadPrevInterval:G,...le})=>A({visitsFilter:le,loadPrevInterval:G})})]}),v.jsx("div",{className:"lg:flex-2 xl:flex-3 flex gap-2",children:d.length>0&&v.jsxs(v.Fragment,{children:[v.jsx(OI,{className:"max-lg:w-full",amount:Q.length,onClick:()=>s(Q)}),v.jsxs(Rt,{variant:"secondary",solid:Z.length>0&&!Qo(),disabled:Z.length===0,className:"max-lg:w-full",onClick:()=>k([]),children:["Clear selection ",Z.length>0&&v.jsxs(v.Fragment,{children:["(",On(Z.length),")"]})]})]})})]}),v.jsxs("section",{className:"flex flex-col gap-4",children:[v.jsx(v9,{info:n}),!m&&!p&&v.jsxs(v.Fragment,{children:[v.jsx(il,{fill:!0,className:"sticky top-(--header-height) z-2",children:Object.values(nl).map(({title:G,icon:le,subPath:q,shouldRender:ae},fe)=>!ae||ae(e)?v.jsxs(il.Pill,{to:he(q),replace:!0,children:[v.jsx(We,{icon:le}),v.jsx("span",{className:"ml-2 max-lg:sr-only",children:G})]},fe):void 0).filter(Boolean)}),v.jsxs(Lv,{children:[v.jsx(gt,{path:nl.byTime.subPath,element:v.jsxs(xg,{showFallback:d.length===0,children:[v.jsx("div",{"data-testid":"line-chart-container",children:v.jsx(c9,{visitsGroups:re,setSelectedVisits:k,onDateRangeChange:N})}),v.jsx(ax,{display:!!ue.loadPrevInterval&&!f})]})}),v.jsx(gt,{path:nl.byContext.subPath,element:v.jsxs(xg,{showFallback:d.length===0,children:[v.jsxs("div",{className:Ne("grid grid-cols-1 gap-4",{"lg:grid-cols-2":u,"xl:grid-cols-3":!u}),children:[v.jsx(KR,{title:"Operating systems",stats:Y,prevStats:H.os}),v.jsx(KR,{title:"Browsers",stats:U,prevStats:H.browsers}),v.jsx(ag,{title:"Referrers",withPagination:!1,stats:I,prevStats:H.referrers,highlightedStats:og(Z,"referer"),highlightedLabel:oe,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:G=>F("referer",G)}),u&&v.jsx(ag,{title:"Visited URLs",stats:W,prevStats:H.visitedUrls,highlightedStats:og(Z,"visitedUrl"),highlightedLabel:oe,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:G=>F("visitedUrl",G)})]}),v.jsx(ax,{display:!!ue.loadPrevInterval&&!f})]})}),v.jsx(gt,{path:nl.byLocation.subPath,element:v.jsxs(xg,{showFallback:d.length===0,children:[v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[v.jsx(ag,{title:"Countries",stats:z,prevStats:H.countries,highlightedStats:og(Z,"country"),highlightedLabel:oe,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:G=>F("country",G)}),v.jsx(ag,{title:"Cities",stats:M,prevStats:H.cities,highlightedStats:og(Z,"city"),highlightedLabel:oe,extraHeaderContent:G=>ce.length>0&&v.jsx($0e,{modalTitle:"Cities",locations:ce,activeCities:G}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:G=>F("city",G)})]}),v.jsx(ax,{display:!!ue.loadPrevInterval&&!f})]})}),v.jsx(gt,{path:nl.list.subPath,element:v.jsx(s1e,{visits:Q,selectedVisits:Z,setSelectedVisits:k})}),a&&v.jsx(gt,{path:nl.options.subPath,element:v.jsx(q0e,{...a})}),v.jsx(gt,{path:"*",element:v.jsx(Z2,{replace:!0,to:he(nl.byTime.subPath)})})]})]})]})]})},_9=Ta(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Pn(_9),{domain:i=""}=vf(),[a,s=a]=i.split("_"),u=T.useCallback((f,m)=>e({domain:s,options:m,params:f}),[s,e]),d=T.useCallback(f=>r.exportVisits(`domain_${a}_visits.csv`,f),[a,r]);return v.jsx(um,{getVisits:u,cancelGetVisits:n,visitsInfo:t,exportCsv:d,children:v.jsx(lm,{visits:t.visits,title:`"${a}" visits`})})},()=>[ea.visits]),l1e=Mn(_9,["ReportExporter"]),x9=Ta(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Pn(x9),i=T.useCallback(s=>r.exportVisits("non_orphan_visits.csv",s),[r]),a=T.useCallback((s,u)=>e({options:u,params:s}),[e]);return v.jsx(um,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:v.jsx(lm,{title:"Non-orphan visits",visits:t.visits})})},()=>[ea.visits]),u1e=Mn(x9,["ReportExporter"]),w9=Ta(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const a=Qi("orphanVisitsDeletion"),{ReportExporter:s}=Pn(w9),u=T.useCallback(m=>s.exportVisits("orphan_visits.csv",m),[s]),d=T.useCallback((m,p)=>e({options:p,params:m,orphanVisitsType:m.filter?.orphanVisitsType}),[e]),f=T.useMemo(()=>a?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,a]);return v.jsx(um,{getVisits:d,cancelGetVisits:n,visitsInfo:t,exportCsv:u,deletion:f,isOrphanVisits:!0,children:v.jsx(lm,{title:"Orphan visits",visits:t.visits})})},()=>[ea.orphanVisits]),c1e=Mn(w9,["ReportExporter"]),e5=5e3,f1e=2,d1e=4,h1e=({currentPage:e,pagesCount:t})=>e>=t,m1e=(e,t)=>t*100/e,S9=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(s,u)=>Promise.all(u.map(async d=>e({...s,page:d,itemsPerPage:e5}).then(({data:f})=>f))).then(d=>d.flat()),a=async(s,u,d=0)=>{if(t())return[];const f=await i(s,u[d]);return n(m1e(u.length,d+1)),d<u.length-1?f.concat(await a(s,u,d+1)):f};return async s=>{const{pagination:u,data:d}=await e({...s,page:1,itemsPerPage:e5});if(h1e(u))return d;const f=mL(f1e,u.pagesCount+1),m=Yc(f,r);return u.pagesCount-1>r&&n(0),d.concat(await a(s,m))}},cm=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),fm=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=dn(`${e}/progressChanged`),i=dn(`${e}/fallbackToInterval`),a=Yn(e,async(s,{getState:u,dispatch:d})=>{const{params:f,options:m}=s,{visitsLoader:p,lastVisitLoader:b}=t(s),_=jye(f.dateRange),w=B2(f),x=m.loadPrevInterval&&U0e(f)?B2(B0e(f)):void 0,A=d1e/(x?2:1),C=x?{main:0,prev:0}:{main:0},j=(Z,X)=>{C[Z]=X;const oe=Object.values(C),ee=oe.reduce((J,ne)=>J+ne,0);d(r(ee/oe.length))},O=S9({visitsLoader:p,shouldCancel:()=>n(u),progressChanged:Z=>j("main",Z),batchSize:A}),[N,B,V]=await Promise.all([O(w),b(f.filter?.excludeBots),x?O(x).then(Z=>Z.map(X=>{if(_===void 0)return X;const{date:oe,...ee}=X,J=qw(wi(oe),_);return{...ee,date:Tl(J)}})):Promise.resolve(void 0)]);return!N.length&&B&&d(i(Tye(B.date))),{...s,visits:N,prevVisits:V}});return Object.assign(a,{progressChanged:r,fallbackToInterval:i})},dm=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:a,rejected:s,fulfilled:u,progressChanged:d,fallbackToInterval:f}=t,{reducer:m,actions:p}=Nt({name:e,initialState:n,reducers:{cancelGetVisits:_=>({..._,cancelLoad:!0})},extraReducers:_=>{_.addCase(a,()=>({...n,loading:!0})),_.addCase(s,(w,{error:x})=>({...n,errorData:Li(x)??null})),_.addCase(u,(w,{payload:x})=>({...w,...x,loading:!1,progress:null,errorData:null})),_.addCase(d,(w,{payload:x})=>({...w,progress:x})),_.addCase(f,(w,{payload:x})=>({...w,fallbackInterval:x})),_.addCase(Lf,(w,{payload:x})=>{const{visits:A}=w,C=r(w,x.createdVisits).map(({visit:j})=>j);return C.length?{...w,visits:[...C,...A]}:w}),i?.(_)}}),{cancelGetVisits:b}=p;return{reducer:m,cancelGetVisits:b}},C9="shlink/domainVisits",p1e={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},g1e=e=>fm({typePrefix:`${C9}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=u=>r.getDomainVisits(t,u),s=cm(i,u=>r.getDomainVisits(t,u));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().domainVisits.cancelLoad}),v1e=e=>dm({name:C9,initialState:p1e,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>d9(r,t,n?.dateRange)}),E9="shlink/orphanVisits",y1e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},b1e=e=>fm({typePrefix:`${E9}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async s=>n.getNonOrphanVisits(s),a=cm(r,s=>n.getNonOrphanVisits(s));return{visitsLoader:i,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),_1e=e=>dm({name:E9,initialState:y1e,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=t?.dateRange??{};return n.filter(({visit:a})=>sm(a.date,r,i))}}),A9="shlink/orphanVisits",x1e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},w1e=(e,t)=>!t||t===e.type,S1e=({data:e,...t},n)=>{const r=e.filter(i=>h3(i)&&w1e(i,n));return{...t,data:r}},C1e=e=>fm({typePrefix:`${A9}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=async u=>r.getOrphanVisits({...u,type:t}).then(d=>S1e(d,t)),s=cm(i,u=>r.getOrphanVisits(u));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().orphanVisits.cancelLoad}),E1e=(e,t)=>dm({name:A9,initialState:x1e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:a}=n?.dateRange??{};return r.filter(({visit:s,shortUrl:u})=>!u&&sm(s.date,i,a))}}),T9="shlink/orphanVisitsDeletion",t5={deletedVisits:0,deleting:!1,error:!1},A1e=e=>Yn(`${T9}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),T1e=e=>Nt({name:T9,initialState:t5,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:Li(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...t5,deletedVisits:i}})}}),O9="shlink/shortUrlVisits",O1e={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},j1e=e=>fm({typePrefix:`${O9}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:a=!1}=r,s=d=>i.getShortUrlVisits({shortCode:t,domain:n},d),u=cm(a,d=>i.getShortUrlVisits({shortCode:t,domain:n},d));return{visitsLoader:s,lastVisitLoader:u}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),P1e=(e,t)=>dm({name:O9,initialState:O1e,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)=>f9(a,{shortCode:n,domain:r},i?.dateRange)}),j9="shlink/shortUrlVisitsDeletion",n5={shortCode:"",deletedVisits:0,deleting:!1,error:!1},M1e=e=>Yn(`${j9}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits({shortCode:t,domain:n}),shortCode:t,domain:n})),R1e=e=>Nt({name:j9,initialState:n5,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:Li(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:a,deletedVisits:s}=r;return{...n5,shortCode:i,domain:a,deletedVisits:s}})}}),P9="shlink/tagVisits",N1e={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},L1e=e=>fm({typePrefix:`${P9}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=u=>r.getTagVisits(t,u),s=cm(i,async u=>r.getTagVisits(t,u));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().tagVisits.cancelLoad}),D1e=e=>dm({name:P9,initialState:N1e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>h9(r,t,n?.dateRange)}),M9="shlink/visitsOverview",lg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},r5=e=>e.filter(({visit:t})=>t.potentialBot).length,k1e=e=>Yn(`${M9}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:t?.total??n,nonBots:t?.nonBots,bots:t?.bots},orphanVisits:{total:r?.total??i,nonBots:r?.nonBots,bots:r?.bots}}))),I1e=e=>Nt({name:M9,initialState:lg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...lg,loading:!0})),t.addCase(e.rejected,()=>({...lg,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...lg,...r})),t.addCase(Lf,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:a})=>{const{nonOrphanVisits:s,orphanVisits:u}=k0e(a.createdVisits),d=s.length,f=r5(s),m=d-f,p=u.length,b=r5(u),_=p-b;return{...i,nonOrphanVisits:{total:n.total+d,bots:n.bots&&n.bots+f,nonBots:n.nonBots&&n.nonBots+m},orphanVisits:{total:r.total+p,bots:r.bots&&r.bots+b,nonBots:r.nonBots&&r.nonBots+_}}})}}),U1e=({shortUrl:e})=>{const{anchor:t,tooltip:n}=no({placement:"bottom"});return e?v.jsxs("span",{children:[v.jsx("b",{className:"cursor-default",...t,children:v.jsx(Tv,{date:e.dateCreated,relative:!0})}),v.jsx(ro,{...n,children:v.jsx(Tv,{date:e.dateCreated})})]}):v.jsx("small",{children:"Loading..."})},B1e=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=e?.shortUrl??"",a=e?.longUrl??"",s=e?.title;return v.jsxs(lm,{title:v.jsxs(v.Fragment,{children:["Visits for ",v.jsx(Ei,{href:i})]}),visits:r,shortUrl:e,children:[v.jsx("hr",{}),v.jsxs("div",{children:["Created: ",v.jsx(U1e,{shortUrl:e})]}),v.jsxs("div",{"data-testid":"long-url-container",children:[`${s?"Title":"Long URL"}: `,t&&v.jsx("small",{children:"Loading..."}),!t&&v.jsx(Ei,{href:a,children:s??a})]})]})},R9=Ta(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:a,cancelGetShortUrlVisits:s})=>{const u=Qi("shortUrlVisitsDeletion"),{ReportExporter:d}=Pn(R9),f=e3(),m=T.useMemo(()=>n.shortUrls?.get(f),[f,n.shortUrls]),p=T.useCallback((w,x)=>r({...f,options:x,params:w}),[r,f]),b=T.useCallback(w=>d.exportVisits(`short-url_${m?.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,w),[d,m?.shortUrl]),_=T.useMemo(()=>u?{deleteVisits:()=>a(f),visitsDeletion:t}:void 0,[a,f,t,u]);return T.useEffect(()=>{i([f])},[f,i]),v.jsx(um,{getVisits:p,cancelGetVisits:s,visitsInfo:e,exportCsv:b,deletion:_,children:v.jsx(B1e,{shortUrl:m,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[ea.shortUrlVisits(ZC(e.shortCode))]:[]),z1e=Mn(R9,["ReportExporter"]),F1e=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return v.jsx(lm,{title:v.jsxs("span",{className:"flex items-center justify-center",children:[v.jsx("span",{className:"mr-2",children:"Visits for"}),v.jsx(i3,{text:r,colorGenerator:t})]}),visits:n})},N9=Ta(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Pn(N9),{tag:a=""}=vf(),s=T.useCallback((d,f)=>e({tag:a,params:d,options:f}),[e,a]),u=T.useCallback(d=>i.exportVisits(`tag_${a}_visits.csv`,d),[i,a]);return v.jsx(um,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:u,children:v.jsx(F1e,{tagVisits:t,colorGenerator:r})})},()=>[ea.visits]),$1e=Mn(N9,["ColorGenerator","ReportExporter"]),m3=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:a,visitsGroups:s}=r,u=kn("visits"),d=T.useMemo(()=>Object.keys(s).reduce((j,O,N)=>(j[O]=Object.assign(Mv(s[O]),{color:t?.[O]??l9(N)}),j),{}),[t,s]),f=T.useMemo(()=>Object.values(s).every(j=>j.length===0),[s]),[{dateRange:m,visitsFilter:p},b]=m9(),[_,w]=T.useState(),x=T.useCallback(({startDate:j,endDate:O},N)=>{b({dateRange:{startDate:j??void 0,endDate:O??void 0}}),w(N)},[b]),[A]=T.useState(()=>m??u?.defaultInterval??"last30Days"),C=T.useMemo(()=>({...p,excludeBots:p.excludeBots??u?.excludeBots}),[p,u?.excludeBots]);return T.useEffect(()=>{const j=m??qI(A);return n({params:{dateRange:j,filter:C}}),i},[i,m,n,A,C]),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsxs(Mt,{bodyClassName:"flex items-center",children:[v.jsx($y,{}),v.jsx("h3",{className:"grow text-center",children:e})]}),v.jsxs("div",{className:"flex flex-col lg:flex-row-reverse gap-4",children:[v.jsxs("div",{className:"lg:flex-3 flex flex-col md:flex-row gap-x-2 gap-y-4",children:[v.jsx("div",{className:"grow",children:v.jsx(a3,{disabled:a,defaultText:"All visits",dateRangeOrInterval:_??m??A,onDatesChange:x})}),v.jsx(g9,{disabled:a,selected:C,onChange:({orphanVisitsType:j,excludeBots:O})=>b({visitsFilter:{orphanVisitsType:j,excludeBots:O}})})]}),v.jsx("div",{className:"hidden lg:block lg:flex-2 xl:flex-3"})]}),v.jsx(v9,{info:r}),!a&&v.jsx(xg,{showFallback:f,children:v.jsx(c9,{visitsGroups:d,onDateRangeChange:x})})]})},V1e=Ta(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=l3("domains"),i=T.useCallback(a=>e({...a,domains:r}),[r,e]);return v.jsx(m3,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[ea.visits]),q1e=({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(d=>[d,0])),s=(d,f)=>{a[d]=f;const m=Object.values(a),p=m.reduce((b,_)=>b+_,0);n(p/m.length)},u=Object.entries(e).map(([d,f])=>[d,S9({visitsLoader:f,batchSize:i,shouldCancel:t,progressChanged:m=>s(d,m)})]);return async d=>{const f=await Promise.all(u.map(async([m,p])=>{const b=await p(d);return[m,b]}));return Object.fromEntries(f)}},p3=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=dn(`${e}/progressChanged`),i=Yn(e,async(a,{getState:s,dispatch:u})=>{const d=t(a),f=await q1e({visitsLoaders:d,shouldCancel:()=>n(s),progressChanged:m=>u(r(m))})(B2(a.params));return{...a,visitsGroups:f}});return Object.assign(i,{progressChanged:r})},g3=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:a,fulfilled:s,progressChanged:u}=t,{reducer:d,actions:f}=Nt({name:e,initialState:n,reducers:{cancelGetVisits:p=>({...p,cancelLoad:!0})},extraReducers:p=>{p.addCase(i,()=>({...n,loading:!0})),p.addCase(a,(b,{error:_})=>({...n,errorData:Li(_)??null})),p.addCase(s,(b,{payload:_})=>({...b,..._,loading:!1,progress:null,errorData:null})),p.addCase(u,(b,{payload:_})=>({...b,progress:_})),p.addCase(Lf,(b,{payload:_})=>{const{visitsGroups:w,...x}=b,A=Object.keys(w).map(j=>{const O=r({...x,groupKey:j},_.createdVisits).map(({visit:N})=>N);return[j,[...O,...w[j]]]}),C=Object.fromEntries(A);return{...x,visitsGroups:C}})}}),{cancelGetVisits:m}=f;return{reducer:d,cancelGetVisits:m}},L9="shlink/domainVisitsComparison",H1e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},G1e=e=>p3({typePrefix:`${L9}/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}),W1e=e=>g3({name:L9,initialState:H1e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>d9(r,t,n?.dateRange)}),D9="shlink/shortUrlVisitsComparison",Y1e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},K1e=e=>p3({typePrefix:`${D9}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[XC(i),a=>n.getShortUrlVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),Z1e=e=>g3({name:D9,initialState:Y1e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>f9(r,oI(t),n?.dateRange)}),k9="shlink/tagVisitsComparison",X1e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Q1e=e=>p3({typePrefix:`${k9}/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}),J1e=e=>g3({name:k9,initialState:X1e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>h9(r,t,n?.dateRange)}),ebe=Ta(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const a=l3("short-urls"),s=T.useMemo(()=>a.map(oI),[a]),u=T.useCallback(m=>e({...m,shortUrls:s}),[e,s]),d=T.useMemo(()=>[...r.shortUrls?.values()??[]],[r.shortUrls]),f=T.useMemo(()=>{const{visitsGroups:m,loading:p,...b}=t,_=d.reduce((w,x)=>(w[x.shortUrl]=m[XC(x)]??[],w),{});return{...b,visitsGroups:_,loading:p||r.loading}},[t,r.loading,d]);return T.useEffect(()=>{s.length>0&&i(s)},[i,s]),v.jsx(m3,{title:v.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${d.length} short URLs`}),getVisitsForComparison:u,visitsComparisonInfo:f,cancelGetVisitsComparison:n})},()=>[ea.visits]),I9=Ta(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Pn(I9),i=l3("tags"),a=T.useCallback(d=>e({...d,tags:i}),[e,i]),{visitsGroups:s}=t,u=T.useMemo(()=>Object.keys(s).reduce((d,f)=>(d[f]=r.getColorForKey(f),d),{}),[r,s]);return v.jsx(m3,{title:v.jsxs(v.Fragment,{children:["Comparing ",i.map(d=>v.jsx(i3,{colorGenerator:r,text:d},d))]}),getVisitsForComparison:a,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:u})},()=>[ea.visits]),tbe=Mn(I9,["ColorGenerator"]),nbe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>p9),e.factory("ShortUrlVisits",z1e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",$1e),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",tbe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>V1e),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>ebe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",l1e),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",c1e),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",u1e),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>t1e),e.serviceFactory("getShortUrlVisits",j1e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",K1e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",M1e,"apiClientFactory"),e.serviceFactory("getTagVisits",L1e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",Q1e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",g1e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",G1e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",C1e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",A1e,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",b1e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Lf),e.serviceFactory("loadVisitsOverview",k1e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",I1e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",v1e,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",_1e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",E1e,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",T1e,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",P1e,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",R1e,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",D1e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",J1e,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",W1e,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",Z1e,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},Zd=({children:e,to:t,active:n,...r})=>v.jsx(J2,{...r,className:({isActive:i})=>Ne("flex items-center gap-2","no-underline rounded-none px-5 py-2.5",{"text-white bg-lm-main dark:bg-dm-main":i||n,"highlight:bg-lm-secondary highlight:dark:bg-dm-secondary":!i&&!n}),to:t,children:e}),rbe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=xr(),r=i=>`${e}${i}`;return v.jsx("aside",{className:Ne("w-(--aside-menu-width) bg-lm-primary dark:bg-dm-primary","pt-[15px] md:pt-[30px] pb-[10px]","fixed! bottom-0 top-(--header-height) z-890 transition-[left] duration-300","shadow-aside-menu-mobile md:shadow-aside-menu",{"left-0":t,"max-md:left-[calc(-1*(var(--aside-menu-width)+35px))]":!t}),children:v.jsxs("nav",{className:"flex flex-col h-full",children:[v.jsxs(Zd,{to:r("/overview"),children:[v.jsx(We,{icon:rV}),"Overview"]}),v.jsxs(Zd,{to:r("/list-short-urls/1"),active:n.match("/list-short-urls")!==null,children:[v.jsx(We,{icon:lw}),"List short URLs"]}),v.jsxs(Zd,{to:r("/create-short-url"),children:[v.jsx(We,{icon:Q$,flip:"horizontal"}),"Create short URL"]}),v.jsxs(Zd,{to:r("/manage-tags"),children:[v.jsx(We,{icon:X5}),"Manage tags"]}),v.jsxs(Zd,{to:r("/manage-domains"),children:[v.jsx(We,{icon:hV}),"Manage domains"]})]})})},U9=T.createContext(void 0),v3=()=>T.useContext(U9),B9=({children:e})=>{const t=v3(),{flag:n,toggle:r,setToTrue:i,setToFalse:a}=Sn(),s=t??{sidebarVisible:n,toggleSidebar:r,showSidebar:i,hideSidebar:a};return v.jsx(U9.Provider,{value:s,children:e})},z9=({className:e,...t})=>{const n=v3();if(!n)throw new Error("ShlinkSidebarToggleButton has to be used inside a ShlinkSidebarVisibilityProvider");const{sidebarVisible:r,toggleSidebar:i}=n;return v.jsx(hf,{"aria-label":"Toggle sidebar",className:Ne("md:hidden transition-colors",{"text-white/50":!r,"text-white":r},e),onClick:i,...t,children:v.jsx(We,{icon:EV,size:"xl"})})},F9=({createNotFound:e,autoToggleButton:t})=>{const{TagsList:n,ShortUrlsList:r,CreateShortUrl:i,ShortUrlVisits:a,TagVisits:s,DomainVisits:u,OrphanVisits:d,NonOrphanVisits:f,Overview:m,EditShortUrl:p,ManageDomains:b,TagVisitsComparison:_,DomainVisitsComparison:w,ShortUrlVisitsComparison:x,ShortUrlRedirectRules:A}=Pn(F9),C=xr(),j=as(),{sidebarVisible:O,showSidebar:N,hideSidebar:B}=v3();T.useEffect(()=>B(),[C,B]);const V=Jye(N,B),Z=Qi("shortUrlRedirectRules");return v.jsxs(v.Fragment,{children:[t&&v.jsx(z9,{className:"fixed top-4 left-3 z-1035"}),v.jsx("div",{...V,className:"h-full",children:v.jsxs("div",{className:"h-full",children:[v.jsx(rbe,{routePrefix:j,showOnMobile:O}),v.jsx("div",{className:"min-h-full pt-[20px] md:pt-[30px] md:pl-(--aside-menu-width)",onPointerDown:B,children:v.jsx("div",{className:"container mx-auto px-3",children:v.jsxs(Lv,{children:[v.jsx(gt,{index:!0,element:v.jsx(Z2,{replace:!0,to:"overview"})}),v.jsx(gt,{path:"/overview",element:v.jsx(m,{})}),v.jsx(gt,{path:"/list-short-urls/:page",element:v.jsx(r,{})}),v.jsx(gt,{path:"/create-short-url",element:v.jsx(i,{})}),v.jsx(gt,{path:"/short-code/:shortCode/visits",children:["","*"].map(X=>v.jsx(gt,{path:X,element:v.jsx(a,{})},X))}),v.jsx(gt,{path:"/short-code/:shortCode/edit",element:v.jsx(p,{})}),Z&&v.jsx(gt,{path:"/short-code/:shortCode/redirect-rules",element:v.jsx(A,{})}),v.jsx(gt,{path:"/short-urls/compare-visits",element:v.jsx(x,{})}),v.jsx(gt,{path:"/tag/:tag/visits",children:["","*"].map(X=>v.jsx(gt,{path:X,element:v.jsx(s,{})},X))}),v.jsx(gt,{path:"/tags/compare-visits",element:v.jsx(_,{})}),v.jsx(gt,{path:"/domain/:domain/visits",children:["","*"].map(X=>v.jsx(gt,{path:X,element:v.jsx(u,{})},X))}),v.jsx(gt,{path:"/orphan-visits",children:["","*"].map(X=>v.jsx(gt,{path:X,element:v.jsx(d,{})},X))}),v.jsx(gt,{path:"/non-orphan-visits",children:["","*"].map(X=>v.jsx(gt,{path:X,element:v.jsx(f,{})},X))}),v.jsx(gt,{path:"/manage-tags",element:v.jsx(n,{})}),v.jsx(gt,{path:"/manage-domains",element:v.jsx(b,{})}),v.jsx(gt,{path:"/domains/compare-visits",element:v.jsx(w,{})}),e&&v.jsx(gt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},ibe=Mn(F9,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),abe=e=>kw({devTools:!1,reducer:Xv({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})}),obe=e=>{e.factory("Main",ibe),e.factory("store",abe)},Oa=new q5,{container:sbe}=Oa,lbe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),ube=(e,t)=>(...n)=>e[t](...n),cbe=(e,t)=>({...e,[t]:ube(sbe,t)}),kf=(e,t=[])=>y5(e?lbe(e):null,t.reduce(cbe,{}));obe(Oa);Uye(Oa,kf);s0e(Oa,kf);nbe(Oa,kf);bge(Oa);gge(Oa,kf);jge(Oa,kf);g0e(Oa);Hve(Oa,kf);let i5;const fbe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:a,tagColorsStorage:s,autoSidebarToggle:u=!0})=>{const d=oge(t),f=T.useRef(void 0),[m,p]=T.useState(),b=Bu(),_=T.useMemo(()=>b?T.Fragment:M5,[b]);return T.useEffect(()=>{i5=n,e.value("apiClientFactory",()=>i5),s&&e.value("TagColorsStorage",s);const{Main:w,store:x,loadMercureInfo:A,listTags:C,listDomains:j}=e.container;f.current=v.jsx(w,{createNotFound:a,autoToggleButton:u}),p(x),x.dispatch(A(r)),x.dispatch(C()),x.dispatch(j())},[n,u,a,r,s]),m?v.jsx(q2,{store:m,children:v.jsx(CL,{value:r??{},children:v.jsx(age,{value:d,children:v.jsx(B9,{children:v.jsx(nge,{value:i,children:v.jsx(_,{children:f.current})})})})})}):v.jsx(v.Fragment,{})},dbe="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=",hbe="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==",mbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",pbe=()=>{delete _R.Icon.Default.prototype._getIconUrl,_R.Icon.Default.mergeOptions({iconRetinaUrl:hbe,iconUrl:dbe,shadowUrl:mbe})};pbe();const gbe=fbe(Oa),If=({children:e,className:t})=>v.jsx("div",{className:Ne("container mx-auto p-5 pt-8 max-md:p-3 max-md:py-4",t),children:e});function $9(e){const t=n=>{const{ServerError:r}=Ca(t),i=vf(),{selectServer:a,selectedServer:s}=n;return T.useEffect(()=>{i.serverId&&a(i.serverId)},[i.serverId,a]),s?y$(s)?v.jsx(r,{}):v.jsx(e,{...n}):v.jsx(If,{children:v.jsx(Vo,{loading:!0})})};return t}const V9=$9(T.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ServerError:i}=Ca(V9);if(!iw(e))return v.jsx(i,{});const a=`/server/${e.id}`;return v.jsxs(B9,{children:[v.jsx(z9,{className:"fixed top-3.5 left-3 z-901"}),v.jsx(gbe,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>v.jsx(DN,{to:`${a}${s}`,children:"List short URLs"}),autoSidebarToggle:!1})]})})),vbe=Ea(V9,["buildShlinkApiClient","TagColorsStorage","ServerError"]),ybe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",iX,"fetch"),e.serviceFactory("ScrollToTop",()=>uX),e.factory("MainHeader",lX),e.serviceFactory("Home",()=>sX),e.decorator("Home",qg),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.factory("ShlinkWebComponentContainer",vbe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>bX),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>aX)},q9=()=>{const e=eo();return T.useCallback(()=>e(-1),[e])};function bbe(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 _be(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const xbe=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function wbe(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=dL(t,a=>xbe(n,a)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function Rv(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const a=bbe(i);let s=a,u=1;for(;n.has(s);)s=`${a}-${u}`,u++;r.push({...i,id:s}),n.add(s)}),r}const H9=({open:e,duplicatedServers:t,onClose:n,onConfirm:r})=>{const i=t.length>1;return v.jsxs(to,{size:"lg",title:`Duplicated server${i?"s":""}`,open:e,onClose:n,onConfirm:r,confirmText:`Save duplicate${i?"s":""}`,cancelText:i?"Ignore duplicates":"Discard",children:[v.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),v.jsx("ul",{className:"list-disc mt-4",children:t.map(({url:a,apiKey:s},u)=>i?v.jsxs("li",{children:[v.jsx("b",{children:a})," - ",v.jsx("b",{children:s})]},u):v.jsxs(T.Fragment,{children:[v.jsxs("li",{children:["URL: ",v.jsx("b",{children:a})]}),v.jsxs("li",{children:["API key: ",v.jsx("b",{children:s})]})]},u))}),v.jsxs("span",{children:[i?"Do you want to save duplicated servers":"Do you want to save this server","?"]})]})},Sbe=e=>T.useCallback(t=>{t.preventDefault(),e(t)},[e]),G9=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,a]=T.useState(t?.name??""),[s,u]=T.useState(t?.url??""),[d,f]=T.useState(t?.apiKey??""),{flag:m,toggle:p}=Sn(t?.forwardCredentials??!1),b=Sbe(()=>e({name:i,url:s,apiKey:d,forwardCredentials:m}));return v.jsxs("form",{name:"serverForm",onSubmit:b,children:[v.jsxs(Mt,{className:"mb-4",bodyClassName:"flex flex-col gap-y-3",title:r,children:[v.jsx(ni,{label:"Name",value:i,onChange:_=>a(_.target.value),required:!0}),v.jsx(ni,{label:"URL",type:"url",value:s,onChange:_=>u(_.target.value),required:!0}),v.jsx(QY,{label:"API key",value:d,onChange:_=>f(_.target.value),required:!0}),v.jsx(BY,{summary:"Advanced options",children:v.jsxs("div",{className:"flex flex-col gap-0.5",children:[v.jsxs(Sa,{className:"flex items-center gap-x-1.5 cursor-pointer",children:[v.jsx(Aw,{onChange:p,checked:m}),"Forward credentials to this server on every request."]}),v.jsxs("small",{className:"pl-5.5 text-gray-600 dark:text-gray-400 mt-0.5",children:['"',"Credentials",'"'," here means cookies, TLS client certificates, or authentication headers containing a username and password."]}),v.jsxs("small",{className:"pl-5.5 text-gray-600 dark:text-gray-400",children:[v.jsx("b",{children:"Important!"})," If you are not sure what this means, leave it unchecked. Enabling this option will make all requests fail for Shlink older than v4.5.0, as it requires the server to set a more strict value for ",v.jsx("code",{className:"whitespace-nowrap",children:"Access-Control-Allow-Origin"})," than ",v.jsx("code",{children:"*"}),"."]})]})})]}),v.jsx("div",{className:"flex items-center justify-end gap-x-2",children:n})]})},a5=4e3,o5=({variant:e})=>v.jsx("div",{className:"mt-4",children:v.jsxs(Fr,{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."]})}),W9=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Ca(W9),i=eo(),a=q9(),s=!!Object.keys(e).length,[u,d]=r({delay:a5}),[f,m]=r({delay:a5}),{flag:p,toggle:b}=Sn(),[_,w]=T.useState(),x=T.useCallback(C=>{const[j]=Rv(e,[C]);t([j]),i(`/server/${j.id}`)},[t,i,e]),A=T.useCallback(C=>{w(C),Object.values(e).some(({url:O,apiKey:N})=>C.url===O&&C.apiKey===N)?b():x(C)},[x,e,b]);return v.jsxs(If,{children:[v.jsxs(G9,{title:"Add new server",onSubmit:A,children:[!s&&v.jsx(n,{tooltipPlacement:"top",onImport:d,onError:m}),s&&v.jsx(Rt,{variant:"secondary",onClick:a,children:"Cancel"}),v.jsx(Rt,{type:"submit",children:"Create server"})]}),u&&v.jsx(o5,{variant:"success"}),f&&v.jsx(o5,{variant:"error"}),v.jsx(H9,{open:p,duplicatedServers:_?[_]:[],onClose:a,onConfirm:()=>_&&x(_)})]})},Cbe=Ea(W9,["ImportServersBtn","useTimeoutToggle"]),Y9=({server:e,children:t})=>{const{DeleteServerModal:n}=Ca(Y9),{flag:r,setToTrue:i,setToFalse:a}=Sn(),s=eo(),u=T.useCallback(d=>{a(),d&&s("/")},[a,s]);return v.jsxs(v.Fragment,{children:[v.jsx("button",{type:"button",className:"text-danger hover:underline",onClick:i,children:t}),v.jsx(n,{server:e,open:r,onClose:u})]})},Ebe=Ea(Y9,["DeleteServerModal"]),Abe=({server:e,onClose:t,open:n,deleteServer:r})=>{const i=T.useCallback(a=>{a==="confirm"&&r(e)},[r,e]);return v.jsx(to,{open:n,title:"Remove server",variant:"danger",onClose:()=>t(!1),onConfirm:()=>t(!0),onClosed:i,confirmText:"Delete",children:v.jsxs("div",{className:"flex flex-col gap-y-4",children:[v.jsxs("p",{children:["Are you sure you want to remove ",v.jsx("b",{children:e?e.name:""}),"?"]}),v.jsx("p",{children:v.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."})})]})})},Tbe=$9(({editServer:e,selectedServer:t,selectServer:n})=>{const r=q9(),{reconnect:i}=wf();if(!ah(t))return null;const a=s=>{e(t.id,s),i==="true"&&n(t.id),r()};return v.jsx(If,{children:v.jsxs(G9,{title:v.jsxs(v.Fragment,{children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:a,children:[v.jsx(Rt,{variant:"secondary",onClick:r,children:"Cancel"}),v.jsx(Rt,{type:"submit",children:"Save"})]})})}),Obe=Ea(Tbe,["ServerError"]),K9=({createServers:e,servers:t,children:n,onImport:r,onError:i=()=>{},tooltipPlacement:a="bottom",className:s=""})=>{const{ServersImporter:u}=Ca(K9),d=T.useRef(null),{anchor:f,tooltip:m}=no({placement:a}),[p,b]=T.useState([]),{flag:_,setToTrue:w,setToFalse:x}=Sn(),A=T.useRef(!1),C=T.useCallback(async({target:N})=>u.importServersFromFile(N.files?.[0]).then(B=>{const{duplicatedServers:V,newServers:Z}=wbe(t,B);A.current=Z.length>0,e(Rv(t,Z)),V.length>0?(b(V),w()):r?.()}).then(()=>{N.value=null}).catch(i),[e,i,r,t,u,w]),j=T.useCallback(()=>{e(Rv(t,p)),x(),r?.()},[e,p,x,r,t]),O=T.useCallback(()=>{x(),A.current&&r?.()},[x,r]);return v.jsxs(v.Fragment,{children:[v.jsxs(Rt,{variant:"secondary",className:s,onClick:()=>d.current?.click(),...f,children:[v.jsx(We,{icon:G$,widthAuto:!0})," ",n??"Import from file"]}),v.jsxs(ro,{...m,children:["You can create servers by importing a CSV file with ",v.jsx("b",{children:"name"}),", ",v.jsx("b",{children:"apiKey"})," and ",v.jsx("b",{children:"url"})," columns."]}),v.jsx("input",{type:"file",accept:".csv",className:"hidden","aria-hidden":!0,tabIndex:-1,ref:d,onChange:C,"data-testid":"csv-file-input"}),v.jsx(H9,{open:_,duplicatedServers:p,onClose:O,onConfirm:j})]})},jbe=Ea(K9,["ServersImporter"]),Z9=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Ca(Z9);return v.jsx(If,{children:v.jsxs("div",{className:"flex flex-col items-center gap-y-4 md:gap-y-8",children:[v.jsxs(Vo,{className:"w-full lg:w-[80%]",variant:"error",children:[!ah(t)&&"Could not find this Shlink server.",ah(t)&&v.jsxs(v.Fragment,{children:[v.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."]})]}),v.jsxs("p",{className:"text-xl",children:["These are the Shlink servers currently configured. Choose one of them or ",v.jsx(Mr,{to:"/server/create",children:"add a new one"}),"."]}),v.jsx(cn,{className:"w-full max-w-100 overflow-hidden",children:v.jsx(lL,{borderless:!0,servers:Object.values(e)})}),ah(t)&&v.jsxs("p",{className:"text-xl",children:["Alternatively, if you think you may have misconfigured this server, you can ",v.jsx(n,{server:t,children:"remove it"})," or ",v.jsx(Mr,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})]})})},Pbe=Ea(Z9,["DeleteServerButton"]),Mbe=4e3,X9=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Ca(X9),[a,s]=T.useState(""),u=T.useMemo(()=>Object.values(e),[e]),d=T.useMemo(()=>u.filter(({name:b,url:_})=>`${b} ${_}`.toLowerCase().match(a.toLowerCase())),[u,a]),f=u.some(({autoConnect:b})=>!!b),[m,p]=r({delay:Mbe});return v.jsxs(If,{className:"flex flex-col gap-y-4",children:[v.jsx(xf,{onChange:s}),v.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[v.jsxs("div",{className:"flex gap-2",children:[v.jsx(n,{className:"flex-grow",onError:p,children:"Import servers"}),d.length>0&&v.jsxs(Rt,{variant:"secondary",className:"flex-grow",onClick:async()=>t.exportServers(),children:[v.jsx(We,{icon:Y5,widthAuto:!0})," Export servers"]})]}),v.jsxs(Rt,{className:"md:ml-auto",to:"/server/create",children:[v.jsx(We,{icon:kh,widthAuto:!0})," Add a server"]})]}),v.jsx(Mt,{className:"card",children:v.jsxs(Ke,{header:v.jsxs(Ke.Row,{children:[f&&v.jsx(Ke.Cell,{className:"w-[35px]",children:v.jsx("span",{className:"sr-only",children:"Auto-connect"})}),v.jsx(Ke.Cell,{children:"Name"}),v.jsx(Ke.Cell,{children:"Base URL"}),v.jsx(Ke.Cell,{children:v.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[!d.length&&v.jsx(Ke.Row,{className:"text-center",children:v.jsx(Ke.Cell,{colSpan:4,children:"No servers found."})}),d.map(b=>v.jsx(i,{server:b,hasAutoConnect:f},b.id))]})}),m&&v.jsx("div",{children:v.jsx(Fr,{variant:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Rbe=Ea(X9,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),Q9=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Ca(Q9),{anchor:r,tooltip:i}=no();return v.jsxs(Ke.Row,{className:"relative",children:[t&&v.jsx(Ke.Cell,{columnName:"Auto-connect",children:e.autoConnect&&v.jsxs(v.Fragment,{children:[v.jsx(We,{icon:Tu,className:"text-lm-brand dark:text-dm-brand",...r}),v.jsx(ro,{...i,children:"Auto-connect to this server"})]})}),v.jsx(Ke.Cell,{className:"font-bold",columnName:"Name",children:v.jsx(Mr,{to:`/server/${e.id}`,children:e.name})}),v.jsx(Ke.Cell,{columnName:"Base URL",className:"max-lg:border-b-0",children:e.url}),v.jsx(Ke.Cell,{className:"text-right max-lg:absolute right-0 -top-1 mx-lg:pt-0",children:v.jsx(n,{server:e})})]})},Nbe=Ea(Q9,["ManageServersRowDropdown"]),J9=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Ca(J9),{flag:r,setToTrue:i,setToFalse:a}=Sn(),s=`/server/${e.id}`,{autoConnect:u}=e,d=u?U$:kY;return v.jsxs(v.Fragment,{children:[v.jsxs(on,{menuAlignment:"right",children:[v.jsxs(on.Item,{to:s,className:"gap-1.5",children:[v.jsx(We,{icon:sV})," Connect"]}),v.jsxs(on.Item,{to:`${s}/edit`,className:"gap-1.5",children:[v.jsx(We,{icon:ow})," Edit server"]}),v.jsxs(on.Item,{onClick:()=>t(e,!u),className:"gap-1.5",children:[v.jsx(We,{icon:d})," ",u?"Do not a":"A","uto-connect"]}),v.jsx(on.Separator,{}),v.jsxs(on.Item,{className:"[&]:text-danger gap-1.5",onClick:i,children:[v.jsx(We,{icon:e6})," Remove server"]})]}),v.jsx(n,{server:e,open:r,onClose:a})]})},Lbe=Ea(J9,["DeleteServerModal"]),eU=(e,t)=>XN(e,t,{serializeError:n=>n}),Dbe={},{actions:kbe,reducer:Ibe}=Nt({name:"shlink/servers",initialState:Dbe,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:_be(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:Ube,deleteServer:Bbe,setAutoConnect:zbe,createServers:tU}=kbe,Fbe=Ibe,$be=e=>Rv({},Array.isArray(e)?e.filter(H5):[]),Vbe=e=>eU("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${Cg.homepage}/servers.json`),i=$be(r);n(tU(i))}),y3="shlink/selectedServer",qbe="1.0.0",Hbe="999.999.999",Gbe="latest",Wbe=e=>yL(e===Gbe?Hbe:e,qbe),Ybe=hL(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:Wbe(n),printableVersion:vL(n)}))),s5=null,b3=dn(`${y3}/resetSelectedServer`),Kbe=e=>eU(`${y3}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(b3());const{servers:i}=r(),a=i[t];if(!a)return{serverNotFound:!0};try{const s=e(a),{version:u,printableVersion:d}=await Ybe(a,()=>s.health());return{...a,version:u,printableVersion:d}}catch{return{...a,serverNotReachable:!0}}}),Zbe=e=>Nt({name:y3,initialState:s5,reducers:{},extraReducers:t=>{t.addCase(b3,()=>s5),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),Xbe=({servers:e,selectedServer:t})=>{const n=Object.values(e);return v.jsx(Nx.Dropdown,{buttonContent:v.jsxs("span",{className:"flex items-center gap-1.5",children:[v.jsx(We,{icon:LA})," Servers"]}),children:n.length===0?v.jsxs(Qe.Item,{to:"/server/create",children:[v.jsx(We,{icon:kh})," Add a server"]}):v.jsxs(v.Fragment,{children:[n.map(({name:r,id:i})=>v.jsx(Qe.Item,{to:`/server/${i}`,selected:b$(t)===i,children:r},i)),v.jsx(Qe.Separator,{}),v.jsxs(Qe.Item,{to:"/manage-servers",children:[v.jsx(We,{icon:LA})," Manage servers"]})]})})},Qbe=({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)},Jbe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);Qbe(e,i,n)},e_e="shlink-servers.csv";class t_e{#t;#r;#n;constructor(t,n,r){this.#t=t,this.#r=n,this.#n=r}exportServers=async()=>{const t=Object.values(this.#t.get("servers")??{}).map(_$);try{const n=this.#n(t);Jbe(this.#r,n,e_e)}catch(n){console.error(n)}}}const n_e=e=>{if(!Array.isArray(e))throw new Error("Provided file does not have the right format.");return e.map(w$)};class r_e{#t;constructor(t){this.#t=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.#t(n);return n_e(r)}}const i_e=(e,t)=>{e.factory("ManageServers",Rbe),e.decorator("ManageServers",qg),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",Nbe),e.factory("ManageServersRowDropdown",Lbe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",Cbe),e.decorator("CreateServer",qg),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",Obe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>Xbe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Abe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",Ebe),e.factory("ImportServersBtn",jbe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",Pbe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",r_e,"csvToJson"),e.service("ServersExporter",t_e,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",Kbe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>tU),e.serviceFactory("deleteServer",()=>Bbe),e.serviceFactory("editServer",()=>Ube),e.serviceFactory("setAutoConnect",()=>zbe),e.serviceFactory("fetchServers",Vbe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>b3),e.serviceFactory("selectedServerReducerCreator",Zbe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},nU={field:"dateCreated",dir:"DESC"},a_e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:Rw()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:nU}},{reducer:o_e,actions:s_e}=Nt({name:"shlink/settings",initialState:a_e,reducers:{setSettings:(e,{payload:t})=>Sf(e,t)}}),{setSettings:l_e}=s_e,u_e=o_e,c_e=({settings:e,setSettings:t})=>v.jsx(If,{children:v.jsx(UX,{settings:e,onUpdateSettings:t,defaultShortUrlsListOrdering:nU})}),f_e=(e,t)=>{e.serviceFactory("Settings",()=>c_e),e.decorator("Settings",qg),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>l_e)};var ox,l5;function d_e(){return l5||(l5=1,ox=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 s in r)n.d(a,s,(function(u){return r[u]}).bind(null,s));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(w){var x=[];for(var A in w)x.push(A);return x};e.exports=p;var a=n(5);a.inherits=n(2);var s=n(23),u=n(14);a.inherits(p,s);for(var d=i(u.prototype),f=0;f<d.length;f++){var m=d[f];p.prototype[m]||(p.prototype[m]=u.prototype[m])}function p(w){if(!(this instanceof p))return new p(w);s.call(this,w),u.call(this,w),w&&w.readable===!1&&(this.readable=!1),w&&w.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,w&&w.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",b)}function b(){this.allowHalfOpen||this._writableState.ended||r.nextTick(_,this)}function _(w){w.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(w){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=w,this._writableState.destroyed=w)}}),p.prototype._destroy=function(w,x){this.push(null),this.end(),r.nextTick(x,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),s=n(40);function u(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(k,F){if(u()<F)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(F)).__proto__=f.prototype:(k===null&&(k=new f(F)),k.length=F),k}function f(k,F,G){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(k,F,G);if(typeof k=="number"){if(typeof F=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,k)}return m(this,k,F,G)}function m(k,F,G,le){if(typeof F=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&F instanceof ArrayBuffer?function(q,ae,fe,ge){if(ae.byteLength,fe<0||ae.byteLength<fe)throw new RangeError("'offset' is out of bounds");if(ae.byteLength<fe+(ge||0))throw new RangeError("'length' is out of bounds");return ae=fe===void 0&&ge===void 0?new Uint8Array(ae):ge===void 0?new Uint8Array(ae,fe):new Uint8Array(ae,fe,ge),f.TYPED_ARRAY_SUPPORT?(q=ae).__proto__=f.prototype:q=_(q,ae),q}(k,F,G,le):typeof F=="string"?function(q,ae,fe){if(typeof fe=="string"&&fe!==""||(fe="utf8"),!f.isEncoding(fe))throw new TypeError('"encoding" must be a valid string encoding');var ge=0|x(ae,fe),de=(q=d(q,ge)).write(ae,fe);return de!==ge&&(q=q.slice(0,de)),q}(k,F,G):function(q,ae){if(f.isBuffer(ae)){var fe=0|w(ae.length);return(q=d(q,fe)).length===0||ae.copy(q,0,0,fe),q}if(ae){if(typeof ArrayBuffer<"u"&&ae.buffer instanceof ArrayBuffer||"length"in ae)return typeof ae.length!="number"||function(ge){return ge!=ge}(ae.length)?d(q,0):_(q,ae);if(ae.type==="Buffer"&&s(ae.data))return _(q,ae.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(k,F)}function p(k){if(typeof k!="number")throw new TypeError('"size" argument must be a number');if(k<0)throw new RangeError('"size" argument must not be negative')}function b(k,F){if(p(F),k=d(k,F<0?0:0|w(F)),!f.TYPED_ARRAY_SUPPORT)for(var G=0;G<F;++G)k[G]=0;return k}function _(k,F){var G=F.length<0?0:0|w(F.length);k=d(k,G);for(var le=0;le<G;le+=1)k[le]=255&F[le];return k}function w(k){if(k>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|k}function x(k,F){if(f.isBuffer(k))return k.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(k)||k instanceof ArrayBuffer))return k.byteLength;typeof k!="string"&&(k=""+k);var G=k.length;if(G===0)return 0;for(var le=!1;;)switch(F){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return ue(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return ce(k).length;default:if(le)return ue(k).length;F=(""+F).toLowerCase(),le=!0}}function A(k,F,G){var le=k[F];k[F]=k[G],k[G]=le}function C(k,F,G,le,q){if(k.length===0)return-1;if(typeof G=="string"?(le=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=q?0:k.length-1),G<0&&(G=k.length+G),G>=k.length){if(q)return-1;G=k.length-1}else if(G<0){if(!q)return-1;G=0}if(typeof F=="string"&&(F=f.from(F,le)),f.isBuffer(F))return F.length===0?-1:j(k,F,G,le,q);if(typeof F=="number")return F&=255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(k,F,G):Uint8Array.prototype.lastIndexOf.call(k,F,G):j(k,[F],G,le,q);throw new TypeError("val must be string, number or Buffer")}function j(k,F,G,le,q){var ae,fe=1,ge=k.length,de=F.length;if(le!==void 0&&((le=String(le).toLowerCase())==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(k.length<2||F.length<2)return-1;fe=2,ge/=2,de/=2,G/=2}function _e(Be,qe){return fe===1?Be[qe]:Be.readUInt16BE(qe*fe)}if(q){var Te=-1;for(ae=G;ae<ge;ae++)if(_e(k,ae)===_e(F,Te===-1?0:ae-Te)){if(Te===-1&&(Te=ae),ae-Te+1===de)return Te*fe}else Te!==-1&&(ae-=ae-Te),Te=-1}else for(G+de>ge&&(G=ge-de),ae=G;ae>=0;ae--){for(var Le=!0,He=0;He<de;He++)if(_e(k,ae+He)!==_e(F,He)){Le=!1;break}if(Le)return ae}return-1}function O(k,F,G,le){G=Number(G)||0;var q=k.length-G;le?(le=Number(le))>q&&(le=q):le=q;var ae=F.length;if(ae%2!=0)throw new TypeError("Invalid hex string");le>ae/2&&(le=ae/2);for(var fe=0;fe<le;++fe){var ge=parseInt(F.substr(2*fe,2),16);if(isNaN(ge))return fe;k[G+fe]=ge}return fe}function N(k,F,G,le){return ve(ue(F,k.length-G),k,G,le)}function B(k,F,G,le){return ve(function(q){for(var ae=[],fe=0;fe<q.length;++fe)ae.push(255&q.charCodeAt(fe));return ae}(F),k,G,le)}function V(k,F,G,le){return B(k,F,G,le)}function Z(k,F,G,le){return ve(ce(F),k,G,le)}function X(k,F,G,le){return ve(function(q,ae){for(var fe,ge,de,_e=[],Te=0;Te<q.length&&!((ae-=2)<0);++Te)ge=(fe=q.charCodeAt(Te))>>8,de=fe%256,_e.push(de),_e.push(ge);return _e}(F,k.length-G),k,G,le)}function oe(k,F,G){return F===0&&G===k.length?i.fromByteArray(k):i.fromByteArray(k.slice(F,G))}function ee(k,F,G){G=Math.min(k.length,G);for(var le=[],q=F;q<G;){var ae,fe,ge,de,_e=k[q],Te=null,Le=_e>239?4:_e>223?3:_e>191?2:1;if(q+Le<=G)switch(Le){case 1:_e<128&&(Te=_e);break;case 2:(192&(ae=k[q+1]))==128&&(de=(31&_e)<<6|63&ae)>127&&(Te=de);break;case 3:ae=k[q+1],fe=k[q+2],(192&ae)==128&&(192&fe)==128&&(de=(15&_e)<<12|(63&ae)<<6|63&fe)>2047&&(de<55296||de>57343)&&(Te=de);break;case 4:ae=k[q+1],fe=k[q+2],ge=k[q+3],(192&ae)==128&&(192&fe)==128&&(192&ge)==128&&(de=(15&_e)<<18|(63&ae)<<12|(63&fe)<<6|63&ge)>65535&&de<1114112&&(Te=de)}Te===null?(Te=65533,Le=1):Te>65535&&(Te-=65536,le.push(Te>>>10&1023|55296),Te=56320|1023&Te),le.push(Te),q+=Le}return function(He){var Be=He.length;if(Be<=J)return String.fromCharCode.apply(String,He);for(var qe="",be=0;be<Be;)qe+=String.fromCharCode.apply(String,He.slice(be,be+=J));return qe}(le)}t.Buffer=f,t.SlowBuffer=function(k){return+k!=k&&(k=0),f.alloc(+k)},t.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42&&typeof k.subarray=="function"&&k.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=u(),f.poolSize=8192,f._augment=function(k){return k.__proto__=f.prototype,k},f.from=function(k,F,G){return m(null,k,F,G)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(k,F,G){return function(le,q,ae,fe){return p(q),q<=0?d(le,q):ae!==void 0?typeof fe=="string"?d(le,q).fill(ae,fe):d(le,q).fill(ae):d(le,q)}(null,k,F,G)},f.allocUnsafe=function(k){return b(null,k)},f.allocUnsafeSlow=function(k){return b(null,k)},f.isBuffer=function(k){return!(k==null||!k._isBuffer)},f.compare=function(k,F){if(!f.isBuffer(k)||!f.isBuffer(F))throw new TypeError("Arguments must be Buffers");if(k===F)return 0;for(var G=k.length,le=F.length,q=0,ae=Math.min(G,le);q<ae;++q)if(k[q]!==F[q]){G=k[q],le=F[q];break}return G<le?-1:le<G?1:0},f.isEncoding=function(k){switch(String(k).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}},f.concat=function(k,F){if(!s(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return f.alloc(0);var G;if(F===void 0)for(F=0,G=0;G<k.length;++G)F+=k[G].length;var le=f.allocUnsafe(F),q=0;for(G=0;G<k.length;++G){var ae=k[G];if(!f.isBuffer(ae))throw new TypeError('"list" argument must be an Array of Buffers');ae.copy(le,q),q+=ae.length}return le},f.byteLength=x,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var F=0;F<k;F+=2)A(this,F,F+1);return this},f.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var F=0;F<k;F+=4)A(this,F,F+3),A(this,F+1,F+2);return this},f.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var F=0;F<k;F+=8)A(this,F,F+7),A(this,F+1,F+6),A(this,F+2,F+5),A(this,F+3,F+4);return this},f.prototype.toString=function(){var k=0|this.length;return k===0?"":arguments.length===0?ee(this,0,k):(function(F,G,le){var q=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((le===void 0||le>this.length)&&(le=this.length),le<=0)||(le>>>=0)<=(G>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return Q(this,G,le);case"utf8":case"utf-8":return ee(this,G,le);case"ascii":return ne(this,G,le);case"latin1":case"binary":return he(this,G,le);case"base64":return oe(this,G,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,G,le);default:if(q)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),q=!0}}).apply(this,arguments)},f.prototype.equals=function(k){if(!f.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||f.compare(this,k)===0},f.prototype.inspect=function(){var k="",F=t.INSPECT_MAX_BYTES;return this.length>0&&(k=this.toString("hex",0,F).match(/.{2}/g).join(" "),this.length>F&&(k+=" ... ")),"<Buffer "+k+">"},f.prototype.compare=function(k,F,G,le,q){if(!f.isBuffer(k))throw new TypeError("Argument must be a Buffer");if(F===void 0&&(F=0),G===void 0&&(G=k?k.length:0),le===void 0&&(le=0),q===void 0&&(q=this.length),F<0||G>k.length||le<0||q>this.length)throw new RangeError("out of range index");if(le>=q&&F>=G)return 0;if(le>=q)return-1;if(F>=G)return 1;if(F>>>=0,G>>>=0,le>>>=0,q>>>=0,this===k)return 0;for(var ae=q-le,fe=G-F,ge=Math.min(ae,fe),de=this.slice(le,q),_e=k.slice(F,G),Te=0;Te<ge;++Te)if(de[Te]!==_e[Te]){ae=de[Te],fe=_e[Te];break}return ae<fe?-1:fe<ae?1:0},f.prototype.includes=function(k,F,G){return this.indexOf(k,F,G)!==-1},f.prototype.indexOf=function(k,F,G){return C(this,k,F,G,!0)},f.prototype.lastIndexOf=function(k,F,G){return C(this,k,F,G,!1)},f.prototype.write=function(k,F,G,le){if(F===void 0)le="utf8",G=this.length,F=0;else if(G===void 0&&typeof F=="string")le=F,G=this.length,F=0;else{if(!isFinite(F))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");F|=0,isFinite(G)?(G|=0,le===void 0&&(le="utf8")):(le=G,G=void 0)}var q=this.length-F;if((G===void 0||G>q)&&(G=q),k.length>0&&(G<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var ae=!1;;)switch(le){case"hex":return O(this,k,F,G);case"utf8":case"utf-8":return N(this,k,F,G);case"ascii":return B(this,k,F,G);case"latin1":case"binary":return V(this,k,F,G);case"base64":return Z(this,k,F,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,k,F,G);default:if(ae)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),ae=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;function ne(k,F,G){var le="";G=Math.min(k.length,G);for(var q=F;q<G;++q)le+=String.fromCharCode(127&k[q]);return le}function he(k,F,G){var le="";G=Math.min(k.length,G);for(var q=F;q<G;++q)le+=String.fromCharCode(k[q]);return le}function Q(k,F,G){var le=k.length;(!F||F<0)&&(F=0),(!G||G<0||G>le)&&(G=le);for(var q="",ae=F;ae<G;++ae)q+=re(k[ae]);return q}function se(k,F,G){for(var le=k.slice(F,G),q="",ae=0;ae<le.length;ae+=2)q+=String.fromCharCode(le[ae]+256*le[ae+1]);return q}function Y(k,F,G){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+F>G)throw new RangeError("Trying to access beyond buffer length")}function U(k,F,G,le,q,ae){if(!f.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>q||F<ae)throw new RangeError('"value" argument is out of bounds');if(G+le>k.length)throw new RangeError("Index out of range")}function I(k,F,G,le){F<0&&(F=65535+F+1);for(var q=0,ae=Math.min(k.length-G,2);q<ae;++q)k[G+q]=(F&255<<8*(le?q:1-q))>>>8*(le?q:1-q)}function z(k,F,G,le){F<0&&(F=4294967295+F+1);for(var q=0,ae=Math.min(k.length-G,4);q<ae;++q)k[G+q]=F>>>8*(le?q:3-q)&255}function M(k,F,G,le,q,ae){if(G+le>k.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function D(k,F,G,le,q){return q||M(k,0,G,4),a.write(k,F,G,le,23,4),G+4}function W(k,F,G,le,q){return q||M(k,0,G,8),a.write(k,F,G,le,52,8),G+8}f.prototype.slice=function(k,F){var G,le=this.length;if(k=~~k,F=F===void 0?le:~~F,k<0?(k+=le)<0&&(k=0):k>le&&(k=le),F<0?(F+=le)<0&&(F=0):F>le&&(F=le),F<k&&(F=k),f.TYPED_ARRAY_SUPPORT)(G=this.subarray(k,F)).__proto__=f.prototype;else{var q=F-k;G=new f(q,void 0);for(var ae=0;ae<q;++ae)G[ae]=this[ae+k]}return G},f.prototype.readUIntLE=function(k,F,G){k|=0,F|=0,G||Y(k,F,this.length);for(var le=this[k],q=1,ae=0;++ae<F&&(q*=256);)le+=this[k+ae]*q;return le},f.prototype.readUIntBE=function(k,F,G){k|=0,F|=0,G||Y(k,F,this.length);for(var le=this[k+--F],q=1;F>0&&(q*=256);)le+=this[k+--F]*q;return le},f.prototype.readUInt8=function(k,F){return F||Y(k,1,this.length),this[k]},f.prototype.readUInt16LE=function(k,F){return F||Y(k,2,this.length),this[k]|this[k+1]<<8},f.prototype.readUInt16BE=function(k,F){return F||Y(k,2,this.length),this[k]<<8|this[k+1]},f.prototype.readUInt32LE=function(k,F){return F||Y(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},f.prototype.readUInt32BE=function(k,F){return F||Y(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},f.prototype.readIntLE=function(k,F,G){k|=0,F|=0,G||Y(k,F,this.length);for(var le=this[k],q=1,ae=0;++ae<F&&(q*=256);)le+=this[k+ae]*q;return le>=(q*=128)&&(le-=Math.pow(2,8*F)),le},f.prototype.readIntBE=function(k,F,G){k|=0,F|=0,G||Y(k,F,this.length);for(var le=F,q=1,ae=this[k+--le];le>0&&(q*=256);)ae+=this[k+--le]*q;return ae>=(q*=128)&&(ae-=Math.pow(2,8*F)),ae},f.prototype.readInt8=function(k,F){return F||Y(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},f.prototype.readInt16LE=function(k,F){F||Y(k,2,this.length);var G=this[k]|this[k+1]<<8;return 32768&G?4294901760|G:G},f.prototype.readInt16BE=function(k,F){F||Y(k,2,this.length);var G=this[k+1]|this[k]<<8;return 32768&G?4294901760|G:G},f.prototype.readInt32LE=function(k,F){return F||Y(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},f.prototype.readInt32BE=function(k,F){return F||Y(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},f.prototype.readFloatLE=function(k,F){return F||Y(k,4,this.length),a.read(this,k,!0,23,4)},f.prototype.readFloatBE=function(k,F){return F||Y(k,4,this.length),a.read(this,k,!1,23,4)},f.prototype.readDoubleLE=function(k,F){return F||Y(k,8,this.length),a.read(this,k,!0,52,8)},f.prototype.readDoubleBE=function(k,F){return F||Y(k,8,this.length),a.read(this,k,!1,52,8)},f.prototype.writeUIntLE=function(k,F,G,le){k=+k,F|=0,G|=0,le||U(this,k,F,G,Math.pow(2,8*G)-1,0);var q=1,ae=0;for(this[F]=255&k;++ae<G&&(q*=256);)this[F+ae]=k/q&255;return F+G},f.prototype.writeUIntBE=function(k,F,G,le){k=+k,F|=0,G|=0,le||U(this,k,F,G,Math.pow(2,8*G)-1,0);var q=G-1,ae=1;for(this[F+q]=255&k;--q>=0&&(ae*=256);)this[F+q]=k/ae&255;return F+G},f.prototype.writeUInt8=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,1,255,0),f.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),this[F]=255&k,F+1},f.prototype.writeUInt16LE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[F]=255&k,this[F+1]=k>>>8):I(this,k,F,!0),F+2},f.prototype.writeUInt16BE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[F]=k>>>8,this[F+1]=255&k):I(this,k,F,!1),F+2},f.prototype.writeUInt32LE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[F+3]=k>>>24,this[F+2]=k>>>16,this[F+1]=k>>>8,this[F]=255&k):z(this,k,F,!0),F+4},f.prototype.writeUInt32BE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[F]=k>>>24,this[F+1]=k>>>16,this[F+2]=k>>>8,this[F+3]=255&k):z(this,k,F,!1),F+4},f.prototype.writeIntLE=function(k,F,G,le){if(k=+k,F|=0,!le){var q=Math.pow(2,8*G-1);U(this,k,F,G,q-1,-q)}var ae=0,fe=1,ge=0;for(this[F]=255&k;++ae<G&&(fe*=256);)k<0&&ge===0&&this[F+ae-1]!==0&&(ge=1),this[F+ae]=(k/fe>>0)-ge&255;return F+G},f.prototype.writeIntBE=function(k,F,G,le){if(k=+k,F|=0,!le){var q=Math.pow(2,8*G-1);U(this,k,F,G,q-1,-q)}var ae=G-1,fe=1,ge=0;for(this[F+ae]=255&k;--ae>=0&&(fe*=256);)k<0&&ge===0&&this[F+ae+1]!==0&&(ge=1),this[F+ae]=(k/fe>>0)-ge&255;return F+G},f.prototype.writeInt8=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,1,127,-128),f.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),k<0&&(k=255+k+1),this[F]=255&k,F+1},f.prototype.writeInt16LE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[F]=255&k,this[F+1]=k>>>8):I(this,k,F,!0),F+2},f.prototype.writeInt16BE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[F]=k>>>8,this[F+1]=255&k):I(this,k,F,!1),F+2},f.prototype.writeInt32LE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[F]=255&k,this[F+1]=k>>>8,this[F+2]=k>>>16,this[F+3]=k>>>24):z(this,k,F,!0),F+4},f.prototype.writeInt32BE=function(k,F,G){return k=+k,F|=0,G||U(this,k,F,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),f.TYPED_ARRAY_SUPPORT?(this[F]=k>>>24,this[F+1]=k>>>16,this[F+2]=k>>>8,this[F+3]=255&k):z(this,k,F,!1),F+4},f.prototype.writeFloatLE=function(k,F,G){return D(this,k,F,!0,G)},f.prototype.writeFloatBE=function(k,F,G){return D(this,k,F,!1,G)},f.prototype.writeDoubleLE=function(k,F,G){return W(this,k,F,!0,G)},f.prototype.writeDoubleBE=function(k,F,G){return W(this,k,F,!1,G)},f.prototype.copy=function(k,F,G,le){if(G||(G=0),le||le===0||(le=this.length),F>=k.length&&(F=k.length),F||(F=0),le>0&&le<G&&(le=G),le===G||k.length===0||this.length===0)return 0;if(F<0)throw new RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw new RangeError("sourceStart out of bounds");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),k.length-F<le-G&&(le=k.length-F+G);var q,ae=le-G;if(this===k&&G<F&&F<le)for(q=ae-1;q>=0;--q)k[q+F]=this[q+G];else if(ae<1e3||!f.TYPED_ARRAY_SUPPORT)for(q=0;q<ae;++q)k[q+F]=this[q+G];else Uint8Array.prototype.set.call(k,this.subarray(G,G+ae),F);return ae},f.prototype.fill=function(k,F,G,le){if(typeof k=="string"){if(typeof F=="string"?(le=F,F=0,G=this.length):typeof G=="string"&&(le=G,G=this.length),k.length===1){var q=k.charCodeAt(0);q<256&&(k=q)}if(le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!f.isEncoding(le))throw new TypeError("Unknown encoding: "+le)}else typeof k=="number"&&(k&=255);if(F<0||this.length<F||this.length<G)throw new RangeError("Out of range index");if(G<=F)return this;var ae;if(F>>>=0,G=G===void 0?this.length:G>>>0,k||(k=0),typeof k=="number")for(ae=F;ae<G;++ae)this[ae]=k;else{var fe=f.isBuffer(k)?k:ue(new f(k,le).toString()),ge=fe.length;for(ae=0;ae<G-F;++ae)this[ae+F]=fe[ae%ge]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function re(k){return k<16?"0"+k.toString(16):k.toString(16)}function ue(k,F){var G;F=F||1/0;for(var le=k.length,q=null,ae=[],fe=0;fe<le;++fe){if((G=k.charCodeAt(fe))>55295&&G<57344){if(!q){if(G>56319){(F-=3)>-1&&ae.push(239,191,189);continue}if(fe+1===le){(F-=3)>-1&&ae.push(239,191,189);continue}q=G;continue}if(G<56320){(F-=3)>-1&&ae.push(239,191,189),q=G;continue}G=65536+(q-55296<<10|G-56320)}else q&&(F-=3)>-1&&ae.push(239,191,189);if(q=null,G<128){if((F-=1)<0)break;ae.push(G)}else if(G<2048){if((F-=2)<0)break;ae.push(G>>6|192,63&G|128)}else if(G<65536){if((F-=3)<0)break;ae.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((F-=4)<0)break;ae.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return ae}function ce(k){return i.toByteArray(function(F){if((F=function(G){return G.trim?G.trim():G.replace(/^\s+|\s+$/g,"")}(F).replace(H,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F}(k))}function ve(k,F,G,le){for(var q=0;q<le&&!(q+G>=F.length||q>=k.length);++q)F[q+G]=k[q];return q}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(A){if(n===setTimeout)return setTimeout(A,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(A,0);try{return n(A,0)}catch{try{return n.call(null,A,0)}catch{return n.call(this,A,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var d,f=[],m=!1,p=-1;function b(){m&&d&&(m=!1,d.length?f=d.concat(f):p=-1,f.length&&_())}function _(){if(!m){var A=u(b);m=!0;for(var C=f.length;C;){for(d=f,f=[];++p<C;)d&&d[p].run();p=-1,C=f.length}d=null,m=!1,function(j){if(r===clearTimeout)return clearTimeout(j);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(j);try{r(j)}catch{try{return r.call(null,j)}catch{return r.call(this,j)}}}(A)}}function w(A,C){this.fun=A,this.array=C}function x(){}i.nextTick=function(A){var C=new Array(arguments.length-1);if(arguments.length>1)for(var j=1;j<arguments.length;j++)C[j-1]=arguments[j];f.push(new w(A,C)),f.length!==1||m||u(_)},w.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=x,i.addListener=x,i.once=x,i.off=x,i.removeListener=x,i.removeAllListeners=x,i.emit=x,i.prependListener=x,i.prependOnceListener=x,i.listeners=function(A){return[]},i.binding=function(A){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(A){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,s,u){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var d,f,m=arguments.length;switch(m){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,s)});case 4:return r.nextTick(function(){i.call(null,a,s,u)});default:for(d=new Array(m-1),f=0;f<d.length;)d[f++]=arguments[f];return r.nextTick(function(){i.apply(null,d)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function a(u,d){for(var f in u)d[f]=u[f]}function s(u,d,f){return i(u,d,f)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),a(i,s),s.from=function(u,d,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return i(u,d,f)},s.alloc=function(u,d,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var m=i(u);return d!==void 0?typeof f=="string"?m.fill(d,f):m.fill(d):m.fill(0),m},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return i(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(u)}},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 s=i.length;s--;)if(r(i[s][0],a))return s;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,a){var s=i.__data__;return r(a)?s[typeof a=="string"?"string":"hash"]:s.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function s(u,d){this._id=u,this._clearFn=d}t.setTimeout=function(){return new s(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(u){u&&u.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(u,d){clearTimeout(u._idleTimeoutId),u._idleTimeout=d},t.unenroll=function(u){clearTimeout(u._idleTimeoutId),u._idleTimeout=-1},t._unrefActive=t.active=function(u){clearTimeout(u._idleTimeoutId);var d=u._idleTimeout;d>=0&&(u._idleTimeoutId=setTimeout(function(){u._onTimeout&&u._onTimeout()},d))},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(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function a(s){return s===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(s){if(!function(u){return typeof u=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var u,d,f,m,p,b;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((u=arguments[1])instanceof Error)throw u;var _=new Error('Uncaught, unspecified "error" event. ('+u+")");throw _.context=u,_}if(a(d=this._events[s]))return!1;if(r(d))switch(arguments.length){case 1:d.call(this);break;case 2:d.call(this,arguments[1]);break;case 3:d.call(this,arguments[1],arguments[2]);break;default:m=Array.prototype.slice.call(arguments,1),d.apply(this,m)}else if(i(d))for(m=Array.prototype.slice.call(arguments,1),f=(b=d.slice()).length,p=0;p<f;p++)b[p].apply(this,m);return!0},n.prototype.addListener=function(s,u){var d;if(!r(u))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,r(u.listener)?u.listener:u),this._events[s]?i(this._events[s])?this._events[s].push(u):this._events[s]=[this._events[s],u]:this._events[s]=u,i(this._events[s])&&!this._events[s].warned&&(d=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&d>0&&this._events[s].length>d&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,u){if(!r(u))throw TypeError("listener must be a function");var d=!1;function f(){this.removeListener(s,f),d||(d=!0,u.apply(this,arguments))}return f.listener=u,this.on(s,f),this},n.prototype.removeListener=function(s,u){var d,f,m,p;if(!r(u))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(m=(d=this._events[s]).length,f=-1,d===u||r(d.listener)&&d.listener===u)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,u);else if(i(d)){for(p=m;p-- >0;)if(d[p]===u||d[p].listener&&d[p].listener===u){f=p;break}if(f<0)return this;d.length===1?(d.length=0,delete this._events[s]):d.splice(f,1),this._events.removeListener&&this.emit("removeListener",s,u)}return this},n.prototype.removeAllListeners=function(s){var u,d;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(u in this._events)u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events={},this}if(r(d=this._events[s]))this.removeListener(s,d);else if(d)for(;d.length;)this.removeListener(s,d[d.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var u=this._events[s];if(r(u))return 1;if(u)return u.length}return 0},n.listenerCount=function(s,u){return s.listenerCount(u)}},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 s=n(6);function u(ee){var J=this;this.next=null,this.entry=null,this.finish=function(){(function(ne,he,Q){var se=ne.entry;for(ne.entry=null;se;){var Y=se.callback;he.pendingcb--,Y(void 0),se=se.next}he.corkedRequestsFree?he.corkedRequestsFree.next=ne:he.corkedRequestsFree=ne})(J,ee)}}e.exports=O;var d,f=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;O.WritableState=j;var m=n(5);m.inherits=n(2);var p,b={deprecate:n(44)},_=n(24),w=n(7).Buffer,x=a.Uint8Array||function(){},A=n(25);function C(){}function j(ee,J){d=d||n(1),ee=ee||{};var ne=J instanceof d;this.objectMode=!!ee.objectMode,ne&&(this.objectMode=this.objectMode||!!ee.writableObjectMode);var he=ee.highWaterMark,Q=ee.writableHighWaterMark,se=this.objectMode?16:16384;this.highWaterMark=he||he===0?he:ne&&(Q||Q===0)?Q:se,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 Y=ee.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){(function(I,z){var M=I._writableState,D=M.sync,W=M.writecb;if(function(re){re.writing=!1,re.writecb=null,re.length-=re.writelen,re.writelen=0}(M),z)(function(re,ue,ce,ve,k){--ue.pendingcb,ce?(s.nextTick(k,ve),s.nextTick(oe,re,ue),re._writableState.errorEmitted=!0,re.emit("error",ve)):(k(ve),re._writableState.errorEmitted=!0,re.emit("error",ve),oe(re,ue))})(I,M,D,z,W);else{var H=Z(M);H||M.corked||M.bufferProcessing||!M.bufferedRequest||V(I,M),D?f(B,I,M,H,W):B(I,M,H,W)}})(J,U)},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 u(this)}function O(ee){if(d=d||n(1),!(p.call(O,this)||this instanceof d))return new O(ee);this._writableState=new j(ee,this),this.writable=!0,ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final)),_.call(this)}function N(ee,J,ne,he,Q,se,Y){J.writelen=he,J.writecb=Y,J.writing=!0,J.sync=!0,ne?ee._writev(Q,J.onwrite):ee._write(Q,se,J.onwrite),J.sync=!1}function B(ee,J,ne,he){ne||function(Q,se){se.length===0&&se.needDrain&&(se.needDrain=!1,Q.emit("drain"))}(ee,J),J.pendingcb--,he(),oe(ee,J)}function V(ee,J){J.bufferProcessing=!0;var ne=J.bufferedRequest;if(ee._writev&&ne&&ne.next){var he=J.bufferedRequestCount,Q=new Array(he),se=J.corkedRequestsFree;se.entry=ne;for(var Y=0,U=!0;ne;)Q[Y]=ne,ne.isBuf||(U=!1),ne=ne.next,Y+=1;Q.allBuffers=U,N(ee,J,!0,J.length,Q,"",se.finish),J.pendingcb++,J.lastBufferedRequest=null,se.next?(J.corkedRequestsFree=se.next,se.next=null):J.corkedRequestsFree=new u(J),J.bufferedRequestCount=0}else{for(;ne;){var I=ne.chunk,z=ne.encoding,M=ne.callback;if(N(ee,J,!1,J.objectMode?1:I.length,I,z,M),ne=ne.next,J.bufferedRequestCount--,J.writing)break}ne===null&&(J.lastBufferedRequest=null)}J.bufferedRequest=ne,J.bufferProcessing=!1}function Z(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function X(ee,J){ee._final(function(ne){J.pendingcb--,ne&&ee.emit("error",ne),J.prefinished=!0,ee.emit("prefinish"),oe(ee,J)})}function oe(ee,J){var ne=Z(J);return ne&&(function(he,Q){Q.prefinished||Q.finalCalled||(typeof he._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,s.nextTick(X,he,Q)):(Q.prefinished=!0,he.emit("prefinish")))}(ee,J),J.pendingcb===0&&(J.finished=!0,ee.emit("finish"))),ne}m.inherits(O,_),j.prototype.getBuffer=function(){for(var ee=this.bufferedRequest,J=[];ee;)J.push(ee),ee=ee.next;return J},function(){try{Object.defineProperty(j.prototype,"buffer",{get:b.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(ee){return!!p.call(this,ee)||this===O&&ee&&ee._writableState instanceof j}})):p=function(ee){return ee instanceof this},O.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},O.prototype.write=function(ee,J,ne){var he=this._writableState,Q=!1,se=!he.objectMode&&function(Y){return w.isBuffer(Y)||Y instanceof x}(ee);return se&&!w.isBuffer(ee)&&(ee=function(Y){return w.from(Y)}(ee)),typeof J=="function"&&(ne=J,J=null),se?J="buffer":J||(J=he.defaultEncoding),typeof ne!="function"&&(ne=C),he.ended?function(Y,U){var I=new Error("write after end");Y.emit("error",I),s.nextTick(U,I)}(this,ne):(se||function(Y,U,I,z){var M=!0,D=!1;return I===null?D=new TypeError("May not write null values to stream"):typeof I=="string"||I===void 0||U.objectMode||(D=new TypeError("Invalid non-string/buffer chunk")),D&&(Y.emit("error",D),s.nextTick(z,D),M=!1),M}(this,he,ee,ne))&&(he.pendingcb++,Q=function(Y,U,I,z,M,D){if(!I){var W=function(ce,ve,k){return ce.objectMode||ce.decodeStrings===!1||typeof ve!="string"||(ve=w.from(ve,k)),ve}(U,z,M);z!==W&&(I=!0,M="buffer",z=W)}var H=U.objectMode?1:z.length;U.length+=H;var re=U.length<U.highWaterMark;if(re||(U.needDrain=!0),U.writing||U.corked){var ue=U.lastBufferedRequest;U.lastBufferedRequest={chunk:z,encoding:M,isBuf:I,callback:D,next:null},ue?ue.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else N(Y,U,!1,H,z,M,D);return re}(this,he,se,ee,J,ne)),Q},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,ee.writing||ee.corked||ee.finished||ee.bufferProcessing||!ee.bufferedRequest||V(this,ee))},O.prototype.setDefaultEncoding=function(ee){if(typeof ee=="string"&&(ee=ee.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ee+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ee);return this._writableState.defaultEncoding=ee,this},Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(ee,J,ne){ne(new Error("_write() is not implemented"))},O.prototype._writev=null,O.prototype.end=function(ee,J,ne){var he=this._writableState;typeof ee=="function"?(ne=ee,ee=null,J=null):typeof J=="function"&&(ne=J,J=null),ee!=null&&this.write(ee,J),he.corked&&(he.corked=1,this.uncork()),he.ending||he.finished||function(Q,se,Y){se.ending=!0,oe(Q,se),Y&&(se.finished?s.nextTick(Y):Q.once("finish",Y)),se.ended=!0,Q.writable=!1}(this,he,ne)},Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ee){this._writableState&&(this._writableState.destroyed=ee)}}),O.prototype.destroy=A.destroy,O.prototype._undestroy=A.undestroy,O.prototype._destroy=function(ee,J){this.end(),J(ee)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,a){e.exports=function s(u,d,f){function m(_,w){if(!d[_]){if(!u[_]){var x=typeof _dereq_=="function"&&_dereq_;if(!w&&x)return x(_,!0);if(p)return p(_,!0);var A=new Error("Cannot find module '"+_+"'");throw A.code="MODULE_NOT_FOUND",A}var C=d[_]={exports:{}};u[_][0].call(C.exports,function(j){return m(u[_][1][j]||j)},C,C.exports,s,u,d,f)}return d[_].exports}for(var p=typeof _dereq_=="function"&&_dereq_,b=0;b<f.length;b++)m(f[b]);return m}({1:[function(s,u,d){u.exports=function(f){var m=f._SomePromiseArray;function p(b){var _=new m(b),w=_.promise();return _.setHowMany(1),_.setUnwrap(),_.init(),w}f.any=function(b){return p(b)},f.prototype.any=function(){return p(this)}}},{}],2:[function(s,u,d){var f;try{throw new Error}catch(C){f=C}var m=s("./schedule"),p=s("./queue"),b=s("./util");function _(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p(16),this._normalQueue=new p(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var C=this;this.drainQueues=function(){C._drainQueues()},this._schedule=m}function w(C,j,O){this._lateQueue.push(C,j,O),this._queueTick()}function x(C,j,O){this._normalQueue.push(C,j,O),this._queueTick()}function A(C){this._normalQueue._pushOne(C),this._queueTick()}_.prototype.setScheduler=function(C){var j=this._schedule;return this._schedule=C,this._customScheduler=!0,j},_.prototype.hasCustomScheduler=function(){return this._customScheduler},_.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},_.prototype.disableTrampolineIfNecessary=function(){b.hasDevTools&&(this._trampolineEnabled=!1)},_.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},_.prototype.fatalError=function(C,j){j?(r.stderr.write("Fatal "+(C instanceof Error?C.stack:C)+`
|
||
`),r.exit(2)):this.throwLater(C)},_.prototype.throwLater=function(C,j){if(arguments.length===1&&(j=C,C=function(){throw j}),typeof setTimeout<"u")setTimeout(function(){C(j)},0);else try{this._schedule(function(){C(j)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},b.hasDevTools?(_.prototype.invokeLater=function(C,j,O){this._trampolineEnabled?w.call(this,C,j,O):this._schedule(function(){setTimeout(function(){C.call(j,O)},100)})},_.prototype.invoke=function(C,j,O){this._trampolineEnabled?x.call(this,C,j,O):this._schedule(function(){C.call(j,O)})},_.prototype.settlePromises=function(C){this._trampolineEnabled?A.call(this,C):this._schedule(function(){C._settlePromises()})}):(_.prototype.invokeLater=w,_.prototype.invoke=x,_.prototype.settlePromises=A),_.prototype._drainQueue=function(C){for(;C.length()>0;){var j=C.shift();if(typeof j=="function"){var O=C.shift(),N=C.shift();j.call(O,N)}else j._settlePromises()}},_.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},_.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},_.prototype._reset=function(){this._isTickUsed=!1},u.exports=_,u.exports.firstLineError=f},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,u,d){u.exports=function(f,m,p,b){var _=!1,w=function(j,O){this._reject(O)},x=function(j,O){O.promiseRejectionQueued=!0,O.bindingPromise._then(w,w,null,this,j)},A=function(j,O){(50397184&this._bitField)==0&&this._resolveCallback(O.target)},C=function(j,O){O.promiseRejectionQueued||this._reject(j)};f.prototype.bind=function(j){_||(_=!0,f.prototype._propagateFrom=b.propagateFromFunction(),f.prototype._boundValue=b.boundValueFunction());var O=p(j),N=new f(m);N._propagateFrom(this,1);var B=this._target();if(N._setBoundTo(O),O instanceof f){var V={promiseRejectionQueued:!1,promise:N,target:B,bindingPromise:O};B._then(m,x,void 0,N,V),O._then(A,C,void 0,N,V),N._setOnCancel(O)}else N._resolveCallback(B);return N},f.prototype._setBoundTo=function(j){j!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=j):this._bitField=-2097153&this._bitField},f.prototype._isBound=function(){return(2097152&this._bitField)==2097152},f.bind=function(j,O){return f.resolve(O).bind(j)}}},{}],4:[function(s,u,d){var f;typeof Promise<"u"&&(f=Promise);var m=s("./promise")();m.noConflict=function(){try{Promise===m&&(Promise=f)}catch{}return m},u.exports=m},{"./promise":22}],5:[function(s,u,d){var f=Object.create;if(f){var m=f(null),p=f(null);m[" size"]=p[" size"]=0}u.exports=function(b){var _=s("./util"),w=_.canEvaluate;function x(j){return function(O,N){var B;if(O!=null&&(B=O[N]),typeof B!="function"){var V="Object "+_.classString(O)+" has no method '"+_.toString(N)+"'";throw new b.TypeError(V)}return B}(j,this.pop()).apply(j,this)}function A(j){return j[this]}function C(j){var O=+this;return O<0&&(O=Math.max(0,O+j.length)),j[O]}_.isIdentifier,b.prototype.call=function(j){var O=[].slice.call(arguments,1);return O.push(j),this._then(x,void 0,void 0,O,void 0)},b.prototype.get=function(j){var O;if(typeof j=="number")O=C;else if(w){var N=(void 0)(j);O=N!==null?N:A}else O=A;return this._then(O,void 0,void 0,j,void 0)}}},{"./util":36}],6:[function(s,u,d){u.exports=function(f,m,p,b){var _=s("./util"),w=_.tryCatch,x=_.errorObj,A=f._async;f.prototype.break=f.prototype.cancel=function(){if(!b.cancellation())return this._warn("cancellation is disabled");for(var C=this,j=C;C._isCancellable();){if(!C._cancelBy(j)){j._isFollowing()?j._followee().cancel():j._cancelBranched();break}var O=C._cancellationParent;if(O==null||!O._isCancellable()){C._isFollowing()?C._followee().cancel():C._cancelBranched();break}C._isFollowing()&&C._followee().cancel(),C._setWillBeCancelled(),j=C,C=O}},f.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},f.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},f.prototype._cancelBy=function(C){return C===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},f.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},f.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),A.invoke(this._cancelPromises,this,void 0))},f.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},f.prototype._unsetOnCancel=function(){this._onCancelField=void 0},f.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},f.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},f.prototype._doInvokeOnCancel=function(C,j){if(_.isArray(C))for(var O=0;O<C.length;++O)this._doInvokeOnCancel(C[O],j);else if(C!==void 0)if(typeof C=="function"){if(!j){var N=w(C).call(this._boundValue());N===x&&(this._attachExtraTrace(N.e),A.throwLater(N.e))}}else C._resultCancelled(this)},f.prototype._invokeOnCancel=function(){var C=this._onCancel();this._unsetOnCancel(),A.invoke(this._doInvokeOnCancel,this,C)},f.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},f.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,u,d){u.exports=function(f){var m=s("./util"),p=s("./es5").keys,b=m.tryCatch,_=m.errorObj;return function(w,x,A){return function(C){var j=A._boundValue();e:for(var O=0;O<w.length;++O){var N=w[O];if(N===Error||N!=null&&N.prototype instanceof Error){if(C instanceof N)return b(x).call(j,C)}else if(typeof N=="function"){var B=b(N).call(j,C);if(B===_)return B;if(B)return b(x).call(j,C)}else if(m.isObject(C)){for(var V=p(N),Z=0;Z<V.length;++Z){var X=V[Z];if(N[X]!=C[X])continue e}return b(x).call(j,C)}}return f}}}},{"./es5":13,"./util":36}],8:[function(s,u,d){u.exports=function(f){var m=!1,p=[];function b(){this._trace=new b.CapturedTrace(_())}function _(){var w=p.length-1;if(w>=0)return p[w]}return f.prototype._promiseCreated=function(){},f.prototype._pushContext=function(){},f.prototype._popContext=function(){return null},f._peekContext=f.prototype._peekContext=function(){},b.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},b.prototype._popContext=function(){if(this._trace!==void 0){var w=p.pop(),x=w._promiseCreated;return w._promiseCreated=null,x}return null},b.CapturedTrace=null,b.create=function(){if(m)return new b},b.deactivateLongStackTraces=function(){},b.activateLongStackTraces=function(){var w=f.prototype._pushContext,x=f.prototype._popContext,A=f._peekContext,C=f.prototype._peekContext,j=f.prototype._promiseCreated;b.deactivateLongStackTraces=function(){f.prototype._pushContext=w,f.prototype._popContext=x,f._peekContext=A,f.prototype._peekContext=C,f.prototype._promiseCreated=j,m=!1},m=!0,f.prototype._pushContext=b.prototype._pushContext,f.prototype._popContext=b.prototype._popContext,f._peekContext=f.prototype._peekContext=_,f.prototype._promiseCreated=function(){var O=this._peekContext();O&&O._promiseCreated==null&&(O._promiseCreated=this)}},b}},{}],9:[function(s,u,d){u.exports=function(f,m){var p,b,_,w=f._getDomain,x=f._async,A=s("./errors").Warning,C=s("./util"),j=C.canAttachTrace,O=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,N=/\((?:timers\.js):\d+:\d+\)/,B=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,V=null,Z=null,X=!1,oe=C.env("BLUEBIRD_DEBUG")!=0,ee=!(C.env("BLUEBIRD_WARNINGS")==0||!oe&&!C.env("BLUEBIRD_WARNINGS")),J=!(C.env("BLUEBIRD_LONG_STACK_TRACES")==0||!oe&&!C.env("BLUEBIRD_LONG_STACK_TRACES")),ne=C.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(ee||!!C.env("BLUEBIRD_W_FORGOTTEN_RETURN"));f.prototype.suppressUnhandledRejections=function(){var be=this._target();be._bitField=-1048577&be._bitField|524288},f.prototype._ensurePossibleRejectionHandled=function(){if((524288&this._bitField)==0){this._setRejectionIsUnhandled();var be=this;setTimeout(function(){be._notifyUnhandledRejection()},1)}},f.prototype._notifyUnhandledRejectionIsHandled=function(){fe("rejectionHandled",p,void 0,this)},f.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},f.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},f.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var be=this._settledValue();this._setUnhandledRejectionIsNotified(),fe("unhandledRejection",b,be,this)}},f.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},f.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},f.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},f.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},f.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},f.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},f.prototype._warn=function(be,we,De){return G(be,we,De||this)},f.onPossiblyUnhandledRejection=function(be){var we=w();b=typeof be=="function"?we===null?be:C.domainBind(we,be):void 0},f.onUnhandledRejectionHandled=function(be){var we=w();p=typeof be=="function"?we===null?be:C.domainBind(we,be):void 0};var he=function(){};f.longStackTraces=function(){if(x.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!qe.longStackTraces&&de()){var be=f.prototype._captureStackTrace,we=f.prototype._attachExtraTrace;qe.longStackTraces=!0,he=function(){if(x.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);f.prototype._captureStackTrace=be,f.prototype._attachExtraTrace=we,m.deactivateLongStackTraces(),x.enableTrampoline(),qe.longStackTraces=!1},f.prototype._captureStackTrace=k,f.prototype._attachExtraTrace=F,m.activateLongStackTraces(),x.disableTrampolineIfNecessary()}},f.hasLongStackTraces=function(){return qe.longStackTraces&&de()};var Q=function(){try{if(typeof CustomEvent=="function"){var be=new CustomEvent("CustomEvent");return C.global.dispatchEvent(be),function(we,De){var Re=new CustomEvent(we.toLowerCase(),{detail:De,cancelable:!0});return!C.global.dispatchEvent(Re)}}return typeof Event=="function"?(be=new Event("CustomEvent"),C.global.dispatchEvent(be),function(we,De){var Re=new Event(we.toLowerCase(),{cancelable:!0});return Re.detail=De,!C.global.dispatchEvent(Re)}):((be=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),C.global.dispatchEvent(be),function(we,De){var Re=document.createEvent("CustomEvent");return Re.initCustomEvent(we.toLowerCase(),!1,!0,De),!C.global.dispatchEvent(Re)})}catch{}return function(){return!1}}(),se=C.isNode?function(){return r.emit.apply(r,arguments)}:C.global?function(be){var we="on"+be.toLowerCase(),De=C.global[we];return!!De&&(De.apply(C.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Y(be,we){return{promise:we}}var U={promiseCreated:Y,promiseFulfilled:Y,promiseRejected:Y,promiseResolved:Y,promiseCancelled:Y,promiseChained:function(be,we,De){return{promise:we,child:De}},warning:function(be,we){return{warning:we}},unhandledRejection:function(be,we,De){return{reason:we,promise:De}},rejectionHandled:Y},I=function(be){var we=!1;try{we=se.apply(null,arguments)}catch(Re){x.throwLater(Re),we=!0}var De=!1;try{De=Q(be,U[be].apply(null,arguments))}catch(Re){x.throwLater(Re),De=!0}return De||we};function z(){return!1}function M(be,we,De){var Re=this;try{be(we,De,function(Ae){if(typeof Ae!="function")throw new TypeError("onCancel must be a function, got: "+C.toString(Ae));Re._attachCancellationCallback(Ae)})}catch(Ae){return Ae}}function D(be){if(!this._isCancellable())return this;var we=this._onCancel();we!==void 0?C.isArray(we)?we.push(be):this._setOnCancel([we,be]):this._setOnCancel(be)}function W(){return this._onCancelField}function H(be){this._onCancelField=be}function re(){this._cancellationParent=void 0,this._onCancelField=void 0}function ue(be,we){if((1&we)!=0){this._cancellationParent=be;var De=be._branchesRemainingToCancel;De===void 0&&(De=0),be._branchesRemainingToCancel=De+1}(2&we)!=0&&be._isBound()&&this._setBoundTo(be._boundTo)}f.config=function(be){if("longStackTraces"in(be=Object(be))&&(be.longStackTraces?f.longStackTraces():!be.longStackTraces&&f.hasLongStackTraces()&&he()),"warnings"in be){var we=be.warnings;qe.warnings=!!we,ne=qe.warnings,C.isObject(we)&&"wForgottenReturn"in we&&(ne=!!we.wForgottenReturn)}if("cancellation"in be&&be.cancellation&&!qe.cancellation){if(x.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");f.prototype._clearCancellationData=re,f.prototype._propagateFrom=ue,f.prototype._onCancel=W,f.prototype._setOnCancel=H,f.prototype._attachCancellationCallback=D,f.prototype._execute=M,ce=ue,qe.cancellation=!0}return"monitoring"in be&&(be.monitoring&&!qe.monitoring?(qe.monitoring=!0,f.prototype._fireEvent=I):!be.monitoring&&qe.monitoring&&(qe.monitoring=!1,f.prototype._fireEvent=z)),f},f.prototype._fireEvent=z,f.prototype._execute=function(be,we,De){try{be(we,De)}catch(Re){return Re}},f.prototype._onCancel=function(){},f.prototype._setOnCancel=function(be){},f.prototype._attachCancellationCallback=function(be){},f.prototype._captureStackTrace=function(){},f.prototype._attachExtraTrace=function(){},f.prototype._clearCancellationData=function(){},f.prototype._propagateFrom=function(be,we){};var ce=function(be,we){(2&we)!=0&&be._isBound()&&this._setBoundTo(be._boundTo)};function ve(){var be=this._boundTo;return be!==void 0&&be instanceof f?be.isFulfilled()?be.value():void 0:be}function k(){this._trace=new He(this._peekContext())}function F(be,we){if(j(be)){var De=this._trace;if(De!==void 0&&we&&(De=De._parent),De!==void 0)De.attachExtraTrace(be);else if(!be.__stackCleaned__){var Re=q(be);C.notEnumerableProp(be,"stack",Re.message+`
|
||
`+Re.stack.join(`
|
||
`)),C.notEnumerableProp(be,"__stackCleaned__",!0)}}}function G(be,we,De){if(qe.warnings){var Re,Ae=new A(be);if(we)De._attachExtraTrace(Ae);else if(qe.longStackTraces&&(Re=f._peekContext()))Re.attachExtraTrace(Ae);else{var ze=q(Ae);Ae.stack=ze.message+`
|
||
`+ze.stack.join(`
|
||
`)}I("warning",Ae)||ae(Ae,"",!0)}}function le(be){for(var we=[],De=0;De<be.length;++De){var Re=be[De],Ae=Re===" (No stack trace)"||V.test(Re),ze=Ae&&_e(Re);Ae&&!ze&&(X&&Re.charAt(0)!==" "&&(Re=" "+Re),we.push(Re))}return we}function q(be){var we=be.stack,De=be.toString();return we=typeof we=="string"&&we.length>0?function(Re){for(var Ae=Re.stack.replace(/\s+$/g,"").split(`
|
||
`),ze=0;ze<Ae.length;++ze){var Ve=Ae[ze];if(Ve===" (No stack trace)"||V.test(Ve))break}return ze>0&&Re.name!="SyntaxError"&&(Ae=Ae.slice(ze)),Ae}(be):[" (No stack trace)"],{message:De,stack:be.name=="SyntaxError"?we:le(we)}}function ae(be,we,De){if(typeof console<"u"){var Re;if(C.isObject(be)){var Ae=be.stack;Re=we+Z(Ae,be)}else Re=we+String(be);typeof _=="function"?_(Re,De):typeof console.log!="function"&&typeof console.log!="object"||console.log(Re)}}function fe(be,we,De,Re){var Ae=!1;try{typeof we=="function"&&(Ae=!0,be==="rejectionHandled"?we(Re):we(De,Re))}catch(ze){x.throwLater(ze)}be==="unhandledRejection"?I(be,De,Re)||Ae||ae(De,"Unhandled rejection "):I(be,Re)}function ge(be){var we;if(typeof be=="function")we="[function "+(be.name||"anonymous")+"]";else{if(we=be&&typeof be.toString=="function"?be.toString():C.toString(be),/\[object [a-zA-Z0-9$_]+\]/.test(we))try{we=JSON.stringify(be)}catch{}we.length===0&&(we="(empty array)")}return"(<"+function(De){return De.length<41?De:De.substr(0,38)+"..."}(we)+">, no stack trace)"}function de(){return typeof Be=="function"}var _e=function(){return!1},Te=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Le(be){var we=be.match(Te);if(we)return{fileName:we[1],line:parseInt(we[2],10)}}function He(be){this._parent=be,this._promisesCreated=0;var we=this._length=1+(be===void 0?0:be._length);Be(this,He),we>32&&this.uncycle()}C.inherits(He,Error),m.CapturedTrace=He,He.prototype.uncycle=function(){var be=this._length;if(!(be<2)){for(var we=[],De={},Re=0,Ae=this;Ae!==void 0;++Re)we.push(Ae),Ae=Ae._parent;for(Re=(be=this._length=Re)-1;Re>=0;--Re){var ze=we[Re].stack;De[ze]===void 0&&(De[ze]=Re)}for(Re=0;Re<be;++Re){var Ve=De[we[Re].stack];if(Ve!==void 0&&Ve!==Re){Ve>0&&(we[Ve-1]._parent=void 0,we[Ve-1]._length=1),we[Re]._parent=void 0,we[Re]._length=1;var Ze=Re>0?we[Re-1]:this;Ve<be-1?(Ze._parent=we[Ve+1],Ze._parent.uncycle(),Ze._length=Ze._parent._length+1):(Ze._parent=void 0,Ze._length=1);for(var ut=Ze._length+1,at=Re-2;at>=0;--at)we[at]._length=ut,ut++;return}}}},He.prototype.attachExtraTrace=function(be){if(!be.__stackCleaned__){this.uncycle();for(var we=q(be),De=we.message,Re=[we.stack],Ae=this;Ae!==void 0;)Re.push(le(Ae.stack.split(`
|
||
`))),Ae=Ae._parent;(function(ze){for(var Ve=ze[0],Ze=1;Ze<ze.length;++Ze){for(var ut=ze[Ze],at=Ve.length-1,pt=Ve[at],Dt=-1,kt=ut.length-1;kt>=0;--kt)if(ut[kt]===pt){Dt=kt;break}for(kt=Dt;kt>=0;--kt){var It=ut[kt];if(Ve[at]!==It)break;Ve.pop(),at--}Ve=ut}})(Re),function(ze){for(var Ve=0;Ve<ze.length;++Ve)(ze[Ve].length===0||Ve+1<ze.length&&ze[Ve][0]===ze[Ve+1][0])&&(ze.splice(Ve,1),Ve--)}(Re),C.notEnumerableProp(be,"stack",function(ze,Ve){for(var Ze=0;Ze<Ve.length-1;++Ze)Ve[Ze].push("From previous event:"),Ve[Ze]=Ve[Ze].join(`
|
||
`);return Ze<Ve.length&&(Ve[Ze]=Ve[Ze].join(`
|
||
`)),ze+`
|
||
`+Ve.join(`
|
||
`)}(De,Re)),C.notEnumerableProp(be,"__stackCleaned__",!0)}};var Be=function(){var be=/^\s*at\s*/,we=function(ze,Ve){return typeof ze=="string"?ze:Ve.name!==void 0&&Ve.message!==void 0?Ve.toString():ge(Ve)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,V=be,Z=we;var De=Error.captureStackTrace;return _e=function(ze){return O.test(ze)},function(ze,Ve){Error.stackTraceLimit+=6,De(ze,Ve),Error.stackTraceLimit-=6}}var Re,Ae=new Error;if(typeof Ae.stack=="string"&&Ae.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return V=/@/,Z=we,X=!0,function(ze){ze.stack=new Error().stack};try{throw new Error}catch(ze){Re="stack"in ze}return"stack"in Ae||!Re||typeof Error.stackTraceLimit!="number"?(Z=function(ze,Ve){return typeof ze=="string"?ze:typeof Ve!="object"&&typeof Ve!="function"||Ve.name===void 0||Ve.message===void 0?ge(Ve):Ve.toString()},null):(V=be,Z=we,function(ze){Error.stackTraceLimit+=6;try{throw new Error}catch(Ve){ze.stack=Ve.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(_=function(be){console.warn(be)},C.isNode&&r.stderr.isTTY?_=function(be,we){var De=we?"\x1B[33m":"\x1B[31m";console.warn(De+be+`\x1B[0m
|
||
`)}:C.isNode||typeof new Error().stack!="string"||(_=function(be,we){console.warn("%c"+be,we?"color: darkorange":"color: red")}));var qe={warnings:ee,longStackTraces:!1,cancellation:!1,monitoring:!1};return J&&f.longStackTraces(),{longStackTraces:function(){return qe.longStackTraces},warnings:function(){return qe.warnings},cancellation:function(){return qe.cancellation},monitoring:function(){return qe.monitoring},propagateFromFunction:function(){return ce},boundValueFunction:function(){return ve},checkForgottenReturns:function(be,we,De,Re,Ae){if(be===void 0&&we!==null&&ne){if(Ae!==void 0&&Ae._returnedNonUndefined()||(65535&Re._bitField)==0)return;De&&(De+=" ");var ze="",Ve="";if(we._trace){for(var Ze=we._trace.stack.split(`
|
||
`),ut=le(Ze),at=ut.length-1;at>=0;--at){var pt=ut[at];if(!N.test(pt)){var Dt=pt.match(B);Dt&&(ze="at "+Dt[1]+":"+Dt[2]+":"+Dt[3]+" ");break}}if(ut.length>0){var kt=ut[0];for(at=0;at<Ze.length;++at)if(Ze[at]===kt){at>0&&(Ve=`
|
||
`+Ze[at-1]);break}}}var It="a promise was created in a "+De+"handler "+ze+"but was not returned from it, see http://goo.gl/rRqMUw"+Ve;Re._warn(It,!0,we)}},setBounds:function(be,we){if(de()){for(var De,Re,Ae=be.stack.split(`
|
||
`),ze=we.stack.split(`
|
||
`),Ve=-1,Ze=-1,ut=0;ut<Ae.length;++ut)if(at=Le(Ae[ut])){De=at.fileName,Ve=at.line;break}for(ut=0;ut<ze.length;++ut){var at;if(at=Le(ze[ut])){Re=at.fileName,Ze=at.line;break}}Ve<0||Ze<0||!De||!Re||De!==Re||Ve>=Ze||(_e=function(pt){if(O.test(pt))return!0;var Dt=Le(pt);return!!(Dt&&Dt.fileName===De&&Ve<=Dt.line&&Dt.line<=Ze)})}},warn:G,deprecated:function(be,we){var De=be+" is deprecated and will be removed in a future version.";return we&&(De+=" Use "+we+" instead."),G(De)},CapturedTrace:He,fireDomEvent:Q,fireGlobalEvent:se}}},{"./errors":12,"./util":36}],10:[function(s,u,d){u.exports=function(f){function m(){return this.value}function p(){throw this.reason}f.prototype.return=f.prototype.thenReturn=function(b){return b instanceof f&&b.suppressUnhandledRejections(),this._then(m,void 0,void 0,{value:b},void 0)},f.prototype.throw=f.prototype.thenThrow=function(b){return this._then(p,void 0,void 0,{reason:b},void 0)},f.prototype.catchThrow=function(b){if(arguments.length<=1)return this._then(void 0,p,void 0,{reason:b},void 0);var _=arguments[1];return this.caught(b,function(){throw _})},f.prototype.catchReturn=function(b){if(arguments.length<=1)return b instanceof f&&b.suppressUnhandledRejections(),this._then(void 0,m,void 0,{value:b},void 0);var _=arguments[1];return _ instanceof f&&_.suppressUnhandledRejections(),this.caught(b,function(){return _})}}},{}],11:[function(s,u,d){u.exports=function(f,m){var p=f.reduce,b=f.all;function _(){return b(this)}f.prototype.each=function(w){return p(this,w,m,0)._then(_,void 0,void 0,this,void 0)},f.prototype.mapSeries=function(w){return p(this,w,m,m)},f.each=function(w,x){return p(w,x,m,0)._then(_,void 0,void 0,w,void 0)},f.mapSeries=function(w,x){return p(w,x,m,m)}}},{}],12:[function(s,u,d){var f,m,p=s("./es5"),b=p.freeze,_=s("./util"),w=_.inherits,x=_.notEnumerableProp;function A(ee,J){function ne(he){if(!(this instanceof ne))return new ne(he);x(this,"message",typeof he=="string"?he:J),x(this,"name",ee),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return w(ne,Error),ne}var C=A("Warning","warning"),j=A("CancellationError","cancellation error"),O=A("TimeoutError","timeout error"),N=A("AggregateError","aggregate error");try{f=TypeError,m=RangeError}catch{f=A("TypeError","type error"),m=A("RangeError","range error")}for(var B="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),V=0;V<B.length;++V)typeof Array.prototype[B[V]]=="function"&&(N.prototype[B[V]]=Array.prototype[B[V]]);p.defineProperty(N.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),N.prototype.isOperational=!0;var Z=0;function X(ee){if(!(this instanceof X))return new X(ee);x(this,"name","OperationalError"),x(this,"message",ee),this.cause=ee,this.isOperational=!0,ee instanceof Error?(x(this,"message",ee.message),x(this,"stack",ee.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}N.prototype.toString=function(){var ee=Array(4*Z+1).join(" "),J=`
|
||
`+ee+`AggregateError of:
|
||
`;Z++,ee=Array(4*Z+1).join(" ");for(var ne=0;ne<this.length;++ne){for(var he=this[ne]===this?"[Circular AggregateError]":this[ne]+"",Q=he.split(`
|
||
`),se=0;se<Q.length;++se)Q[se]=ee+Q[se];J+=(he=Q.join(`
|
||
`))+`
|
||
`}return Z--,J},w(X,Error);var oe=Error.__BluebirdErrorTypes__;oe||(oe=b({CancellationError:j,TimeoutError:O,OperationalError:X,RejectionError:X,AggregateError:N}),p.defineProperty(Error,"__BluebirdErrorTypes__",{value:oe,writable:!1,enumerable:!1,configurable:!1})),u.exports={Error,TypeError:f,RangeError:m,CancellationError:oe.CancellationError,OperationalError:oe.OperationalError,TimeoutError:oe.TimeoutError,AggregateError:oe.AggregateError,Warning:C}},{"./es5":13,"./util":36}],13:[function(s,u,d){var f=function(){return this===void 0}();if(f)u.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:f,propertyIsWritable:function(w,x){var A=Object.getOwnPropertyDescriptor(w,x);return!(A&&!A.writable&&!A.set)}};else{var m={}.hasOwnProperty,p={}.toString,b={}.constructor.prototype,_=function(w){var x=[];for(var A in w)m.call(w,A)&&x.push(A);return x};u.exports={isArray:function(w){try{return p.call(w)==="[object Array]"}catch{return!1}},keys:_,names:_,defineProperty:function(w,x,A){return w[x]=A.value,w},getDescriptor:function(w,x){return{value:w[x]}},freeze:function(w){return w},getPrototypeOf:function(w){try{return Object(w).constructor.prototype}catch{return b}},isES5:f,propertyIsWritable:function(){return!0}}}},{}],14:[function(s,u,d){u.exports=function(f,m){var p=f.map;f.prototype.filter=function(b,_){return p(this,b,_,m)},f.filter=function(b,_,w){return p(b,_,w,m)}}},{}],15:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=f.CancellationError,w=b.errorObj,x=s("./catch_filter")(p);function A(V,Z,X){this.promise=V,this.type=Z,this.handler=X,this.called=!1,this.cancelPromise=null}function C(V){this.finallyHandler=V}function j(V,Z){return V.cancelPromise!=null&&(arguments.length>1?V.cancelPromise._reject(Z):V.cancelPromise._cancel(),V.cancelPromise=null,!0)}function O(){return B.call(this,this.promise._target()._settledValue())}function N(V){if(!j(this,V))return w.e=V,w}function B(V){var Z=this.promise,X=this.handler;if(!this.called){this.called=!0;var oe=this.isFinallyHandler()?X.call(Z._boundValue()):X.call(Z._boundValue(),V);if(oe===p)return oe;if(oe!==void 0){Z._setReturnedNonUndefined();var ee=m(oe,Z);if(ee instanceof f){if(this.cancelPromise!=null){if(ee._isCancelled()){var J=new _("late cancellation observer");return Z._attachExtraTrace(J),w.e=J,w}ee.isPending()&&ee._attachCancellationCallback(new C(this))}return ee._then(O,N,void 0,this,void 0)}}}return Z.isRejected()?(j(this),w.e=V,w):(j(this),V)}return A.prototype.isFinallyHandler=function(){return this.type===0},C.prototype._resultCancelled=function(){j(this.finallyHandler)},f.prototype._passThrough=function(V,Z,X,oe){return typeof V!="function"?this.then():this._then(X,oe,void 0,new A(this,Z,V),void 0)},f.prototype.lastly=f.prototype.finally=function(V){return this._passThrough(V,0,B,B)},f.prototype.tap=function(V){return this._passThrough(V,1,B)},f.prototype.tapCatch=function(V){var Z=arguments.length;if(Z===1)return this._passThrough(V,1,void 0,B);var X,oe=new Array(Z-1),ee=0;for(X=0;X<Z-1;++X){var J=arguments[X];if(!b.isObject(J))return f.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+b.classString(J)));oe[ee++]=J}oe.length=ee;var ne=arguments[X];return this._passThrough(x(oe,ne,this),1,void 0,B)},A}},{"./catch_filter":7,"./util":36}],16:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./errors").TypeError,A=s("./util"),C=A.errorObj,j=A.tryCatch,O=[];function N(B,V,Z,X){if(w.cancellation()){var oe=new f(p),ee=this._finallyPromise=new f(p);this._promise=oe.lastly(function(){return ee}),oe._captureStackTrace(),oe._setOnCancel(this)}else(this._promise=new f(p))._captureStackTrace();this._stack=X,this._generatorFunction=B,this._receiver=V,this._generator=void 0,this._yieldHandlers=typeof Z=="function"?[Z].concat(O):O,this._yieldedPromise=null,this._cancellationPhase=!1}A.inherits(N,_),N.prototype._isResolved=function(){return this._promise===null},N.prototype._cleanup=function(){this._promise=this._generator=null,w.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},N.prototype._promiseCancelled=function(){if(!this._isResolved()){var B;if(this._generator.return!==void 0)this._promise._pushContext(),B=j(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var V=new f.CancellationError("generator .return() sentinel");f.coroutine.returnSentinel=V,this._promise._attachExtraTrace(V),this._promise._pushContext(),B=j(this._generator.throw).call(this._generator,V),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(B)}},N.prototype._promiseFulfilled=function(B){this._yieldedPromise=null,this._promise._pushContext();var V=j(this._generator.next).call(this._generator,B);this._promise._popContext(),this._continue(V)},N.prototype._promiseRejected=function(B){this._yieldedPromise=null,this._promise._attachExtraTrace(B),this._promise._pushContext();var V=j(this._generator.throw).call(this._generator,B);this._promise._popContext(),this._continue(V)},N.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof f){var B=this._yieldedPromise;this._yieldedPromise=null,B.cancel()}},N.prototype.promise=function(){return this._promise},N.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},N.prototype._continue=function(B){var V=this._promise;if(B===C)return this._cleanup(),this._cancellationPhase?V.cancel():V._rejectCallback(B.e,!1);var Z=B.value;if(B.done===!0)return this._cleanup(),this._cancellationPhase?V.cancel():V._resolveCallback(Z);var X=b(Z,this._promise);if(X instanceof f||(X=function(ee,J,ne){for(var he=0;he<J.length;++he){ne._pushContext();var Q=j(J[he])(ee);if(ne._popContext(),Q===C){ne._pushContext();var se=f.reject(C.e);return ne._popContext(),se}var Y=b(Q,ne);if(Y instanceof f)return Y}return null}(X,this._yieldHandlers,this._promise))!==null){var oe=(X=X._target())._bitField;(50397184&oe)==0?(this._yieldedPromise=X,X._proxy(this,null)):(33554432&oe)!=0?f._async.invoke(this._promiseFulfilled,this,X._value()):(16777216&oe)!=0?f._async.invoke(this._promiseRejected,this,X._reason()):this._promiseCancelled()}else this._promiseRejected(new x(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(Z))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},f.coroutine=function(B,V){if(typeof B!="function")throw new x(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Z=Object(V).yieldHandler,X=N,oe=new Error().stack;return function(){var ee=B.apply(this,arguments),J=new X(void 0,void 0,Z,oe),ne=J.promise();return J._generator=ee,J._promiseFulfilled(void 0),ne}},f.coroutine.addYieldHandler=function(B){if(typeof B!="function")throw new x("expecting a function but got "+A.classString(B));O.push(B)},f.spawn=function(B){if(w.deprecated("Promise.spawn()","Promise.coroutine()"),typeof B!="function")return m(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var V=new N(B,this),Z=V.promise();return V._run(f.spawn),Z}}},{"./errors":12,"./util":36}],17:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./util");x.canEvaluate,x.tryCatch,x.errorObj,f.join=function(){var A,C=arguments.length-1;C>0&&typeof arguments[C]=="function"&&(A=arguments[C]);var j=[].slice.call(arguments);A&&j.pop();var O=new m(j).promise();return A!==void 0?O.spread(A):O}}},{"./util":36}],18:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=f._getDomain,A=s("./util"),C=A.tryCatch,j=A.errorObj,O=f._async;function N(V,Z,X,oe){this.constructor$(V),this._promise._captureStackTrace();var ee=x();this._callback=ee===null?Z:A.domainBind(ee,Z),this._preservedValues=oe===_?new Array(this.length()):null,this._limit=X,this._inFlight=0,this._queue=[],O.invoke(this._asyncInit,this,void 0)}function B(V,Z,X,oe){if(typeof Z!="function")return p("expecting a function but got "+A.classString(Z));var ee=0;if(X!==void 0){if(typeof X!="object"||X===null)return f.reject(new TypeError("options argument must be an object but it is "+A.classString(X)));if(typeof X.concurrency!="number")return f.reject(new TypeError("'concurrency' must be a number but it is "+A.classString(X.concurrency)));ee=X.concurrency}return new N(V,Z,ee=typeof ee=="number"&&isFinite(ee)&&ee>=1?ee:0,oe).promise()}A.inherits(N,m),N.prototype._asyncInit=function(){this._init$(void 0,-2)},N.prototype._init=function(){},N.prototype._promiseFulfilled=function(V,Z){var X=this._values,oe=this.length(),ee=this._preservedValues,J=this._limit;if(Z<0){if(X[Z=-1*Z-1]=V,J>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(J>=1&&this._inFlight>=J)return X[Z]=V,this._queue.push(Z),!1;ee!==null&&(ee[Z]=V);var ne=this._promise,he=this._callback,Q=ne._boundValue();ne._pushContext();var se=C(he).call(Q,V,Z,oe),Y=ne._popContext();if(w.checkForgottenReturns(se,Y,ee!==null?"Promise.filter":"Promise.map",ne),se===j)return this._reject(se.e),!0;var U=b(se,this._promise);if(U instanceof f){var I=(U=U._target())._bitField;if((50397184&I)==0)return J>=1&&this._inFlight++,X[Z]=U,U._proxy(this,-1*(Z+1)),!1;if((33554432&I)==0)return(16777216&I)!=0?(this._reject(U._reason()),!0):(this._cancel(),!0);se=U._value()}X[Z]=se}return++this._totalResolved>=oe&&(ee!==null?this._filter(X,ee):this._resolve(X),!0)},N.prototype._drainQueue=function(){for(var V=this._queue,Z=this._limit,X=this._values;V.length>0&&this._inFlight<Z;){if(this._isResolved())return;var oe=V.pop();this._promiseFulfilled(X[oe],oe)}},N.prototype._filter=function(V,Z){for(var X=Z.length,oe=new Array(X),ee=0,J=0;J<X;++J)V[J]&&(oe[ee++]=Z[J]);oe.length=ee,this._resolve(oe)},N.prototype.preservedValues=function(){return this._preservedValues},f.prototype.map=function(V,Z){return B(this,V,Z,null)},f.map=function(V,Z,X,oe){return B(V,Z,X,oe)}}},{"./util":36}],19:[function(s,u,d){u.exports=function(f,m,p,b,_){var w=s("./util"),x=w.tryCatch;f.method=function(A){if(typeof A!="function")throw new f.TypeError("expecting a function but got "+w.classString(A));return function(){var C=new f(m);C._captureStackTrace(),C._pushContext();var j=x(A).apply(this,arguments),O=C._popContext();return _.checkForgottenReturns(j,O,"Promise.method",C),C._resolveFromSyncValue(j),C}},f.attempt=f.try=function(A){if(typeof A!="function")return b("expecting a function but got "+w.classString(A));var C,j=new f(m);if(j._captureStackTrace(),j._pushContext(),arguments.length>1){_.deprecated("calling Promise.try with more than 1 argument");var O=arguments[1],N=arguments[2];C=w.isArray(O)?x(A).apply(N,O):x(A).call(N,O)}else C=x(A)();var B=j._popContext();return _.checkForgottenReturns(C,B,"Promise.try",j),j._resolveFromSyncValue(C),j},f.prototype._resolveFromSyncValue=function(A){A===w.errorObj?this._rejectCallback(A.e,!1):this._resolveCallback(A,!0)}}},{"./util":36}],20:[function(s,u,d){var f=s("./util"),m=f.maybeWrapAsError,p=s("./errors").OperationalError,b=s("./es5"),_=/^(?:name|message|stack|cause)$/;function w(x){var A;if(function(N){return N instanceof Error&&b.getPrototypeOf(N)===Error.prototype}(x)){(A=new p(x)).name=x.name,A.message=x.message,A.stack=x.stack;for(var C=b.keys(x),j=0;j<C.length;++j){var O=C[j];_.test(O)||(A[O]=x[O])}return A}return f.markAsOriginatingFromRejection(x),x}u.exports=function(x,A){return function(C,j){if(x!==null){if(C){var O=w(m(C));x._attachExtraTrace(O),x._reject(O)}else if(A){var N=[].slice.call(arguments,1);x._fulfill(N)}else x._fulfill(j);x=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,u,d){u.exports=function(f){var m=s("./util"),p=f._async,b=m.tryCatch,_=m.errorObj;function w(C,j){if(!m.isArray(C))return x.call(this,C,j);var O=b(j).apply(this._boundValue(),[null].concat(C));O===_&&p.throwLater(O.e)}function x(C,j){var O=this._boundValue(),N=C===void 0?b(j).call(O,null):b(j).call(O,null,C);N===_&&p.throwLater(N.e)}function A(C,j){if(!C){var O=new Error(C+"");O.cause=C,C=O}var N=b(j).call(this._boundValue(),C);N===_&&p.throwLater(N.e)}f.prototype.asCallback=f.prototype.nodeify=function(C,j){if(typeof C=="function"){var O=x;j!==void 0&&Object(j).spread&&(O=w),this._then(O,A,void 0,this,C)}return this}}},{"./util":36}],22:[function(s,u,d){u.exports=function(){var f=function(){return new N(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},m=function(){return new z.PromiseInspection(this._target())},p=function(H){return z.reject(new N(H))};function b(){}var _,w={},x=s("./util");_=x.isNode?function(){var H=r.domain;return H===void 0&&(H=null),H}:function(){return null},x.notEnumerableProp(z,"_getDomain",_);var A=s("./es5"),C=s("./async"),j=new C;A.defineProperty(z,"_async",{value:j});var O=s("./errors"),N=z.TypeError=O.TypeError;z.RangeError=O.RangeError;var B=z.CancellationError=O.CancellationError;z.TimeoutError=O.TimeoutError,z.OperationalError=O.OperationalError,z.RejectionError=O.OperationalError,z.AggregateError=O.AggregateError;var V=function(){},Z={},X={},oe=s("./thenables")(z,V),ee=s("./promise_array")(z,V,oe,p,b),J=s("./context")(z),ne=J.create,he=s("./debuggability")(z,J),Q=(he.CapturedTrace,s("./finally")(z,oe,X)),se=s("./catch_filter")(X),Y=s("./nodeback"),U=x.errorObj,I=x.tryCatch;function z(H){H!==V&&function(re,ue){if(re==null||re.constructor!==z)throw new N(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof ue!="function")throw new N("expecting a function but got "+x.classString(ue))}(this,H),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(H),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function M(H){this.promise._resolveCallback(H)}function D(H){this.promise._rejectCallback(H,!1)}function W(H){var re=new z(V);re._fulfillmentHandler0=H,re._rejectionHandler0=H,re._promise0=H,re._receiver0=H}return z.prototype.toString=function(){return"[object Promise]"},z.prototype.caught=z.prototype.catch=function(H){var re=arguments.length;if(re>1){var ue,ce=new Array(re-1),ve=0;for(ue=0;ue<re-1;++ue){var k=arguments[ue];if(!x.isObject(k))return p("Catch statement predicate: expecting an object but got "+x.classString(k));ce[ve++]=k}return ce.length=ve,H=arguments[ue],this.then(void 0,se(ce,H,this))}return this.then(void 0,H)},z.prototype.reflect=function(){return this._then(m,m,void 0,this,void 0)},z.prototype.then=function(H,re){if(he.warnings()&&arguments.length>0&&typeof H!="function"&&typeof re!="function"){var ue=".then() only accepts functions but was passed: "+x.classString(H);arguments.length>1&&(ue+=", "+x.classString(re)),this._warn(ue)}return this._then(H,re,void 0,void 0,void 0)},z.prototype.done=function(H,re){this._then(H,re,void 0,void 0,void 0)._setIsFinal()},z.prototype.spread=function(H){return typeof H!="function"?p("expecting a function but got "+x.classString(H)):this.all()._then(H,void 0,void 0,Z,void 0)},z.prototype.toJSON=function(){var H={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(H.fulfillmentValue=this.value(),H.isFulfilled=!0):this.isRejected()&&(H.rejectionReason=this.reason(),H.isRejected=!0),H},z.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new ee(this).promise()},z.prototype.error=function(H){return this.caught(x.originatesFromRejection,H)},z.getNewLibraryCopy=u.exports,z.is=function(H){return H instanceof z},z.fromNode=z.fromCallback=function(H){var re=new z(V);re._captureStackTrace();var ue=arguments.length>1&&!!Object(arguments[1]).multiArgs,ce=I(H)(Y(re,ue));return ce===U&&re._rejectCallback(ce.e,!0),re._isFateSealed()||re._setAsyncGuaranteed(),re},z.all=function(H){return new ee(H).promise()},z.cast=function(H){var re=oe(H);return re instanceof z||((re=new z(V))._captureStackTrace(),re._setFulfilled(),re._rejectionHandler0=H),re},z.resolve=z.fulfilled=z.cast,z.reject=z.rejected=function(H){var re=new z(V);return re._captureStackTrace(),re._rejectCallback(H,!0),re},z.setScheduler=function(H){if(typeof H!="function")throw new N("expecting a function but got "+x.classString(H));return j.setScheduler(H)},z.prototype._then=function(H,re,ue,ce,ve){var k=ve!==void 0,F=k?ve:new z(V),G=this._target(),le=G._bitField;k||(F._propagateFrom(this,3),F._captureStackTrace(),ce===void 0&&(2097152&this._bitField)!=0&&(ce=(50397184&le)!=0?this._boundValue():G===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,F));var q=_();if((50397184&le)!=0){var ae,fe,ge=G._settlePromiseCtx;(33554432&le)!=0?(fe=G._rejectionHandler0,ae=H):(16777216&le)!=0?(fe=G._fulfillmentHandler0,ae=re,G._unsetRejectionIsUnhandled()):(ge=G._settlePromiseLateCancellationObserver,fe=new B("late cancellation observer"),G._attachExtraTrace(fe),ae=re),j.invoke(ge,G,{handler:q===null?ae:typeof ae=="function"&&x.domainBind(q,ae),promise:F,receiver:ce,value:fe})}else G._addCallbacks(H,re,F,ce,q);return F},z.prototype._length=function(){return 65535&this._bitField},z.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},z.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},z.prototype._setLength=function(H){this._bitField=-65536&this._bitField|65535&H},z.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},z.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},z.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},z.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},z.prototype._isFinal=function(){return(4194304&this._bitField)>0},z.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},z.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},z.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},z.prototype._setAsyncGuaranteed=function(){j.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},z.prototype._receiverAt=function(H){var re=H===0?this._receiver0:this[4*H-4+3];if(re!==w)return re===void 0&&this._isBound()?this._boundValue():re},z.prototype._promiseAt=function(H){return this[4*H-4+2]},z.prototype._fulfillmentHandlerAt=function(H){return this[4*H-4+0]},z.prototype._rejectionHandlerAt=function(H){return this[4*H-4+1]},z.prototype._boundValue=function(){},z.prototype._migrateCallback0=function(H){H._bitField;var re=H._fulfillmentHandler0,ue=H._rejectionHandler0,ce=H._promise0,ve=H._receiverAt(0);ve===void 0&&(ve=w),this._addCallbacks(re,ue,ce,ve,null)},z.prototype._migrateCallbackAt=function(H,re){var ue=H._fulfillmentHandlerAt(re),ce=H._rejectionHandlerAt(re),ve=H._promiseAt(re),k=H._receiverAt(re);k===void 0&&(k=w),this._addCallbacks(ue,ce,ve,k,null)},z.prototype._addCallbacks=function(H,re,ue,ce,ve){var k=this._length();if(k>=65531&&(k=0,this._setLength(0)),k===0)this._promise0=ue,this._receiver0=ce,typeof H=="function"&&(this._fulfillmentHandler0=ve===null?H:x.domainBind(ve,H)),typeof re=="function"&&(this._rejectionHandler0=ve===null?re:x.domainBind(ve,re));else{var F=4*k-4;this[F+2]=ue,this[F+3]=ce,typeof H=="function"&&(this[F+0]=ve===null?H:x.domainBind(ve,H)),typeof re=="function"&&(this[F+1]=ve===null?re:x.domainBind(ve,re))}return this._setLength(k+1),k},z.prototype._proxy=function(H,re){this._addCallbacks(void 0,void 0,re,H,null)},z.prototype._resolveCallback=function(H,re){if((117506048&this._bitField)==0){if(H===this)return this._rejectCallback(f(),!1);var ue=oe(H,this);if(!(ue instanceof z))return this._fulfill(H);re&&this._propagateFrom(ue,2);var ce=ue._target();if(ce!==this){var ve=ce._bitField;if((50397184&ve)==0){var k=this._length();k>0&&ce._migrateCallback0(this);for(var F=1;F<k;++F)ce._migrateCallbackAt(this,F);this._setFollowing(),this._setLength(0),this._setFollowee(ce)}else if((33554432&ve)!=0)this._fulfill(ce._value());else if((16777216&ve)!=0)this._reject(ce._reason());else{var G=new B("late cancellation observer");ce._attachExtraTrace(G),this._reject(G)}}else this._reject(f())}},z.prototype._rejectCallback=function(H,re,ue){var ce=x.ensureErrorObject(H),ve=ce===H;if(!ve&&!ue&&he.warnings()){var k="a promise was rejected with a non-error: "+x.classString(H);this._warn(k,!0)}this._attachExtraTrace(ce,!!re&&ve),this._reject(H)},z.prototype._resolveFromExecutor=function(H){if(H!==V){var re=this;this._captureStackTrace(),this._pushContext();var ue=!0,ce=this._execute(H,function(ve){re._resolveCallback(ve)},function(ve){re._rejectCallback(ve,ue)});ue=!1,this._popContext(),ce!==void 0&&re._rejectCallback(ce,!0)}},z.prototype._settlePromiseFromHandler=function(H,re,ue,ce){var ve=ce._bitField;if((65536&ve)==0){var k;ce._pushContext(),re===Z?ue&&typeof ue.length=="number"?k=I(H).apply(this._boundValue(),ue):(k=U).e=new N("cannot .spread() a non-array: "+x.classString(ue)):k=I(H).call(re,ue);var F=ce._popContext();(65536&(ve=ce._bitField))==0&&(k===X?ce._reject(ue):k===U?ce._rejectCallback(k.e,!1):(he.checkForgottenReturns(k,F,"",ce,this),ce._resolveCallback(k)))}},z.prototype._target=function(){for(var H=this;H._isFollowing();)H=H._followee();return H},z.prototype._followee=function(){return this._rejectionHandler0},z.prototype._setFollowee=function(H){this._rejectionHandler0=H},z.prototype._settlePromise=function(H,re,ue,ce){var ve=H instanceof z,k=this._bitField,F=(134217728&k)!=0;(65536&k)!=0?(ve&&H._invokeInternalOnCancel(),ue instanceof Q&&ue.isFinallyHandler()?(ue.cancelPromise=H,I(re).call(ue,ce)===U&&H._reject(U.e)):re===m?H._fulfill(m.call(ue)):ue instanceof b?ue._promiseCancelled(H):ve||H instanceof ee?H._cancel():ue.cancel()):typeof re=="function"?ve?(F&&H._setAsyncGuaranteed(),this._settlePromiseFromHandler(re,ue,ce,H)):re.call(ue,ce,H):ue instanceof b?ue._isResolved()||((33554432&k)!=0?ue._promiseFulfilled(ce,H):ue._promiseRejected(ce,H)):ve&&(F&&H._setAsyncGuaranteed(),(33554432&k)!=0?H._fulfill(ce):H._reject(ce))},z.prototype._settlePromiseLateCancellationObserver=function(H){var re=H.handler,ue=H.promise,ce=H.receiver,ve=H.value;typeof re=="function"?ue instanceof z?this._settlePromiseFromHandler(re,ce,ve,ue):re.call(ce,ve,ue):ue instanceof z&&ue._reject(ve)},z.prototype._settlePromiseCtx=function(H){this._settlePromise(H.promise,H.handler,H.receiver,H.value)},z.prototype._settlePromise0=function(H,re,ue){var ce=this._promise0,ve=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ce,H,ve,re)},z.prototype._clearCallbackDataAtIndex=function(H){var re=4*H-4;this[re+2]=this[re+3]=this[re+0]=this[re+1]=void 0},z.prototype._fulfill=function(H){var re=this._bitField;if(!((117506048&re)>>>16)){if(H===this){var ue=f();return this._attachExtraTrace(ue),this._reject(ue)}this._setFulfilled(),this._rejectionHandler0=H,(65535&re)>0&&((134217728&re)!=0?this._settlePromises():j.settlePromises(this))}},z.prototype._reject=function(H){var re=this._bitField;if(!((117506048&re)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=H,this._isFinal())return j.fatalError(H,x.isNode);(65535&re)>0?j.settlePromises(this):this._ensurePossibleRejectionHandled()}},z.prototype._fulfillPromises=function(H,re){for(var ue=1;ue<H;ue++){var ce=this._fulfillmentHandlerAt(ue),ve=this._promiseAt(ue),k=this._receiverAt(ue);this._clearCallbackDataAtIndex(ue),this._settlePromise(ve,ce,k,re)}},z.prototype._rejectPromises=function(H,re){for(var ue=1;ue<H;ue++){var ce=this._rejectionHandlerAt(ue),ve=this._promiseAt(ue),k=this._receiverAt(ue);this._clearCallbackDataAtIndex(ue),this._settlePromise(ve,ce,k,re)}},z.prototype._settlePromises=function(){var H=this._bitField,re=65535&H;if(re>0){if((16842752&H)!=0){var ue=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ue,H),this._rejectPromises(re,ue)}else{var ce=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ce,H),this._fulfillPromises(re,ce)}this._setLength(0)}this._clearCancellationData()},z.prototype._settledValue=function(){var H=this._bitField;return(33554432&H)!=0?this._rejectionHandler0:(16777216&H)!=0?this._fulfillmentHandler0:void 0},z.defer=z.pending=function(){return he.deprecated("Promise.defer","new Promise"),{promise:new z(V),resolve:M,reject:D}},x.notEnumerableProp(z,"_makeSelfResolutionError",f),s("./method")(z,V,oe,p,he),s("./bind")(z,V,oe,he),s("./cancel")(z,ee,p,he),s("./direct_resolve")(z),s("./synchronous_inspection")(z),s("./join")(z,ee,oe,V,j,_),z.Promise=z,z.version="3.5.1",s("./map.js")(z,ee,p,oe,V,he),s("./call_get.js")(z),s("./using.js")(z,p,oe,ne,V,he),s("./timers.js")(z,V,he),s("./generators.js")(z,p,V,oe,b,he),s("./nodeify.js")(z),s("./promisify.js")(z,V),s("./props.js")(z,ee,oe,p),s("./race.js")(z,V,oe,p),s("./reduce.js")(z,ee,p,oe,V,he),s("./settle.js")(z,ee,he),s("./some.js")(z,ee,p),s("./filter.js")(z,V),s("./each.js")(z,V),s("./any.js")(z),x.toFastProperties(z),x.toFastProperties(z.prototype),W({a:1}),W({b:2}),W({c:3}),W(1),W(function(){}),W(void 0),W(!1),W(new z(V)),he.setBounds(C.firstLineError,x.lastLineError),z}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,u,d){u.exports=function(f,m,p,b,_){var w=s("./util");function x(A){var C=this._promise=new f(m);A instanceof f&&C._propagateFrom(A,3),C._setOnCancel(this),this._values=A,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return w.isArray,w.inherits(x,_),x.prototype.length=function(){return this._length},x.prototype.promise=function(){return this._promise},x.prototype._init=function A(C,j){var O=p(this._values,this._promise);if(O instanceof f){var N=(O=O._target())._bitField;if(this._values=O,(50397184&N)==0)return this._promise._setAsyncGuaranteed(),O._then(A,this._reject,void 0,this,j);if((33554432&N)==0)return(16777216&N)!=0?this._reject(O._reason()):this._cancel();O=O._value()}if((O=w.asArray(O))!==null)O.length!==0?this._iterate(O):j===-5?this._resolveEmptyArray():this._resolve(function(V){switch(j){case-2:return[];case-3:return{};case-6:return new Map}}());else{var B=b("expecting an array or an iterable object but got "+w.classString(O)).reason();this._promise._rejectCallback(B,!1)}},x.prototype._iterate=function(A){var C=this.getActualLength(A.length);this._length=C,this._values=this.shouldCopyValues()?new Array(C):this._values;for(var j=this._promise,O=!1,N=null,B=0;B<C;++B){var V=p(A[B],j);N=V instanceof f?(V=V._target())._bitField:null,O?N!==null&&V.suppressUnhandledRejections():N!==null?(50397184&N)==0?(V._proxy(this,B),this._values[B]=V):O=(33554432&N)!=0?this._promiseFulfilled(V._value(),B):(16777216&N)!=0?this._promiseRejected(V._reason(),B):this._promiseCancelled(B):O=this._promiseFulfilled(V,B)}O||j._setAsyncGuaranteed()},x.prototype._isResolved=function(){return this._values===null},x.prototype._resolve=function(A){this._values=null,this._promise._fulfill(A)},x.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},x.prototype._reject=function(A){this._values=null,this._promise._rejectCallback(A,!1)},x.prototype._promiseFulfilled=function(A,C){return this._values[C]=A,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},x.prototype._promiseCancelled=function(){return this._cancel(),!0},x.prototype._promiseRejected=function(A){return this._totalResolved++,this._reject(A),!0},x.prototype._resultCancelled=function(){if(!this._isResolved()){var A=this._values;if(this._cancel(),A instanceof f)A.cancel();else for(var C=0;C<A.length;++C)A[C]instanceof f&&A[C].cancel()}},x.prototype.shouldCopyValues=function(){return!0},x.prototype.getActualLength=function(A){return A},x}},{"./util":36}],24:[function(s,u,d){u.exports=function(f,m){var p={},b=s("./util"),_=s("./nodeback"),w=b.withAppended,x=b.maybeWrapAsError,A=b.canEvaluate,C=s("./errors").TypeError,j={__isPromisified__:!0},O=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),N=function(ne){return b.isIdentifier(ne)&&ne.charAt(0)!=="_"&&ne!=="constructor"};function B(ne){return!O.test(ne)}function V(ne){try{return ne.__isPromisified__===!0}catch{return!1}}function Z(ne,he,Q){var se=b.getDataPropertyOrDefault(ne,he+Q,j);return!!se&&V(se)}function X(ne,he,Q,se){for(var Y=b.inheritedDataKeys(ne),U=[],I=0;I<Y.length;++I){var z=Y[I],M=ne[z],D=se===N||N(z);typeof M!="function"||V(M)||Z(ne,z,he)||!se(z,M,ne,D)||U.push(z,M)}return function(W,H,re){for(var ue=0;ue<W.length;ue+=2){var ce=W[ue];if(re.test(ce)){for(var ve=ce.replace(re,""),k=0;k<W.length;k+=2)if(W[k]===ve)throw new C(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",H))}}}(U,he,Q),U}var oe=function(ne){return ne.replace(/([$])/,"\\$")},ee=A?void 0:function(ne,he,Q,se,Y,U){var I=function(){return this}(),z=ne;function M(){var D=he;he===p&&(D=this);var W=new f(m);W._captureStackTrace();var H=typeof z=="string"&&this!==I?this[z]:ne,re=_(W,U);try{H.apply(D,w(arguments,re))}catch(ue){W._rejectCallback(x(ue),!0,!0)}return W._isFateSealed()||W._setAsyncGuaranteed(),W}return typeof z=="string"&&(ne=se),b.notEnumerableProp(M,"__isPromisified__",!0),M};function J(ne,he,Q,se,Y){for(var U=new RegExp(oe(he)+"$"),I=X(ne,he,U,Q),z=0,M=I.length;z<M;z+=2){var D=I[z],W=I[z+1],H=D+he;if(se===ee)ne[H]=ee(D,p,D,W,he,Y);else{var re=se(W,function(){return ee(D,p,D,W,he,Y)});b.notEnumerableProp(re,"__isPromisified__",!0),ne[H]=re}}return b.toFastProperties(ne),ne}f.promisify=function(ne,he){if(typeof ne!="function")throw new C("expecting a function but got "+b.classString(ne));if(V(ne))return ne;var Q=(he=Object(he)).context===void 0?p:he.context,se=!!he.multiArgs,Y=function(U,I,z){return ee(U,I,void 0,U,null,se)}(ne,Q);return b.copyDescriptors(ne,Y,B),Y},f.promisifyAll=function(ne,he){if(typeof ne!="function"&&typeof ne!="object")throw new C(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Q=!!(he=Object(he)).multiArgs,se=he.suffix;typeof se!="string"&&(se="Async");var Y=he.filter;typeof Y!="function"&&(Y=N);var U=he.promisifier;if(typeof U!="function"&&(U=ee),!b.isIdentifier(se))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var I=b.inheritedDataKeys(ne),z=0;z<I.length;++z){var M=ne[I[z]];I[z]!=="constructor"&&b.isClass(M)&&(J(M.prototype,se,Y,U,Q),J(M,se,Y,U,Q))}return J(ne,se,Y,U,Q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,u,d){u.exports=function(f,m,p,b){var _,w=s("./util"),x=w.isObject,A=s("./es5");typeof Map=="function"&&(_=Map);var C=function(){var N=0,B=0;function V(Z,X){this[N]=Z,this[N+B]=X,N++}return function(Z){B=Z.size,N=0;var X=new Array(2*Z.size);return Z.forEach(V,X),X}}();function j(N){var B,V=!1;if(_!==void 0&&N instanceof _)B=C(N),V=!0;else{var Z=A.keys(N),X=Z.length;B=new Array(2*X);for(var oe=0;oe<X;++oe){var ee=Z[oe];B[oe]=N[ee],B[oe+X]=ee}}this.constructor$(B),this._isMap=V,this._init$(void 0,V?-6:-3)}function O(N){var B,V=p(N);return x(V)?(B=V instanceof f?V._then(f.props,void 0,void 0,void 0,void 0):new j(V).promise(),V instanceof f&&B._propagateFrom(V,2),B):b(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}w.inherits(j,m),j.prototype._init=function(){},j.prototype._promiseFulfilled=function(N,B){if(this._values[B]=N,++this._totalResolved>=this._length){var V;if(this._isMap)V=function(ee){for(var J=new _,ne=ee.length/2|0,he=0;he<ne;++he){var Q=ee[ne+he],se=ee[he];J.set(Q,se)}return J}(this._values);else{V={};for(var Z=this.length(),X=0,oe=this.length();X<oe;++X)V[this._values[X+Z]]=this._values[X]}return this._resolve(V),!0}return!1},j.prototype.shouldCopyValues=function(){return!1},j.prototype.getActualLength=function(N){return N>>1},f.prototype.props=function(){return O(this)},f.props=function(N){return O(N)}}},{"./es5":13,"./util":36}],26:[function(s,u,d){function f(m){this._capacity=m,this._length=0,this._front=0}f.prototype._willBeOverCapacity=function(m){return this._capacity<m},f.prototype._pushOne=function(m){var p=this.length();this._checkCapacity(p+1),this[this._front+p&this._capacity-1]=m,this._length=p+1},f.prototype.push=function(m,p,b){var _=this.length()+3;if(this._willBeOverCapacity(_))return this._pushOne(m),this._pushOne(p),void this._pushOne(b);var w=this._front+_-3;this._checkCapacity(_);var x=this._capacity-1;this[w+0&x]=m,this[w+1&x]=p,this[w+2&x]=b,this._length=_},f.prototype.shift=function(){var m=this._front,p=this[m];return this[m]=void 0,this._front=m+1&this._capacity-1,this._length--,p},f.prototype.length=function(){return this._length},f.prototype._checkCapacity=function(m){this._capacity<m&&this._resizeTo(this._capacity<<1)},f.prototype._resizeTo=function(m){var p=this._capacity;this._capacity=m,function(b,_,w,x,A){for(var C=0;C<A;++C)w[C+x]=b[C+0],b[C+0]=void 0}(this,0,this,p,this._front+this._length&p-1)},u.exports=f},{}],27:[function(s,u,d){u.exports=function(f,m,p,b){var _=s("./util"),w=function(A){return A.then(function(C){return x(C,A)})};function x(A,C){var j=p(A);if(j instanceof f)return w(j);if((A=_.asArray(A))===null)return b("expecting an array or an iterable object but got "+_.classString(A));var O=new f(m);C!==void 0&&O._propagateFrom(C,3);for(var N=O._fulfill,B=O._reject,V=0,Z=A.length;V<Z;++V){var X=A[V];(X!==void 0||V in A)&&f.cast(X)._then(N,B,void 0,O,null)}return O}f.race=function(A){return x(A,void 0)},f.prototype.race=function(){return x(this,void 0)}}},{"./util":36}],28:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=f._getDomain,A=s("./util"),C=A.tryCatch;function j(Z,X,oe,ee){this.constructor$(Z);var J=x();this._fn=J===null?X:A.domainBind(J,X),oe!==void 0&&(oe=f.resolve(oe))._attachCancellationCallback(this),this._initialValue=oe,this._currentCancellable=null,this._eachValues=ee===_?Array(this._length):ee===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function O(Z,X){this.isFulfilled()?X._resolve(Z):X._reject(Z)}function N(Z,X,oe,ee){return typeof X!="function"?p("expecting a function but got "+A.classString(X)):new j(Z,X,oe,ee).promise()}function B(Z){this.accum=Z,this.array._gotAccum(Z);var X=b(this.value,this.array._promise);return X instanceof f?(this.array._currentCancellable=X,X._then(V,void 0,void 0,this,void 0)):V.call(this,X)}function V(Z){var X,oe=this.array,ee=oe._promise,J=C(oe._fn);ee._pushContext(),(X=oe._eachValues!==void 0?J.call(ee._boundValue(),Z,this.index,this.length):J.call(ee._boundValue(),this.accum,Z,this.index,this.length))instanceof f&&(oe._currentCancellable=X);var ne=ee._popContext();return w.checkForgottenReturns(X,ne,oe._eachValues!==void 0?"Promise.each":"Promise.reduce",ee),X}A.inherits(j,m),j.prototype._gotAccum=function(Z){this._eachValues!==void 0&&this._eachValues!==null&&Z!==_&&this._eachValues.push(Z)},j.prototype._eachComplete=function(Z){return this._eachValues!==null&&this._eachValues.push(Z),this._eachValues},j.prototype._init=function(){},j.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},j.prototype.shouldCopyValues=function(){return!1},j.prototype._resolve=function(Z){this._promise._resolveCallback(Z),this._values=null},j.prototype._resultCancelled=function(Z){if(Z===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof f&&this._currentCancellable.cancel(),this._initialValue instanceof f&&this._initialValue.cancel())},j.prototype._iterate=function(Z){var X,oe;this._values=Z;var ee=Z.length;if(this._initialValue!==void 0?(X=this._initialValue,oe=0):(X=f.resolve(Z[0]),oe=1),this._currentCancellable=X,!X.isRejected())for(;oe<ee;++oe){var J={accum:null,value:Z[oe],index:oe,length:ee,array:this};X=X._then(B,void 0,void 0,J,void 0)}this._eachValues!==void 0&&(X=X._then(this._eachComplete,void 0,void 0,this,void 0)),X._then(O,O,void 0,X,this)},f.prototype.reduce=function(Z,X){return N(this,Z,X,null)},f.reduce=function(Z,X,oe,ee){return N(Z,X,oe,ee)}}},{"./util":36}],29:[function(s,u,d){var f,m=s("./util"),p=m.getNativePromise();if(m.isNode&&typeof MutationObserver>"u"){var b=i.setImmediate,_=r.nextTick;f=m.isRecentNode?function(x){b.call(i,x)}:function(x){_.call(r,x)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var w=p.resolve();f=function(x){w.then(x)}}else f=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?a!==void 0?function(x){a(x)}:typeof setTimeout<"u"?function(x){setTimeout(x,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var x=document.createElement("div"),A={attributes:!0},C=!1,j=document.createElement("div");return new MutationObserver(function(){x.classList.toggle("foo"),C=!1}).observe(j,A),function(O){var N=new MutationObserver(function(){N.disconnect(),O()});N.observe(x,A),C||(C=!0,j.classList.toggle("foo"))}}();u.exports=f},{"./util":36}],30:[function(s,u,d){u.exports=function(f,m,p){var b=f.PromiseInspection;function _(w){this.constructor$(w)}s("./util").inherits(_,m),_.prototype._promiseResolved=function(w,x){return this._values[w]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseFulfilled=function(w,x){var A=new b;return A._bitField=33554432,A._settledValueField=w,this._promiseResolved(x,A)},_.prototype._promiseRejected=function(w,x){var A=new b;return A._bitField=16777216,A._settledValueField=w,this._promiseResolved(x,A)},f.settle=function(w){return p.deprecated(".settle()",".reflect()"),new _(w).promise()},f.prototype.settle=function(){return f.settle(this)}}},{"./util":36}],31:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=s("./errors").RangeError,w=s("./errors").AggregateError,x=b.isArray,A={};function C(O){this.constructor$(O),this._howMany=0,this._unwrap=!1,this._initialized=!1}function j(O,N){if((0|N)!==N||N<0)return p(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var B=new C(O),V=B.promise();return B.setHowMany(N),B.init(),V}b.inherits(C,m),C.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var O=x(this._values);!this._isResolved()&&O&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},C.prototype.init=function(){this._initialized=!0,this._init()},C.prototype.setUnwrap=function(){this._unwrap=!0},C.prototype.howMany=function(){return this._howMany},C.prototype.setHowMany=function(O){this._howMany=O},C.prototype._promiseFulfilled=function(O){return this._addFulfilled(O),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},C.prototype._promiseRejected=function(O){return this._addRejected(O),this._checkOutcome()},C.prototype._promiseCancelled=function(){return this._values instanceof f||this._values==null?this._cancel():(this._addRejected(A),this._checkOutcome())},C.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var O=new w,N=this.length();N<this._values.length;++N)this._values[N]!==A&&O.push(this._values[N]);return O.length>0?this._reject(O):this._cancel(),!0}return!1},C.prototype._fulfilled=function(){return this._totalResolved},C.prototype._rejected=function(){return this._values.length-this.length()},C.prototype._addRejected=function(O){this._values.push(O)},C.prototype._addFulfilled=function(O){this._values[this._totalResolved++]=O},C.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},C.prototype._getRangeError=function(O){var N="Input array must contain at least "+this._howMany+" items but contains only "+O+" items";return new _(N)},C.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},f.some=function(O,N){return j(O,N)},f.prototype.some=function(O){return j(this,O)},f._SomePromiseArray=C}},{"./errors":12,"./util":36}],32:[function(s,u,d){u.exports=function(f){function m(C){C!==void 0?(C=C._target(),this._bitField=C._bitField,this._settledValueField=C._isFateSealed()?C._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}m.prototype._settledValue=function(){return this._settledValueField};var p=m.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()},b=m.prototype.error=m.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},_=m.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},w=m.prototype.isRejected=function(){return(16777216&this._bitField)!=0},x=m.prototype.isPending=function(){return(50397184&this._bitField)==0},A=m.prototype.isResolved=function(){return(50331648&this._bitField)!=0};m.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},f.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},f.prototype._isCancelled=function(){return this._target().__isCancelled()},f.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},f.prototype.isPending=function(){return x.call(this._target())},f.prototype.isRejected=function(){return w.call(this._target())},f.prototype.isFulfilled=function(){return _.call(this._target())},f.prototype.isResolved=function(){return A.call(this._target())},f.prototype.value=function(){return p.call(this._target())},f.prototype.reason=function(){var C=this._target();return C._unsetRejectionIsUnhandled(),b.call(C)},f.prototype._value=function(){return this._settledValue()},f.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},f.PromiseInspection=m}},{}],33:[function(s,u,d){u.exports=function(f,m){var p=s("./util"),b=p.errorObj,_=p.isObject,w={}.hasOwnProperty;return function(x,A){if(_(x)){if(x instanceof f)return x;var C=function(O){try{return function(N){return N.then}(O)}catch(N){return b.e=N,b}}(x);if(C===b){A&&A._pushContext();var j=f.reject(C.e);return A&&A._popContext(),j}if(typeof C=="function")return function(O){try{return w.call(O,"_promise0")}catch{return!1}}(x)?(j=new f(m),x._then(j._fulfill,j._reject,void 0,j,null),j):function(O,N,B){var V=new f(m),Z=V;B&&B._pushContext(),V._captureStackTrace(),B&&B._popContext();var X=!0,oe=p.tryCatch(N).call(O,function(ee){V&&(V._resolveCallback(ee),V=null)},function(ee){V&&(V._rejectCallback(ee,X,!0),V=null)});return X=!1,V&&oe===b&&(V._rejectCallback(oe.e,!0,!0),V=null),Z}(x,C,A)}return x}}},{"./util":36}],34:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=f.TimeoutError;function w(O){this.handle=O}w.prototype._resultCancelled=function(){clearTimeout(this.handle)};var x=function(O){return A(+this).thenReturn(O)},A=f.delay=function(O,N){var B,V;return N!==void 0?(B=f.resolve(N)._then(x,null,null,O,void 0),p.cancellation()&&N instanceof f&&B._setOnCancel(N)):(B=new f(m),V=setTimeout(function(){B._fulfill()},+O),p.cancellation()&&B._setOnCancel(new w(V)),B._captureStackTrace()),B._setAsyncGuaranteed(),B};function C(O){return clearTimeout(this.handle),O}function j(O){throw clearTimeout(this.handle),O}f.prototype.delay=function(O){return A(O,this)},f.prototype.timeout=function(O,N){var B,V;O=+O;var Z=new w(setTimeout(function(){B.isPending()&&function(X,oe,ee){var J;J=typeof oe!="string"?oe instanceof Error?oe:new _("operation timed out"):new _(oe),b.markAsOriginatingFromRejection(J),X._attachExtraTrace(J),X._reject(J),ee?.cancel()}(B,N,V)},O));return p.cancellation()?(V=this.then(),(B=V._then(C,j,void 0,Z,void 0))._setOnCancel(Z)):B=this._then(C,j,void 0,Z,void 0),B}}},{"./util":36}],35:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./util"),A=s("./errors").TypeError,C=s("./util").inherits,j=x.errorObj,O=x.tryCatch,N={};function B(J){setTimeout(function(){throw J},0)}function V(J,ne){var he=0,Q=J.length,se=new f(_);return function Y(){if(he>=Q)return se._fulfill();var U=function(I){var z=p(I);return z!==I&&typeof I._isDisposable=="function"&&typeof I._getDisposer=="function"&&I._isDisposable()&&z._setDisposable(I._getDisposer()),z}(J[he++]);if(U instanceof f&&U._isDisposable()){try{U=p(U._getDisposer().tryDispose(ne),J.promise)}catch(I){return B(I)}if(U instanceof f)return U._then(Y,B,null,null,null)}Y()}(),se}function Z(J,ne,he){this._data=J,this._promise=ne,this._context=he}function X(J,ne,he){this.constructor$(J,ne,he)}function oe(J){return Z.isDisposer(J)?(this.resources[this.index]._setDisposable(J),J.promise()):J}function ee(J){this.length=J,this.promise=null,this[J-1]=null}Z.prototype.data=function(){return this._data},Z.prototype.promise=function(){return this._promise},Z.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():N},Z.prototype.tryDispose=function(J){var ne=this.resource(),he=this._context;he!==void 0&&he._pushContext();var Q=ne!==N?this.doDispose(ne,J):null;return he!==void 0&&he._popContext(),this._promise._unsetDisposable(),this._data=null,Q},Z.isDisposer=function(J){return J!=null&&typeof J.resource=="function"&&typeof J.tryDispose=="function"},C(X,Z),X.prototype.doDispose=function(J,ne){return this.data().call(J,J,ne)},ee.prototype._resultCancelled=function(){for(var J=this.length,ne=0;ne<J;++ne){var he=this[ne];he instanceof f&&he.cancel()}},f.using=function(){var J=arguments.length;if(J<2)return m("you must pass at least 2 arguments to Promise.using");var ne,he=arguments[J-1];if(typeof he!="function")return m("expecting a function but got "+x.classString(he));var Q=!0;J===2&&Array.isArray(arguments[0])?(J=(ne=arguments[0]).length,Q=!1):(ne=arguments,J--);for(var se=new ee(J),Y=0;Y<J;++Y){var U=ne[Y];if(Z.isDisposer(U)){var I=U;(U=U.promise())._setDisposable(I)}else{var z=p(U);z instanceof f&&(U=z._then(oe,null,null,{resources:se,index:Y},void 0))}se[Y]=U}var M=new Array(se.length);for(Y=0;Y<M.length;++Y)M[Y]=f.resolve(se[Y]).reflect();var D=f.all(M).then(function(H){for(var re=0;re<H.length;++re){var ue=H[re];if(ue.isRejected())return j.e=ue.error(),j;if(!ue.isFulfilled())return void D.cancel();H[re]=ue.value()}W._pushContext(),he=O(he);var ce=Q?he.apply(void 0,H):he(H),ve=W._popContext();return w.checkForgottenReturns(ce,ve,"Promise.using",W),ce}),W=D.lastly(function(){var H=new f.PromiseInspection(D);return V(se,H)});return se.promise=W,W._setOnCancel(se),W},f.prototype._setDisposable=function(J){this._bitField=131072|this._bitField,this._disposer=J},f.prototype._isDisposable=function(){return(131072&this._bitField)>0},f.prototype._getDisposer=function(){return this._disposer},f.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},f.prototype.disposer=function(J){if(typeof J=="function")return new X(J,this,b());throw new A}}},{"./errors":12,"./util":36}],36:[function(s,u,d){var f,m=s("./es5"),p=typeof navigator>"u",b={e:{}},_=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function w(){try{var Q=f;return f=null,Q.apply(this,arguments)}catch(se){return b.e=se,b}}function x(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function A(Q,se,Y){if(x(Q))return Q;var U={value:Y,configurable:!0,enumerable:!1,writable:!0};return m.defineProperty(Q,se,U),Q}var C=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],se=function(I){for(var z=0;z<Q.length;++z)if(Q[z]===I)return!0;return!1};if(m.isES5){var Y=Object.getOwnPropertyNames;return function(I){for(var z=[],M=Object.create(null);I!=null&&!se(I);){var D;try{D=Y(I)}catch{return z}for(var W=0;W<D.length;++W){var H=D[W];if(!M[H]){M[H]=!0;var re=Object.getOwnPropertyDescriptor(I,H);re!=null&&re.get==null&&re.set==null&&z.push(H)}}I=m.getPrototypeOf(I)}return z}}var U={}.hasOwnProperty;return function(I){if(se(I))return[];var z=[];e:for(var M in I)if(U.call(I,M))z.push(M);else{for(var D=0;D<Q.length;++D)if(U.call(Q[D],M))continue e;z.push(M)}return z}}(),j=/this\s*\.\s*\S+\s*=/,O=/^[a-z$_][a-z$_0-9]*$/i;function N(Q){try{return Q+""}catch{return"[no string representation]"}}function B(Q){return Q instanceof Error||Q!==null&&typeof Q=="object"&&typeof Q.message=="string"&&typeof Q.name=="string"}function V(Q){return B(Q)&&m.propertyIsWritable(Q,"stack")}var Z="stack"in new Error?function(Q){return V(Q)?Q:new Error(N(Q))}:function(Q){if(V(Q))return Q;try{throw new Error(N(Q))}catch(se){return se}};function X(Q){return{}.toString.call(Q)}var oe=function(Q){return m.isArray(Q)?Q:null};if(typeof Symbol<"u"&&Symbol.iterator){var ee=typeof Array.from=="function"?function(Q){return Array.from(Q)}:function(Q){for(var se,Y=[],U=Q[Symbol.iterator]();!(se=U.next()).done;)Y.push(se.value);return Y};oe=function(Q){return m.isArray(Q)?Q:Q!=null&&typeof Q[Symbol.iterator]=="function"?ee(Q):null}}var J=r!==void 0&&X(r).toLowerCase()==="[object process]",ne=r!==void 0&&r.env!==void 0,he={isClass:function(Q){try{if(typeof Q=="function"){var se=m.names(Q.prototype),Y=m.isES5&&se.length>1,U=se.length>0&&!(se.length===1&&se[0]==="constructor"),I=j.test(Q+"")&&m.names(Q).length>0;if(Y||U||I)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return O.test(Q)},inheritedDataKeys:C,getDataPropertyOrDefault:function(Q,se,Y){if(!m.isES5)return{}.hasOwnProperty.call(Q,se)?Q[se]:void 0;var U=Object.getOwnPropertyDescriptor(Q,se);return U!=null?U.get==null&&U.set==null?U.value:Y:void 0},thrower:function(Q){throw Q},isArray:m.isArray,asArray:oe,notEnumerableProp:A,isPrimitive:x,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:B,canEvaluate:p,errorObj:b,tryCatch:function(Q){return f=Q,w},inherits:function(Q,se){var Y={}.hasOwnProperty;function U(){for(var I in this.constructor=Q,this.constructor$=se,se.prototype)Y.call(se.prototype,I)&&I.charAt(I.length-1)!=="$"&&(this[I+"$"]=se.prototype[I])}return U.prototype=se.prototype,Q.prototype=new U,Q.prototype},withAppended:function(Q,se){var Y,U=Q.length,I=new Array(U+1);for(Y=0;Y<U;++Y)I[Y]=Q[Y];return I[Y]=se,I},maybeWrapAsError:function(Q){return x(Q)?new Error(N(Q)):Q},toFastProperties:function(Q){return Q},filledRange:function(Q,se,Y){for(var U=new Array(Q),I=0;I<Q;++I)U[I]=se+I+Y;return U},toString:N,canAttachTrace:V,ensureErrorObject:Z,originatesFromRejection:function(Q){return Q!=null&&(Q instanceof Error.__BluebirdErrorTypes__.OperationalError||Q.isOperational===!0)},markAsOriginatingFromRejection:function(Q){try{A(Q,"isOperational",!0)}catch{}},classString:X,copyDescriptors:function(Q,se,Y){for(var U=m.names(Q),I=0;I<U.length;++I){var z=U[I];if(Y(z))try{m.defineProperty(se,z,m.getDescriptor(Q,z))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:J,hasEnvVariables:ne,env:function(Q){return ne?r.env[Q]:void 0},global:_,getNativePromise:function(){if(typeof Promise=="function")try{var Q=new Promise(function(){});if({}.toString.call(Q)==="[object Promise]")return Promise}catch{}},domainBind:function(Q,se){return Q.bind(se)}};he.isRecentNode=he.isNode&&function(){var Q=r.versions.node.split(".").map(Number);return Q[0]===0&&Q[1]>10||Q[0]>0}(),he.isNode&&he.toFastProperties(r);try{throw new Error}catch(Q){he.lastLineError=Q}u.exports=he},{"./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,s=r.length;a<s;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,s){var u=i(a,s);return r(u)?u: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=N;var s,u=n(37);N.ReadableState=O,n(12).EventEmitter;var d=function(M,D){return M.listeners(D).length},f=n(24),m=n(7).Buffer,p=r.Uint8Array||function(){},b=n(5);b.inherits=n(2);var _=n(41),w=void 0;w=_&&_.debuglog?_.debuglog("stream"):function(){};var x,A=n(42),C=n(25);b.inherits(N,f);var j=["error","close","destroy","pause","resume"];function O(M,D){s=s||n(1),M=M||{};var W=D instanceof s;this.objectMode=!!M.objectMode,W&&(this.objectMode=this.objectMode||!!M.readableObjectMode);var H=M.highWaterMark,re=M.readableHighWaterMark,ue=this.objectMode?16:16384;this.highWaterMark=H||H===0?H:W&&(re||re===0)?re:ue,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new A,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&&(x||(x=n(26).StringDecoder),this.decoder=new x(M.encoding),this.encoding=M.encoding)}function N(M){if(s=s||n(1),!(this instanceof N))return new N(M);this._readableState=new O(M,this),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),f.call(this)}function B(M,D,W,H,re){var ue,ce=M._readableState;return D===null?(ce.reading=!1,function(ve,k){if(!k.ended){if(k.decoder){var F=k.decoder.end();F&&F.length&&(k.buffer.push(F),k.length+=k.objectMode?1:F.length)}k.ended=!0,oe(ve)}}(M,ce)):(re||(ue=function(ve,k){var F;return function(G){return m.isBuffer(G)||G instanceof p}(k)||typeof k=="string"||k===void 0||ve.objectMode||(F=new TypeError("Invalid non-string/buffer chunk")),F}(ce,D)),ue?M.emit("error",ue):ce.objectMode||D&&D.length>0?(typeof D=="string"||ce.objectMode||Object.getPrototypeOf(D)===m.prototype||(D=function(ve){return m.from(ve)}(D)),H?ce.endEmitted?M.emit("error",new Error("stream.unshift() after end event")):V(M,ce,D,!0):ce.ended?M.emit("error",new Error("stream.push() after EOF")):(ce.reading=!1,ce.decoder&&!W?(D=ce.decoder.write(D),ce.objectMode||D.length!==0?V(M,ce,D,!1):J(M,ce)):V(M,ce,D,!1))):H||(ce.reading=!1)),function(ve){return!ve.ended&&(ve.needReadable||ve.length<ve.highWaterMark||ve.length===0)}(ce)}function V(M,D,W,H){D.flowing&&D.length===0&&!D.sync?(M.emit("data",W),M.read(0)):(D.length+=D.objectMode?1:W.length,H?D.buffer.unshift(W):D.buffer.push(W),D.needReadable&&oe(M)),J(M,D)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),N.prototype.destroy=C.destroy,N.prototype._undestroy=C.undestroy,N.prototype._destroy=function(M,D){this.push(null),D(M)},N.prototype.push=function(M,D){var W,H=this._readableState;return H.objectMode?W=!0:typeof M=="string"&&((D=D||H.defaultEncoding)!==H.encoding&&(M=m.from(M,D),D=""),W=!0),B(this,M,D,!1,W)},N.prototype.unshift=function(M){return B(this,M,null,!0,!1)},N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(M){return x||(x=n(26).StringDecoder),this._readableState.decoder=new x(M),this._readableState.encoding=M,this};var Z=8388608;function X(M,D){return M<=0||D.length===0&&D.ended?0:D.objectMode?1:M!=M?D.flowing&&D.length?D.buffer.head.data.length:D.length:(M>D.highWaterMark&&(D.highWaterMark=function(W){return W>=Z?W=Z:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}(M)),M<=D.length?M:D.ended?D.length:(D.needReadable=!0,0))}function oe(M){var D=M._readableState;D.needReadable=!1,D.emittedReadable||(w("emitReadable",D.flowing),D.emittedReadable=!0,D.sync?a.nextTick(ee,M):ee(M))}function ee(M){w("emit readable"),M.emit("readable"),se(M)}function J(M,D){D.readingMore||(D.readingMore=!0,a.nextTick(ne,M,D))}function ne(M,D){for(var W=D.length;!D.reading&&!D.flowing&&!D.ended&&D.length<D.highWaterMark&&(w("maybeReadMore read 0"),M.read(0),W!==D.length);)W=D.length;D.readingMore=!1}function he(M){w("readable nexttick read 0"),M.read(0)}function Q(M,D){D.reading||(w("resume read 0"),M.read(0)),D.resumeScheduled=!1,D.awaitDrain=0,M.emit("resume"),se(M),D.flowing&&!D.reading&&M.read(0)}function se(M){var D=M._readableState;for(w("flow",D.flowing);D.flowing&&M.read()!==null;);}function Y(M,D){return D.length===0?null:(D.objectMode?W=D.buffer.shift():!M||M>=D.length?(W=D.decoder?D.buffer.join(""):D.buffer.length===1?D.buffer.head.data:D.buffer.concat(D.length),D.buffer.clear()):W=function(H,re,ue){var ce;return H<re.head.data.length?(ce=re.head.data.slice(0,H),re.head.data=re.head.data.slice(H)):ce=H===re.head.data.length?re.shift():ue?function(ve,k){var F=k.head,G=1,le=F.data;for(ve-=le.length;F=F.next;){var q=F.data,ae=ve>q.length?q.length:ve;if(ae===q.length?le+=q:le+=q.slice(0,ve),(ve-=ae)==0){ae===q.length?(++G,F.next?k.head=F.next:k.head=k.tail=null):(k.head=F,F.data=q.slice(ae));break}++G}return k.length-=G,le}(H,re):function(ve,k){var F=m.allocUnsafe(ve),G=k.head,le=1;for(G.data.copy(F),ve-=G.data.length;G=G.next;){var q=G.data,ae=ve>q.length?q.length:ve;if(q.copy(F,F.length-ve,0,ae),(ve-=ae)==0){ae===q.length?(++le,G.next?k.head=G.next:k.head=k.tail=null):(k.head=G,G.data=q.slice(ae));break}++le}return k.length-=le,F}(H,re),ce}(M,D.buffer,D.decoder),W);var W}function U(M){var D=M._readableState;if(D.length>0)throw new Error('"endReadable()" called on non-empty stream');D.endEmitted||(D.ended=!0,a.nextTick(I,D,M))}function I(M,D){M.endEmitted||M.length!==0||(M.endEmitted=!0,D.readable=!1,D.emit("end"))}function z(M,D){for(var W=0,H=M.length;W<H;W++)if(M[W]===D)return W;return-1}N.prototype.read=function(M){w("read",M),M=parseInt(M,10);var D=this._readableState,W=M;if(M!==0&&(D.emittedReadable=!1),M===0&&D.needReadable&&(D.length>=D.highWaterMark||D.ended))return w("read: emitReadable",D.length,D.ended),D.length===0&&D.ended?U(this):oe(this),null;if((M=X(M,D))===0&&D.ended)return D.length===0&&U(this),null;var H,re=D.needReadable;return w("need readable",re),(D.length===0||D.length-M<D.highWaterMark)&&w("length less than watermark",re=!0),D.ended||D.reading?w("reading or ended",re=!1):re&&(w("do read"),D.reading=!0,D.sync=!0,D.length===0&&(D.needReadable=!0),this._read(D.highWaterMark),D.sync=!1,D.reading||(M=X(W,D))),(H=M>0?Y(M,D):null)===null?(D.needReadable=!0,M=0):D.length-=M,D.length===0&&(D.ended||(D.needReadable=!0),W!==M&&D.ended&&U(this)),H!==null&&this.emit("data",H),H},N.prototype._read=function(M){this.emit("error",new Error("_read() is not implemented"))},N.prototype.pipe=function(M,D){var W=this,H=this._readableState;switch(H.pipesCount){case 0:H.pipes=M;break;case 1:H.pipes=[H.pipes,M];break;default:H.pipes.push(M)}H.pipesCount+=1,w("pipe count=%d opts=%j",H.pipesCount,D);var re=D&&D.end===!1||M===i.stdout||M===i.stderr?ae:ue;function ue(){w("onend"),M.end()}H.endEmitted?a.nextTick(re):W.once("end",re),M.on("unpipe",function fe(ge,de){w("onunpipe"),ge===W&&de&&de.hasUnpiped===!1&&(de.hasUnpiped=!0,w("cleanup"),M.removeListener("close",le),M.removeListener("finish",q),M.removeListener("drain",ce),M.removeListener("error",G),M.removeListener("unpipe",fe),W.removeListener("end",ue),W.removeListener("end",ae),W.removeListener("data",F),ve=!0,!H.awaitDrain||M._writableState&&!M._writableState.needDrain||ce())});var ce=function(fe){return function(){var ge=fe._readableState;w("pipeOnDrain",ge.awaitDrain),ge.awaitDrain&&ge.awaitDrain--,ge.awaitDrain===0&&d(fe,"data")&&(ge.flowing=!0,se(fe))}}(W);M.on("drain",ce);var ve=!1,k=!1;function F(fe){w("ondata"),k=!1,M.write(fe)!==!1||k||((H.pipesCount===1&&H.pipes===M||H.pipesCount>1&&z(H.pipes,M)!==-1)&&!ve&&(w("false write response, pause",W._readableState.awaitDrain),W._readableState.awaitDrain++,k=!0),W.pause())}function G(fe){w("onerror",fe),ae(),M.removeListener("error",G),d(M,"error")===0&&M.emit("error",fe)}function le(){M.removeListener("finish",q),ae()}function q(){w("onfinish"),M.removeListener("close",le),ae()}function ae(){w("unpipe"),W.unpipe(M)}return W.on("data",F),function(fe,ge,de){if(typeof fe.prependListener=="function")return fe.prependListener(ge,de);fe._events&&fe._events[ge]?u(fe._events[ge])?fe._events[ge].unshift(de):fe._events[ge]=[de,fe._events[ge]]:fe.on(ge,de)}(M,"error",G),M.once("close",le),M.once("finish",q),M.emit("pipe",W),H.flowing||(w("pipe resume"),W.resume()),M},N.prototype.unpipe=function(M){var D=this._readableState,W={hasUnpiped:!1};if(D.pipesCount===0)return this;if(D.pipesCount===1)return M&&M!==D.pipes?this:(M||(M=D.pipes),D.pipes=null,D.pipesCount=0,D.flowing=!1,M&&M.emit("unpipe",this,W),this);if(!M){var H=D.pipes,re=D.pipesCount;D.pipes=null,D.pipesCount=0,D.flowing=!1;for(var ue=0;ue<re;ue++)H[ue].emit("unpipe",this,W);return this}var ce=z(D.pipes,M);return ce===-1?this:(D.pipes.splice(ce,1),D.pipesCount-=1,D.pipesCount===1&&(D.pipes=D.pipes[0]),M.emit("unpipe",this,W),this)},N.prototype.on=function(M,D){var W=f.prototype.on.call(this,M,D);if(M==="data")this._readableState.flowing!==!1&&this.resume();else if(M==="readable"){var H=this._readableState;H.endEmitted||H.readableListening||(H.readableListening=H.needReadable=!0,H.emittedReadable=!1,H.reading?H.length&&oe(this):a.nextTick(he,this))}return W},N.prototype.addListener=N.prototype.on,N.prototype.resume=function(){var M=this._readableState;return M.flowing||(w("resume"),M.flowing=!0,function(D,W){W.resumeScheduled||(W.resumeScheduled=!0,a.nextTick(Q,D,W))}(this,M)),this},N.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},N.prototype.wrap=function(M){var D=this,W=this._readableState,H=!1;for(var re in M.on("end",function(){if(w("wrapped end"),W.decoder&&!W.ended){var ce=W.decoder.end();ce&&ce.length&&D.push(ce)}D.push(null)}),M.on("data",function(ce){w("wrapped data"),W.decoder&&(ce=W.decoder.write(ce)),(!W.objectMode||ce!=null)&&(W.objectMode||ce&&ce.length)&&(D.push(ce)||(H=!0,M.pause()))}),M)this[re]===void 0&&typeof M[re]=="function"&&(this[re]=function(ce){return function(){return M[ce].apply(M,arguments)}}(re));for(var ue=0;ue<j.length;ue++)M.on(j[ue],this.emit.bind(this,j[ue]));return this._read=function(ce){w("wrapped _read",ce),H&&(H=!1,M.resume())},this},Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),N._fromList=Y}).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,s){a.emit("error",s)}e.exports={destroy:function(a,s){var u=this,d=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return d||f?(s?s(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(m){!s&&m?(r.nextTick(i,u,m),u._writableState&&(u._writableState.errorEmitted=!0)):s&&s(m)}),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(w){switch((w=""+w)&&w.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(w){var x;switch(this.encoding=function(A){var C=function(j){if(!j)return"utf8";for(var O;;)switch(j){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 j;default:if(O)return;j=(""+j).toLowerCase(),O=!0}}(A);if(typeof C!="string"&&(r.isEncoding===i||!i(A)))throw new Error("Unknown encoding: "+A);return C||A}(w),this.encoding){case"utf16le":this.text=d,this.end=f,x=4;break;case"utf8":this.fillLast=u,x=4;break;case"base64":this.text=m,this.end=p,x=3;break;default:return this.write=b,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(x)}function s(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function u(w){var x=this.lastTotal-this.lastNeed,A=function(C,j,O){if((192&j[0])!=128)return C.lastNeed=0,"<22>";if(C.lastNeed>1&&j.length>1){if((192&j[1])!=128)return C.lastNeed=1,"<22>";if(C.lastNeed>2&&j.length>2&&(192&j[2])!=128)return C.lastNeed=2,"<22>"}}(this,w);return A!==void 0?A:this.lastNeed<=w.length?(w.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,x,0,w.length),void(this.lastNeed-=w.length))}function d(w,x){if((w.length-x)%2==0){var A=w.toString("utf16le",x);if(A){var C=A.charCodeAt(A.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",x,w.length-1)}function f(w){var x=w&&w.length?this.write(w):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,A)}return x}function m(w,x){var A=(w.length-x)%3;return A===0?w.toString("base64",x):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",x,w.length-A))}function p(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function b(w){return w.toString(this.encoding)}function _(w){return w&&w.length?this.write(w):""}t.StringDecoder=a,a.prototype.write=function(w){if(w.length===0)return"";var x,A;if(this.lastNeed){if((x=this.fillLast(w))===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<w.length?x?x+this.text(w,A):this.text(w,A):x||""},a.prototype.end=function(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+"<22>":x},a.prototype.text=function(w,x){var A=function(j,O,N){var B=O.length-1;if(B<N)return 0;var V=s(O[B]);return V>=0?(V>0&&(j.lastNeed=V-1),V):--B<N||V===-2?0:(V=s(O[B]))>=0?(V>0&&(j.lastNeed=V-2),V):--B<N||V===-2?0:(V=s(O[B]))>=0?(V>0&&(V===2?V=0:j.lastNeed=V-3),V):0}(this,w,x);if(!this.lastNeed)return w.toString("utf8",x);this.lastTotal=A;var C=w.length-(A-this.lastNeed);return w.copy(this.lastChar,0,C),w.toString("utf8",x,C)},a.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},function(e,t,n){e.exports=a;var r=n(1),i=n(5);function a(d){if(!(this instanceof a))return new a(d);r.call(this,d),this._transformState={afterTransform:(function(f,m){var p=this._transformState;p.transforming=!1;var b=p.writecb;if(!b)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,m!=null&&this.push(m),b(f);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",s)}function s(){var d=this;typeof this._flush=="function"?this._flush(function(f,m){u(d,f,m)}):u(this,null,null)}function u(d,f,m){if(f)return d.emit("error",f);if(m!=null&&d.push(m),d._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(d._transformState.transforming)throw new Error("Calling transform done when still transforming");return d.push(null)}i.inherits=n(2),i.inherits(a,r),a.prototype.push=function(d,f){return this._transformState.needTransform=!1,r.prototype.push.call(this,d,f)},a.prototype._transform=function(d,f,m){throw new Error("_transform() is not implemented")},a.prototype._write=function(d,f,m){var p=this._transformState;if(p.writecb=m,p.writechunk=d,p.writeencoding=f,!p.transforming){var b=this._readableState;(p.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},a.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&f.writecb&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},a.prototype._destroy=function(d,f){var m=this;r.prototype._destroy.call(this,d,function(p){f(p),m.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var a=r.byteLength(i),s=r.allocUnsafe?r.allocUnsafe(a):new r(a);return s.write(i),s},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,a){for(var s=[],u=0;u<i.length;u++)a.indexOf(u)>-1&&s.push(i[u]);return s},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(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])};return function(s,u){function d(){this.constructor=s}a(s,u),s.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(a){function s(u,d,f){var m=a.call(this,"Error: "+u+". JSON Line number: "+d+(f?" near: "+f:""))||this;return m.err=u,m.line=d,m.extra=f,m.name="CSV Parse Error",m}return r(s,a),s.column_mismatched=function(u,d){return new s("column_mismatched",u,d)},s.unclosed_quote=function(u,d){return new s("unclosed_quote",u,d)},s.fromJSON=function(u){return new s(u.err,u.line,u.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),a=n(69),s=r?r.toStringTag:void 0;e.exports=function(u){return u==null?u===void 0?"[object Undefined]":"[object Null]":s&&s in Object(u)?i(u):a(u)}},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,s){return new r.Converter(a,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var A in x)x.hasOwnProperty(A)&&(w[A]=x[A])};return function(w,x){function A(){this.constructor=w}_(w,x),w.prototype=x===null?Object.create(x):(A.prototype=x.prototype,new A)}}(),a=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),u=n(50),d=n(51),f=a(n(15)),m=n(52),p=n(105),b=function(_){function w(x,A){A===void 0&&(A={});var C=_.call(this,A)||this;return C.options=A,C.params=u.mergeParams(x),C.runtime=d.initParseRuntime(C),C.result=new p.Result(C),C.processor=new m.ProcessorLocal(C),C.once("error",function(j){r(function(){C.result.processError(j),C.emit("done",j)})}),C.once("done",function(){C.processor.destroy()}),C}return i(w,_),w.prototype.preRawData=function(x){return this.runtime.preRawDataHook=x,this},w.prototype.preFileLine=function(x){return this.runtime.preFileLineHook=x,this},w.prototype.subscribe=function(x,A,C){return this.parseRuntime.subscribe={onNext:x,onError:A,onCompleted:C},this},w.prototype.fromFile=function(x,A){var C=this,j=n(!function(){var O=new Error("Cannot find module 'fs'");throw O.code="MODULE_NOT_FOUND",O}());return j.exists(x,function(O){O?j.createReadStream(x,A).pipe(C):C.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},w.prototype.fromStream=function(x){return x.pipe(this),this},w.prototype.fromString=function(x){x.toString();var A=new s.Readable,C=0;return A._read=function(j){if(C>=x.length)this.push(null);else{var O=x.substr(C,j);this.push(O),C+=j}},this.fromStream(A)},w.prototype.then=function(x,A){var C=this;return new f.default(function(j,O){C.parseRuntime.then={onfulfilled:function(N){j(x?x(N):N)},onrejected:function(N){A?j(A(N)):O(N)}}})},Object.defineProperty(w.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),w.prototype._transform=function(x,A,C){var j=this;this.processor.process(x).then(function(O){if(O.length>0)return j.runtime.started=!0,j.result.processResult(O)}).then(function(){j.emit("drained"),C()},function(O){j.runtime.hasError=!0,j.runtime.error=O,j.emit("error",O),C()})},w.prototype._flush=function(x){var A=this;this.processor.flush().then(function(C){if(C.length>0)return A.result.processResult(C)}).then(function(){A.processEnd(x)},function(C){A.emit("error",C),x()})},w.prototype.processEnd=function(x){this.result.endProcess(),this.emit("done"),x()},Object.defineProperty(w.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),w}(s.Transform);t.Converter=b}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(a,s){if(!a.setImmediate){var u,d=1,f={},m=!1,p=a.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(a);b=b&&b.setTimeout?b:a,{}.toString.call(a.process)==="[object process]"?u=function(x){i.nextTick(function(){w(x)})}:function(){if(a.postMessage&&!a.importScripts){var x=!0,A=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=A,x}}()?function(){var x="setImmediate$"+Math.random()+"$",A=function(C){C.source===a&&typeof C.data=="string"&&C.data.indexOf(x)===0&&w(+C.data.slice(x.length))};a.addEventListener?a.addEventListener("message",A,!1):a.attachEvent("onmessage",A),u=function(C){a.postMessage(x+C,"*")}}():a.MessageChannel?function(){var x=new MessageChannel;x.port1.onmessage=function(A){w(A.data)},u=function(A){x.port2.postMessage(A)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var x=p.documentElement;u=function(A){var C=p.createElement("script");C.onreadystatechange=function(){w(A),C.onreadystatechange=null,x.removeChild(C),C=null},x.appendChild(C)}}():u=function(x){setTimeout(w,0,x)},b.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var A=new Array(arguments.length-1),C=0;C<A.length;C++)A[C]=arguments[C+1];var j={callback:x,args:A};return f[d]=j,u(d),d++},b.clearImmediate=_}function _(x){delete f[x]}function w(x){if(m)setTimeout(w,0,x);else{var A=f[x];if(A){m=!0;try{(function(C){var j=C.callback,O=C.args;switch(O.length){case 0:j();break;case 1:j(O[0]);break;case 2:j(O[0],O[1]);break;case 3:j(O[0],O[1],O[2]);break;default:j.apply(s,O)}})(A)}finally{_(x),m=!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,s){var u=this;function d(x){a.writable&&a.write(x)===!1&&u.pause&&u.pause()}function f(){u.readable&&u.resume&&u.resume()}u.on("data",d),a.on("drain",f),a._isStdio||s&&s.end===!1||(u.on("end",p),u.on("close",b));var m=!1;function p(){m||(m=!0,a.end())}function b(){m||(m=!0,typeof a.destroy=="function"&&a.destroy())}function _(x){if(w(),r.listenerCount(this,"error")===0)throw x}function w(){u.removeListener("data",d),a.removeListener("drain",f),u.removeListener("end",p),u.removeListener("close",b),u.removeListener("error",_),a.removeListener("error",_),u.removeListener("end",w),u.removeListener("close",w),a.removeListener("close",w)}return u.on("error",_),a.on("error",_),u.on("end",w),u.on("close",w),a.on("close",w),a.emit("pipe",u),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(b){var _=f(b),w=_[0],x=_[1];return 3*(w+x)/4-x},t.toByteArray=function(b){for(var _,w=f(b),x=w[0],A=w[1],C=new a(3*(x+A)/4-A),j=0,O=A>0?x-4:x,N=0;N<O;N+=4)_=i[b.charCodeAt(N)]<<18|i[b.charCodeAt(N+1)]<<12|i[b.charCodeAt(N+2)]<<6|i[b.charCodeAt(N+3)],C[j++]=_>>16&255,C[j++]=_>>8&255,C[j++]=255&_;return A===2&&(_=i[b.charCodeAt(N)]<<2|i[b.charCodeAt(N+1)]>>4,C[j++]=255&_),A===1&&(_=i[b.charCodeAt(N)]<<10|i[b.charCodeAt(N+1)]<<4|i[b.charCodeAt(N+2)]>>2,C[j++]=_>>8&255,C[j++]=255&_),C},t.fromByteArray=function(b){for(var _,w=b.length,x=w%3,A=[],C=0,j=w-x;C<j;C+=16383)A.push(p(b,C,C+16383>j?j:C+16383));return x===1?(_=b[w-1],A.push(r[_>>2]+r[_<<4&63]+"==")):x===2&&(_=(b[w-2]<<8)+b[w-1],A.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),A.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,d=s.length;u<d;++u)r[u]=s[u],i[s.charCodeAt(u)]=u;function f(b){var _=b.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=b.indexOf("=");return w===-1&&(w=_),[w,w===_?0:4-w%4]}function m(b){return r[b>>18&63]+r[b>>12&63]+r[b>>6&63]+r[63&b]}function p(b,_,w){for(var x,A=[],C=_;C<w;C+=3)x=(b[C]<<16&16711680)+(b[C+1]<<8&65280)+(255&b[C+2]),A.push(m(x));return A.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,a,s){var u,d,f=8*s-a-1,m=(1<<f)-1,p=m>>1,b=-7,_=i?s-1:0,w=i?-1:1,x=n[r+_];for(_+=w,u=x&(1<<-b)-1,x>>=-b,b+=f;b>0;u=256*u+n[r+_],_+=w,b-=8);for(d=u&(1<<-b)-1,u>>=-b,b+=a;b>0;d=256*d+n[r+_],_+=w,b-=8);if(u===0)u=1-p;else{if(u===m)return d?NaN:1/0*(x?-1:1);d+=Math.pow(2,a),u-=p}return(x?-1:1)*d*Math.pow(2,u-a)},t.write=function(n,r,i,a,s,u){var d,f,m,p=8*u-s-1,b=(1<<p)-1,_=b>>1,w=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=a?0:u-1,A=a?1:-1,C=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,d=b):(d=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-d))<1&&(d--,m*=2),(r+=d+_>=1?w/m:w*Math.pow(2,1-_))*m>=2&&(d++,m/=2),d+_>=b?(f=0,d=b):d+_>=1?(f=(r*m-1)*Math.pow(2,s),d+=_):(f=r*Math.pow(2,_-1)*Math.pow(2,s),d=0));s>=8;n[i+x]=255&f,x+=A,f/=256,s-=8);for(d=d<<s|f,p+=s;p>0;n[i+x]=255&d,x+=A,d/=256,p-=8);n[i+x-A]|=128*C}},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(s,u,d){s.copy(u,d)}e.exports=function(){function s(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(u){var d={data:u,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},s.prototype.unshift=function(u){var d={data:u,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},s.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(u){if(this.length===0)return"";for(var d=this.head,f=""+d.data;d=d.next;)f+=u+d.data;return f},s.prototype.concat=function(u){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var d=r.allocUnsafe(u>>>0),f=this.head,m=0;f;)a(f.data,d,m),m+=f.data.length,f=f.next;return d},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(a){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[a];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(a,s){if(i("noDeprecation"))return a;var u=!1;return function(){if(!u){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),u=!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(s){if(!(this instanceof a))return new a(s);r.call(this,s)}i.inherits=n(2),i.inherits(a,r),a.prototype._transform=function(s,u,d){d(null,s)}},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 A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,j){C.__proto__=j}||function(C,j){for(var O in j)j.hasOwnProperty(O)&&(C[O]=j[O])};return function(C,j){function O(){this.constructor=C}A(C,j),C.prototype=j===null?Object.create(j):(O.prototype=j.prototype,new O)}}(),a=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),u=a(n(15)),d=n(54),f=a(n(16)),m=n(57),p=n(28),b=n(58),_=a(n(59)),w=a(n(29)),x=function(A){function C(){var j=A!==null&&A.apply(this,arguments)||this;return j.rowSplit=new b.RowSplit(j.converter),j.eolEmitted=!1,j._needEmitEol=void 0,j.headEmitted=!1,j._needEmitHead=void 0,j}return i(C,A),C.prototype.flush=function(){var j=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var O=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(O,!0).then(function(N){return j.runtime.csvLineBuffer&&j.runtime.csvLineBuffer.length>0?u.default.reject(w.default.unclosed_quote(j.runtime.parsedLineNumber,j.runtime.csvLineBuffer.toString())):u.default.resolve(N)})}return u.default.resolve([])},C.prototype.destroy=function(){return u.default.resolve()},Object.defineProperty(C.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(C.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),C.prototype.process=function(j,O){var N,B=this;return O===void 0&&(O=!1),N=O?j.toString():d.prepareData(j,this.converter.parseRuntime),u.default.resolve().then(function(){return B.runtime.preRawDataHook?B.runtime.preRawDataHook(N):N}).then(function(V){return V&&V.length>0?B.processCSV(V,O):u.default.resolve([])})},C.prototype.processCSV=function(j,O){var N=this,B=this.params,V=this.runtime;V.eol||f.default(j,V),this.needEmitEol&&!this.eolEmitted&&V.eol&&(this.converter.emit("eol",V.eol),this.eolEmitted=!0),B.ignoreEmpty&&!V.started&&(j=p.trimLeft(j));var Z=m.stringToLines(j,V);return O?(Z.lines.push(Z.partial),Z.partial=""):this.prependLeftBuf(p.bufFromString(Z.partial)),Z.lines.length>0?(V.preFileLineHook?this.runPreLineHook(Z.lines):u.default.resolve(Z.lines)).then(function(X){return V.started||N.runtime.headers?N.processCSVBody(X):N.processDataWithHead(X)}):u.default.resolve([])},C.prototype.processDataWithHead=function(j){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var O="",N=[];j.length;){var B=O+j.shift(),V=this.rowSplit.parse(B);if(V.closed){N=V.cells,O="";break}O=B+f.default(B,this.runtime)}if(this.prependLeftBuf(p.bufFromString(O)),N.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=N}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(j)},C.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var j=this.runtime.headers,O=0;O<j.length;O++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(j[O])){if(!this.params.includeColumns||!this.params.includeColumns.test(j[O]))continue;this.runtime.selectedColumns.push(O)}else this.runtime.selectedColumns.push(O);else this.params.includeColumns?this.params.includeColumns.test(j[O])&&this.runtime.selectedColumns.push(O):this.runtime.selectedColumns.push(O);this.runtime.headers=p.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},C.prototype.processCSVBody=function(j){if(this.params.output==="line")return j;var O=this.rowSplit.parseMultiLines(j);return this.prependLeftBuf(p.bufFromString(O.partial)),this.params.output==="csv"?O.rowsCells:_.default(O.rowsCells,this.converter)},C.prototype.prependLeftBuf=function(j){j&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([j,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=j)},C.prototype.runPreLineHook=function(j){var O=this;return new u.default(function(N,B){(function V(Z,X,oe,ee){if(oe>=Z.length)ee();else if(X.preFileLineHook){var J=Z[oe],ne=X.preFileLineHook(J,X.parsedLineNumber+oe);if(oe++,ne&&ne.then)ne.then(function(he){Z[oe-1]=he,V(Z,X,oe,ee)});else{for(Z[oe-1]=ne;oe<Z.length;)Z[oe]=X.preFileLineHook(Z[oe],X.parsedLineNumber+oe),oe++;ee()}}else ee()})(j,O.runtime,0,function(V){V?B(V):N(j)})})},C}(s.Processor);t.ProcessorLocal=x}).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(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(55));t.prepareData=function(s,u){var d=function(m,p){return p.csvLineBuffer&&p.csvLineBuffer.length>0?r.concat([p.csvLineBuffer,m]):m}(s,u);u.csvLineBuffer=void 0;var f=function(m,p){var b=m.length-1;if((128&m[b])!=0){for(;(192&m[b])==128;)b--;b--}return b!=m.length-1?(p.csvLineBuffer=m.slice(b+1),m.slice(0,b+1)):m}(d,u).toString("utf8");return u.started===!1?a.default(f):f}}).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,s){var u=i.default(a,s),d=a.split(u);return{lines:d,partial:d.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),a=n(28),s=[",","|"," ",";",":"],u=function(){function d(f){this.conv=f,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=f.parseParam.quote,this.trim=f.parseParam.trim,this.escape=f.parseParam.escape}return Object.defineProperty(d.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),d.prototype.parse=function(f){if(f.length===0||this.conv.parseParam.ignoreEmpty&&f.trim().length===0)return{cells:[],closed:!0};var m=this.quote,p=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(f)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var b=this.conv.parseRuntime.delimiter,_=f.split(b);if(m==="off"){if(p)for(var w=0;w<_.length;w++)_[w]=_[w].trim();return{cells:_,closed:!0}}return this.toCSVRow(_,p,m,b)},d.prototype.toCSVRow=function(f,m,p,b){for(var _=[],w=!1,x="",A=0,C=f.length;A<C;A++){var j=f[A];!w&&m&&(j=a.trimLeft(j));var O=j.length;if(w)this.isQuoteClose(j)?(w=!1,x+=b+(j=j.substr(0,O-1)),x=this.escapeQuote(x),m&&(x=a.trimRight(x)),_.push(x),x=""):x+=b+j;else{if(O===2&&j===this.quote+this.quote){_.push("");continue}if(this.isQuoteOpen(j)){if(j=j.substr(1),this.isQuoteClose(j)){j=j.substring(0,j.lastIndexOf(p)),j=this.escapeQuote(j),_.push(j);continue}if(j.indexOf(p)!==-1){for(var N=0,B="",V=0,Z=j;V<Z.length;V++){var X=Z[V];X===p&&B!==this.escape?(N++,B=""):B=X}if(N%2==1){m&&(j=a.trimRight(j)),_.push(p+j);continue}w=!0,x+=j;continue}w=!0,x+=j;continue}m&&(j=a.trimRight(j)),_.push(j)}}return{cells:_,closed:!w}},d.prototype.getDelimiter=function(f){var m;if(this.conv.parseParam.delimiter==="auto")m=s;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;m=this.conv.parseParam.delimiter}var p=0,b=",";return m.forEach(function(_){var w=f.split(_).length;w>p&&(b=_,p=w)}),b},d.prototype.isQuoteOpen=function(f){var m=this.quote,p=this.escape;return f[0]===m&&(f[1]!==m||f[1]===p&&(f[2]===m||f.length===2))},d.prototype.isQuoteClose=function(f){var m=this.quote,p=this.escape;this.conv.parseParam.trim&&(f=a.trimRight(f));for(var b=0,_=f.length-1;f[_]===m||f[_]===p;)_--,b++;return b%2!=0},d.prototype.escapeQuote=function(f){var m="es|"+this.quote+"|"+this.escape;this.cachedRegExp[m]===void 0&&(this.cachedRegExp[m]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[m];return f.replace(p,this.quote)},d.prototype.parseMultiLines=function(f){for(var m=[],p="";f.length;){var b=p+f.shift(),_=this.parse(b);_.cells.length===0&&this.conv.parseParam.ignoreEmpty||(_.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?m.push(a.filterArray(_.cells,this.conv.parseRuntime.selectedColumns)):m.push(_.cells),p=""):p=b+(i.default(b,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:m,partial:p}},d}();t.RowSplit=u},function(e,t,n){var r=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),a=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function u(C,j,O){if(j.parseParam.checkColumn&&j.parseRuntime.headers&&C.length!==j.parseRuntime.headers.length)throw i.default.column_mismatched(j.parseRuntime.parsedLineNumber+O);return function(N,B,V){for(var Z=!1,X={},oe=0,ee=N.length;oe<ee;oe++){var J=N[oe];if(!V.parseParam.ignoreEmpty||J!==""){Z=!0;var ne=B[oe];ne&&ne!==""||(ne=B[oe]="field"+(oe+1));var he=f(ne,oe,V);if(he){var Q=he(J,ne,X,N,oe);Q!==void 0&&m(X,ne,Q,V,oe)}else V.parseParam.checkType&&(J=_(J,ne,oe,V)(J)),J!==void 0&&m(X,ne,J,V,oe)}}return Z?X:null}(C,j.parseRuntime.headers||[],j)||null}t.default=function(C,j){for(var O=[],N=0,B=C.length;N<B;N++){var V=u(C[N],j,N);V&&O.push(V)}return O};var d={string:x,number:w,omit:function(){}};function f(C,j,O){if(O.parseRuntime.columnConv[j]!==void 0)return O.parseRuntime.columnConv[j];var N=O.parseParam.colParser[C];if(N===void 0)return O.parseRuntime.columnConv[j]=null;if(typeof N=="object"&&(N=N.cellParser||"string"),typeof N=="string"){N=N.trim().toLowerCase();var B=d[N];return O.parseRuntime.columnConv[j]=B||null}return O.parseRuntime.columnConv[j]=typeof N=="function"?N:null}function m(C,j,O,N,B){if(!N.parseRuntime.columnValueSetter[B])if(N.parseParam.flatKeys)N.parseRuntime.columnValueSetter[B]=p;else if(j.indexOf(".")>-1){for(var V=j.split("."),Z=!0;V.length>0;)if(V.shift().length===0){Z=!1;break}!Z||N.parseParam.colParser[j]&&N.parseParam.colParser[j].flat?N.parseRuntime.columnValueSetter[B]=p:N.parseRuntime.columnValueSetter[B]=b}else N.parseRuntime.columnValueSetter[B]=p;N.parseParam.nullObject===!0&&O==="null"&&(O=null),N.parseRuntime.columnValueSetter[B](C,j,O)}function p(C,j,O){C[j]=O}function b(C,j,O){a.default(C,j,O)}function _(C,j,O,N){return N.parseRuntime.headerType[O]?N.parseRuntime.headerType[O]:j.indexOf("number#!")>-1?N.parseRuntime.headerType[O]=w:j.indexOf("string#!")>-1?N.parseRuntime.headerType[O]=x:N.parseParam.checkType?N.parseRuntime.headerType[O]=A:N.parseRuntime.headerType[O]=x}function w(C){var j=parseFloat(C);return isNaN(j)?C:j}function x(C){return C.toString()}function A(C){var j=C.trim();return j===""?x(C):s.test(j)?w(C):j.length===5&&j.toLowerCase()==="false"||j.length===4&&j.toLowerCase()==="true"?function(O){var N=O.trim();return N.length!==5||N.toLowerCase()!=="false"}(C):j[0]==="{"&&j[j.length-1]==="}"||j[0]==="["&&j[j.length-1]==="]"?function(O){try{return JSON.parse(O)}catch{return O}}(C):x(C)}},function(e,t,n){var r=n(61);e.exports=function(i,a,s){return i==null?i:r(i,a,s)}},function(e,t,n){var r=n(62),i=n(74),a=n(103),s=n(20),u=n(104);e.exports=function(d,f,m,p){if(!s(d))return d;for(var b=-1,_=(f=i(f,d)).length,w=_-1,x=d;x!=null&&++b<_;){var A=u(f[b]),C=m;if(b!=w){var j=x[A];(C=p?p(j,A,x):void 0)===void 0&&(C=s(j)?j:a(f[b+1])?[]:{})}r(x,A,C),x=x[A]}return d}},function(e,t,n){var r=n(63),i=n(31),a=Object.prototype.hasOwnProperty;e.exports=function(s,u,d){var f=s[u];a.call(s,u)&&i(f,d)&&(d!==void 0||u in s)||r(s,u,d)}},function(e,t,n){var r=n(64);e.exports=function(i,a,s){a=="__proto__"&&r?r(i,a,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[a]=s}},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),s=n(72),u=/^\[object .+?Constructor\]$/,d=Function.prototype,f=Object.prototype,m=d.toString,p=f.hasOwnProperty,b=RegExp("^"+m.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(_){return!(!a(_)||i(_))&&(r(_)?b:u).test(s(_))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(a){if(!i(a))return!1;var s=r(a);return s=="[object Function]"||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[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,s=i.toString,u=r?r.toStringTag:void 0;e.exports=function(d){var f=a.call(d,u),m=d[u];try{d[u]=void 0;var p=!0}catch{}var b=s.call(d);return p&&(f?d[u]=m:delete d[u]),b}},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?.[r]}},function(e,t,n){var r=n(21),i=n(75),a=n(77),s=n(100);e.exports=function(u,d){return r(u)?u:i(u,d)?[u]:a(s(u))}},function(e,t,n){var r=n(21),i=n(22),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(u,d){if(r(u))return!1;var f=typeof u;return!(f!="number"&&f!="symbol"&&f!="boolean"&&u!=null&&!i(u))||s.test(u)||!a.test(u)||d!=null&&u in Object(d)}},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(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(r,function(d,f,m,p){u.push(m?p.replace(i,"$1"):f||d)}),u});e.exports=a},function(e,t,n){var r=n(79);e.exports=function(i){var a=r(i,function(u){return s.size===500&&s.clear(),u}),s=a.cache;return a}},function(e,t,n){var r=n(80),i="Expected a function";function a(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new TypeError(i);var d=function(){var f=arguments,m=u?u.apply(this,f):f[0],p=d.cache;if(p.has(m))return p.get(m);var b=s.apply(this,f);return d.cache=p.set(m,b)||p,b};return d.cache=new(a.Cache||r),d}a.Cache=r,e.exports=a},function(e,t,n){var r=n(81),i=n(95),a=n(97),s=n(98),u=n(99);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=a,d.prototype.has=s,d.prototype.set=u,e.exports=d},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),s=n(86),u=n(87);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=a,d.prototype.has=s,d.prototype.set=u,e.exports=d},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 s=this.__data__;if(r){var u=s[a];return u==="__lodash_hash_undefined__"?void 0:u}return i.call(s,a)?s[a]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(a){var s=this.__data__;return r?s[a]!==void 0:i.call(s,a)}},function(e,t,n){var r=n(8);e.exports=function(i,a){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&a===void 0?"__lodash_hash_undefined__":a,this}},function(e,t,n){var r=n(89),i=n(90),a=n(91),s=n(92),u=n(93);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=a,d.prototype.has=s,d.prototype.set=u,e.exports=d},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 s=this.__data__,u=r(s,a);return!(u<0||(u==s.length-1?s.pop():i.call(s,u,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var a=this.__data__,s=r(a,i);return s<0?void 0:a[s][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 s=this.__data__,u=r(s,i);return u<0?(++this.size,s.push([i,a])):s[u][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 s=r(this,i),u=s.size;return s.set(i,a),this.size+=s.size==u?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),s=n(22),u=r?r.prototype:void 0,d=u?u.toString:void 0;e.exports=function f(m){if(typeof m=="string")return m;if(a(m))return i(m,f)+"";if(s(m))return d?d.call(m):"";var p=m+"";return p=="0"&&1/m==-1/0?"-0":p}},function(e,t){e.exports=function(n,r){for(var i=-1,a=n==null?0:n.length,s=Array(a);++i<a;)s[i]=r(n[i],i,n);return s}},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(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),a=n(106),s=function(){function d(f){this.converter=f,this.finalResult=[]}return Object.defineProperty(d.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),d.prototype.processResult=function(f){var m=this,p=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&p===0&&u(this.converter,"["+a.EOL),new i.default(function(b,_){m.needEmitLine?function w(x,A,C,j,O){if(C>=x.length)O();else if(A.parseRuntime.subscribe&&A.parseRuntime.subscribe.onNext){var N=A.parseRuntime.subscribe.onNext,B=x[C],V=N(B,A.parseRuntime.parsedLineNumber+C);if(C++,V&&V.then)V.then(function(){(function(X,oe,ee,J,ne,he,Q){ne&&u(ee,Q),w(X,ee,J,ne,he)})(x,0,A,C,j,O,B)},O);else{for(j&&u(A,B);C<x.length;){var Z=x[C];N(Z,A.parseRuntime.parsedLineNumber+C),C++,j&&u(A,Z)}O()}}else{if(j)for(;C<x.length;)Z=x[C++],u(A,Z);O()}}(f,m.converter,0,m.needPushDownstream,function(w){w?_(w):(m.appendFinalResult(f),b())}):(m.appendFinalResult(f),b())})},d.prototype.appendFinalResult=function(f){this.needEmitAll&&(this.finalResult=this.finalResult.concat(f)),this.converter.parseRuntime.parsedLineNumber+=f.length},d.prototype.processError=function(f){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(f),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(f)},d.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"&&u(this.converter,"]"+a.EOL)},d}();function u(d,f){if(typeof f!="object"||d.options.objectMode)d.push(f);else{var m=JSON.stringify(f);d.push(m+(d.parseParam.downstreamFormat==="array"?","+a.EOL:a.EOL),"utf8")}}t.Result=s},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"/"}}])),ox}var h_e=d_e();const m_e=ri(h_e),p_e=e=>new Promise(t=>{m_e().fromString(e).then(t)}),g_e=new DL,v_e=e=>g_e.parse(e),y_e="shlink",u5=e=>`${y_e}.${e}`;class b_e{constructor(t){this.localStorage=t}get=t=>{const n=this.localStorage.getItem(u5(t));return n?JSON.parse(n):void 0};set=(t,n)=>this.localStorage.setItem(u5(t),JSON.stringify(n))}class __e{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const x_e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",b_e,"localStorage"),e.service("TagColorsStorage",__e,"Storage"),e.constant("csvToJson",p_e),e.constant("jsonToCsv",v_e),e.serviceFactory("useTimeoutToggle",()=>Yv)},Hu=new q5,{container:_3}=Hu,w_e=(e,t)=>(...n)=>e[t](...n),S_e=(e,t)=>({...e,[t]:w_e(_3,t)}),C_e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),qy=(e,t=[])=>y5(e?C_e(e):null,t.reduce(S_e,{}));rX(Hu,qy);ybe(Hu,qy);A$(Hu);i_e(Hu,qy);x_e(Hu);f_e(Hu,qy);var sx={},ug={exports:{}},c5;function E_e(){return c5||(c5=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 f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return r.apply(void 0,f)}t.main=n,n.clone=a,n.isPlainObject=s,n.recursive=i;function r(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return d(f[0]===!0,!1,f)}t.merge=r;function i(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return d(f[0]===!0,!0,f)}t.recursive=i;function a(f){if(Array.isArray(f)){for(var m=[],p=0;p<f.length;++p)m.push(a(f[p]));return m}else if(s(f)){var m={};for(var p in f)m[p]=a(f[p]);return m}else return f}t.clone=a;function s(f){return f&&typeof f=="object"&&!Array.isArray(f)}t.isPlainObject=s;function u(f,m){if(!s(f))return m;for(var p in m)p==="__proto__"||p==="constructor"||p==="prototype"||(f[p]=s(f[p])&&s(m[p])?u(f[p],m[p]):m[p]);return f}function d(f,m,p){var b;(f||!s(b=p.shift()))&&(b={});for(var _=0;_<p.length;++_){var w=p[_];if(s(w)){for(var x in w)if(!(x==="__proto__"||x==="constructor"||x==="prototype")){var A=f?a(w[x]):w[x];b[x]=m?u(b[x],A):A}}}return b}}(ug,ug.exports)),ug.exports}var f5;function A_e(){return f5||(f5=1,function(e){var t=n(E_e());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=he,e.combineLoads=ne,e.load=J,e.save=ee;function n(z){return z&&z.__esModule?z:{default:z}}function r(z,M){return d(z)||u(z,M)||a(z,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(z,M){if(z){if(typeof z=="string")return s(z,M);var D=Object.prototype.toString.call(z).slice(8,-1);return D==="Object"&&z.constructor&&(D=z.constructor.name),D==="Map"||D==="Set"?Array.from(z):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?s(z,M):void 0}}function s(z,M){(M==null||M>z.length)&&(M=z.length);for(var D=0,W=Array(M);D<M;D++)W[D]=z[D];return W}function u(z,M){var D=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(D!=null){var W,H,re=[],ue=!0,ce=!1;try{for(D=D.call(z);!(ue=(W=D.next()).done)&&(re.push(W.value),!(M&&re.length===M));ue=!0);}catch(ve){ce=!0,H=ve}finally{try{ue||D.return==null||D.return()}finally{if(ce)throw H}}return re}}function d(z){if(Array.isArray(z))return z}function f(z){"@babel/helpers - typeof";return f=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},f(z)}function m(z,M,D){return M in z?Object.defineProperty(z,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):z[M]=D,z}var p="[Redux-LocalStorage-Simple]",b="redux_localstorage_simple",_="_",w=[],x=[],A=0,C=!1,j=!1,O=new Map;function N(z){console.warn(p,z)}function B(){}var V=function(z){return z?B:N};function Z(z,M){return M===void 0?null:z.length===1?M[z[0]]:Z(z.slice(1),M[z[0]])}function X(z){function M(W,H){return W.length===0?H:M(W.slice(1),m({},W[0],H))}var D=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return M(z.split(".").reverse(),D)}function oe(z){this.warnFn=z||N}Object.defineProperty(oe.prototype,"length",{get:function(){try{return localStorage.length}catch(z){this.warnFn(z)}return 0},configurable:!0,enumerable:!0}),oe.prototype.key=function(z){try{return localStorage.key(z)}catch(M){this.warnFn(M)}return null},oe.prototype.setItem=function(z,M){try{localStorage.setItem(z,JSON.stringify(M))}catch(D){this.warnFn(D)}},oe.prototype.getItem=function(z){try{return JSON.parse(localStorage.getItem(z))}catch(M){this.warnFn(M)}return null},oe.prototype.removeItem=function(z){try{localStorage.removeItem(z)}catch(M){this.warnFn(M)}};function ee(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=z.states,D=M===void 0?w:M,W=z.ignoreStates,H=W===void 0?x:W,re=z.namespace,ue=re===void 0?b:re,ce=z.namespaceSeparator,ve=ce===void 0?_:ce,k=z.debounce,F=k===void 0?A:k,G=z.disableWarnings,le=G===void 0?j:G;return function(q){return function(ae){return function(fe){function ge(Be,qe){return 1<Be.split(".").length?Z(Be.split("."),qe):Z([Be],qe)}function de(){D.length===0?He.setItem(ue,_e):D.forEach(function(Be){var qe=ue+ve+Be,be=ge(Be,_e);be?He.setItem(qe,be):He.removeItem(qe)})}var _e,Te=V(le),Le=ae(fe);Q(D)||(console.error(p,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),D=w),Q(H)||(console.error(p,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),H=x),0<H.length&&(H=H.filter(function(Be){return se(Be)?Be:void console.error(p,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),se(ue)||(console.error(p,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ue=b),se(ve)||(console.error(p,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ve=_),Y(F)||(console.error(p,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),F=A),_e=0<H.length?I(H,q.getState()):q.getState();var He=new oe(Te);return F?(O.get(D+ue)&&clearTimeout(O.get(D+ue)),O.set(D+ue,setTimeout(function(){de()},F))):de(),Le}}}}function J(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=z.states,D=M===void 0?w:M,W=z.immutablejs,H=W===void 0?C:W,re=z.namespace,ue=re===void 0?b:re,ce=z.namespaceSeparator,ve=ce===void 0?_:ce,k=z.preloadedState,F=k===void 0?{}:k,G=z.disableWarnings,le=G===void 0?j:G,q=V(le);Q(D)||(console.error(p,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),D=w),se(ue)||(console.error(p,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ue=b),se(ve)||(console.error(p,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ve=_),H===!0&&q("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 ae=new oe(q),fe=F;if(D.length===0){var ge=ae.getItem(ue);ge&&(fe=ge)}else D.forEach(function(de){var _e=ue+ve+de,Te=ae.getItem(_e);Te?fe=t.default.recursive(fe,X(de,Te)):q("Invalid load '"+_e+"' 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 fe}function ne(){for(var z={},M=arguments.length,D=Array(M),W=0;W<M;W++)D[W]=arguments[W];return D.forEach(function(H){for(var re in U(H)||(console.error(p,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),H={}),H)z[re]=H[re]}),z}function he(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=z.namespace,D=M===void 0?b:M,W=z.disableWarnings,H=W===void 0?j:W,re=V(H);se(D)||(console.error(p,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),D=b);for(var ue,ce=new oe(re),ve=ce.length,k=0;k<ve;k++)ue=ce.key(k),ue&&ue.slice(0,D.length)===D&&ce.removeItem(ue)}function Q(z){return Object.prototype.toString.call(z)==="[object Array]"}function se(z){return typeof z=="string"}function Y(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function U(z){return z!==null&&f(z)==="object"}function I(z,M){var D=Object.entries(M).reduce(function(W,H){var re=r(H,2),ue=re[0];return re[1],z.indexOf(ue)===-1&&(W[ue]=M[ue]),W},{});return D}}(sx)),sx}var rU=A_e();const T_e=e=>Xv({appUpdated:nX,servers:Fbe,selectedServer:e.selectedServerReducer,settings:u_e}),O_e=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),iU={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},j_e=O_e(rU.load(iU)),P_e=e=>kw({devTools:!1,reducer:T_e(e),preloadedState:j_e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(rU.save(iU))}),M_e=!!(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 R_e(e){if("serviceWorker"in navigator){if(new URL(Cg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Cg.homepage}/service-worker.js`;M_e?(N_e(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")})):aU(n,e)})}}function aU(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 N_e(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()})}):aU(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const oU=P_e(_3),{App:L_e,ScrollToTop:D_e,ErrorHandler:k_e,appUpdateAvailable:I_e}=_3;PB.createRoot(document.getElementById("root")).render(v.jsx(q2,{store:oU,children:v.jsx(M5,{basename:Cg.homepage,children:v.jsx(k_e,{children:v.jsx(D_e,{children:v.jsx(L_e,{})})})})}));R_e({onUpdate(){oU.dispatch(I_e())}});
|