mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 18:38:21 +03:00
998 lines
1.4 MiB
998 lines
1.4 MiB
var W8=Object.defineProperty;var Y8=(e,t,n)=>t in e?W8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var me=(e,t,n)=>(Y8(e,typeof t!="symbol"?t+"":t,n),n);function q8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function G8(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ZD={exports:{}},xv={},QD={exports:{}},it={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Qd=Symbol.for("react.element"),K8=Symbol.for("react.portal"),Z8=Symbol.for("react.fragment"),Q8=Symbol.for("react.strict_mode"),X8=Symbol.for("react.profiler"),J8=Symbol.for("react.provider"),eF=Symbol.for("react.context"),tF=Symbol.for("react.forward_ref"),nF=Symbol.for("react.suspense"),rF=Symbol.for("react.memo"),iF=Symbol.for("react.lazy"),rE=Symbol.iterator;function oF(e){return e===null||typeof e!="object"?null:(e=rE&&e[rE]||e["@@iterator"],typeof e=="function"?e:null)}var XD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JD=Object.assign,eL={};function ru(e,t,n){this.props=e,this.context=t,this.refs=eL,this.updater=n||XD}ru.prototype.isReactComponent={};ru.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ru.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tL(){}tL.prototype=ru.prototype;function Rx(e,t,n){this.props=e,this.context=t,this.refs=eL,this.updater=n||XD}var jx=Rx.prototype=new tL;jx.constructor=Rx;JD(jx,ru.prototype);jx.isPureReactComponent=!0;var iE=Array.isArray,nL=Object.prototype.hasOwnProperty,Nx={current:null},rL={key:!0,ref:!0,__self:!0,__source:!0};function iL(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)nL.call(t,r)&&!rL.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Qd,type:e,key:o,ref:a,props:i,_owner:Nx.current}}function aF(e,t){return{$$typeof:Qd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ax(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qd}function sF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var oE=/\/+/g;function m0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sF(""+e.key):t.toString(36)}function am(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Qd:case K8:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+m0(a,0):r,iE(i)?(n="",e!=null&&(n=e.replace(oE,"$&/")+"/"),am(i,t,n,"",function(c){return c})):i!=null&&(Ax(i)&&(i=aF(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(oE,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",iE(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+m0(o,s);a+=am(o,t,n,l,i)}else if(l=oF(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+m0(o,s++),a+=am(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function ep(e,t,n){if(e==null)return e;var r=[],i=0;return am(e,r,"","",function(o){return t.call(n,o,i++)}),r}function lF(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var mr={current:null},sm={transition:null},cF={ReactCurrentDispatcher:mr,ReactCurrentBatchConfig:sm,ReactCurrentOwner:Nx};it.Children={map:ep,forEach:function(e,t,n){ep(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ep(e,function(){t++}),t},toArray:function(e){return ep(e,function(t){return t})||[]},only:function(e){if(!Ax(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=ru;it.Fragment=Z8;it.Profiler=X8;it.PureComponent=Rx;it.StrictMode=Q8;it.Suspense=nF;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cF;it.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=JD({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Nx.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)nL.call(t,l)&&!rL.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Qd,type:e.type,key:i,ref:o,props:r,_owner:a}};it.createContext=function(e){return e={$$typeof:eF,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:J8,_context:e},e.Consumer=e};it.createElement=iL;it.createFactory=function(e){var t=iL.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:tF,render:e}};it.isValidElement=Ax;it.lazy=function(e){return{$$typeof:iF,_payload:{_status:-1,_result:e},_init:lF}};it.memo=function(e,t){return{$$typeof:rF,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=sm.transition;sm.transition={};try{e()}finally{sm.transition=t}};it.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};it.useCallback=function(e,t){return mr.current.useCallback(e,t)};it.useContext=function(e){return mr.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return mr.current.useDeferredValue(e)};it.useEffect=function(e,t){return mr.current.useEffect(e,t)};it.useId=function(){return mr.current.useId()};it.useImperativeHandle=function(e,t,n){return mr.current.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return mr.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return mr.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return mr.current.useMemo(e,t)};it.useReducer=function(e,t,n){return mr.current.useReducer(e,t,n)};it.useRef=function(e){return mr.current.useRef(e)};it.useState=function(e){return mr.current.useState(e)};it.useSyncExternalStore=function(e,t,n){return mr.current.useSyncExternalStore(e,t,n)};it.useTransition=function(){return mr.current.useTransition()};it.version="18.2.0";QD.exports=it;var H=QD.exports;const Y=pi(H),uF=q8({__proto__:null,default:Y},[H]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var fF=H,dF=Symbol.for("react.element"),hF=Symbol.for("react.fragment"),pF=Object.prototype.hasOwnProperty,mF=fF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gF={key:!0,ref:!0,__self:!0,__source:!0};function oL(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)pF.call(t,r)&&!gF.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:dF,type:e,key:o,ref:a,props:i,_owner:mF.current}}xv.Fragment=hF;xv.jsx=oL;xv.jsxs=oL;ZD.exports=xv;var m=ZD.exports;/*!
|
||
* @kurkle/color v0.3.1
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2022 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/function Xd(e){return e+.5|0}const pa=(e,t,n)=>Math.max(Math.min(e,n),t);function nf(e){return pa(Xd(e*2.55),0,255)}function Ea(e){return pa(Xd(e*255),0,255)}function yo(e){return pa(Xd(e/2.55)/100,0,1)}function aE(e){return pa(Xd(e*100),0,100)}const Jr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ab=[..."0123456789ABCDEF"],vF=e=>ab[e&15],yF=e=>ab[(e&240)>>4]+ab[e&15],tp=e=>(e&240)>>4===(e&15),_F=e=>tp(e.r)&&tp(e.g)&&tp(e.b)&&tp(e.a);function bF(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Jr[e[1]]*17,g:255&Jr[e[2]]*17,b:255&Jr[e[3]]*17,a:t===5?Jr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Jr[e[1]]<<4|Jr[e[2]],g:Jr[e[3]]<<4|Jr[e[4]],b:Jr[e[5]]<<4|Jr[e[6]],a:t===9?Jr[e[7]]<<4|Jr[e[8]]:255})),n}const wF=(e,t)=>e<255?t(e):"";function xF(e){var t=_F(e)?vF:yF;return e?"#"+t(e.r)+t(e.g)+t(e.b)+wF(e.a,t):void 0}const SF=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function aL(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function OF(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function CF(e,t,n){const r=aL(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function EF(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function Ix(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,c,f;return o!==a&&(f=o-a,c=s>.5?f/(2-o-a):f/(o+a),l=EF(n,r,i,f,o),l=l*60+.5),[l|0,c||0,s]}function Fx(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ea)}function $x(e,t,n){return Fx(aL,e,t,n)}function TF(e,t,n){return Fx(CF,e,t,n)}function PF(e,t,n){return Fx(OF,e,t,n)}function sL(e){return(e%360+360)%360}function kF(e){const t=SF.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?nf(+t[5]):Ea(+t[5]));const i=sL(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=TF(i,o,a):t[1]==="hsv"?r=PF(i,o,a):r=$x(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function MF(e,t){var n=Ix(e);n[0]=sL(n[0]+t),n=$x(n),e.r=n[0],e.g=n[1],e.b=n[2]}function DF(e){if(!e)return;const t=Ix(e),n=t[0],r=aE(t[1]),i=aE(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${yo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const sE={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lE={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function LF(){const e={},t=Object.keys(lE),n=Object.keys(sE);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,sE[o]);o=parseInt(lE[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let np;function RF(e){np||(np=LF(),np.transparent=[0,0,0,0]);const t=np[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const jF=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function NF(e){const t=jF.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?nf(a):pa(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?nf(r):pa(r,0,255)),i=255&(t[4]?nf(i):pa(i,0,255)),o=255&(t[6]?nf(o):pa(o,0,255)),{r,g:i,b:o,a:n}}}function AF(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${yo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const g0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Pl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function IF(e,t,n){const r=Pl(yo(e.r)),i=Pl(yo(e.g)),o=Pl(yo(e.b));return{r:Ea(g0(r+n*(Pl(yo(t.r))-r))),g:Ea(g0(i+n*(Pl(yo(t.g))-i))),b:Ea(g0(o+n*(Pl(yo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function rp(e,t,n){if(e){let r=Ix(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=$x(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function lL(e,t){return e&&Object.assign(t||{},e)}function cE(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ea(e[3]))):(t=lL(e,{r:0,g:0,b:0,a:1}),t.a=Ea(t.a)),t}function FF(e){return e.charAt(0)==="r"?NF(e):kF(e)}class Xf{constructor(t){if(t instanceof Xf)return t;const n=typeof t;let r;n==="object"?r=cE(t):n==="string"&&(r=bF(t)||RF(t)||FF(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=lL(this._rgb);return t&&(t.a=yo(t.a)),t}set rgb(t){this._rgb=cE(t)}rgbString(){return this._valid?AF(this._rgb):void 0}hexString(){return this._valid?xF(this._rgb):void 0}hslString(){return this._valid?DF(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=IF(this._rgb,t._rgb,n)),this}clone(){return new Xf(this.rgb)}alpha(t){return this._rgb.a=Ea(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Xd(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return rp(this._rgb,2,t),this}darken(t){return rp(this._rgb,2,-t),this}saturate(t){return rp(this._rgb,1,t),this}desaturate(t){return rp(this._rgb,1,-t),this}rotate(t){return MF(this._rgb,t),this}}/*!
|
||
* Chart.js v4.3.3
|
||
* https://www.chartjs.org
|
||
* (c) 2023 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/function po(){}const $F=(()=>{let e=0;return()=>e++})();function ft(e){return e===null||typeof e>"u"}function jt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function nt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Qt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Mr(e,t){return Qt(e)?e:t}function Ke(e,t){return typeof e>"u"?t:e}const BF=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,cL=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Pt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function bt(e,t,n,r){let i,o,a;if(jt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(nt(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function Im(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Fm(e){if(jt(e))return e.map(Fm);if(nt(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Fm(e[n[i]]);return t}return e}function uL(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function UF(e,t,n,r){if(!uL(e))return;const i=t[e],o=n[e];nt(i)&&nt(o)?Jf(i,o,r):t[e]=Fm(o)}function Jf(e,t,n){const r=jt(t)?t:[t],i=r.length;if(!nt(e))return e;n=n||{};const o=n.merger||UF;let a;for(let s=0;s<i;++s){if(a=r[s],!nt(a))continue;const l=Object.keys(a);for(let c=0,f=l.length;c<f;++c)o(l[c],e,a,n)}return e}function bf(e,t){return Jf(e,t,{merger:zF})}function zF(e,t,n){if(!uL(e))return;const r=t[e],i=n[e];nt(r)&&nt(i)?bf(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Fm(i))}const uE={"":e=>e,x:e=>e.x,y:e=>e.y};function HF(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function VF(e){const t=HF(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function $a(e,t){return(uE[t]||(uE[t]=VF(t)))(e)}function Bx(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ed=e=>typeof e<"u",Ba=e=>typeof e=="function",fE=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function WF(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ut=Math.PI,Nt=2*Ut,YF=Nt+Ut,$m=Number.POSITIVE_INFINITY,qF=Ut/180,Xt=Ut/2,fs=Ut/4,dE=Ut*2/3,ma=Math.log10,Xi=Math.sign;function wf(e,t,n){return Math.abs(e-t)<n}function hE(e){const t=Math.round(e);e=wf(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ma(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function GF(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function Cc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function KF(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function fL(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Ei(e){return e*(Ut/180)}function Ux(e){return e*(180/Ut)}function pE(e){if(!Qt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function dL(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*Ut&&(o+=Nt),{angle:o,distance:i}}function sb(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ZF(e,t){return(e-t+YF)%Nt-Ut}function Lr(e){return(e%Nt+Nt)%Nt}function td(e,t,n,r){const i=Lr(e),o=Lr(t),a=Lr(n),s=Lr(o-i),l=Lr(a-i),c=Lr(i-o),f=Lr(i-a);return i===o||i===a||r&&o===a||s>l&&c<f}function Pn(e,t,n){return Math.max(t,Math.min(n,e))}function QF(e){return Pn(e,-32768,32767)}function xo(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function zx(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const So=(e,t,n,r)=>zx(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),XF=(e,t,n)=>zx(e,n,r=>e[r][t]>=n);function JF(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const hL=["push","pop","shift","splice","unshift"];function e$(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),hL.forEach(n=>{const r="_onData"+Bx(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function mE(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(hL.forEach(o=>{delete e[o]}),delete e._chartjs)}function pL(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const mL=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function gL(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,mL.call(window,()=>{r=!1,e.apply(t,n)}))}}function t$(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Hx=e=>e==="start"?"left":e==="end"?"right":"center",Qn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,n$=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function vL(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();h&&(i=Pn(Math.min(So(s,l,c).lo,n?r:So(t,l,a.getPixelForValue(c)).lo),0,r-1)),p?o=Pn(Math.max(So(s,a.axis,f,!0).hi+1,n?0:So(t,l,a.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function yL(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const ip=e=>e===0||e===1,gE=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Nt/n)),vE=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Nt/n)+1,xf={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Xt)+1,easeOutSine:e=>Math.sin(e*Xt),easeInOutSine:e=>-.5*(Math.cos(Ut*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ip(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ip(e)?e:gE(e,.075,.3),easeOutElastic:e=>ip(e)?e:vE(e,.075,.3),easeInOutElastic(e){return ip(e)?e:e<.5?.5*gE(e*2,.1125,.45):.5+.5*vE(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-xf.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?xf.easeInBounce(e*2)*.5:xf.easeOutBounce(e*2-1)*.5+.5};function Vx(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function yE(e){return Vx(e)?e:new Xf(e)}function v0(e){return Vx(e)?e:new Xf(e).saturate(.5).darken(.1).hexString()}const r$=["x","y","borderWidth","radius","tension"],i$=["color","borderColor","backgroundColor"];function o$(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:i$},numbers:{type:"number",properties:r$}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function a$(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const _E=new Map;function s$(e,t){t=t||{};const n=e+JSON.stringify(t);let r=_E.get(n);return r||(r=new Intl.NumberFormat(e,t),_E.set(n,r)),r}function Jd(e,t,n){return s$(t,n).format(e)}const _L={values(e){return jt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=l$(e,n)}const a=ma(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Jd(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ma(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?_L.numeric.call(this,e,t,n):""}};function l$(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Sv={formatters:_L};function c$(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Sv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ws=Object.create(null),lb=Object.create(null);function Sf(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function y0(e,t,n){return typeof t=="string"?Jf(Sf(e,t),n):Jf(Sf(e,""),t)}class u${constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>v0(i.backgroundColor),this.hoverBorderColor=(r,i)=>v0(i.borderColor),this.hoverColor=(r,i)=>v0(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return y0(this,t,n)}get(t){return Sf(this,t)}describe(t,n){return y0(lb,t,n)}override(t,n){return y0(Ws,t,n)}route(t,n,r,i){const o=Sf(this,t),a=Sf(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return nt(l)?Object.assign({},c,l):Ke(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Jt=new u$({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[o$,a$,c$]);function f$(e){return!e||ft(e.size)||ft(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Bm(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function d$(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const s=n.length;let l,c,f,h,p;for(l=0;l<s;l++)if(h=n[l],h!=null&&!jt(h))a=Bm(e,i,o,a,h);else if(jt(h))for(c=0,f=h.length;c<f;c++)p=h[c],p!=null&&!jt(p)&&(a=Bm(e,i,o,a,p));e.restore();const g=o.length/2;if(g>n.length){for(l=0;l<g;l++)delete i[o[l]];o.splice(0,g)}return a}function ds(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function bE(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function cb(e,t,n,r){bL(e,t,n,r,null)}function bL(e,t,n,r,i){let o,a,s,l,c,f,h,p;const g=t.pointStyle,v=t.rotation,y=t.radius;let x=(v||0)*qF;if(g&&typeof g=="object"&&(o=g.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(x),e.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),g){default:i?e.ellipse(n,r,i/2,y,0,0,Nt):e.arc(n,r,y,0,Nt),e.closePath();break;case"triangle":f=i?i/2:y,e.moveTo(n+Math.sin(x)*f,r-Math.cos(x)*y),x+=dE,e.lineTo(n+Math.sin(x)*f,r-Math.cos(x)*y),x+=dE,e.lineTo(n+Math.sin(x)*f,r-Math.cos(x)*y),e.closePath();break;case"rectRounded":c=y*.516,l=y-c,a=Math.cos(x+fs)*l,h=Math.cos(x+fs)*(i?i/2-c:l),s=Math.sin(x+fs)*l,p=Math.sin(x+fs)*(i?i/2-c:l),e.arc(n-h,r-s,c,x-Ut,x-Xt),e.arc(n+p,r-a,c,x-Xt,x),e.arc(n+h,r+s,c,x,x+Xt),e.arc(n-p,r+a,c,x+Xt,x+Ut),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*y,f=i?i/2:l,e.rect(n-f,r-l,2*f,2*l);break}x+=fs;case"rectRot":h=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+p,r-a),e.lineTo(n+h,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":x+=fs;case"cross":h=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+h,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":h=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+h,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),x+=fs,h=Math.cos(x)*(i?i/2:y),a=Math.cos(x)*y,s=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-s),e.lineTo(n+h,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(x)*y,s=Math.sin(x)*y,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(x)*(i?i/2:y),r+Math.sin(x)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Oo(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ov(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Cv(e){e.restore()}function h$(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function p$(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function m$(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ft(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function g$(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,f=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,f),e.lineTo(s,f),e.stroke()}}function v$(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ys(e,t,n,r,i,o={}){const a=jt(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,m$(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&v$(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),ft(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),g$(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function nd(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-Xt,Ut,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,Ut,Xt,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,Xt,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-Xt,!0),e.lineTo(n+a.topLeft,r)}const y$=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,_$=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function b$(e,t){const n=(""+e).match(y$);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const w$=e=>+e||0;function Wx(e,t){const n={},r=nt(t),i=r?Object.keys(t):t,o=nt(e)?r?a=>Ke(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=w$(o(a));return n}function wL(e){return Wx(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ns(e){return Wx(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tr(e){const t=wL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _n(e,t){e=e||{},t=t||Jt.font;let n=Ke(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ke(e.style,t.style);r&&!(""+r).match(_$)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ke(e.family,t.family),lineHeight:b$(Ke(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ke(e.weight,t.weight),string:""};return i.string=f$(i),i}function rf(e,t,n,r){let i=!0,o,a,s;for(o=0,a=e.length;o<a;++o)if(s=e[o],s!==void 0&&(t!==void 0&&typeof s=="function"&&(s=s(t),i=!1),n!==void 0&&jt(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function x$(e,t,n){const{min:r,max:i}=e,o=cL(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Za(e,t){return Object.assign(Object.create(e),t)}function Yx(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=CL("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>Yx([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return SL(s,l,()=>M$(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return xE(s).includes(l)},ownKeys(s){return xE(s)},set(s,l,c){const f=s._storage||(s._storage=i());return s[l]=f[l]=c,delete s._keys,!0}})}function Ec(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:xL(e,r),setContext:o=>Ec(e,o,n,r),override:o=>Ec(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return SL(o,a,()=>O$(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function xL(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Ba(n)?n:()=>n,isIndexable:Ba(r)?r:()=>r}}const S$=(e,t)=>e?e+Bx(t):t,qx=(e,t)=>nt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function SL(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function O$(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return Ba(s)&&a.isScriptable(t)&&(s=C$(t,s,e,n)),jt(s)&&s.length&&(s=E$(t,s,e,a.isIndexable)),qx(t,s)&&(s=Ec(s,i,o&&o[t],a)),s}function C$(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),qx(e,l)&&(l=Gx(i._scopes,i,e,l)),l}function E$(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(nt(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=Gx(c,i,e,f);t.push(Ec(h,o,a&&a[e],s))}}return t}function OL(e,t,n){return Ba(e)?e(t,n):e}const T$=(e,t)=>e===!0?t:typeof e=="string"?$a(t,e):void 0;function P$(e,t,n,r,i){for(const o of t){const a=T$(n,o);if(a){e.add(a);const s=OL(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function Gx(e,t,n,r){const i=t._rootScopes,o=OL(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=wE(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=wE(s,a,o,l,r),l===null)?!1:Yx(Array.from(s),[""],i,o,()=>k$(t,n,r))}function wE(e,t,n,r,i){for(;n;)n=P$(e,t,n,r,i);return n}function k$(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return jt(i)&&nt(n)?n:i||{}}function M$(e,t,n,r){let i;for(const o of t)if(i=CL(S$(o,e),n),typeof i<"u")return qx(e,i)?Gx(n,r,e,i):i}function CL(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function xE(e){let t=e._keys;return t||(t=e._keys=D$(e._scopes)),t}function D$(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function EL(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,f;for(s=0,l=r;s<l;++s)c=s+n,f=t[c],a[s]={r:i.parse($a(f,o),c)};return a}const L$=Number.EPSILON||1e-14,Tc=(e,t)=>t<e.length&&!e[t].skip&&e[t],TL=e=>e==="x"?"y":"x";function R$(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=sb(o,i),l=sb(a,o);let c=s/(s+l),f=l/(s+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function j$(e,t,n){const r=e.length;let i,o,a,s,l,c=Tc(e,0);for(let f=0;f<r-1;++f)if(l=c,c=Tc(e,f+1),!(!l||!c)){if(wf(t[f],0,L$)){n[f]=n[f+1]=0;continue}i=n[f]/t[f],o=n[f+1]/t[f],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[f]=i*a*t[f],n[f+1]=o*a*t[f])}}function N$(e,t,n="x"){const r=TL(n),i=e.length;let o,a,s,l=Tc(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=Tc(e,c+1),!s)continue;const f=s[n],h=s[r];a&&(o=(f-a[n])/3,s[`cp1${n}`]=f-o,s[`cp1${r}`]=h-o*t[c]),l&&(o=(l[n]-f)/3,s[`cp2${n}`]=f+o,s[`cp2${r}`]=h+o*t[c])}}function A$(e,t="x"){const n=TL(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=Tc(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=Tc(e,a+1),!!l){if(c){const f=c[t]-l[t];i[a]=f!==0?(c[n]-l[n])/f:0}o[a]=s?c?Xi(i[a-1])!==Xi(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}j$(e,i,o),N$(e,o,t)}function op(e,t,n){return Math.max(Math.min(e,n),t)}function I$(e,t){let n,r,i,o,a,s=Oo(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&Oo(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=op(i.cp1x,t.left,t.right),i.cp1y=op(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=op(i.cp2x,t.left,t.right),i.cp2y=op(i.cp2y,t.top,t.bottom)))}function F$(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")A$(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=R$(c,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&I$(e,n)}function PL(){return typeof window<"u"&&typeof document<"u"}function Kx(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Um(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Ev=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function $$(e,t){return Ev(e).getPropertyValue(t)}const B$=["top","right","bottom","left"];function As(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=B$[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const U$=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function z$(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(U$(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function _s(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Ev(n),o=i.boxSizing==="border-box",a=As(i,"padding"),s=As(i,"border","width"),{x:l,y:c,box:f}=z$(e,n),h=a.left+(f&&s.left),p=a.top+(f&&s.top);let{width:g,height:v}=t;return o&&(g-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-h)/g*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function H$(e,t,n){let r,i;if(t===void 0||n===void 0){const o=Kx(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Ev(o),l=As(s,"border","width"),c=As(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=Um(s.maxWidth,o,"clientWidth"),i=Um(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||$m,maxHeight:i||$m}}const ap=e=>Math.round(e*10)/10;function V$(e,t,n,r){const i=Ev(e),o=As(i,"margin"),a=Um(i.maxWidth,e,"clientWidth")||$m,s=Um(i.maxHeight,e,"clientHeight")||$m,l=H$(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=As(i,"border","width"),g=As(i,"padding");c-=g.width+p.width,f-=g.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=ap(Math.min(c,a,l.maxWidth)),f=ap(Math.min(f,s,l.maxHeight)),c&&!f&&(f=ap(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=ap(Math.floor(f*r))),{width:c,height:f}}function SE(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const W$=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function OE(e,t){const n=$$(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bs(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Y$(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function q$(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=bs(e,i,n),s=bs(i,o,n),l=bs(o,t,n),c=bs(a,s,n),f=bs(s,l,n);return bs(c,f,n)}const G$=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},K$=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function fc(e,t,n){return e?G$(t,n):K$()}function kL(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function ML(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function DL(e){return e==="angle"?{between:td,compare:ZF,normalize:Lr}:{between:xo,compare:(t,n)=>t-n,normalize:t=>t}}function CE({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Z$(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=DL(r),l=t.length;let{start:c,end:f,loop:h}=e,p,g;if(h){for(c+=l,f+=l,p=0,g=l;p<g&&a(s(t[c%l][r]),i,o);++p)c--,f--;c%=l,f%=l}return f<c&&(f+=l),{start:c,end:f,loop:h,style:e.style}}function LL(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=DL(r),{start:f,end:h,loop:p,style:g}=Z$(e,t,n),v=[];let y=!1,x=null,b,w,S;const C=()=>l(i,S,b)&&s(i,S)!==0,T=()=>s(o,b)===0||l(o,S,b),P=()=>y||C(),R=()=>!y||T();for(let j=f,z=f;j<=h;++j)w=t[j%a],!w.skip&&(b=c(w[r]),b!==S&&(y=l(b,i,o),x===null&&P()&&(x=s(b,i)===0?j:z),x!==null&&R()&&(v.push(CE({start:x,end:j,loop:p,count:a,style:g})),x=null),z=j,S=b));return x!==null&&v.push(CE({start:x,end:h,loop:p,count:a,style:g})),v}function RL(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=LL(r[i],e.points,t);o.length&&n.push(...o)}return n}function Q$(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function X$(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function J$(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=Q$(n,i,o,r);if(r===!0)return EE(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,c=!!e._fullLoop&&a===0&&s===i-1;return EE(e,X$(n,a,l,c),n,t)}function EE(e,t,n,r){return!r||!r.setContext||!n?t:e7(e,t,n,r)}function e7(e,t,n,r){const i=e._chart.getContext(),o=TE(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let f=o,h=t[0].start,p=h;function g(v,y,x,b){const w=s?-1:1;if(v!==y){for(v+=l;n[v%l].skip;)v-=w;for(;n[y%l].skip;)y+=w;v%l!==y%l&&(c.push({start:v%l,end:y%l,loop:x,style:b}),f=b,h=y%l)}}for(const v of t){h=s?h:v.start;let y=n[h%l],x;for(p=h+1;p<=v.end;p++){const b=n[p%l];x=TE(r.setContext(Za(i,{type:"segment",p0:y,p1:b,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),t7(x,f)&&g(h,p-1,v.loop,f),y=b,f=x}h<p-1&&g(h,p-1,v.loop,f)}return c}function TE(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function t7(e,t){if(!t)return!1;const n=[],r=function(i,o){return Vx(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
||
* Chart.js v4.3.3
|
||
* https://www.chartjs.org
|
||
* (c) 2023 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/class n7{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=mL.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var mo=new n7;const PE="transparent",r7={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=yE(e||PE),i=r.valid&&yE(t||PE);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class i7{constructor(t,n,r,i){const o=n[r];i=rf([t.to,i,o,t.from]);const a=rf([t.from,o,i]);this._active=!0,this._fn=t.fn||r7[t.type||typeof a],this._easing=xf[t.easing]||xf.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=rf([t.to,n,i,t.from]),this._from=rf([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class jL{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!nt(t))return;const n=Object.keys(Jt.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!nt(o))return;const a={};for(const s of n)a[s]=o[s];(jt(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=a7(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&o7(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const f=n[c];let h=o[c];const p=r.get(c);if(h)if(p&&h.active()){h.update(p,f,s);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}o[c]=h=new i7(p,t,c,f),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return mo.add(this._chart,r),!0}}function o7(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function a7(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function kE(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function s7(e,t,n){if(n===!1)return!1;const r=kE(e,n),i=kE(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function l7(e){let t,n,r,i;return nt(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function NL(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function ME(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,c;if(t!==null){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(r.all)continue;break}c=e.values[l],Qt(c)&&(o||t===0||Xi(t)===Xi(c))&&(t+=c)}return t}}function c7(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function DE(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function u7(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function f7(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function d7(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function LE(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function RE(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,f=u7(o,a,r),h=t.length;let p;for(let g=0;g<h;++g){const v=t[g],{[l]:y,[c]:x}=v,b=v._stacks||(v._stacks={});p=b[c]=d7(i,f,y),p[s]=x,p._top=LE(p,a,!0,r.type),p._bottom=LE(p,a,!1,r.type);const w=p._visualValues||(p._visualValues={});w[s]=x}}function _0(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function h7(e,t){return Za(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function p7(e,t,n){return Za(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ju(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const b0=e=>e==="reset"||e==="none",jE=(e,t)=>t?e:Object.assign({},e),m7=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:NL(n,!0),values:null};class ki{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=DE(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ju(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,g,v)=>h==="x"?p:h==="r"?v:g,o=n.xAxisID=Ke(r.xAxisID,_0(t,"x")),a=n.yAxisID=Ke(r.yAxisID,_0(t,"y")),s=n.rAxisID=Ke(r.rAxisID,_0(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),f=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&mE(this._data,this),t._stacked&&ju(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(nt(n))this._data=c7(n);else if(r!==n){if(r){mE(r,this);const i=this._cachedMeta;ju(i),i._parsed=[]}n&&Object.isExtensible(n)&&e$(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=DE(n.vScale,n),n.stack!==r.stack&&(i=!0,ju(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&RE(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],f,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{jt(i[t])?p=this.parseArrayData(r,i,t,n):nt(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const g=()=>h[s]===null||c&&h[s]<c[s];for(f=0;f<n;++f)r._parsed[f+t]=h=p[f],l&&(g()&&(l=!1),c=h);r._sorted=l}a&&RE(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,c=o.getLabels(),f=o===a,h=new Array(i);let p,g,v;for(p=0,g=i;p<g;++p)v=p+r,h[p]={[s]:f||o.parse(c[v],v),[l]:a.parse(n[v],v)};return h}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,c,f,h;for(l=0,c=i;l<c;++l)f=l+r,h=n[f],s[l]={x:o.parse(h[0],f),y:a.parse(h[1],f)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let f,h,p,g;for(f=0,h=i;f<h;++f)p=f+r,g=n[p],c[f]={x:o.parse($a(g,s),p),y:a.parse($a(g,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:NL(i,!0),values:n._stacks[t.axis]._visualValues};return ME(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=ME(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=m7(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=f7(s);let p,g;function v(){g=i[p];const y=g[s.axis];return!Qt(g[t.axis])||f>y||h<y}for(p=0;p<a&&!(!v()&&(this.updateRangeFromParsed(c,t,g,l),o));++p);if(o){for(p=a-1;p>=0;--p)if(!v()){this.updateRangeFromParsed(c,t,g,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],Qt(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=l7(Ke(this.options.clip,s7(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(t,o,s,l),f=s;f<s+l;++f){const h=i[f];h.hidden||(h.active&&c?a.push(h):h.draw(t,o))}for(f=0;f<a.length;++f)a[f].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=p7(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=h7(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&ed(r);if(s)return jE(s,l);const c=this.chart.config,f=c.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),f),g=Object.keys(Jt.elements[t]),v=()=>this.getContext(r,i,n),y=c.resolveNamedOptions(p,g,v,h);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(jE(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,n),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(t,r,n))}const c=new jL(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||b0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){b0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!b0(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&ju(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}me(ki,"defaults",{}),me(ki,"datasetElementType",null),me(ki,"dataElementType",null);function g7(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=pL(r.sort((i,o)=>i-o))}return e._cache.$bar}function v7(e){const t=e.iScale,n=g7(t,e.type);let r=t._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(ed(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=t.ticks.length;i<o;++i)a=t.getPixelForTick(i),l();return r}function y7(e,t,n,r){const i=n.barThickness;let o,a;return ft(i)?(o=t.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:t.pixels[e]-o/2}}function _7(e,t,n,r){const i=t.pixels,o=i[e];let a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;a===null&&(a=o-(s===null?t.end-t.start:s-o)),s===null&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}function b7(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}function AL(e,t,n,r){return jt(e)?b7(e,t,n,r):t[n.axis]=n.parse(e,r),t}function NE(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c<f;++c)p=t[c],h={},h[i.axis]=s||i.parse(a[c],c),l.push(AL(p,h,o,c));return l}function w0(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function w7(e,t,n){return e!==0?Xi(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function x7(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function S7(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:l,top:c,bottom:f}=x7(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[AE(f,a,s,l)]=!0,i=c)),o[AE(i,a,s,l)]=!0,e.borderSkipped=o}function AE(e,t,n,r){return r?(e=O7(e,t,n),e=IE(e,n,t)):e=IE(e,t,n),e}function O7(e,t,n){return e===t?n:e===n?t:e}function IE(e,t,n){return e==="start"?t:e==="end"?n:e}function C7(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Of extends ki{parsePrimitiveData(t,n,r,i){return NE(t,n,r,i)}parseArrayData(t,n,r,i){return NE(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?s:l,f=a.axis==="x"?s:l,h=[];let p,g,v,y;for(p=r,g=r+i;p<g;++p)y=n[p],v={},v[o.axis]=o.parse($a(y,c),p),h.push(AL($a(y,f),v,a,p));return h}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),a=o._custom,s=w0(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(n,i);for(let g=n;g<n+r;g++){const v=this.getParsed(g),y=o||ft(v[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(g),x=this._calculateBarIndexPixels(g,f),b=(v._stacks||{})[s.axis],w={horizontal:c,base:y.base,enableBorderRadius:!b||w0(v._custom)||a===b._top||a===b._bottom,x:c?y.head:x.center,y:c?x.center:y.head,height:c?x.size:Math.abs(y.size),width:c?Math.abs(y.size):x.size};p&&(w.options=h||this.resolveDataElementOptions(g,t[g].active?"active":i));const S=w.options||t[g].options;S7(w,S,b,a),C7(w,S,f.ratio),this.updateElement(t[g],g,w,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,a=[],s=l=>{const c=l.controller.getParsed(n),f=c&&c[l.vScale.axis];if(ft(f)||isNaN(f))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((o===!1||a.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&a.push(l.stack),l.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,a;for(o=0,a=n.data.length;o<a;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const s=t.barThickness;return{min:s||v7(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(t),c=l._custom,f=w0(c);let h=l[n.axis],p=0,g=r?this.applyStack(n,l,r):h,v,y;g!==h&&(p=g-h,g=h),f&&(h=c.barStart,g=c.barEnd-c.barStart,h!==0&&Xi(h)!==Xi(c.barEnd)&&(p=0),p+=h);const x=!ft(o)&&!f?o:p;let b=n.getPixelForValue(x);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(p+g):v=b,y=v-b,Math.abs(y)<a){y=w7(y,n,s)*a,h===s&&(b-=y/2);const w=n.getPixelForDecimal(0),S=n.getPixelForDecimal(1),C=Math.min(w,S),T=Math.max(w,S);b=Math.max(Math.min(b,T),C),v=b+y,r&&!f&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(v)-n.getValueForPixel(b))}if(b===n.getPixelForValue(s)){const w=Xi(y)*n.getLineWidthForValue(s)/2;b+=w,y-=w}return{size:y,base:b,head:v,center:v+y/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,a=Ke(i.maxBarThickness,1/0);let s,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,f=i.barThickness==="flex"?_7(t,n,i,c):y7(t,n,i,c),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=f.start+f.chunk*h+f.chunk/2,l=Math.min(a,f.chunk*f.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}me(Of,"id","bar"),me(Of,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),me(Of,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class lm extends ki{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const o=super.parsePrimitiveData(t,n,r,i);for(let a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+r).radius;return o}parseArrayData(t,n,r,i){const o=super.parseArrayData(t,n,r,i);for(let a=0;a<o.length;a++){const s=n[r+a];o[a]._custom=Ke(s[2],this.resolveDataElementOptions(a+r).radius)}return o}parseObjectData(t,n,r,i){const o=super.parseObjectData(t,n,r,i);for(let a=0;a<o.length;a++){const s=n[r+a];o[a]._custom=Ke(s&&s.r&&+s.r,this.resolveDataElementOptions(a+r).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,a=this.getParsed(t),s=i.getLabelForValue(a.x),l=o.getLabelForValue(a.y),c=a._custom;return{label:r[t]||"",value:"("+s+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=a.axis,h=s.axis;for(let p=n;p<n+r;p++){const g=t[p],v=!o&&this.getParsed(p),y={},x=y[f]=o?a.getPixelForDecimal(.5):a.getPixelForValue(v[f]),b=y[h]=o?s.getBasePixel():s.getPixelForValue(v[h]);y.skip=isNaN(x)||isNaN(b),c&&(y.options=l||this.resolveDataElementOptions(p,g.active?"active":i),o&&(y.options.radius=0)),this.updateElement(g,p,y,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return n!=="active"&&(i.radius=0),i.radius+=Ke(r&&r._custom,o),i}}me(lm,"id","bubble"),me(lm,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),me(lm,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function E7(e,t,n){let r=1,i=1,o=0,a=0;if(t<Nt){const s=e,l=s+t,c=Math.cos(s),f=Math.sin(s),h=Math.cos(l),p=Math.sin(l),g=(S,C,T)=>td(S,s,l,!0)?1:Math.max(C,C*n,T,T*n),v=(S,C,T)=>td(S,s,l,!0)?-1:Math.min(C,C*n,T,T*n),y=g(0,c,h),x=g(Xt,f,p),b=v(Ut,c,h),w=v(Ut+Xt,f,p);r=(y-b)/2,i=(x-w)/2,o=-(y+b)/2,a=-(x+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class ga extends ki{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(nt(r[t])){const{key:l="value"}=this._parsing;o=c=>+$a(r[c],l)}let a,s;for(a=t,s=t+n;a<s;++a)i._parsed[a]=o(a)}}_getRotation(){return Ei(this.options.rotation-90)}_getCircumference(){return Ei(this.options.circumference)}_getRotationExtents(){let t=Nt,n=-Nt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(BF(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:g,offsetX:v,offsetY:y}=E7(h,f,l),x=(r.width-a)/p,b=(r.height-a)/g,w=Math.max(Math.min(x,b)/2,0),S=cL(this.options.radius,w),C=Math.max(S*l,0),T=(S-C)/this._getVisibleDatasetWeightTotal();this.offsetX=v*S,this.offsetY=y*S,i.total=this.calculateTotal(),this.outerRadius=S-T*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-T*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Nt)}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.chartArea,c=a.options.animation,f=(s.left+s.right)/2,h=(s.top+s.bottom)/2,p=o&&c.animateScale,g=p?0:this.innerRadius,v=p?0:this.outerRadius,{sharedOptions:y,includeOptions:x}=this._getSharedOptions(n,i);let b=this._getRotation(),w;for(w=0;w<n;++w)b+=this._circumference(w,o);for(w=n;w<n+r;++w){const S=this._circumference(w,o),C=t[w],T={x:f+this.offsetX,y:h+this.offsetY,startAngle:b,endAngle:b+S,circumference:S,outerRadius:v,innerRadius:g};x&&(T.options=y||this.resolveDataElementOptions(w,C.active?"active":i)),b+=S,this.updateElement(C,w,T,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Nt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Jd(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,a,s,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,s=a.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Ke(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}me(ga,"id","doughnut"),me(ga,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),me(ga,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),me(ga,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Cf extends ki{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=vL(n,i,a);this._drawStart=s,this._drawCount=l,yL(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=a.axis,g=s.axis,{spanGaps:v,segment:y}=this.options,x=Cc(v)?v:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||i==="none",w=n+r,S=t.length;let C=n>0&&this.getParsed(n-1);for(let T=0;T<S;++T){const P=t[T],R=b?P:{};if(T<n||T>=w){R.skip=!0;continue}const j=this.getParsed(T),z=ft(j[g]),N=R[p]=a.getPixelForValue(j[p],T),V=R[g]=o||z?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,j,l):j[g],T);R.skip=isNaN(N)||isNaN(V)||z,R.stop=T>0&&Math.abs(j[p]-C[p])>x,y&&(R.parsed=j,R.raw=c.data[T]),h&&(R.options=f||this.resolveDataElementOptions(T,P.active?"active":i)),b||this.updateElement(P,T,R,i),C=j}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}me(Cf,"id","line"),me(Cf,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),me(Cf,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ef extends ki{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Jd(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return EL.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(o<n.min&&(n.min=o),o>n.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),a=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),s=(o-a)/t.getVisibleDatasetCount();this.outerRadius=o-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,l=a.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*Ut;let g=p,v;const y=360/this.countVisibleElements();for(v=0;v<n;++v)g+=this._computeAngle(v,i,y);for(v=n;v<n+r;v++){const x=t[v];let b=g,w=g+this._computeAngle(v,i,y),S=a.getDataVisibility(v)?c.getDistanceFromCenterForValue(this.getParsed(v).r):0;g=w,o&&(l.animateScale&&(S=0),l.animateRotate&&(b=w=p));const C={x:f,y:h,innerRadius:0,outerRadius:S,startAngle:b,endAngle:w,options:this.resolveDataElementOptions(v,x.active?"active":i)};this.updateElement(x,v,C,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Ei(this.resolveDataElementOptions(t,n).angle||r):0}}me(Ef,"id","polarArea"),me(Ef,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),me(Ef,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ub extends ga{}me(ub,"id","pie"),me(ub,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class cm extends ki{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return EL.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const s={_loop:!0,_fullLoop:o.length===i.length,options:a};this.updateElement(r,void 0,s,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,a=i==="reset";for(let s=n;s<n+r;s++){const l=t[s],c=this.resolveDataElementOptions(s,l.active?"active":i),f=o.getPointPositionForValue(s,this.getParsed(s).r),h=a?o.xCenter:f.x,p=a?o.yCenter:f.y,g={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:c};this.updateElement(l,s,g,i)}}}me(cm,"id","radar"),me(cm,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),me(cm,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class um extends ki{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,a=this.getParsed(t),s=i.getLabelForValue(a.x),l=o.getLabelForValue(a.y);return{label:r[t]||"",value:"("+s+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:a}=vL(n,r,i);if(this._drawStart=o,this._drawCount=a,yL(n)&&(o=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:s,_dataset:l}=n;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!l._decimated,s.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!i,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,f=this.resolveDataElementOptions(n,i),h=this.getSharedOptions(f),p=this.includeOptions(i,h),g=a.axis,v=s.axis,{spanGaps:y,segment:x}=this.options,b=Cc(y)?y:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||o||i==="none";let S=n>0&&this.getParsed(n-1);for(let C=n;C<n+r;++C){const T=t[C],P=this.getParsed(C),R=w?T:{},j=ft(P[v]),z=R[g]=a.getPixelForValue(P[g],C),N=R[v]=o||j?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,P,l):P[v],C);R.skip=isNaN(z)||isNaN(N)||j,R.stop=C>0&&Math.abs(P[g]-S[g])>b,x&&(R.parsed=P,R.raw=c.data[C]),p&&(R.options=h||this.resolveDataElementOptions(C,T.active?"active":i)),w||this.updateElement(T,C,R,i),S=P}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let s=0;for(let l=n.length-1;l>=0;--l)s=Math.max(s,n[l].size(this.resolveDataElementOptions(l))/2);return s>0&&s}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,a)/2}}me(um,"id","scatter"),me(um,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),me(um,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var T7=Object.freeze({__proto__:null,BarController:Of,BubbleController:lm,DoughnutController:ga,LineController:Cf,PieController:ub,PolarAreaController:Ef,RadarController:cm,ScatterController:um});function hs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Zx{constructor(t){me(this,"options");this.options=t||{}}static override(t){Object.assign(Zx.prototype,t)}init(){}formats(){return hs()}parse(){return hs()}format(){return hs()}add(){return hs()}diff(){return hs()}startOf(){return hs()}endOf(){return hs()}}var P7={_date:Zx};function k7(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?XF:So;if(r){if(i._sharedOptions){const c=o[0],f=typeof c.getRange=="function"&&c.getRange(t);if(f){const h=l(o,t,n-f),p=l(o,t,n+f);return{lo:h.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function eh(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:c,data:f}=o[s],{lo:h,hi:p}=k7(o[s],t,a,i);for(let g=h;g<=p;++g){const v=f[g];v.skip||r(v,c,g)}}}function M7(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function x0(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||eh(e,n,t,function(s,l,c){!i&&!Oo(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:c})},!0),o}function D7(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:c,endAngle:f}=a.getProps(["startAngle","endAngle"],r),{angle:h}=dL(a,{x:t.x,y:t.y});td(h,c,f)&&i.push({element:a,datasetIndex:s,index:l})}return eh(e,n,t,o),i}function L7(e,t,n,r,i,o){let a=[];const s=M7(n);let l=Number.POSITIVE_INFINITY;function c(f,h,p){const g=f.inRange(t.x,t.y,i);if(r&&!g)return;const v=f.getCenterPoint(i);if(!(!!o||e.isPointInArea(v))&&!g)return;const x=s(t,v);x<l?(a=[{element:f,datasetIndex:h,index:p}],l=x):x===l&&a.push({element:f,datasetIndex:h,index:p})}return eh(e,n,t,c),a}function S0(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?D7(e,t,n,i):L7(e,t,n,r,i,o)}function FE(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return eh(e,n,t,(l,c,f)=>{l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var R7={evaluateInteractionItems:eh,modes:{index(e,t,n,r){const i=_s(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?x0(e,i,o,r,a):S0(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=s[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,n,r){const i=_s(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?x0(e,i,o,r,a):S0(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let f=0;f<c.length;++f)s.push({element:c[f],datasetIndex:l,index:f})}return s},point(e,t,n,r){const i=_s(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return x0(e,i,o,r,a)},nearest(e,t,n,r){const i=_s(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return S0(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=_s(t,e);return FE(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=_s(t,e);return FE(e,i,"y",n.intersect,r)}}};const IL=["left","top","right","bottom"];function Nu(e,t){return e.filter(n=>n.pos===t)}function $E(e,t){return e.filter(n=>IL.indexOf(n.pos)===-1&&n.box.axis===t)}function Au(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function j7(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function N7(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!IL.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function A7(e,t){const n=N7(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,c=n[s.stack],f=c&&s.stackWeight/c.weight;s.horizontal?(s.width=f?f*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=f?f*i:l&&t.availableHeight)}return n}function I7(e){const t=j7(e),n=Au(t.filter(c=>c.box.fullSize),!0),r=Au(Nu(t,"left"),!0),i=Au(Nu(t,"right")),o=Au(Nu(t,"top"),!0),a=Au(Nu(t,"bottom")),s=$E(t,"x"),l=$E(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Nu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function BE(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function FL(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function F7(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!nt(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&FL(a,o.getPadding());const s=Math.max(0,t.outerWidth-BE(a,e,"left","right")),l=Math.max(0,t.outerHeight-BE(a,e,"top","bottom")),c=s!==e.w,f=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function $7(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function B7(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function of(e,t,n,r){const i=[];let o,a,s,l,c,f;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,B7(s.horizontal,t));const{same:h,other:p}=F7(t,n,s,r);c|=h&&i.length,f=f||p,l.fullSize||i.push(s)}return c&&of(i,t,n,r)||f}function sp(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function UE(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},f=s.stackWeight/c.weight||1;if(s.horizontal){const h=t.w*f,p=c.size||l.height;ed(c.start)&&(a=c.start),l.fullSize?sp(l,i.left,a,n.outerWidth-i.right-i.left,p):sp(l,t.left+c.placed,a,h,p),c.start=a,c.placed+=h,a=l.bottom}else{const h=t.h*f,p=c.size||l.width;ed(c.start)&&(o=c.start),l.fullSize?sp(l,o,i.top,p,n.outerHeight-i.bottom-i.top):sp(l,o,t.top+c.placed,p,h),c.start=o,c.placed+=h,o=l.right}}t.x=o,t.y=a}var er={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=tr(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=I7(e.boxes),l=s.vertical,c=s.horizontal;bt(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const f=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/f,hBoxMaxHeight:a/2}),p=Object.assign({},i);FL(p,tr(r));const g=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),v=A7(l.concat(c),h);of(s.fullSize,g,h,v),of(l,g,h,v),of(c,g,h,v)&&of(l,g,h,v),$7(g),UE(s.leftAndTop,g,h,v),g.x+=g.w,g.y+=g.h,UE(s.rightAndBottom,g,h,v),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},bt(s.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class $L{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class U7 extends $L{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const fm="$chartjs",z7={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},zE=e=>e===null||e==="";function H7(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[fm]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",zE(i)){const o=OE(e,"width");o!==void 0&&(e.width=o)}if(zE(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=OE(e,"height");o!==void 0&&(e.height=o)}return e}const BL=W$?{passive:!0}:!1;function V7(e,t,n){e.addEventListener(t,n,BL)}function W7(e,t,n){e.canvas.removeEventListener(t,n,BL)}function Y7(e,t){const n=z7[e.type]||e.type,{x:r,y:i}=_s(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function zm(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function q7(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||zm(s.addedNodes,r),a=a&&!zm(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function G7(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||zm(s.removedNodes,r),a=a&&!zm(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const rd=new Map;let HE=0;function UL(){const e=window.devicePixelRatio;e!==HE&&(HE=e,rd.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function K7(e,t){rd.size||window.addEventListener("resize",UL),rd.set(e,t)}function Z7(e){rd.delete(e),rd.size||window.removeEventListener("resize",UL)}function Q7(e,t,n){const r=e.canvas,i=r&&Kx(r);if(!i)return;const o=gL((s,l)=>{const c=i.clientWidth;n(s,l),c<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return a.observe(i),K7(e,o),a}function O0(e,t,n){n&&n.disconnect(),t==="resize"&&Z7(e)}function X7(e,t,n){const r=e.canvas,i=gL(o=>{e.ctx!==null&&n(Y7(o,e))},e);return V7(r,t,i),i}class J7 extends $L{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(H7(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[fm])return!1;const r=n[fm].initial;["height","width"].forEach(o=>{const a=r[o];ft(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[fm],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:q7,detach:G7,resize:Q7}[n]||X7;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:O0,detach:O0,resize:O0}[n]||W7)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return V$(t,n,r,i)}isAttached(t){const n=Kx(t);return!!(n&&n.isConnected)}}function eB(e){return!PL()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?U7:J7}var om;let Bo=(om=class{constructor(){me(this,"x");me(this,"y");me(this,"active",!1);me(this,"options");me(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Cc(this.x)&&Cc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},me(om,"defaults",{}),me(om,"defaultRoutes"),om);function tB(e,t){const n=e.options.ticks,r=nB(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?iB(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return oB(t,c,o,a/i),c;const f=rB(o,t,i);if(a>0){let h,p;const g=a>1?Math.round((l-s)/(a-1)):null;for(lp(t,c,f,ft(g)?0:s-g,s),h=0,p=a-1;h<p;h++)lp(t,c,f,o[h],o[h+1]);return lp(t,c,f,l,ft(g)?t.length:l+g),c}return lp(t,c,f),c}function nB(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function rB(e,t,n){const r=aB(e),i=t.length/n;if(!r)return Math.max(i,1);const o=GF(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function iB(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function oB(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function lp(e,t,n,r,i){const o=Ke(r,0),a=Math.min(Ke(i,e.length),e.length);let s=0,l,c,f;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),f=o;f<0;)s++,f=Math.round(o+s*n);for(c=Math.max(o,0);c<a;c++)c===f&&(t.push(e[c]),s++,f=Math.round(o+s*n))}function aB(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const sB=e=>e==="left"?"right":e==="right"?"left":e,VE=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,WE=(e,t)=>Math.min(t||e,e);function YE(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function lB(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,a-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-s||l>a+s)))return l}function cB(e,t){bt(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Iu(e){return e.drawTicks?e.tickLength:0}function qE(e,t){if(!e.display)return 0;const n=_n(e.font,t),r=tr(e.padding);return(jt(e.text)?e.text.length:1)*n.lineHeight+r.height}function uB(e,t){return Za(e,{scale:t,type:"scale"})}function fB(e,t,n){return Za(e,{tick:n,index:t,type:"tick"})}function dB(e,t,n){let r=Hx(e);return(n&&t!=="right"||!n&&t==="right")&&(r=sB(r)),r}function hB(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:f}=l;let h=0,p,g,v;const y=a-i,x=s-o;if(e.isHorizontal()){if(g=Qn(r,o,s),nt(n)){const b=Object.keys(n)[0],w=n[b];v=f[b].getPixelForValue(w)+y-t}else n==="center"?v=(c.bottom+c.top)/2+y-t:v=VE(e,n,t);p=s-o}else{if(nt(n)){const b=Object.keys(n)[0],w=n[b];g=f[b].getPixelForValue(w)-x+t}else n==="center"?g=(c.left+c.right)/2-x+t:g=VE(e,n,t);v=Qn(r,a,i),h=n==="left"?-Xt:Xt}return{titleX:g,titleY:v,maxWidth:p,rotation:h}}class ol extends Bo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Mr(t,Number.POSITIVE_INFINITY),n=Mr(n,Number.NEGATIVE_INFINITY),r=Mr(r,Number.POSITIVE_INFINITY),i=Mr(i,Number.NEGATIVE_INFINITY),{min:Mr(t,r),max:Mr(n,i),minDefined:Qt(t),maxDefined:Qt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Mr(n,Mr(r,n)),max:Mr(r,Mr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=x$(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?YE(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=tB(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Pt(this.options.afterUpdate,[this])}beforeSetDimensions(){Pt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Pt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Pt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Pt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Pt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Pt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Pt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=WE(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,g=Pn(this.chart.width-h,0,this.maxWidth);s=t.offset?this.maxWidth/r:g/(r-1),h+6>s&&(s=g/(r-(t.offset?.5:1)),l=this.maxHeight-Iu(t.grid)-n.padding-qE(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),a=Ux(Math.min(Math.asin(Pn((f.highest.height+6)/s,-1,1)),Math.asin(Pn(l/c,-1,1))-Math.asin(Pn(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Pt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=qE(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Iu(o)+l):(t.height=this.maxHeight,t.width=Iu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),g=r.padding*2,v=Ei(this.labelRotation),y=Math.cos(v),x=Math.sin(v);if(s){const b=r.mirror?0:x*h.width+y*p.height;t.height=Math.min(this.maxHeight,t.height+b+g)}else{const b=r.mirror?0:y*h.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+b+g)}this._calculatePadding(c,f,x,y)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,g=0;l?c?(p=i*t.width,g=r*n.height):(p=r*t.height,g=i*n.width):o==="start"?g=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,g=n.width/2),this.paddingLeft=Math.max((p-f+a)*this.width/(this.width-f),0),this.paddingRight=Math.max((g-h+a)*this.width/(this.width-h),0)}else{let f=n.height/2,h=t.height/2;o==="start"?(f=0,h=t.height):o==="end"&&(f=n.height,h=0),this.paddingTop=f+a,this.paddingBottom=h+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Pt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ft(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=YE(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/WE(n,r));let c=0,f=0,h,p,g,v,y,x,b,w,S,C,T;for(h=0;h<n;h+=l){if(v=t[h].label,y=this._resolveTickFontOptions(h),i.font=x=y.string,b=o[x]=o[x]||{data:{},gc:[]},w=y.lineHeight,S=C=0,!ft(v)&&!jt(v))S=Bm(i,b.data,b.gc,S,v),C=w;else if(jt(v))for(p=0,g=v.length;p<g;++p)T=v[p],!ft(T)&&!jt(T)&&(S=Bm(i,b.data,b.gc,S,T),C+=w);a.push(S),s.push(C),c=Math.max(S,c),f=Math.max(C,f)}cB(o,n);const P=a.indexOf(c),R=s.indexOf(f),j=z=>({width:a[z]||0,height:s[z]||0});return{first:j(0),last:j(n-1),widest:j(P),highest:j(R),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return QF(this._alignToPixels?ds(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=fB(this.getContext(),t,r))}return this.$context||(this.$context=uB(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Ei(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=Iu(o),g=[],v=s.setContext(this.getContext()),y=v.display?v.width:0,x=y/2,b=function(oe){return ds(r,oe,y)};let w,S,C,T,P,R,j,z,N,V,W,ne;if(a==="top")w=b(this.bottom),R=this.bottom-p,z=w-x,V=b(t.top)+x,ne=t.bottom;else if(a==="bottom")w=b(this.top),V=t.top,ne=b(t.bottom)-x,R=w+x,z=this.top+p;else if(a==="left")w=b(this.right),P=this.right-p,j=w-x,N=b(t.left)+x,W=t.right;else if(a==="right")w=b(this.left),N=t.left,W=b(t.right)-x,P=w+x,j=this.left+p;else if(n==="x"){if(a==="center")w=b((t.top+t.bottom)/2+.5);else if(nt(a)){const oe=Object.keys(a)[0],le=a[oe];w=b(this.chart.scales[oe].getPixelForValue(le))}V=t.top,ne=t.bottom,R=w+x,z=R+p}else if(n==="y"){if(a==="center")w=b((t.left+t.right)/2);else if(nt(a)){const oe=Object.keys(a)[0],le=a[oe];w=b(this.chart.scales[oe].getPixelForValue(le))}P=w-x,j=P-p,N=t.left,W=t.right}const q=Ke(i.ticks.maxTicksLimit,h),J=Math.max(1,Math.ceil(h/q));for(S=0;S<h;S+=J){const oe=this.getContext(S),le=o.setContext(oe),G=s.setContext(oe),F=le.lineWidth,A=le.color,B=G.dash||[],re=G.dashOffset,U=le.tickWidth,Z=le.tickColor,ie=le.tickBorderDash||[],ae=le.tickBorderDashOffset;C=lB(this,S,l),C!==void 0&&(T=ds(r,C,F),c?P=j=N=W=T:R=z=V=ne=T,g.push({tx1:P,ty1:R,tx2:j,ty2:z,x1:N,y1:V,x2:W,y2:ne,width:F,color:A,borderDash:B,borderDashOffset:re,tickWidth:U,tickColor:Z,tickBorderDash:ie,tickBorderDashOffset:ae}))}return this._ticksLength=h,this._borderValue=w,g}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:f,mirror:h}=o,p=Iu(r.grid),g=p+f,v=h?-f:g,y=-Ei(this.labelRotation),x=[];let b,w,S,C,T,P,R,j,z,N,V,W,ne="middle";if(i==="top")P=this.bottom-v,R=this._getXAxisLabelAlignment();else if(i==="bottom")P=this.top+v,R=this._getXAxisLabelAlignment();else if(i==="left"){const J=this._getYAxisLabelAlignment(p);R=J.textAlign,T=J.x}else if(i==="right"){const J=this._getYAxisLabelAlignment(p);R=J.textAlign,T=J.x}else if(n==="x"){if(i==="center")P=(t.top+t.bottom)/2+g;else if(nt(i)){const J=Object.keys(i)[0],oe=i[J];P=this.chart.scales[J].getPixelForValue(oe)+g}R=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")T=(t.left+t.right)/2-g;else if(nt(i)){const J=Object.keys(i)[0],oe=i[J];T=this.chart.scales[J].getPixelForValue(oe)}R=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?ne="top":l==="end"&&(ne="bottom"));const q=this._getLabelSizes();for(b=0,w=s.length;b<w;++b){S=s[b],C=S.label;const J=o.setContext(this.getContext(b));j=this.getPixelForTick(b)+o.labelOffset,z=this._resolveTickFontOptions(b),N=z.lineHeight,V=jt(C)?C.length:1;const oe=V/2,le=J.color,G=J.textStrokeColor,F=J.textStrokeWidth;let A=R;a?(T=j,R==="inner"&&(b===w-1?A=this.options.reverse?"left":"right":b===0?A=this.options.reverse?"right":"left":A="center"),i==="top"?c==="near"||y!==0?W=-V*N+N/2:c==="center"?W=-q.highest.height/2-oe*N+N:W=-q.highest.height+N/2:c==="near"||y!==0?W=N/2:c==="center"?W=q.highest.height/2-oe*N:W=q.highest.height-V*N,h&&(W*=-1),y!==0&&!J.showLabelBackdrop&&(T+=N/2*Math.sin(y))):(P=j,W=(1-V)*N/2);let B;if(J.showLabelBackdrop){const re=tr(J.backdropPadding),U=q.heights[b],Z=q.widths[b];let ie=W-re.top,ae=0-re.left;switch(ne){case"middle":ie-=U/2;break;case"bottom":ie-=U;break}switch(R){case"center":ae-=Z/2;break;case"right":ae-=Z;break}B={left:ae,top:ie,width:Z+re.width,height:U+re.height,color:J.backdropColor}}x.push({label:C,font:z,textOffset:W,options:{rotation:y,color:le,strokeColor:G,strokeWidth:F,textAlign:A,textBaseline:ne,translation:[T,P],backdrop:B}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Ei(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,f;return n==="left"?i?(f=this.right+o,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f+=l)):(f=this.right-s,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f=this.left)):n==="right"?i?(f=this.left+o,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f-=l)):(f=this.left+s,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f=this.right)):c="right",{textAlign:c,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,f,h,p;this.isHorizontal()?(c=ds(t,this.left,a)-a/2,f=ds(t,this.right,s)+s/2,h=p=l):(h=ds(t,this.top,a)-a/2,p=ds(t,this.bottom,s)+s/2,c=f=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,h),n.lineTo(f,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Ov(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,c=a.label,f=a.textOffset;Ys(r,c,0,f,l,s)}i&&Cv(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=_n(r.font),a=tr(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||nt(n)?(l+=a.bottom,jt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:f,maxWidth:h,rotation:p}=hB(this,l,n,s);Ys(t,r.text,0,0,o,{color:r.color,maxWidth:h,rotation:p,textAlign:dB(s,n,i),textBaseline:"middle",translation:[c,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Ke(t.grid&&t.grid.z,-1),i=Ke(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ol.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return _n(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class cp{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;gB(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,pB(t,a,r),this.override&&Jt.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Jt[i]&&(delete Jt[i][r],this.override&&delete Ws[r])}}function pB(e,t,n){const r=Jf(Object.create(null),[n?Jt.get(n):{},Jt.get(t),e.defaults]);Jt.set(t,r),e.defaultRoutes&&mB(t,e.defaultRoutes),e.descriptors&&Jt.describe(t,e.descriptors)}function mB(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Jt.route(o,i,l,s)})}function gB(e){return"id"in e&&"defaults"in e}class vB{constructor(){this.controllers=new cp(ki,"datasets",!0),this.elements=new cp(Bo,"elements"),this.plugins=new cp(Object,"plugins"),this.scales=new cp(ol,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):bt(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=Bx(t);Pt(r["before"+i],[],r),n[t](r),Pt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Vi=new vB;class yB{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(Pt(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){ft(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Ke(r.options&&r.options.plugins,{}),o=_B(r);return i===!1&&!n?[]:wB(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function _B(e){const t={},n=[],r=Object.keys(Vi.plugins.items);for(let o=0;o<r.length;o++)n.push(Vi.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function bB(e,t){return!t&&e===!1?null:e===!0?{}:e}function wB(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,c=bB(r[l],i);c!==null&&o.push({plugin:s,options:xB(e.config,{plugin:s,local:n[l]},c,a)})}return o}function xB(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function fb(e,t){const n=Jt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function SB(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function OB(e,t){return e===t?"_index_":"_value_"}function GE(e){if(e==="x"||e==="y"||e==="r")return e}function CB(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function db(e,...t){if(GE(e))return e;for(const n of t){const r=n.axis||CB(n.position)||e.length>1&&GE(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function KE(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function EB(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return KE(e,"x",n[0])||KE(e,"y",n[0])}return{}}function TB(e,t){const n=Ws[e.type]||{scales:{}},r=t.scales||{},i=fb(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!nt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=db(a,s,EB(a,e),Jt.scales[s.type]),c=OB(l,i),f=n.scales||{};o[a]=bf(Object.create(null),[{axis:l},s,f[l],f[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||fb(s,t),f=(Ws[s]||{}).scales||{};Object.keys(f).forEach(h=>{const p=SB(h,l),g=a[p+"AxisID"]||p;o[g]=o[g]||Object.create(null),bf(o[g],[{axis:p},r[g],f[h]])})}),Object.keys(o).forEach(a=>{const s=o[a];bf(s,[Jt.scales[s.type],Jt.scale])}),o}function zL(e){const t=e.options||(e.options={});t.plugins=Ke(t.plugins,{}),t.scales=TB(e,t)}function HL(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function PB(e){return e=e||{},e.data=HL(e.data),zL(e),e}const ZE=new Map,VL=new Set;function up(e,t){let n=ZE.get(e);return n||(n=t(),ZE.set(e,n),VL.add(n)),n}const Fu=(e,t,n)=>{const r=$a(t,n);r!==void 0&&e.add(r)};class kB{constructor(t){this._config=PB(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=HL(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),zL(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return up(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return up(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return up(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return up(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(f=>{t&&(l.add(t),f.forEach(h=>Fu(l,t,h))),f.forEach(h=>Fu(l,i,h)),f.forEach(h=>Fu(l,Ws[o]||{},h)),f.forEach(h=>Fu(l,Jt,h)),f.forEach(h=>Fu(l,lb,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),VL.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ws[n]||{},Jt.datasets[n]||{},{type:n},Jt,lb]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=QE(this._resolverCache,t,i);let l=a;if(DB(a,n)){o.$shared=!1,r=Ba(r)?r():r;const c=this.createResolver(t,r,s);l=Ec(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=QE(this._resolverCache,t,r);return nt(n)?Ec(o,n,void 0,i):o}}function QE(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Yx(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const MB=e=>nt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Ba(e[n]),!1);function DB(e,t){const{isScriptable:n,isIndexable:r}=xL(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(Ba(s)||MB(s))||a&&jt(s))return!0}return!1}var LB="4.3.3";const RB=["top","bottom","left","right","chartArea"];function XE(e,t){return e==="top"||e==="bottom"||RB.indexOf(e)===-1&&t==="x"}function JE(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function eT(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Pt(n&&n.onComplete,[e],t)}function jB(e){const t=e.chart,n=t.options.animation;Pt(n&&n.onProgress,[e],t)}function WL(e){return PL()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const dm={},tT=e=>{const t=WL(e);return Object.values(dm).filter(n=>n.canvas===t).pop()};function NB(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function AB(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function IB(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var ra;let Tv=(ra=class{static register(...t){Vi.add(...t),nT()}static unregister(...t){Vi.remove(...t),nT()}constructor(t,n){const r=this.config=new kB(n),i=WL(t),o=tT(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||eB(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,f=l&&l.width;if(this.id=$F(),this.ctx=s,this.canvas=l,this.width=f,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new yB,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=t$(h=>this.update(h),a.resizeDelay||0),this._dataChanges=[],dm[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}mo.listen(this,"complete",eT),mo.listen(this,"progress",jB),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ft(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Vi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():SE(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bE(this.canvas,this.ctx),this}stop(){return mo.stop(this),this}resize(t,n){mo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,SE(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Pt(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};bt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=db(a,s),c=l==="r",f=l==="x";return{options:s,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),bt(o,a=>{const s=a.options,l=s.id,c=db(l,s),f=Ke(s.type,a.dtype);(s.position===void 0||XE(s.position,c)!==XE(a.dposition))&&(s.position=a.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=Vi.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(s,t)}),bt(i,(a,s)=>{a||delete r[s]}),bt(r,a=>{er.configure(this,a,a.options),er.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(JE("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||fb(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Vi.getController(s),{datasetElementType:c,dataElementType:f}=Jt.datasets[s];Object.assign(l,{dataElementType:Vi.getElement(f),datasetElementType:c&&Vi.getElement(c)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){bt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,f=this.data.datasets.length;c<f;c++){const{controller:h}=this.getDatasetMeta(c),p=!i&&o.indexOf(h)===-1;h.buildOrUpdateElements(p),a=Math.max(+h.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||bt(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(JE("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){bt(this.scales,t=>{er.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!fE(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;NB(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!fE(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;er.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],bt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Ba(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(mo.has(this)?this.attached&&!mo.running(this)&&mo.start(this):(this.draw(),eT({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=IB(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&Ov(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&Cv(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Oo(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=R7.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Za(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);ed(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),mo.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),bE(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete dm[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};bt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){bt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},bt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const c=a&&this.getDatasetMeta(a.datasetIndex).controller;c&&c[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!Im(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=WF(t),c=AB(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Pt(o.onHover,[t,s,this],this),l&&Pt(o.onClick,[t,s,this],this));const f=!Im(s,i);return(f||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,f}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},me(ra,"defaults",Jt),me(ra,"instances",dm),me(ra,"overrides",Ws),me(ra,"registry",Vi),me(ra,"version",LB),me(ra,"getChart",tT),ra);function nT(){return bt(Tv.instances,e=>e._plugins.invalidate())}function FB(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(o,a,s,r-c,n+c),l>i?(c=i/l,e.arc(o,a,l,n+c,r-c,!0)):e.arc(o,a,i,n+Xt,r-Xt),e.closePath(),e.clip()}function $B(e){return Wx(e,["outerStart","outerEnd","innerStart","innerEnd"])}function BB(e,t,n,r){const i=$B(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=l=>{const c=(n-Math.min(o,l))*r/2;return Pn(l,0,Math.min(o,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Pn(i.innerStart,0,a),innerEnd:Pn(i.innerEnd,0,a)}}function kl(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Hm(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+r+n-c,0),p=f>0?f+r+n+c:0;let g=0;const v=i-l;if(r){const J=f>0?f-r:0,oe=h>0?h-r:0,le=(J+oe)/2,G=le!==0?v*le/(le+r):v;g=(v-G)/2}const y=Math.max(.001,v*h-n/Ut)/h,x=(v-y)/2,b=l+x+g,w=i-x-g,{outerStart:S,outerEnd:C,innerStart:T,innerEnd:P}=BB(t,p,h,w-b),R=h-S,j=h-C,z=b+S/R,N=w-C/j,V=p+T,W=p+P,ne=b+T/V,q=w-P/W;if(e.beginPath(),o){const J=(z+N)/2;if(e.arc(a,s,h,z,J),e.arc(a,s,h,J,N),C>0){const F=kl(j,N,a,s);e.arc(F.x,F.y,C,N,w+Xt)}const oe=kl(W,w,a,s);if(e.lineTo(oe.x,oe.y),P>0){const F=kl(W,q,a,s);e.arc(F.x,F.y,P,w+Xt,q+Math.PI)}const le=(w-P/p+(b+T/p))/2;if(e.arc(a,s,p,w-P/p,le,!0),e.arc(a,s,p,le,b+T/p,!0),T>0){const F=kl(V,ne,a,s);e.arc(F.x,F.y,T,ne+Math.PI,b-Xt)}const G=kl(R,b,a,s);if(e.lineTo(G.x,G.y),S>0){const F=kl(R,z,a,s);e.arc(F.x,F.y,S,b-Xt,z)}}else{e.moveTo(a,s);const J=Math.cos(z)*h+a,oe=Math.sin(z)*h+s;e.lineTo(J,oe);const le=Math.cos(N)*h+a,G=Math.sin(N)*h+s;e.lineTo(le,G)}e.closePath()}function UB(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){Hm(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(s)||(l=a+(s%Nt||Nt))}return Hm(e,t,n,r,l,i),e.fill(),l}function zB(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:f,borderDash:h,borderDashOffset:p}=l,g=l.borderAlign==="inner";if(!c)return;e.setLineDash(h||[]),e.lineDashOffset=p,g?(e.lineWidth=c*2,e.lineJoin=f||"round"):(e.lineWidth=c,e.lineJoin=f||"bevel");let v=t.endAngle;if(o){Hm(e,t,n,r,v,i);for(let y=0;y<o;++y)e.stroke();isNaN(s)||(v=a+(s%Nt||Nt))}g&&FB(e,t,v),o||(Hm(e,t,n,r,v,i),e.stroke())}class af extends Bo{constructor(n){super();me(this,"circumference");me(this,"endAngle");me(this,"fullCircles");me(this,"innerRadius");me(this,"outerRadius");me(this,"pixelMargin");me(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const o=this.getProps(["x","y"],i),{angle:a,distance:s}=dL(o,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:f,outerRadius:h,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),g=(this.options.spacing+this.options.borderWidth)/2,y=Ke(p,c-l)>=Nt||td(a,l,c),x=xo(s,f+g,h+g);return y&&x}getCenterPoint(n){const{x:r,y:i,startAngle:o,endAngle:a,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:f}=this.options,h=(o+a)/2,p=(s+l+f+c)/2;return{x:r+Math.cos(h)*p,y:i+Math.sin(h)*p}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,o=(r.offset||0)/4,a=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Nt?Math.floor(i/Nt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Ut,i||0)),f=o*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,UB(n,this,f,a,s),zB(n,this,f,a,s),n.restore()}}me(af,"id","arc"),me(af,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),me(af,"defaultRoutes",{backgroundColor:"backgroundColor"}),me(af,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function YL(e,t,n=t){e.lineCap=Ke(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ke(n.borderDash,t.borderDash)),e.lineDashOffset=Ke(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ke(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ke(n.borderWidth,t.borderWidth),e.strokeStyle=Ke(n.borderColor,t.borderColor)}function HB(e,t,n){e.lineTo(n.x,n.y)}function VB(e){return e.stepped?h$:e.tension||e.cubicInterpolationMode==="monotone"?p$:HB}function qL(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),f=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!f?r+c-l:c-l}}function WB(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:c}=qL(i,n,r),f=VB(o);let{move:h=!0,reverse:p}=r||{},g,v,y;for(g=0;g<=c;++g)v=i[(s+(p?c-g:g))%a],!v.skip&&(h?(e.moveTo(v.x,v.y),h=!1):f(e,y,v,p,o.stepped),y=v);return l&&(v=i[(s+(p?c:0))%a],f(e,y,v,p,o.stepped)),!!l}function YB(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=qL(i,n,r),{move:l=!0,reverse:c}=r||{};let f=0,h=0,p,g,v,y,x,b;const w=C=>(a+(c?s-C:C))%o,S=()=>{y!==x&&(e.lineTo(f,x),e.lineTo(f,y),e.lineTo(f,b))};for(l&&(g=i[w(0)],e.moveTo(g.x,g.y)),p=0;p<=s;++p){if(g=i[w(p)],g.skip)continue;const C=g.x,T=g.y,P=C|0;P===v?(T<y?y=T:T>x&&(x=T),f=(h*f+C)/++h):(S(),e.lineTo(C,T),v=P,h=0,y=x=T),b=T}S()}function hb(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?YB:WB}function qB(e){return e.stepped?Y$:e.tension||e.cubicInterpolationMode==="monotone"?q$:bs}function GB(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),YL(e,t.options),e.stroke(i)}function KB(e,t,n,r){const{segments:i,options:o}=t,a=hb(t);for(const s of i)YL(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const ZB=typeof Path2D=="function";function QB(e,t,n,r){ZB&&!t.options.segment?GB(e,t,n,r):KB(e,t,n,r)}class va extends Bo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;F$(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=J$(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=RL(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=qB(r);let c,f;for(c=0,f=a.length;c<f;++c){const{start:h,end:p}=a[c],g=o[h],v=o[p];if(g===v){s.push(g);continue}const y=Math.abs((i-g[n])/(v[n]-g[n])),x=l(g,v,y,r.stepped);x[n]=t[n],s.push(x)}return s.length===1?s[0]:s}pathSegment(t,n,r){return hb(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=hb(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),QB(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}me(va,"id","line"),me(va,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),me(va,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),me(va,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function rT(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class hm extends Bo{constructor(n){super();me(this,"parsed");me(this,"skip");me(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const o=this.options,{x:a,y:s}=this.getProps(["x","y"],i);return Math.pow(n-a,2)+Math.pow(r-s,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,r){return rT(this,n,"x",r)}inYRange(n,r){return rT(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!Oo(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,cb(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}me(hm,"id","point"),me(hm,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),me(hm,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function GL(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,f,h;return e.horizontal?(h=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-h,f=r+h):(h=o/2,s=n-h,l=n+h,c=Math.min(r,i),f=Math.max(r,i)),{left:s,top:c,right:l,bottom:f}}function ya(e,t,n,r){return e?0:Pn(t,n,r)}function XB(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=wL(r);return{t:ya(i.top,o.top,0,n),r:ya(i.right,o.right,0,t),b:ya(i.bottom,o.bottom,0,n),l:ya(i.left,o.left,0,t)}}function JB(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=Ns(i),a=Math.min(t,n),s=e.borderSkipped,l=r||nt(i);return{topLeft:ya(!l||s.top||s.left,o.topLeft,0,a),topRight:ya(!l||s.top||s.right,o.topRight,0,a),bottomLeft:ya(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:ya(!l||s.bottom||s.right,o.bottomRight,0,a)}}function e9(e){const t=GL(e),n=t.right-t.left,r=t.bottom-t.top,i=XB(e,n/2,r/2),o=JB(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function C0(e,t,n,r){const i=t===null,o=n===null,s=e&&!(i&&o)&&GL(e,r);return s&&(i||xo(t,s.left,s.right))&&(o||xo(n,s.top,s.bottom))}function t9(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function n9(e,t){e.rect(t.x,t.y,t.w,t.h)}function E0(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}class pm extends Bo{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:a}=e9(this),s=t9(a.radius)?nd:n9;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),s(t,E0(a,n,o)),t.clip(),s(t,E0(o,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,E0(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return C0(this,t,n,r)}inXRange(t,n){return C0(this,t,null,n)}inYRange(t,n){return C0(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}me(pm,"id","bar"),me(pm,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),me(pm,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var r9=Object.freeze({__proto__:null,ArcElement:af,BarElement:pm,LineElement:va,PointElement:hm});const pb=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],iT=pb.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function KL(e){return pb[e%pb.length]}function ZL(e){return iT[e%iT.length]}function i9(e,t){return e.borderColor=KL(t),e.backgroundColor=ZL(t),++t}function o9(e,t){return e.backgroundColor=e.data.map(()=>KL(t++)),t}function a9(e,t){return e.backgroundColor=e.data.map(()=>ZL(t++)),t}function s9(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof ga?t=o9(n,t):i instanceof Ef?t=a9(n,t):i&&(t=i9(n,t))}}function oT(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function l9(e){return e&&(e.borderColor||e.backgroundColor)}var c9={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:o}=i;if(!n.forceOverride&&(oT(r)||l9(i)||o&&oT(o)))return;const a=s9(e);r.forEach(a)}};function u9(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(o-2);let l=0;const c=t+n-1;let f=t,h,p,g,v,y;for(a[l++]=e[f],h=0;h<o-2;h++){let x=0,b=0,w;const S=Math.floor((h+1)*s)+1+t,C=Math.min(Math.floor((h+2)*s)+1,n)+t,T=C-S;for(w=S;w<C;w++)x+=e[w].x,b+=e[w].y;x/=T,b/=T;const P=Math.floor(h*s)+1+t,R=Math.min(Math.floor((h+1)*s)+1,n)+t,{x:j,y:z}=e[f];for(g=v=-1,w=P;w<R;w++)v=.5*Math.abs((j-x)*(e[w].y-z)-(j-e[w].x)*(b-z)),v>g&&(g=v,p=e[w],y=w);a[l++]=p,f=y}return a[l++]=e[c],a}function f9(e,t,n,r){let i=0,o=0,a,s,l,c,f,h,p,g,v,y;const x=[],b=t+n-1,w=e[t].x,C=e[b].x-w;for(a=t;a<t+n;++a){s=e[a],l=(s.x-w)/C*r,c=s.y;const T=l|0;if(T===f)c<v?(v=c,h=a):c>y&&(y=c,p=a),i=(o*i+s.x)/++o;else{const P=a-1;if(!ft(h)&&!ft(p)){const R=Math.min(h,p),j=Math.max(h,p);R!==g&&R!==P&&x.push({...e[R],x:i}),j!==g&&j!==P&&x.push({...e[j],x:i})}a>0&&P!==g&&x.push(e[P]),x.push(s),f=T,o=0,v=y=c,h=p=g=a}}return x}function QL(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function aT(e){e.data.datasets.forEach(t=>{QL(t)})}function d9(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=Pn(So(t,o.axis,a).lo,0,n-1)),c?i=Pn(So(t,o.axis,s).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var h9={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){aT(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:a,indexAxis:s}=i,l=e.getDatasetMeta(o),c=a||i.data;if(rf([s,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const f=e.scales[l.xAxisID];if(f.type!=="linear"&&f.type!=="time"||e.options.parsing)return;let{start:h,count:p}=d9(l,c);const g=n.threshold||4*r;if(p<=g){QL(i);return}ft(a)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let v;switch(n.algorithm){case"lttb":v=u9(c,h,p,r,n);break;case"min-max":v=f9(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=v})},destroy(e){aT(e)}};function p9(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const s of r){let{start:l,end:c}=s;c=Qx(l,c,i);const f=mb(n,i[l],i[c],s.loop);if(!t.segments){a.push({source:s,target:f,start:i[l],end:i[c]});continue}const h=RL(t,f);for(const p of h){const g=mb(n,o[p.start],o[p.end],p.loop),v=LL(s,i,g);for(const y of v)a.push({source:y,target:p,start:{[n]:sT(f,g,"start",Math.max)},end:{[n]:sT(f,g,"end",Math.min)}})}}return a}function mb(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Lr(i),o=Lr(o)),{property:e,start:i,end:o}}function m9(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:s})=>{s=Qx(a,s,i);const l=i[a],c=i[s];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function Qx(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function sT(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function XL(e,t){let n=[],r=!1;return jt(e)?(r=!0,n=e):n=m9(e,t),n.length?new va({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function lT(e){return e&&e.fill!==!1}function g9(e,t,n){let i=e[t].fill;const o=[t];let a;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Qt(i))return i;if(a=e[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function v9(e,t,n){const r=w9(e);if(nt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Qt(i)&&Math.floor(i)===i?y9(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function y9(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function _9(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:nt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function b9(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:nt(e)?r=e.value:r=t.getBaseValue(),r}function w9(e){const t=e.options,n=t.fill;let r=Ke(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function x9(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,s=S9(t,n);s.push(XL({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const c=o[l];for(let f=c.start;f<=c.end;f++)O9(i,a[f],s)}return new va({points:i,options:{}})}function S9(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function O9(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=C9(o,t,"x");if(!(!l||a&&s)){if(a)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function C9(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,a=e.points;let s=!1,l=!1;for(let c=0;c<o.length;c++){const f=o[c],h=a[f.start][n],p=a[f.end][n];if(xo(i,h,p)){s=i===h,l=i===p;break}}return{first:s,last:l,point:r}}class JL{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:a}=this;return n=n||{start:0,end:Nt},t.arc(i,o,a,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function E9(e){const{chart:t,fill:n,line:r}=e;if(Qt(n))return T9(t,n);if(n==="stack")return x9(e);if(n==="shape")return!0;const i=P9(e);return i instanceof JL?i:XL(i,r)}function T9(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function P9(e){return(e.scale||{}).getPointPositionForValue?M9(e):k9(e)}function k9(e){const{scale:t={},fill:n}=e,r=_9(n,t);if(Qt(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function M9(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,a=b9(n,t,o),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new JL({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,a));return s}function T0(e,t,n){const r=E9(t),{line:i,scale:o,axis:a}=t,s=i.options,l=s.fill,c=s.backgroundColor,{above:f=c,below:h=c}=l||{};r&&i.points.length&&(Ov(e,n),D9(e,{line:i,target:r,above:f,below:h,area:n,scale:o,axis:a}),Cv(e))}function D9(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(cT(e,r,a.top),uT(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),cT(e,r,a.bottom)),uT(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}function cT(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const s of r){const{start:l,end:c}=s,f=i[l],h=i[Qx(l,c,i)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(f.x,n),e.lineTo(f.x,f.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(h.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function uT(e,t){const{line:n,target:r,property:i,color:o,scale:a}=t,s=p9(n,r,i);for(const{source:l,target:c,start:f,end:h}of s){const{style:{backgroundColor:p=o}={}}=l,g=r!==!0;e.save(),e.fillStyle=p,L9(e,a,g&&mb(i,f,h)),e.beginPath();const v=!!n.pathSegment(e,l);let y;if(g){v?e.closePath():fT(e,r,h,i);const x=!!r.pathSegment(e,c,{move:v,reverse:!0});y=v&&x,y||fT(e,r,f,i)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function L9(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:a,end:s}=n||{};o==="x"&&(e.beginPath(),e.rect(a,r,s-a,i-r),e.clip())}function fT(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var R9={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=e.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof va&&(l={visible:e.isDatasetVisible(a),index:a,fill:v9(s,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=g9(i,a,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&T0(e.ctx,s,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;lT(o)&&T0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!lT(r)||n.drawTime!=="beforeDatasetDraw"||T0(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const dT=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},j9=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class hT extends Bo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Pt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=_n(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=dT(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(a,o,s,l)+10):(f=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+s;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,g=-f;return this.legendItems.forEach((v,y)=>{const x=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+x+2*s>a)&&(h+=f,c[c.length-(y>0?0:1)]=0,g+=f,p++),l[y]={left:0,top:g,row:p,width:x,height:i},c[c.length-1]+=x+s}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=a-t;let h=s,p=0,g=0,v=0,y=0;return this.legendItems.forEach((x,b)=>{const{itemWidth:w,itemHeight:S}=N9(r,n,o,x,i);b>0&&g+S+2*s>f&&(h+=p+s,c.push({width:p,height:g}),v+=p+s,y++,p=g=0),l[b]={left:v,top:g,col:y,width:w,height:S},p=Math.max(p,w),g+=S+s}),h+=p,c.push({width:p,height:g}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=fc(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Qn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Qn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ov(t,this),this._draw(),Cv(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Jt.color,l=fc(t.rtl,this.left,this.width),c=_n(a.font),{padding:f}=a,h=c.size,p=h/2;let g;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:x}=dT(a,h),b=function(P,R,j){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const z=Ke(j.lineWidth,1);if(i.fillStyle=Ke(j.fillStyle,s),i.lineCap=Ke(j.lineCap,"butt"),i.lineDashOffset=Ke(j.lineDashOffset,0),i.lineJoin=Ke(j.lineJoin,"miter"),i.lineWidth=z,i.strokeStyle=Ke(j.strokeStyle,s),i.setLineDash(Ke(j.lineDash,[])),a.usePointStyle){const N={radius:y*Math.SQRT2/2,pointStyle:j.pointStyle,rotation:j.rotation,borderWidth:z},V=l.xPlus(P,v/2),W=R+p;bL(i,N,V,W,a.pointStyleWidth&&v)}else{const N=R+Math.max((h-y)/2,0),V=l.leftForLtr(P,v),W=Ns(j.borderRadius);i.beginPath(),Object.values(W).some(ne=>ne!==0)?nd(i,{x:V,y:N,w:v,h:y,radius:W}):i.rect(V,N,v,y),i.fill(),z!==0&&i.stroke()}i.restore()},w=function(P,R,j){Ys(i,j.text,P,R+x/2,c,{strikethrough:j.hidden,textAlign:l.textAlign(j.textAlign)})},S=this.isHorizontal(),C=this._computeTitleHeight();S?g={x:Qn(o,this.left+f,this.right-r[0]),y:this.top+f+C,line:0}:g={x:this.left+f,y:Qn(o,this.top+C+f,this.bottom-n[0].height),line:0},kL(this.ctx,t.textDirection);const T=x+f;this.legendItems.forEach((P,R)=>{i.strokeStyle=P.fontColor,i.fillStyle=P.fontColor;const j=i.measureText(P.text).width,z=l.textAlign(P.textAlign||(P.textAlign=a.textAlign)),N=v+p+j;let V=g.x,W=g.y;l.setWidth(this.width),S?R>0&&V+N+f>this.right&&(W=g.y+=T,g.line++,V=g.x=Qn(o,this.left+f,this.right-r[g.line])):R>0&&W+T>this.bottom&&(V=g.x=V+n[g.line].width+f,g.line++,W=g.y=Qn(o,this.top+C+f,this.bottom-n[g.line].height));const ne=l.x(V);if(b(ne,W,P),V=n$(z,V+v+p,S?V+N:this.right,t.rtl),w(l.x(V),W,P),S)g.x+=N+f;else if(typeof P.text!="string"){const q=c.lineHeight;g.y+=eR(P,q)+f}else g.y+=T}),ML(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=_n(n.font),i=tr(n.padding);if(!n.display)return;const o=fc(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=Qn(t.align,h,this.right-p);else{const v=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);f=c+Qn(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const g=Qn(s,h,h+p);a.textAlign=o.textAlign(Hx(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Ys(a,n.text,g,f,r)}_computeTitleHeight(){const t=this.options.title,n=_n(t.font),r=tr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(xo(t,this.left,this.right)&&xo(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],xo(t,i.left,i.left+i.width)&&xo(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!F9(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=j9(i,r);i&&!o&&Pt(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Pt(n.onHover,[t,r,this],this)}else r&&Pt(n.onClick,[t,r,this],this)}}function N9(e,t,n,r,i){const o=A9(r,e,t,n),a=I9(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function A9(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function I9(e,t,n){let r=e;return typeof t.text!="string"&&(r=eR(t,n)),r}function eR(e,t){const n=e.text?e.text.length:0;return t*n}function F9(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var $9={id:"legend",_element:hT,start(e,t,n){const r=e.legend=new hT({ctx:e.ctx,options:n,chart:e});er.configure(e,r,n),er.addBox(e,r)},stop(e){er.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;er.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),f=tr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Xx extends Bo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=jt(r.text)?r.text.length:1;this._padding=tr(r.padding);const o=i*_n(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,f,h;return this.isHorizontal()?(f=Qn(s,r,o),h=n+t,c=o-r):(a.position==="left"?(f=r+t,h=Qn(s,i,n),l=Ut*-.5):(f=o-t,h=Qn(s,n,i),l=Ut*.5),c=i-n),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=_n(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Ys(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Hx(n.align),textBaseline:"middle",translation:[a,s]})}}function B9(e,t){const n=new Xx({ctx:e.ctx,options:t,chart:e});er.configure(e,n,t),er.addBox(e,n),e.titleBlock=n}var U9={id:"title",_element:Xx,start(e,t,n){B9(e,n)},stop(e){const t=e.titleBlock;er.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;er.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const fp=new WeakMap;var z9={id:"subtitle",start(e,t,n){const r=new Xx({ctx:e.ctx,options:n,chart:e});er.configure(e,r,n),er.addBox(e,r),fp.set(e,r)},stop(e){er.removeBox(e,fp.get(e)),fp.delete(e)},beforeUpdate(e,t,n){const r=fp.get(e);er.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const sf={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),f=sb(t,c);f<i&&(i=f,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Hi(e,t){return t&&(jt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function go(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
||
`)>-1?e.split(`
|
||
`):e}function H9(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function pT(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=_n(t.bodyFont),c=_n(t.titleFont),f=_n(t.footerFont),h=o.length,p=i.length,g=r.length,v=tr(t.padding);let y=v.height,x=0,b=r.reduce((C,T)=>C+T.before.length+T.lines.length+T.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,h&&(y+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),b){const C=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=g*C+(b-g)*l.lineHeight+(b-1)*t.bodySpacing}p&&(y+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let w=0;const S=function(C){x=Math.max(x,n.measureText(C).width+w)};return n.save(),n.font=c.string,bt(e.title,S),n.font=l.string,bt(e.beforeBody.concat(e.afterBody),S),w=t.displayColors?a+2+t.boxPadding:0,bt(r,C=>{bt(C.before,S),bt(C.lines,S),bt(C.after,S)}),w=0,n.font=f.string,bt(e.footer,S),n.restore(),x+=v.width,{width:x,height:y}}function V9(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function W9(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function Y9(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),W9(c,e,t,n)&&(c="center"),c}function mT(e,t,n){const r=n.yAlign||t.yAlign||V9(e,n);return{xAlign:n.xAlign||t.xAlign||Y9(e,t,n,r),yAlign:r}}function q9(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function G9(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function gT(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:g}=Ns(a);let v=q9(t,s);const y=G9(t,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(f,p)+i:s==="right"&&(v+=Math.max(h,g)+i),{x:Pn(v,0,r.width-t.width),y:Pn(y,0,r.height-t.height)}}function dp(e,t,n){const r=tr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function vT(e){return Hi([],go(e))}function K9(e,t,n){return Za(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function yT(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const tR={beforeTitle:po,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:po,beforeBody:po,beforeLabel:po,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ft(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:po,afterBody:po,beforeFooter:po,footer:po,afterFooter:po};function yr(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?tR[t].call(n,r):i}var ob;let _T=(ob=class extends Bo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new jL(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=K9(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=yr(r,"beforeTitle",this,t),o=yr(r,"title",this,t),a=yr(r,"afterTitle",this,t);let s=[];return s=Hi(s,go(i)),s=Hi(s,go(o)),s=Hi(s,go(a)),s}getBeforeBody(t,n){return vT(yr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return bt(t,o=>{const a={before:[],lines:[],after:[]},s=yT(r,o);Hi(a.before,go(yr(s,"beforeLabel",this,o))),Hi(a.lines,yr(s,"label",this,o)),Hi(a.after,go(yr(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return vT(yr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=yr(r,"beforeFooter",this,t),o=yr(r,"footer",this,t),a=yr(r,"afterFooter",this,t);let s=[];return s=Hi(s,go(i)),s=Hi(s,go(o)),s=Hi(s,go(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(H9(this.chart,n[l]));return t.filter&&(s=s.filter((f,h,p)=>t.filter(f,h,p,r))),t.itemSort&&(s=s.sort((f,h)=>t.itemSort(f,h,r))),bt(s,f=>{const h=yT(t.callbacks,f);i.push(yr(h,"labelColor",this,f)),o.push(yr(h,"labelPointStyle",this,f)),a.push(yr(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=sf[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=pT(this,r),c=Object.assign({},s,l),f=mT(this.chart,r,c),h=gT(r,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Ns(s),{x:p,y:g}=t,{width:v,height:y}=n;let x,b,w,S,C,T;return o==="center"?(C=g+y/2,i==="left"?(x=p,b=x-a,S=C+a,T=C-a):(x=p+v,b=x+a,S=C-a,T=C+a),w=x):(i==="left"?b=p+Math.max(l,f)+a:i==="right"?b=p+v-Math.max(c,h)-a:b=this.caretX,o==="top"?(S=g,C=S-a,x=b-a,w=b+a):(S=g+y,C=S+a,x=b+a,w=b-a),T=S),{x1:x,x2:b,x3:w,y1:S,y2:C,y3:T}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=fc(r.rtl,this.x,this.width);for(t.x=dp(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=_n(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=o,f=_n(o.bodyFont),h=dp(this,"left",o),p=i.x(h),g=l<f.lineHeight?(f.lineHeight-l)/2:0,v=n.y+g;if(o.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},x=i.leftForLtr(p,c)+c/2,b=v+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,cb(t,y,x,b),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,cb(t,y,x,b)}else{t.lineWidth=nt(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const y=i.leftForLtr(p,c),x=i.leftForLtr(i.xPlus(p,1),c-2),b=Ns(a.borderRadius);Object.values(b).some(w=>w!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,nd(t,{x:y,y:v,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),nd(t,{x,y:v+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,v,c,l),t.strokeRect(y,v,c,l),t.fillStyle=a.backgroundColor,t.fillRect(x,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=_n(r.bodyFont);let p=h.lineHeight,g=0;const v=fc(r.rtl,this.x,this.width),y=function(j){n.fillText(j,v.x(t.x+g),t.y+p/2),t.y+=p+o},x=v.textAlign(a);let b,w,S,C,T,P,R;for(n.textAlign=a,n.textBaseline="middle",n.font=h.string,t.x=dp(this,x,r),n.fillStyle=r.bodyColor,bt(this.beforeBody,y),g=s&&x!=="right"?a==="center"?c/2+f:c+2+f:0,C=0,P=i.length;C<P;++C){for(b=i[C],w=this.labelTextColors[C],n.fillStyle=w,bt(b.before,y),S=b.lines,s&&S.length&&(this._drawColorBox(n,t,C,v,r),p=Math.max(h.lineHeight,l)),T=0,R=S.length;T<R;++T)y(S[T]),p=h.lineHeight;bt(b.after,y)}g=0,p=h.lineHeight,bt(this.afterBody,y),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=fc(r.rtl,this.x,this.width);for(t.x=dp(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=_n(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:c,height:f}=r,{topLeft:h,topRight:p,bottomLeft:g,bottomRight:v}=Ns(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+h,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+c,l+f-v),n.quadraticCurveTo(s+c,l+f,s+c-v,l+f),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+g,l+f),n.quadraticCurveTo(s,l+f,s,l+f-g),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+h),n.quadraticCurveTo(s,l,s+h,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=sf[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=pT(this,t),l=Object.assign({},a,this._size),c=mT(n,t,l),f=gT(t,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=tr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),kL(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),ML(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!Im(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Im(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=sf[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}},me(ob,"positioners",sf),ob);var Z9={id:"tooltip",_element:_T,positioners:sf,afterInit(e,t,n){n&&(e.tooltip=new _T({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:tR},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Q9=Object.freeze({__proto__:null,Colors:c9,Decimation:h9,Filler:R9,Legend:$9,SubTitle:z9,Title:U9,Tooltip:Z9});const X9=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function J9(e,t,n,r){const i=e.indexOf(t);if(i===-1)return X9(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const eU=(e,t)=>e===null?null:Pn(Math.round(e),0,t);function bT(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class gb extends ol{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ft(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:J9(r,t,Ke(n,t),this._addedLabels),eU(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return bT.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}me(gb,"id","category"),me(gb,"defaults",{ticks:{callback:bT}});function tU(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,g=o||1,v=f-1,{min:y,max:x}=t,b=!ft(a),w=!ft(s),S=!ft(c),C=(x-y)/(h+1);let T=hE((x-y)/v/g)*g,P,R,j,z;if(T<1e-14&&!b&&!w)return[{value:y},{value:x}];z=Math.ceil(x/T)-Math.floor(y/T),z>v&&(T=hE(z*T/v/g)*g),ft(l)||(P=Math.pow(10,l),T=Math.ceil(T*P)/P),i==="ticks"?(R=Math.floor(y/T)*T,j=Math.ceil(x/T)*T):(R=y,j=x),b&&w&&o&&KF((s-a)/o,T/1e3)?(z=Math.round(Math.min((s-a)/T,f)),T=(s-a)/z,R=a,j=s):S?(R=b?a:R,j=w?s:j,z=c-1,T=(j-R)/z):(z=(j-R)/T,wf(z,Math.round(z),T/1e3)?z=Math.round(z):z=Math.ceil(z));const N=Math.max(pE(T),pE(R));P=Math.pow(10,ft(l)?N:l),R=Math.round(R*P)/P,j=Math.round(j*P)/P;let V=0;for(b&&(p&&R!==a?(n.push({value:a}),R<a&&V++,wf(Math.round((R+V*T)*P)/P,a,wT(a,C,e))&&V++):R<a&&V++);V<z;++V){const W=Math.round((R+V*T)*P)/P;if(w&&W>s)break;n.push({value:W})}return w&&p&&j!==s?n.length&&wf(n[n.length-1].value,s,wT(s,C,e))?n[n.length-1].value=s:n.push({value:s}):(!w||j===s)&&n.push({value:j}),n}function wT(e,t,{horizontal:n,minRotation:r}){const i=Ei(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class Vm extends ol{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ft(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Xi(i),c=Xi(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=tU(i,o);return t.bounds==="ticks"&&fL(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Jd(t,this.chart.options.locale,this.options.ticks.format)}}class vb extends Vm{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Qt(t)?t:0,this.max=Qt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Ei(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}me(vb,"id","linear"),me(vb,"defaults",{ticks:{callback:Sv.formatters.numeric}});const id=e=>Math.floor(ma(e)),ps=(e,t)=>Math.pow(10,id(e)+t);function xT(e){return e/Math.pow(10,id(e))===1}function ST(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function nU(e,t){const n=t-e;let r=id(n);for(;ST(e,t,r)>10;)r++;for(;ST(e,t,r)<10;)r--;return Math.min(r,id(e))}function rU(e,{min:t,max:n}){t=Mr(e.min,t);const r=[],i=id(t);let o=nU(t,n),a=o<0?Math.pow(10,Math.abs(o)):1;const s=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*a)/a,f=Math.floor((t-l)/s/10)*s*10;let h=Math.floor((c-f)/Math.pow(10,o)),p=Mr(e.min,Math.round((l+f+h*Math.pow(10,o))*a)/a);for(;p<n;)r.push({value:p,major:xT(p),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,a=o>=0?1:a),p=Math.round((l+f+h*Math.pow(10,o))*a)/a;const g=Mr(e.max,p);return r.push({value:g,major:xT(g),significand:h}),r}class yb extends ol{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Vm.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Qt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Qt(t)?Math.max(0,t):null,this.max=Qt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Qt(this._userMin)&&(this.min=t===ps(this.min,0)?ps(this.min,-1):ps(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=s=>r=t?r:s,a=s=>i=n?i:s;r===i&&(r<=0?(o(1),a(10)):(o(ps(r,-1)),a(ps(i,1)))),r<=0&&o(ps(i,-1)),i<=0&&a(ps(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=rU(n,this);return t.bounds==="ticks"&&fL(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Jd(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ma(t),this._valueRange=ma(this.max)-ma(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ma(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}me(yb,"id","logarithmic"),me(yb,"defaults",{ticks:{callback:Sv.formatters.logarithmic,major:{enabled:!0}}});function _b(e){const t=e.ticks;if(t.display&&e.display){const n=tr(t.backdropPadding);return Ke(t.font&&t.font.size,Jt.font.size)+n.height}return 0}function iU(e,t,n){return n=jt(n)?n:[n],{w:d$(e,t.string,n),h:n.length*t.lineHeight}}function OT(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function oU(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?Ut/o:0;for(let l=0;l<o;l++){const c=a.setContext(e.getPointLabelContext(l));i[l]=c.padding;const f=e.getPointPosition(l,e.drawingArea+i[l],s),h=_n(c.font),p=iU(e.ctx,h,e._pointLabels[l]);r[l]=p;const g=Lr(e.getIndexAngle(l)+s),v=Math.round(Ux(g)),y=OT(v,f.x,p.w,0,180),x=OT(v,f.y,p.h,90,270);aU(n,t,g,y,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=cU(e,r,i)}function aU(e,t,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function sU(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:o,padding:a,size:s}=n,l=e.getPointPosition(t,r+i+a,o),c=Math.round(Ux(Lr(l.angle+Xt))),f=dU(l.y,s.h,c),h=uU(c),p=fU(l.x,s.w,h);return{visible:!0,x:l.x,y:f,textAlign:h,left:p,top:f,right:p+s.w,bottom:f+s.h}}function lU(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:o}=e;return!(Oo({x:n,y:r},t)||Oo({x:n,y:o},t)||Oo({x:i,y:r},t)||Oo({x:i,y:o},t))}function cU(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:_b(o)/2,additionalAngle:a?Ut/i:0};let c;for(let f=0;f<i;f++){l.padding=n[f],l.size=t[f];const h=sU(e,f,l);r.push(h),s==="auto"&&(h.visible=lU(h,c),h.visible&&(c=h))}return r}function uU(e){return e===0||e===180?"center":e<180?"left":"right"}function fU(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function dU(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function hU(e,t,n){const{left:r,top:i,right:o,bottom:a}=n,{backdropColor:s}=t;if(!ft(s)){const l=Ns(t.borderRadius),c=tr(t.backdropPadding);e.fillStyle=s;const f=r-c.left,h=i-c.top,p=o-r+c.width,g=a-i+c.height;Object.values(l).some(v=>v!==0)?(e.beginPath(),nd(e,{x:f,y:h,w:p,h:g,radius:l}),e.fill()):e.fillRect(f,h,p,g)}}function pU(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const a=r.setContext(e.getPointLabelContext(i));hU(n,a,o);const s=_n(a.font),{x:l,y:c,textAlign:f}=o;Ys(n,e._pointLabels[i],l,c+s.lineHeight/2,s,{color:a.color,textAlign:f,textBaseline:"middle"})}}function nR(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Nt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let a=1;a<r;a++)o=e.getPointPosition(a,t),i.lineTo(o.x,o.y)}}function mU(e,t,n,r,i){const o=e.ctx,a=t.circular,{color:s,lineWidth:l}=t;!a&&!r||!s||!l||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),nR(e,n,a,r),o.closePath(),o.stroke(),o.restore())}function gU(e,t,n){return Za(e,{label:n,index:t,type:"pointLabel"})}class lf extends Vm{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=tr(_b(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Qt(t)&&!isNaN(t)?t:0,this.max=Qt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/_b(this.options))}generateTickLabels(t){Vm.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Pt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?oU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Nt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Lr(t*n+Ei(r))}getDistanceFromCenterForValue(t){if(ft(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ft(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return gU(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-Xt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),nR(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,a=this._pointLabels.length;let s,l,c;if(n.pointLabels.display&&pU(this,a),i.display&&this.ticks.forEach((f,h)=>{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),g=i.setContext(p),v=o.setContext(p);mU(this,g,l,a,v)}}),r.display){for(t.save(),s=a-1;s>=0;s--){const f=r.setContext(this.getPointLabelContext(s)),{color:h,lineWidth:p}=f;!p||!h||(t.lineWidth=p,t.strokeStyle=h,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=_n(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=f.string,a=t.measureText(s.label).width,t.fillStyle=c.backdropColor;const h=tr(c.backdropPadding);t.fillRect(-a/2-h.left,-o-f.size/2-h.top,a+h.width,f.size+h.height)}Ys(t,s.label,0,-o,f,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}me(lf,"id","radialLinear"),me(lf,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Sv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),me(lf,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),me(lf,"descriptors",{angleLines:{_fallback:"grid"}});const Pv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},br=Object.keys(Pv);function CT(e,t){return e-t}function ET(e,t){if(ft(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Qt(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Cc(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function TT(e,t,n,r){const i=br.length;for(let o=br.indexOf(e);o<i-1;++o){const a=Pv[br[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return br[o]}return br[i-1]}function vU(e,t,n,r,i){for(let o=br.length-1;o>=br.indexOf(n);o--){const a=br[o];if(Pv[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return br[n?br.indexOf(n):0]}function yU(e){for(let t=br.indexOf(e)+1,n=br.length;t<n;++t)if(Pv[br[t]].common)return br[t]}function PT(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=zx(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function _U(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function kT(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:_U(e,r,i,n)}class od extends ol{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new P7._date(t.adapters.date);i.init(n),bf(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:ET(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Qt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Qt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=JF(i,o,a);return this._unit=n.unit||(r.autoSkip?TT(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):vU(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:yU(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),kT(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Pn(n,0,a),r=Pn(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||TT(o.minUnit,n,r,this._getLabelCapacity(n)),s=Ke(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Cc(l)||l===!0,f={};let h=n,p,g;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,g=0;p<r;p=+t.add(p,s,a),g++)PT(f,p,v);return(p===r||i.bounds==="ticks"||g===1)&&PT(f,p,v),Object.keys(f).sort(CT).map(y=>+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Pt(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&s[l],h=c&&s[c],p=r[n],g=c&&h&&p&&p.major;return this._adapter.format(t,i||(g?h:f))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Ei(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,kT(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(ET(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return pL(t.sort(CT))}}me(od,"id","time"),me(od,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function hp(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=So(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=So(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class bb extends od{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=hp(n,this.min),this._tableRange=hp(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,f;for(a=0,s=t.length;a<s;++a)c=t[a],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)f=i[a+1],l=i[a-1],c=i[a],Math.round((f+l)/2)!==c&&o.push({time:c,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(hp(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return hp(this._table,r*this._tableRange+this._minPos,!0)}}me(bb,"id","timeseries"),me(bb,"defaults",od.defaults);var bU=Object.freeze({__proto__:null,CategoryScale:gb,LinearScale:vb,LogarithmicScale:yb,RadialLinearScale:lf,TimeScale:od,TimeSeriesScale:bb});const wU=[T7,r9,Q9,bU];Tv.register(...wU);var rR={exports:{}},Yr={},iR={exports:{}},oR={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(G,F){var A=G.length;G.push(F);e:for(;0<A;){var B=A-1>>>1,re=G[B];if(0<i(re,F))G[B]=F,G[A]=re,A=B;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var F=G[0],A=G.pop();if(A!==F){G[0]=A;e:for(var B=0,re=G.length,U=re>>>1;B<U;){var Z=2*(B+1)-1,ie=G[Z],ae=Z+1,pe=G[ae];if(0>i(ie,A))ae<re&&0>i(pe,ie)?(G[B]=pe,G[ae]=A,B=ae):(G[B]=ie,G[Z]=A,B=Z);else if(ae<re&&0>i(pe,A))G[B]=pe,G[ae]=A,B=ae;else break e}}return F}function i(G,F){var A=G.sortIndex-F.sortIndex;return A!==0?A:G.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],f=1,h=null,p=3,g=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(G){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=G)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function C(G){if(y=!1,S(G),!v)if(n(l)!==null)v=!0,oe(T);else{var F=n(c);F!==null&&le(C,F.startTime-G)}}function T(G,F){v=!1,y&&(y=!1,b(j),j=-1),g=!0;var A=p;try{for(S(F),h=n(l);h!==null&&(!(h.expirationTime>F)||G&&!V());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var re=B(h.expirationTime<=F);F=e.unstable_now(),typeof re=="function"?h.callback=re:h===n(l)&&r(l),S(F)}else r(l);h=n(l)}if(h!==null)var U=!0;else{var Z=n(c);Z!==null&&le(C,Z.startTime-F),U=!1}return U}finally{h=null,p=A,g=!1}}var P=!1,R=null,j=-1,z=5,N=-1;function V(){return!(e.unstable_now()-N<z)}function W(){if(R!==null){var G=e.unstable_now();N=G;var F=!0;try{F=R(!0,G)}finally{F?ne():(P=!1,R=null)}}else P=!1}var ne;if(typeof w=="function")ne=function(){w(W)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,J=q.port2;q.port1.onmessage=W,ne=function(){J.postMessage(null)}}else ne=function(){x(W,0)};function oe(G){R=G,P||(P=!0,ne())}function le(G,F){j=x(function(){G(e.unstable_now())},F)}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(G){G.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,oe(T))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var A=p;p=F;try{return G()}finally{p=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,F){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var A=p;p=G;try{return F()}finally{p=A}},e.unstable_scheduleCallback=function(G,F,A){var B=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?B+A:B):A=B,G){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=A+re,G={id:f++,callback:F,priorityLevel:G,startTime:A,expirationTime:re,sortIndex:-1},A>B?(G.sortIndex=A,t(c,G),n(l)===null&&G===n(c)&&(y?(b(j),j=-1):y=!0,le(C,A-B))):(G.sortIndex=re,t(l,G),v||g||(v=!0,oe(T))),G},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(G){var F=p;return function(){var A=p;p=F;try{return G.apply(this,arguments)}finally{p=A}}}})(oR);iR.exports=oR;var xU=iR.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var aR=H,Ur=xU;function Ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sR=new Set,ad={};function al(e,t){Pc(e,t),Pc(e+"Capture",t)}function Pc(e,t){for(ad[e]=t,e=0;e<t.length;e++)sR.add(t[e])}var ko=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wb=Object.prototype.hasOwnProperty,SU=/^[: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]*$/,MT={},DT={};function OU(e){return wb.call(DT,e)?!0:wb.call(MT,e)?!1:SU.test(e)?DT[e]=!0:(MT[e]=!0,!1)}function CU(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function EU(e,t,n,r){if(t===null||typeof t>"u"||CU(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Wn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Wn[e]=new gr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Wn[t]=new gr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Wn[e]=new gr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Wn[e]=new gr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Wn[e]=new gr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Wn[e]=new gr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Wn[e]=new gr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Wn[e]=new gr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Wn[e]=new gr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jx=/[\-:]([a-z])/g;function e2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jx,e2);Wn[t]=new gr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jx,e2);Wn[t]=new gr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jx,e2);Wn[t]=new gr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Wn[e]=new gr(e,1,!1,e.toLowerCase(),null,!1,!1)});Wn.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Wn[e]=new gr(e,1,!1,e.toLowerCase(),null,!0,!0)});function t2(e,t,n,r){var i=Wn.hasOwnProperty(t)?Wn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(EU(t,n,i,r)&&(n=null),r||i===null?OU(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Uo=aR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pp=Symbol.for("react.element"),Yl=Symbol.for("react.portal"),ql=Symbol.for("react.fragment"),n2=Symbol.for("react.strict_mode"),xb=Symbol.for("react.profiler"),lR=Symbol.for("react.provider"),cR=Symbol.for("react.context"),r2=Symbol.for("react.forward_ref"),Sb=Symbol.for("react.suspense"),Ob=Symbol.for("react.suspense_list"),i2=Symbol.for("react.memo"),aa=Symbol.for("react.lazy"),uR=Symbol.for("react.offscreen"),LT=Symbol.iterator;function $u(e){return e===null||typeof e!="object"?null:(e=LT&&e[LT]||e["@@iterator"],typeof e=="function"?e:null)}var qt=Object.assign,P0;function cf(e){if(P0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);P0=t&&t[1]||""}return`
|
||
`+P0+e}var k0=!1;function M0(e,t){if(!e||k0)return"";k0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{k0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cf(e):""}function TU(e){switch(e.tag){case 5:return cf(e.type);case 16:return cf("Lazy");case 13:return cf("Suspense");case 19:return cf("SuspenseList");case 0:case 2:case 15:return e=M0(e.type,!1),e;case 11:return e=M0(e.type.render,!1),e;case 1:return e=M0(e.type,!0),e;default:return""}}function Cb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ql:return"Fragment";case Yl:return"Portal";case xb:return"Profiler";case n2:return"StrictMode";case Sb:return"Suspense";case Ob:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cR:return(e.displayName||"Context")+".Consumer";case lR:return(e._context.displayName||"Context")+".Provider";case r2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case i2:return t=e.displayName||null,t!==null?t:Cb(e.type)||"Memo";case aa:t=e._payload,e=e._init;try{return Cb(e(t))}catch{}}return null}function PU(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cb(t);case 8:return t===n2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ua(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kU(e){var t=fR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mp(e){e._valueTracker||(e._valueTracker=kU(e))}function dR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Eb(e,t){var n=t.checked;return qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function RT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ua(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hR(e,t){t=t.checked,t!=null&&t2(e,"checked",t,!1)}function Tb(e,t){hR(e,t);var n=Ua(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pb(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pb(e,t.type,Ua(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Pb(e,t,n){(t!=="number"||Wm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var uf=Array.isArray;function dc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ua(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function kb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ce(91));return qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function NT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ce(92));if(uf(n)){if(1<n.length)throw Error(Ce(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ua(n)}}function pR(e,t){var n=Ua(t.value),r=Ua(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function AT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mR(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Mb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gp,gR=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(gp=gp||document.createElement("div"),gp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},MU=["Webkit","ms","Moz","O"];Object.keys(Tf).forEach(function(e){MU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tf[t]=Tf[e]})});function vR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tf.hasOwnProperty(e)&&Tf[e]?(""+t).trim():t+"px"}function yR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var DU=qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Db(e,t){if(t){if(DU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ce(62))}}function Lb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rb=null;function o2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jb=null,hc=null,pc=null;function IT(e){if(e=rh(e)){if(typeof jb!="function")throw Error(Ce(280));var t=e.stateNode;t&&(t=Rv(t),jb(e.stateNode,e.type,t))}}function _R(e){hc?pc?pc.push(e):pc=[e]:hc=e}function bR(){if(hc){var e=hc,t=pc;if(pc=hc=null,IT(e),t)for(e=0;e<t.length;e++)IT(t[e])}}function wR(e,t){return e(t)}function xR(){}var D0=!1;function SR(e,t,n){if(D0)return e(t,n);D0=!0;try{return wR(e,t,n)}finally{D0=!1,(hc!==null||pc!==null)&&(xR(),bR())}}function ld(e,t){var n=e.stateNode;if(n===null)return null;var r=Rv(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ce(231,t,typeof n));return n}var Nb=!1;if(ko)try{var Bu={};Object.defineProperty(Bu,"passive",{get:function(){Nb=!0}}),window.addEventListener("test",Bu,Bu),window.removeEventListener("test",Bu,Bu)}catch{Nb=!1}function LU(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Pf=!1,Ym=null,qm=!1,Ab=null,RU={onError:function(e){Pf=!0,Ym=e}};function jU(e,t,n,r,i,o,a,s,l){Pf=!1,Ym=null,LU.apply(RU,arguments)}function NU(e,t,n,r,i,o,a,s,l){if(jU.apply(this,arguments),Pf){if(Pf){var c=Ym;Pf=!1,Ym=null}else throw Error(Ce(198));qm||(qm=!0,Ab=c)}}function sl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function OR(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function FT(e){if(sl(e)!==e)throw Error(Ce(188))}function AU(e){var t=e.alternate;if(!t){if(t=sl(e),t===null)throw Error(Ce(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return FT(i),e;if(o===r)return FT(i),t;o=o.sibling}throw Error(Ce(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Ce(189))}}if(n.alternate!==r)throw Error(Ce(190))}if(n.tag!==3)throw Error(Ce(188));return n.stateNode.current===n?e:t}function CR(e){return e=AU(e),e!==null?ER(e):null}function ER(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ER(e);if(t!==null)return t;e=e.sibling}return null}var TR=Ur.unstable_scheduleCallback,$T=Ur.unstable_cancelCallback,IU=Ur.unstable_shouldYield,FU=Ur.unstable_requestPaint,on=Ur.unstable_now,$U=Ur.unstable_getCurrentPriorityLevel,a2=Ur.unstable_ImmediatePriority,PR=Ur.unstable_UserBlockingPriority,Gm=Ur.unstable_NormalPriority,BU=Ur.unstable_LowPriority,kR=Ur.unstable_IdlePriority,kv=null,Ji=null;function UU(e){if(Ji&&typeof Ji.onCommitFiberRoot=="function")try{Ji.onCommitFiberRoot(kv,e,void 0,(e.current.flags&128)===128)}catch{}}var Mi=Math.clz32?Math.clz32:VU,zU=Math.log,HU=Math.LN2;function VU(e){return e>>>=0,e===0?32:31-(zU(e)/HU|0)|0}var vp=64,yp=4194304;function ff(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Km(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=ff(s):(o&=a,o!==0&&(r=ff(o)))}else a=n&~i,a!==0?r=ff(a):o!==0&&(r=ff(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mi(t),i=1<<n,r|=e[n],t&=~i;return r}function WU(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function YU(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Mi(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=WU(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Ib(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function MR(){var e=vp;return vp<<=1,!(vp&4194240)&&(vp=64),e}function L0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function th(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mi(t),e[t]=n}function qU(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Mi(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function s2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var xt=0;function DR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var LR,l2,RR,jR,NR,Fb=!1,_p=[],Ta=null,Pa=null,ka=null,cd=new Map,ud=new Map,fa=[],GU="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function BT(e,t){switch(e){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":ka=null;break;case"pointerover":case"pointerout":cd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ud.delete(t.pointerId)}}function Uu(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=rh(t),t!==null&&l2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function KU(e,t,n,r,i){switch(t){case"focusin":return Ta=Uu(Ta,e,t,n,r,i),!0;case"dragenter":return Pa=Uu(Pa,e,t,n,r,i),!0;case"mouseover":return ka=Uu(ka,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return cd.set(o,Uu(cd.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ud.set(o,Uu(ud.get(o)||null,e,t,n,r,i)),!0}return!1}function AR(e){var t=ks(e.target);if(t!==null){var n=sl(t);if(n!==null){if(t=n.tag,t===13){if(t=OR(n),t!==null){e.blockedOn=t,NR(e.priority,function(){RR(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$b(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Rb=r,n.target.dispatchEvent(r),Rb=null}else return t=rh(n),t!==null&&l2(t),e.blockedOn=n,!1;t.shift()}return!0}function UT(e,t,n){mm(e)&&n.delete(t)}function ZU(){Fb=!1,Ta!==null&&mm(Ta)&&(Ta=null),Pa!==null&&mm(Pa)&&(Pa=null),ka!==null&&mm(ka)&&(ka=null),cd.forEach(UT),ud.forEach(UT)}function zu(e,t){e.blockedOn===t&&(e.blockedOn=null,Fb||(Fb=!0,Ur.unstable_scheduleCallback(Ur.unstable_NormalPriority,ZU)))}function fd(e){function t(i){return zu(i,e)}if(0<_p.length){zu(_p[0],e);for(var n=1;n<_p.length;n++){var r=_p[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ta!==null&&zu(Ta,e),Pa!==null&&zu(Pa,e),ka!==null&&zu(ka,e),cd.forEach(t),ud.forEach(t),n=0;n<fa.length;n++)r=fa[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<fa.length&&(n=fa[0],n.blockedOn===null);)AR(n),n.blockedOn===null&&fa.shift()}var mc=Uo.ReactCurrentBatchConfig,Zm=!0;function QU(e,t,n,r){var i=xt,o=mc.transition;mc.transition=null;try{xt=1,c2(e,t,n,r)}finally{xt=i,mc.transition=o}}function XU(e,t,n,r){var i=xt,o=mc.transition;mc.transition=null;try{xt=4,c2(e,t,n,r)}finally{xt=i,mc.transition=o}}function c2(e,t,n,r){if(Zm){var i=$b(e,t,n,r);if(i===null)z0(e,t,r,Qm,n),BT(e,r);else if(KU(i,e,t,n,r))r.stopPropagation();else if(BT(e,r),t&4&&-1<GU.indexOf(e)){for(;i!==null;){var o=rh(i);if(o!==null&&LR(o),o=$b(e,t,n,r),o===null&&z0(e,t,r,Qm,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else z0(e,t,r,null,n)}}var Qm=null;function $b(e,t,n,r){if(Qm=null,e=o2(r),e=ks(e),e!==null)if(t=sl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=OR(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qm=e,null}function IR(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($U()){case a2:return 1;case PR:return 4;case Gm:case BU:return 16;case kR:return 536870912;default:return 16}default:return 16}}var _a=null,u2=null,gm=null;function FR(){if(gm)return gm;var e,t=u2,n=t.length,r,i="value"in _a?_a.value:_a.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return gm=i.slice(e,1<r?1-r:void 0)}function vm(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bp(){return!0}function zT(){return!1}function qr(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?bp:zT,this.isPropagationStopped=zT,this}return qt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bp)},persist:function(){},isPersistent:bp}),t}var iu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},f2=qr(iu),nh=qt({},iu,{view:0,detail:0}),JU=qr(nh),R0,j0,Hu,Mv=qt({},nh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:d2,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hu&&(Hu&&e.type==="mousemove"?(R0=e.screenX-Hu.screenX,j0=e.screenY-Hu.screenY):j0=R0=0,Hu=e),R0)},movementY:function(e){return"movementY"in e?e.movementY:j0}}),HT=qr(Mv),ez=qt({},Mv,{dataTransfer:0}),tz=qr(ez),nz=qt({},nh,{relatedTarget:0}),N0=qr(nz),rz=qt({},iu,{animationName:0,elapsedTime:0,pseudoElement:0}),iz=qr(rz),oz=qt({},iu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),az=qr(oz),sz=qt({},iu,{data:0}),VT=qr(sz),lz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cz={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"},uz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uz[e])?!!t[e]:!1}function d2(){return fz}var dz=qt({},nh,{key:function(e){if(e.key){var t=lz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:d2,charCode:function(e){return e.type==="keypress"?vm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hz=qr(dz),pz=qt({},Mv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),WT=qr(pz),mz=qt({},nh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:d2}),gz=qr(mz),vz=qt({},iu,{propertyName:0,elapsedTime:0,pseudoElement:0}),yz=qr(vz),_z=qt({},Mv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bz=qr(_z),wz=[9,13,27,32],h2=ko&&"CompositionEvent"in window,kf=null;ko&&"documentMode"in document&&(kf=document.documentMode);var xz=ko&&"TextEvent"in window&&!kf,$R=ko&&(!h2||kf&&8<kf&&11>=kf),YT=String.fromCharCode(32),qT=!1;function BR(e,t){switch(e){case"keyup":return wz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gl=!1;function Sz(e,t){switch(e){case"compositionend":return UR(t);case"keypress":return t.which!==32?null:(qT=!0,YT);case"textInput":return e=t.data,e===YT&&qT?null:e;default:return null}}function Oz(e,t){if(Gl)return e==="compositionend"||!h2&&BR(e,t)?(e=FR(),gm=u2=_a=null,Gl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $R&&t.locale!=="ko"?null:t.data;default:return null}}var Cz={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 GT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cz[e.type]:t==="textarea"}function zR(e,t,n,r){_R(r),t=Xm(t,"onChange"),0<t.length&&(n=new f2("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mf=null,dd=null;function Ez(e){JR(e,0)}function Dv(e){var t=Ql(e);if(dR(t))return e}function Tz(e,t){if(e==="change")return t}var HR=!1;if(ko){var A0;if(ko){var I0="oninput"in document;if(!I0){var KT=document.createElement("div");KT.setAttribute("oninput","return;"),I0=typeof KT.oninput=="function"}A0=I0}else A0=!1;HR=A0&&(!document.documentMode||9<document.documentMode)}function ZT(){Mf&&(Mf.detachEvent("onpropertychange",VR),dd=Mf=null)}function VR(e){if(e.propertyName==="value"&&Dv(dd)){var t=[];zR(t,dd,e,o2(e)),SR(Ez,t)}}function Pz(e,t,n){e==="focusin"?(ZT(),Mf=t,dd=n,Mf.attachEvent("onpropertychange",VR)):e==="focusout"&&ZT()}function kz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dv(dd)}function Mz(e,t){if(e==="click")return Dv(t)}function Dz(e,t){if(e==="input"||e==="change")return Dv(t)}function Lz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ri=typeof Object.is=="function"?Object.is:Lz;function hd(e,t){if(Ri(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!wb.call(t,i)||!Ri(e[i],t[i]))return!1}return!0}function QT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function XT(e,t){var n=QT(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=QT(n)}}function WR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YR(){for(var e=window,t=Wm();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wm(e.document)}return t}function p2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Rz(e){var t=YR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WR(n.ownerDocument.documentElement,n)){if(r!==null&&p2(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=XT(n,o);var a=XT(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var jz=ko&&"documentMode"in document&&11>=document.documentMode,Kl=null,Bb=null,Df=null,Ub=!1;function JT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ub||Kl==null||Kl!==Wm(r)||(r=Kl,"selectionStart"in r&&p2(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Df&&hd(Df,r)||(Df=r,r=Xm(Bb,"onSelect"),0<r.length&&(t=new f2("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Kl)))}function wp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:wp("Animation","AnimationEnd"),animationiteration:wp("Animation","AnimationIteration"),animationstart:wp("Animation","AnimationStart"),transitionend:wp("Transition","TransitionEnd")},F0={},qR={};ko&&(qR=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function Lv(e){if(F0[e])return F0[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qR)return F0[e]=t[n];return e}var GR=Lv("animationend"),KR=Lv("animationiteration"),ZR=Lv("animationstart"),QR=Lv("transitionend"),XR=new Map,eP="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qa(e,t){XR.set(e,t),al(t,[e])}for(var $0=0;$0<eP.length;$0++){var B0=eP[$0],Nz=B0.toLowerCase(),Az=B0[0].toUpperCase()+B0.slice(1);Qa(Nz,"on"+Az)}Qa(GR,"onAnimationEnd");Qa(KR,"onAnimationIteration");Qa(ZR,"onAnimationStart");Qa("dblclick","onDoubleClick");Qa("focusin","onFocus");Qa("focusout","onBlur");Qa(QR,"onTransitionEnd");Pc("onMouseEnter",["mouseout","mouseover"]);Pc("onMouseLeave",["mouseout","mouseover"]);Pc("onPointerEnter",["pointerout","pointerover"]);Pc("onPointerLeave",["pointerout","pointerover"]);al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));al("onBeforeInput",["compositionend","keypress","textInput","paste"]);al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var df="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(" "),Iz=new Set("cancel close invalid load scroll toggle".split(" ").concat(df));function tP(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,NU(r,t,void 0,e),e.currentTarget=null}function JR(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;tP(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;tP(i,s,c),o=l}}}if(qm)throw e=Ab,qm=!1,Ab=null,e}function Dt(e,t){var n=t[Yb];n===void 0&&(n=t[Yb]=new Set);var r=e+"__bubble";n.has(r)||(ej(t,e,2,!1),n.add(r))}function U0(e,t,n){var r=0;t&&(r|=4),ej(n,e,r,t)}var xp="_reactListening"+Math.random().toString(36).slice(2);function pd(e){if(!e[xp]){e[xp]=!0,sR.forEach(function(n){n!=="selectionchange"&&(Iz.has(n)||U0(n,!1,e),U0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xp]||(t[xp]=!0,U0("selectionchange",!1,t))}}function ej(e,t,n,r){switch(IR(t)){case 1:var i=QU;break;case 4:i=XU;break;default:i=c2}n=i.bind(null,t,n,e),i=void 0,!Nb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function z0(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=ks(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}SR(function(){var c=o,f=o2(n),h=[];e:{var p=XR.get(e);if(p!==void 0){var g=f2,v=e;switch(e){case"keypress":if(vm(n)===0)break e;case"keydown":case"keyup":g=hz;break;case"focusin":v="focus",g=N0;break;case"focusout":v="blur",g=N0;break;case"beforeblur":case"afterblur":g=N0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=HT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=tz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=gz;break;case GR:case KR:case ZR:g=iz;break;case QR:g=yz;break;case"scroll":g=JU;break;case"wheel":g=bz;break;case"copy":case"cut":case"paste":g=az;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=WT}var y=(t&4)!==0,x=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var w=c,S;w!==null;){S=w;var C=S.stateNode;if(S.tag===5&&C!==null&&(S=C,b!==null&&(C=ld(w,b),C!=null&&y.push(md(w,C,S)))),x)break;w=w.return}0<y.length&&(p=new g(p,v,null,n,f),h.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==Rb&&(v=n.relatedTarget||n.fromElement)&&(ks(v)||v[Mo]))break e;if((g||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=c,v=v?ks(v):null,v!==null&&(x=sl(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=c),g!==v)){if(y=HT,C="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(y=WT,C="onPointerLeave",b="onPointerEnter",w="pointer"),x=g==null?p:Ql(g),S=v==null?p:Ql(v),p=new y(C,w+"leave",g,n,f),p.target=x,p.relatedTarget=S,C=null,ks(f)===c&&(y=new y(b,w+"enter",v,n,f),y.target=S,y.relatedTarget=x,C=y),x=C,g&&v)t:{for(y=g,b=v,w=0,S=y;S;S=Ml(S))w++;for(S=0,C=b;C;C=Ml(C))S++;for(;0<w-S;)y=Ml(y),w--;for(;0<S-w;)b=Ml(b),S--;for(;w--;){if(y===b||b!==null&&y===b.alternate)break t;y=Ml(y),b=Ml(b)}y=null}else y=null;g!==null&&nP(h,p,g,y,!1),v!==null&&x!==null&&nP(h,x,v,y,!0)}}e:{if(p=c?Ql(c):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var T=Tz;else if(GT(p))if(HR)T=Dz;else{T=kz;var P=Pz}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(T=Mz);if(T&&(T=T(e,c))){zR(h,T,n,f);break e}P&&P(e,p,c),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&Pb(p,"number",p.value)}switch(P=c?Ql(c):window,e){case"focusin":(GT(P)||P.contentEditable==="true")&&(Kl=P,Bb=c,Df=null);break;case"focusout":Df=Bb=Kl=null;break;case"mousedown":Ub=!0;break;case"contextmenu":case"mouseup":case"dragend":Ub=!1,JT(h,n,f);break;case"selectionchange":if(jz)break;case"keydown":case"keyup":JT(h,n,f)}var R;if(h2)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Gl?BR(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&($R&&n.locale!=="ko"&&(Gl||j!=="onCompositionStart"?j==="onCompositionEnd"&&Gl&&(R=FR()):(_a=f,u2="value"in _a?_a.value:_a.textContent,Gl=!0)),P=Xm(c,j),0<P.length&&(j=new VT(j,e,null,n,f),h.push({event:j,listeners:P}),R?j.data=R:(R=UR(n),R!==null&&(j.data=R)))),(R=xz?Sz(e,n):Oz(e,n))&&(c=Xm(c,"onBeforeInput"),0<c.length&&(f=new VT("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=R))}JR(h,t)})}function md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xm(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ld(e,n),o!=null&&r.unshift(md(e,o,i)),o=ld(e,t),o!=null&&r.push(md(e,o,i))),e=e.return}return r}function Ml(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nP(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=ld(n,o),l!=null&&a.unshift(md(n,l,s))):i||(l=ld(n,o),l!=null&&a.push(md(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Fz=/\r\n?/g,$z=/\u0000|\uFFFD/g;function rP(e){return(typeof e=="string"?e:""+e).replace(Fz,`
|
||
`).replace($z,"")}function Sp(e,t,n){if(t=rP(t),rP(e)!==t&&n)throw Error(Ce(425))}function Jm(){}var zb=null,Hb=null;function Vb(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wb=typeof setTimeout=="function"?setTimeout:void 0,Bz=typeof clearTimeout=="function"?clearTimeout:void 0,iP=typeof Promise=="function"?Promise:void 0,Uz=typeof queueMicrotask=="function"?queueMicrotask:typeof iP<"u"?function(e){return iP.resolve(null).then(e).catch(zz)}:Wb;function zz(e){setTimeout(function(){throw e})}function H0(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),fd(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);fd(t)}function Ma(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function oP(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ou=Math.random().toString(36).slice(2),qi="__reactFiber$"+ou,gd="__reactProps$"+ou,Mo="__reactContainer$"+ou,Yb="__reactEvents$"+ou,Hz="__reactListeners$"+ou,Vz="__reactHandles$"+ou;function ks(e){var t=e[qi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mo]||n[qi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=oP(e);e!==null;){if(n=e[qi])return n;e=oP(e)}return t}e=n,n=e.parentNode}return null}function rh(e){return e=e[qi]||e[Mo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ql(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ce(33))}function Rv(e){return e[gd]||null}var qb=[],Xl=-1;function Xa(e){return{current:e}}function At(e){0>Xl||(e.current=qb[Xl],qb[Xl]=null,Xl--)}function kt(e,t){Xl++,qb[Xl]=e.current,e.current=t}var za={},nr=Xa(za),xr=Xa(!1),qs=za;function kc(e,t){var n=e.type.contextTypes;if(!n)return za;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Sr(e){return e=e.childContextTypes,e!=null}function eg(){At(xr),At(nr)}function aP(e,t,n){if(nr.current!==za)throw Error(Ce(168));kt(nr,t),kt(xr,n)}function tj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ce(108,PU(e)||"Unknown",i));return qt({},n,r)}function tg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||za,qs=nr.current,kt(nr,e),kt(xr,xr.current),!0}function sP(e,t,n){var r=e.stateNode;if(!r)throw Error(Ce(169));n?(e=tj(e,t,qs),r.__reactInternalMemoizedMergedChildContext=e,At(xr),At(nr),kt(nr,e)):At(xr),kt(xr,n)}var _o=null,jv=!1,V0=!1;function nj(e){_o===null?_o=[e]:_o.push(e)}function Wz(e){jv=!0,nj(e)}function Ja(){if(!V0&&_o!==null){V0=!0;var e=0,t=xt;try{var n=_o;for(xt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}_o=null,jv=!1}catch(i){throw _o!==null&&(_o=_o.slice(e+1)),TR(a2,Ja),i}finally{xt=t,V0=!1}}return null}var Jl=[],ec=0,ng=null,rg=0,ti=[],ni=0,Gs=null,Co=1,Eo="";function ws(e,t){Jl[ec++]=rg,Jl[ec++]=ng,ng=e,rg=t}function rj(e,t,n){ti[ni++]=Co,ti[ni++]=Eo,ti[ni++]=Gs,Gs=e;var r=Co;e=Eo;var i=32-Mi(r)-1;r&=~(1<<i),n+=1;var o=32-Mi(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Co=1<<32-Mi(t)+i|n<<i|r,Eo=o+e}else Co=1<<o|n<<i|r,Eo=e}function m2(e){e.return!==null&&(ws(e,1),rj(e,1,0))}function g2(e){for(;e===ng;)ng=Jl[--ec],Jl[ec]=null,rg=Jl[--ec],Jl[ec]=null;for(;e===Gs;)Gs=ti[--ni],ti[ni]=null,Eo=ti[--ni],ti[ni]=null,Co=ti[--ni],ti[ni]=null}var Fr=null,Rr=null,Bt=!1,Si=null;function ij(e,t){var n=ii(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function lP(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Fr=e,Rr=Ma(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Fr=e,Rr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gs!==null?{id:Co,overflow:Eo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ii(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fr=e,Rr=null,!0):!1;default:return!1}}function Gb(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kb(e){if(Bt){var t=Rr;if(t){var n=t;if(!lP(e,t)){if(Gb(e))throw Error(Ce(418));t=Ma(n.nextSibling);var r=Fr;t&&lP(e,t)?ij(r,n):(e.flags=e.flags&-4097|2,Bt=!1,Fr=e)}}else{if(Gb(e))throw Error(Ce(418));e.flags=e.flags&-4097|2,Bt=!1,Fr=e}}}function cP(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fr=e}function Op(e){if(e!==Fr)return!1;if(!Bt)return cP(e),Bt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vb(e.type,e.memoizedProps)),t&&(t=Rr)){if(Gb(e))throw oj(),Error(Ce(418));for(;t;)ij(e,t),t=Ma(t.nextSibling)}if(cP(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ce(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rr=Ma(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rr=null}}else Rr=Fr?Ma(e.stateNode.nextSibling):null;return!0}function oj(){for(var e=Rr;e;)e=Ma(e.nextSibling)}function Mc(){Rr=Fr=null,Bt=!1}function v2(e){Si===null?Si=[e]:Si.push(e)}var Yz=Uo.ReactCurrentBatchConfig;function wi(e,t){if(e&&e.defaultProps){t=qt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ig=Xa(null),og=null,tc=null,y2=null;function _2(){y2=tc=og=null}function b2(e){var t=ig.current;At(ig),e._currentValue=t}function Zb(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function gc(e,t){og=e,y2=tc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wr=!0),e.firstContext=null)}function ci(e){var t=e._currentValue;if(y2!==e)if(e={context:e,memoizedValue:t,next:null},tc===null){if(og===null)throw Error(Ce(308));tc=e,og.dependencies={lanes:0,firstContext:e}}else tc=tc.next=e;return t}var Ms=null;function w2(e){Ms===null?Ms=[e]:Ms.push(e)}function aj(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,w2(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sa=!1;function x2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,dt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return i=r.interleaved,i===null?(t.next=t,w2(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function ym(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,s2(e,n)}}function uP(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ag(e,t,n,r){var i=e.updateQueue;sa=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;a=0,f=c=l=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(p=t,g=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(g,h,p);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(g,h,p):v,p==null)break e;h=qt({},h,p);break e;case 2:sa=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=g,l=h):f=f.next=g,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Zs|=a,e.lanes=a,e.memoizedState=h}}function fP(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ce(191,i));i.call(r)}}}var lj=new aR.Component().refs;function Qb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:qt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Nv={isMounted:function(e){return(e=e._reactInternals)?sl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pr(),i=Ra(e),o=To(r,i);o.payload=t,n!=null&&(o.callback=n),t=Da(e,o,i),t!==null&&(Di(t,e,i,r),ym(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pr(),i=Ra(e),o=To(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Da(e,o,i),t!==null&&(Di(t,e,i,r),ym(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pr(),r=Ra(e),i=To(n,r);i.tag=2,t!=null&&(i.callback=t),t=Da(e,i,r),t!==null&&(Di(t,e,r,n),ym(t,e,r))}};function dP(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!hd(n,r)||!hd(i,o):!0}function cj(e,t,n){var r=!1,i=za,o=t.contextType;return typeof o=="object"&&o!==null?o=ci(o):(i=Sr(t)?qs:nr.current,r=t.contextTypes,o=(r=r!=null)?kc(e,i):za),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Nv,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function hP(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Nv.enqueueReplaceState(t,t.state,null)}function Xb(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=lj,x2(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ci(o):(o=Sr(t)?qs:nr.current,i.context=kc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Qb(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Nv.enqueueReplaceState(i,i.state,null),ag(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ce(309));var r=n.stateNode}if(!r)throw Error(Ce(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;s===lj&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ce(284));if(!n._owner)throw Error(Ce(290,e))}return e}function Cp(e,t){throw e=Object.prototype.toString.call(t),Error(Ce(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pP(e){var t=e._init;return t(e._payload)}function uj(e){function t(b,w){if(e){var S=b.deletions;S===null?(b.deletions=[w],b.flags|=16):S.push(w)}}function n(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function r(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=ja(b,w),b.index=0,b.sibling=null,b}function o(b,w,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<w?(b.flags|=2,w):S):(b.flags|=2,w)):(b.flags|=1048576,w)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,w,S,C){return w===null||w.tag!==6?(w=Q0(S,b.mode,C),w.return=b,w):(w=i(w,S),w.return=b,w)}function l(b,w,S,C){var T=S.type;return T===ql?f(b,w,S.props.children,C,S.key):w!==null&&(w.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===aa&&pP(T)===w.type)?(C=i(w,S.props),C.ref=Vu(b,w,S),C.return=b,C):(C=Om(S.type,S.key,S.props,null,b.mode,C),C.ref=Vu(b,w,S),C.return=b,C)}function c(b,w,S,C){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=X0(S,b.mode,C),w.return=b,w):(w=i(w,S.children||[]),w.return=b,w)}function f(b,w,S,C,T){return w===null||w.tag!==7?(w=Fs(S,b.mode,C,T),w.return=b,w):(w=i(w,S),w.return=b,w)}function h(b,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=Q0(""+w,b.mode,S),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case pp:return S=Om(w.type,w.key,w.props,null,b.mode,S),S.ref=Vu(b,null,w),S.return=b,S;case Yl:return w=X0(w,b.mode,S),w.return=b,w;case aa:var C=w._init;return h(b,C(w._payload),S)}if(uf(w)||$u(w))return w=Fs(w,b.mode,S,null),w.return=b,w;Cp(b,w)}return null}function p(b,w,S,C){var T=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return T!==null?null:s(b,w,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case pp:return S.key===T?l(b,w,S,C):null;case Yl:return S.key===T?c(b,w,S,C):null;case aa:return T=S._init,p(b,w,T(S._payload),C)}if(uf(S)||$u(S))return T!==null?null:f(b,w,S,C,null);Cp(b,S)}return null}function g(b,w,S,C,T){if(typeof C=="string"&&C!==""||typeof C=="number")return b=b.get(S)||null,s(w,b,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case pp:return b=b.get(C.key===null?S:C.key)||null,l(w,b,C,T);case Yl:return b=b.get(C.key===null?S:C.key)||null,c(w,b,C,T);case aa:var P=C._init;return g(b,w,S,P(C._payload),T)}if(uf(C)||$u(C))return b=b.get(S)||null,f(w,b,C,T,null);Cp(w,C)}return null}function v(b,w,S,C){for(var T=null,P=null,R=w,j=w=0,z=null;R!==null&&j<S.length;j++){R.index>j?(z=R,R=null):z=R.sibling;var N=p(b,R,S[j],C);if(N===null){R===null&&(R=z);break}e&&R&&N.alternate===null&&t(b,R),w=o(N,w,j),P===null?T=N:P.sibling=N,P=N,R=z}if(j===S.length)return n(b,R),Bt&&ws(b,j),T;if(R===null){for(;j<S.length;j++)R=h(b,S[j],C),R!==null&&(w=o(R,w,j),P===null?T=R:P.sibling=R,P=R);return Bt&&ws(b,j),T}for(R=r(b,R);j<S.length;j++)z=g(R,b,j,S[j],C),z!==null&&(e&&z.alternate!==null&&R.delete(z.key===null?j:z.key),w=o(z,w,j),P===null?T=z:P.sibling=z,P=z);return e&&R.forEach(function(V){return t(b,V)}),Bt&&ws(b,j),T}function y(b,w,S,C){var T=$u(S);if(typeof T!="function")throw Error(Ce(150));if(S=T.call(S),S==null)throw Error(Ce(151));for(var P=T=null,R=w,j=w=0,z=null,N=S.next();R!==null&&!N.done;j++,N=S.next()){R.index>j?(z=R,R=null):z=R.sibling;var V=p(b,R,N.value,C);if(V===null){R===null&&(R=z);break}e&&R&&V.alternate===null&&t(b,R),w=o(V,w,j),P===null?T=V:P.sibling=V,P=V,R=z}if(N.done)return n(b,R),Bt&&ws(b,j),T;if(R===null){for(;!N.done;j++,N=S.next())N=h(b,N.value,C),N!==null&&(w=o(N,w,j),P===null?T=N:P.sibling=N,P=N);return Bt&&ws(b,j),T}for(R=r(b,R);!N.done;j++,N=S.next())N=g(R,b,j,N.value,C),N!==null&&(e&&N.alternate!==null&&R.delete(N.key===null?j:N.key),w=o(N,w,j),P===null?T=N:P.sibling=N,P=N);return e&&R.forEach(function(W){return t(b,W)}),Bt&&ws(b,j),T}function x(b,w,S,C){if(typeof S=="object"&&S!==null&&S.type===ql&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case pp:e:{for(var T=S.key,P=w;P!==null;){if(P.key===T){if(T=S.type,T===ql){if(P.tag===7){n(b,P.sibling),w=i(P,S.props.children),w.return=b,b=w;break e}}else if(P.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===aa&&pP(T)===P.type){n(b,P.sibling),w=i(P,S.props),w.ref=Vu(b,P,S),w.return=b,b=w;break e}n(b,P);break}else t(b,P);P=P.sibling}S.type===ql?(w=Fs(S.props.children,b.mode,C,S.key),w.return=b,b=w):(C=Om(S.type,S.key,S.props,null,b.mode,C),C.ref=Vu(b,w,S),C.return=b,b=C)}return a(b);case Yl:e:{for(P=S.key;w!==null;){if(w.key===P)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(b,w.sibling),w=i(w,S.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=X0(S,b.mode,C),w.return=b,b=w}return a(b);case aa:return P=S._init,x(b,w,P(S._payload),C)}if(uf(S))return v(b,w,S,C);if($u(S))return y(b,w,S,C);Cp(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(b,w.sibling),w=i(w,S),w.return=b,b=w):(n(b,w),w=Q0(S,b.mode,C),w.return=b,b=w),a(b)):n(b,w)}return x}var Dc=uj(!0),fj=uj(!1),ih={},eo=Xa(ih),vd=Xa(ih),yd=Xa(ih);function Ds(e){if(e===ih)throw Error(Ce(174));return e}function S2(e,t){switch(kt(yd,t),kt(vd,e),kt(eo,ih),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mb(t,e)}At(eo),kt(eo,t)}function Lc(){At(eo),At(vd),At(yd)}function dj(e){Ds(yd.current);var t=Ds(eo.current),n=Mb(t,e.type);t!==n&&(kt(vd,e),kt(eo,n))}function O2(e){vd.current===e&&(At(eo),At(vd))}var Vt=Xa(0);function sg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var W0=[];function C2(){for(var e=0;e<W0.length;e++)W0[e]._workInProgressVersionPrimary=null;W0.length=0}var _m=Uo.ReactCurrentDispatcher,Y0=Uo.ReactCurrentBatchConfig,Ks=0,Yt=null,yn=null,Tn=null,lg=!1,Lf=!1,_d=0,qz=0;function qn(){throw Error(Ce(321))}function E2(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ri(e[n],t[n]))return!1;return!0}function T2(e,t,n,r,i,o){if(Ks=o,Yt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_m.current=e===null||e.memoizedState===null?Qz:Xz,e=n(r,i),Lf){o=0;do{if(Lf=!1,_d=0,25<=o)throw Error(Ce(301));o+=1,Tn=yn=null,t.updateQueue=null,_m.current=Jz,e=n(r,i)}while(Lf)}if(_m.current=cg,t=yn!==null&&yn.next!==null,Ks=0,Tn=yn=Yt=null,lg=!1,t)throw Error(Ce(300));return e}function P2(){var e=_d!==0;return _d=0,e}function Wi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tn===null?Yt.memoizedState=Tn=e:Tn=Tn.next=e,Tn}function ui(){if(yn===null){var e=Yt.alternate;e=e!==null?e.memoizedState:null}else e=yn.next;var t=Tn===null?Yt.memoizedState:Tn.next;if(t!==null)Tn=t,yn=e;else{if(e===null)throw Error(Ce(310));yn=e,e={memoizedState:yn.memoizedState,baseState:yn.baseState,baseQueue:yn.baseQueue,queue:yn.queue,next:null},Tn===null?Yt.memoizedState=Tn=e:Tn=Tn.next=e}return Tn}function bd(e,t){return typeof t=="function"?t(e):t}function q0(e){var t=ui(),n=t.queue;if(n===null)throw Error(Ce(311));n.lastRenderedReducer=e;var r=yn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var f=c.lane;if((Ks&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=h,a=r):l=l.next=h,Yt.lanes|=f,Zs|=f}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,Ri(r,t.memoizedState)||(wr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Yt.lanes|=o,Zs|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function G0(e){var t=ui(),n=t.queue;if(n===null)throw Error(Ce(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ri(o,t.memoizedState)||(wr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hj(){}function pj(e,t){var n=Yt,r=ui(),i=t(),o=!Ri(r.memoizedState,i);if(o&&(r.memoizedState=i,wr=!0),r=r.queue,k2(vj.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Tn!==null&&Tn.memoizedState.tag&1){if(n.flags|=2048,wd(9,gj.bind(null,n,r,i,t),void 0,null),kn===null)throw Error(Ce(349));Ks&30||mj(n,t,i)}return i}function mj(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Yt.updateQueue,t===null?(t={lastEffect:null,stores:null},Yt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gj(e,t,n,r){t.value=n,t.getSnapshot=r,yj(t)&&_j(e)}function vj(e,t,n){return n(function(){yj(t)&&_j(e)})}function yj(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ri(e,n)}catch{return!0}}function _j(e){var t=Do(e,1);t!==null&&Di(t,e,1,-1)}function mP(e){var t=Wi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bd,lastRenderedState:e},t.queue=e,e=e.dispatch=Zz.bind(null,Yt,e),[t.memoizedState,e]}function wd(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Yt.updateQueue,t===null?(t={lastEffect:null,stores:null},Yt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function bj(){return ui().memoizedState}function bm(e,t,n,r){var i=Wi();Yt.flags|=e,i.memoizedState=wd(1|t,n,void 0,r===void 0?null:r)}function Av(e,t,n,r){var i=ui();r=r===void 0?null:r;var o=void 0;if(yn!==null){var a=yn.memoizedState;if(o=a.destroy,r!==null&&E2(r,a.deps)){i.memoizedState=wd(t,n,o,r);return}}Yt.flags|=e,i.memoizedState=wd(1|t,n,o,r)}function gP(e,t){return bm(8390656,8,e,t)}function k2(e,t){return Av(2048,8,e,t)}function wj(e,t){return Av(4,2,e,t)}function xj(e,t){return Av(4,4,e,t)}function Sj(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Oj(e,t,n){return n=n!=null?n.concat([e]):null,Av(4,4,Sj.bind(null,t,e),n)}function M2(){}function Cj(e,t){var n=ui();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&E2(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ej(e,t){var n=ui();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&E2(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Tj(e,t,n){return Ks&21?(Ri(n,t)||(n=MR(),Yt.lanes|=n,Zs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wr=!0),e.memoizedState=n)}function Gz(e,t){var n=xt;xt=n!==0&&4>n?n:4,e(!0);var r=Y0.transition;Y0.transition={};try{e(!1),t()}finally{xt=n,Y0.transition=r}}function Pj(){return ui().memoizedState}function Kz(e,t,n){var r=Ra(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kj(e))Mj(t,n);else if(n=aj(e,t,n,r),n!==null){var i=pr();Di(n,e,r,i),Dj(n,t,r)}}function Zz(e,t,n){var r=Ra(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kj(e))Mj(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Ri(s,a)){var l=t.interleaved;l===null?(i.next=i,w2(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=aj(e,t,i,r),n!==null&&(i=pr(),Di(n,e,r,i),Dj(n,t,r))}}function kj(e){var t=e.alternate;return e===Yt||t!==null&&t===Yt}function Mj(e,t){Lf=lg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,s2(e,n)}}var cg={readContext:ci,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useInsertionEffect:qn,useLayoutEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useMutableSource:qn,useSyncExternalStore:qn,useId:qn,unstable_isNewReconciler:!1},Qz={readContext:ci,useCallback:function(e,t){return Wi().memoizedState=[e,t===void 0?null:t],e},useContext:ci,useEffect:gP,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bm(4194308,4,Sj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bm(4194308,4,e,t)},useInsertionEffect:function(e,t){return bm(4,2,e,t)},useMemo:function(e,t){var n=Wi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Kz.bind(null,Yt,e),[r.memoizedState,e]},useRef:function(e){var t=Wi();return e={current:e},t.memoizedState=e},useState:mP,useDebugValue:M2,useDeferredValue:function(e){return Wi().memoizedState=e},useTransition:function(){var e=mP(!1),t=e[0];return e=Gz.bind(null,e[1]),Wi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Yt,i=Wi();if(Bt){if(n===void 0)throw Error(Ce(407));n=n()}else{if(n=t(),kn===null)throw Error(Ce(349));Ks&30||mj(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gP(vj.bind(null,r,o,e),[e]),r.flags|=2048,wd(9,gj.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Wi(),t=kn.identifierPrefix;if(Bt){var n=Eo,r=Co;n=(r&~(1<<32-Mi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_d++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=qz++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xz={readContext:ci,useCallback:Cj,useContext:ci,useEffect:k2,useImperativeHandle:Oj,useInsertionEffect:wj,useLayoutEffect:xj,useMemo:Ej,useReducer:q0,useRef:bj,useState:function(){return q0(bd)},useDebugValue:M2,useDeferredValue:function(e){var t=ui();return Tj(t,yn.memoizedState,e)},useTransition:function(){var e=q0(bd)[0],t=ui().memoizedState;return[e,t]},useMutableSource:hj,useSyncExternalStore:pj,useId:Pj,unstable_isNewReconciler:!1},Jz={readContext:ci,useCallback:Cj,useContext:ci,useEffect:k2,useImperativeHandle:Oj,useInsertionEffect:wj,useLayoutEffect:xj,useMemo:Ej,useReducer:G0,useRef:bj,useState:function(){return G0(bd)},useDebugValue:M2,useDeferredValue:function(e){var t=ui();return yn===null?t.memoizedState=e:Tj(t,yn.memoizedState,e)},useTransition:function(){var e=G0(bd)[0],t=ui().memoizedState;return[e,t]},useMutableSource:hj,useSyncExternalStore:pj,useId:Pj,unstable_isNewReconciler:!1};function Rc(e,t){try{var n="",r=t;do n+=TU(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function K0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Jb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eH=typeof WeakMap=="function"?WeakMap:Map;function Lj(e,t,n){n=To(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fg||(fg=!0,c1=r),Jb(e,t)},n}function Rj(e,t,n){n=To(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Jb(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Jb(e,t),typeof r!="function"&&(La===null?La=new Set([this]):La.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function vP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eH;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pH.bind(null,e,t,n),t.then(e,e))}function yP(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function _P(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=To(-1,1),t.tag=2,Da(n,t,1))),n.lanes|=1),e)}var tH=Uo.ReactCurrentOwner,wr=!1;function cr(e,t,n,r){t.child=e===null?fj(t,null,n,r):Dc(t,e.child,n,r)}function bP(e,t,n,r,i){n=n.render;var o=t.ref;return gc(t,i),r=T2(e,t,n,r,o,i),n=P2(),e!==null&&!wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lo(e,t,i)):(Bt&&n&&m2(t),t.flags|=1,cr(e,t,r,i),t.child)}function wP(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!F2(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,jj(e,t,o,r,i)):(e=Om(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:hd,n(a,r)&&e.ref===t.ref)return Lo(e,t,i)}return t.flags|=1,e=ja(o,r),e.ref=t.ref,e.return=t,t.child=e}function jj(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(hd(o,r)&&e.ref===t.ref)if(wr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(wr=!0);else return t.lanes=e.lanes,Lo(e,t,i)}return e1(e,t,n,r,i)}function Nj(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(rc,Dr),Dr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,kt(rc,Dr),Dr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,kt(rc,Dr),Dr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,kt(rc,Dr),Dr|=r;return cr(e,t,i,n),t.child}function Aj(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function e1(e,t,n,r,i){var o=Sr(n)?qs:nr.current;return o=kc(t,o),gc(t,i),n=T2(e,t,n,r,o,i),r=P2(),e!==null&&!wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lo(e,t,i)):(Bt&&r&&m2(t),t.flags|=1,cr(e,t,n,i),t.child)}function xP(e,t,n,r,i){if(Sr(n)){var o=!0;tg(t)}else o=!1;if(gc(t,i),t.stateNode===null)wm(e,t),cj(t,n,r),Xb(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=ci(c):(c=Sr(n)?qs:nr.current,c=kc(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&hP(t,a,r,c),sa=!1;var p=t.memoizedState;a.state=p,ag(t,r,a,i),l=t.memoizedState,s!==r||p!==l||xr.current||sa?(typeof f=="function"&&(Qb(t,n,f,r),l=t.memoizedState),(s=sa||dP(t,n,s,r,p,l,c))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,sj(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:wi(t.type,s),a.props=c,h=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=ci(l):(l=Sr(n)?qs:nr.current,l=kc(t,l));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||p!==l)&&hP(t,a,r,l),sa=!1,p=t.memoizedState,a.state=p,ag(t,r,a,i);var v=t.memoizedState;s!==h||p!==v||xr.current||sa?(typeof g=="function"&&(Qb(t,n,g,r),v=t.memoizedState),(c=sa||dP(t,n,c,r,p,v,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return t1(e,t,n,r,o,i)}function t1(e,t,n,r,i,o){Aj(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&sP(t,n,!1),Lo(e,t,o);r=t.stateNode,tH.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Dc(t,e.child,null,o),t.child=Dc(t,null,s,o)):cr(e,t,s,o),t.memoizedState=r.state,i&&sP(t,n,!0),t.child}function Ij(e){var t=e.stateNode;t.pendingContext?aP(e,t.pendingContext,t.pendingContext!==t.context):t.context&&aP(e,t.context,!1),S2(e,t.containerInfo)}function SP(e,t,n,r,i){return Mc(),v2(i),t.flags|=256,cr(e,t,n,r),t.child}var n1={dehydrated:null,treeContext:null,retryLane:0};function r1(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fj(e,t,n){var r=t.pendingProps,i=Vt.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),kt(Vt,i&1),e===null)return Kb(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=$v(a,r,0,null),e=Fs(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=r1(n),t.memoizedState=n1,e):D2(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return nH(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ja(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=ja(s,o):(o=Fs(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?r1(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=n1,r}return o=e.child,e=o.sibling,r=ja(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function D2(e,t){return t=$v({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ep(e,t,n,r){return r!==null&&v2(r),Dc(t,e.child,null,n),e=D2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nH(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=K0(Error(Ce(422))),Ep(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=$v({mode:"visible",children:r.children},i,0,null),o=Fs(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Dc(t,e.child,null,a),t.child.memoizedState=r1(a),t.memoizedState=n1,o);if(!(t.mode&1))return Ep(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Ce(419)),r=K0(o,r,void 0),Ep(e,t,a,r)}if(s=(a&e.childLanes)!==0,wr||s){if(r=kn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Do(e,i),Di(r,e,i,-1))}return I2(),r=K0(Error(Ce(421))),Ep(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=mH.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Rr=Ma(i.nextSibling),Fr=t,Bt=!0,Si=null,e!==null&&(ti[ni++]=Co,ti[ni++]=Eo,ti[ni++]=Gs,Co=e.id,Eo=e.overflow,Gs=t),t=D2(t,r.children),t.flags|=4096,t)}function OP(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zb(e.return,t,n)}function Z0(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $j(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(cr(e,t,r.children,n),r=Vt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&OP(e,n,t);else if(e.tag===19)OP(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(kt(Vt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&sg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Z0(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&sg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Z0(t,!0,n,null,o);break;case"together":Z0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function wm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ce(153));if(t.child!==null){for(e=t.child,n=ja(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ja(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rH(e,t,n){switch(t.tag){case 3:Ij(t),Mc();break;case 5:dj(t);break;case 1:Sr(t.type)&&tg(t);break;case 4:S2(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;kt(ig,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(kt(Vt,Vt.current&1),t.flags|=128,null):n&t.child.childLanes?Fj(e,t,n):(kt(Vt,Vt.current&1),e=Lo(e,t,n),e!==null?e.sibling:null);kt(Vt,Vt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $j(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),kt(Vt,Vt.current),r)break;return null;case 22:case 23:return t.lanes=0,Nj(e,t,n)}return Lo(e,t,n)}var Bj,i1,Uj,zj;Bj=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};i1=function(){};Uj=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ds(eo.current);var o=null;switch(n){case"input":i=Eb(e,i),r=Eb(e,r),o=[];break;case"select":i=qt({},i,{value:void 0}),r=qt({},r,{value:void 0}),o=[];break;case"textarea":i=kb(e,i),r=kb(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Jm)}Db(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ad.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ad.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Dt("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};zj=function(e,t,n,r){n!==r&&(t.flags|=4)};function Wu(e,t){if(!Bt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iH(e,t,n){var r=t.pendingProps;switch(g2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gn(t),null;case 1:return Sr(t.type)&&eg(),Gn(t),null;case 3:return r=t.stateNode,Lc(),At(xr),At(nr),C2(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Op(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Si!==null&&(d1(Si),Si=null))),i1(e,t),Gn(t),null;case 5:O2(t);var i=Ds(yd.current);if(n=t.type,e!==null&&t.stateNode!=null)Uj(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ce(166));return Gn(t),null}if(e=Ds(eo.current),Op(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[qi]=t,r[gd]=o,e=(t.mode&1)!==0,n){case"dialog":Dt("cancel",r),Dt("close",r);break;case"iframe":case"object":case"embed":Dt("load",r);break;case"video":case"audio":for(i=0;i<df.length;i++)Dt(df[i],r);break;case"source":Dt("error",r);break;case"img":case"image":case"link":Dt("error",r),Dt("load",r);break;case"details":Dt("toggle",r);break;case"input":RT(r,o),Dt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Dt("invalid",r);break;case"textarea":NT(r,o),Dt("invalid",r)}Db(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Sp(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Sp(r.textContent,s,e),i=["children",""+s]):ad.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Dt("scroll",r)}switch(n){case"input":mp(r),jT(r,o,!0);break;case"textarea":mp(r),AT(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Jm)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mR(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[qi]=t,e[gd]=r,Bj(e,t,!1,!1),t.stateNode=e;e:{switch(a=Lb(n,r),n){case"dialog":Dt("cancel",e),Dt("close",e),i=r;break;case"iframe":case"object":case"embed":Dt("load",e),i=r;break;case"video":case"audio":for(i=0;i<df.length;i++)Dt(df[i],e);i=r;break;case"source":Dt("error",e),i=r;break;case"img":case"image":case"link":Dt("error",e),Dt("load",e),i=r;break;case"details":Dt("toggle",e),i=r;break;case"input":RT(e,r),i=Eb(e,r),Dt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=qt({},r,{value:void 0}),Dt("invalid",e);break;case"textarea":NT(e,r),i=kb(e,r),Dt("invalid",e);break;default:i=r}Db(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?yR(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&gR(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&sd(e,l):typeof l=="number"&&sd(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ad.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Dt("scroll",e):l!=null&&t2(e,o,l,a))}switch(n){case"input":mp(e),jT(e,r,!1);break;case"textarea":mp(e),AT(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ua(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?dc(e,!!r.multiple,o,!1):r.defaultValue!=null&&dc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Jm)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Gn(t),null;case 6:if(e&&t.stateNode!=null)zj(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ce(166));if(n=Ds(yd.current),Ds(eo.current),Op(t)){if(r=t.stateNode,n=t.memoizedProps,r[qi]=t,(o=r.nodeValue!==n)&&(e=Fr,e!==null))switch(e.tag){case 3:Sp(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Sp(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qi]=t,t.stateNode=r}return Gn(t),null;case 13:if(At(Vt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Bt&&Rr!==null&&t.mode&1&&!(t.flags&128))oj(),Mc(),t.flags|=98560,o=!1;else if(o=Op(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Ce(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ce(317));o[qi]=t}else Mc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gn(t),o=!1}else Si!==null&&(d1(Si),Si=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Vt.current&1?bn===0&&(bn=3):I2())),t.updateQueue!==null&&(t.flags|=4),Gn(t),null);case 4:return Lc(),i1(e,t),e===null&&pd(t.stateNode.containerInfo),Gn(t),null;case 10:return b2(t.type._context),Gn(t),null;case 17:return Sr(t.type)&&eg(),Gn(t),null;case 19:if(At(Vt),o=t.memoizedState,o===null)return Gn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Wu(o,!1);else{if(bn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=sg(e),a!==null){for(t.flags|=128,Wu(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return kt(Vt,Vt.current&1|2),t.child}e=e.sibling}o.tail!==null&&on()>jc&&(t.flags|=128,r=!0,Wu(o,!1),t.lanes=4194304)}else{if(!r)if(e=sg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Bt)return Gn(t),null}else 2*on()-o.renderingStartTime>jc&&n!==1073741824&&(t.flags|=128,r=!0,Wu(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=on(),t.sibling=null,n=Vt.current,kt(Vt,r?n&1|2:n&1),t):(Gn(t),null);case 22:case 23:return A2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Dr&1073741824&&(Gn(t),t.subtreeFlags&6&&(t.flags|=8192)):Gn(t),null;case 24:return null;case 25:return null}throw Error(Ce(156,t.tag))}function oH(e,t){switch(g2(t),t.tag){case 1:return Sr(t.type)&&eg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lc(),At(xr),At(nr),C2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O2(t),null;case 13:if(At(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ce(340));Mc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(Vt),null;case 4:return Lc(),null;case 10:return b2(t.type._context),null;case 22:case 23:return A2(),null;case 24:return null;default:return null}}var Tp=!1,Xn=!1,aH=typeof WeakSet=="function"?WeakSet:Set,Be=null;function nc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Kt(e,t,r)}else n.current=null}function o1(e,t,n){try{n()}catch(r){Kt(e,t,r)}}var CP=!1;function sH(e,t){if(zb=Zm,e=YR(),p2(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(s=a+i),h!==o||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++c===i&&(s=a),p===o&&++f===r&&(l=a),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hb={focusedElem:e,selectionRange:n},Zm=!1,Be=t;Be!==null;)if(t=Be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Be=e;else for(;Be!==null;){t=Be;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:wi(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ce(163))}}catch(C){Kt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Be=e;break}Be=t.return}return v=CP,CP=!1,v}function Rf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&o1(t,n,o)}i=i.next}while(i!==r)}}function Iv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function a1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Hj(e){var t=e.alternate;t!==null&&(e.alternate=null,Hj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qi],delete t[gd],delete t[Yb],delete t[Hz],delete t[Vz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vj(e){return e.tag===5||e.tag===3||e.tag===4}function EP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function s1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jm));else if(r!==4&&(e=e.child,e!==null))for(s1(e,t,n),e=e.sibling;e!==null;)s1(e,t,n),e=e.sibling}function l1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(l1(e,t,n),e=e.sibling;e!==null;)l1(e,t,n),e=e.sibling}var zn=null,xi=!1;function Jo(e,t,n){for(n=n.child;n!==null;)Wj(e,t,n),n=n.sibling}function Wj(e,t,n){if(Ji&&typeof Ji.onCommitFiberUnmount=="function")try{Ji.onCommitFiberUnmount(kv,n)}catch{}switch(n.tag){case 5:Xn||nc(n,t);case 6:var r=zn,i=xi;zn=null,Jo(e,t,n),zn=r,xi=i,zn!==null&&(xi?(e=zn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zn.removeChild(n.stateNode));break;case 18:zn!==null&&(xi?(e=zn,n=n.stateNode,e.nodeType===8?H0(e.parentNode,n):e.nodeType===1&&H0(e,n),fd(e)):H0(zn,n.stateNode));break;case 4:r=zn,i=xi,zn=n.stateNode.containerInfo,xi=!0,Jo(e,t,n),zn=r,xi=i;break;case 0:case 11:case 14:case 15:if(!Xn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&o1(n,t,a),i=i.next}while(i!==r)}Jo(e,t,n);break;case 1:if(!Xn&&(nc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Kt(n,t,s)}Jo(e,t,n);break;case 21:Jo(e,t,n);break;case 22:n.mode&1?(Xn=(r=Xn)||n.memoizedState!==null,Jo(e,t,n),Xn=r):Jo(e,t,n);break;default:Jo(e,t,n)}}function TP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aH),t.forEach(function(r){var i=gH.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function bi(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:zn=s.stateNode,xi=!1;break e;case 3:zn=s.stateNode.containerInfo,xi=!0;break e;case 4:zn=s.stateNode.containerInfo,xi=!0;break e}s=s.return}if(zn===null)throw Error(Ce(160));Wj(o,a,i),zn=null,xi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Kt(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Yj(t,e),t=t.sibling}function Yj(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bi(t,e),Bi(e),r&4){try{Rf(3,e,e.return),Iv(3,e)}catch(y){Kt(e,e.return,y)}try{Rf(5,e,e.return)}catch(y){Kt(e,e.return,y)}}break;case 1:bi(t,e),Bi(e),r&512&&n!==null&&nc(n,n.return);break;case 5:if(bi(t,e),Bi(e),r&512&&n!==null&&nc(n,n.return),e.flags&32){var i=e.stateNode;try{sd(i,"")}catch(y){Kt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&hR(i,o),Lb(s,a);var c=Lb(s,o);for(a=0;a<l.length;a+=2){var f=l[a],h=l[a+1];f==="style"?yR(i,h):f==="dangerouslySetInnerHTML"?gR(i,h):f==="children"?sd(i,h):t2(i,f,h,c)}switch(s){case"input":Tb(i,o);break;case"textarea":pR(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?dc(i,!!o.multiple,g,!1):p!==!!o.multiple&&(o.defaultValue!=null?dc(i,!!o.multiple,o.defaultValue,!0):dc(i,!!o.multiple,o.multiple?[]:"",!1))}i[gd]=o}catch(y){Kt(e,e.return,y)}}break;case 6:if(bi(t,e),Bi(e),r&4){if(e.stateNode===null)throw Error(Ce(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Kt(e,e.return,y)}}break;case 3:if(bi(t,e),Bi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fd(t.containerInfo)}catch(y){Kt(e,e.return,y)}break;case 4:bi(t,e),Bi(e);break;case 13:bi(t,e),Bi(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(j2=on())),r&4&&TP(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Xn=(c=Xn)||f,bi(t,e),Xn=c):bi(t,e),Bi(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(Be=e,f=e.child;f!==null;){for(h=Be=f;Be!==null;){switch(p=Be,g=p.child,p.tag){case 0:case 11:case 14:case 15:Rf(4,p,p.return);break;case 1:nc(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){Kt(r,n,y)}}break;case 5:nc(p,p.return);break;case 22:if(p.memoizedState!==null){kP(h);continue}}g!==null?(g.return=p,Be=g):kP(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=h.stateNode,l=h.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=vR("display",a))}catch(y){Kt(e,e.return,y)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){Kt(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:bi(t,e),Bi(e),r&4&&TP(e);break;case 21:break;default:bi(t,e),Bi(e)}}function Bi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vj(n)){var r=n;break e}n=n.return}throw Error(Ce(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(sd(i,""),r.flags&=-33);var o=EP(e);l1(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=EP(e);s1(e,s,a);break;default:throw Error(Ce(161))}}catch(l){Kt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lH(e,t,n){Be=e,qj(e)}function qj(e,t,n){for(var r=(e.mode&1)!==0;Be!==null;){var i=Be,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Tp;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Xn;s=Tp;var c=Xn;if(Tp=a,(Xn=l)&&!c)for(Be=i;Be!==null;)a=Be,l=a.child,a.tag===22&&a.memoizedState!==null?MP(i):l!==null?(l.return=a,Be=l):MP(i);for(;o!==null;)Be=o,qj(o),o=o.sibling;Be=i,Tp=s,Xn=c}PP(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Be=o):PP(e)}}function PP(e){for(;Be!==null;){var t=Be;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xn||Iv(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:wi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&fP(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fP(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&fd(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ce(163))}Xn||t.flags&512&&a1(t)}catch(p){Kt(t,t.return,p)}}if(t===e){Be=null;break}if(n=t.sibling,n!==null){n.return=t.return,Be=n;break}Be=t.return}}function kP(e){for(;Be!==null;){var t=Be;if(t===e){Be=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Be=n;break}Be=t.return}}function MP(e){for(;Be!==null;){var t=Be;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Iv(4,t)}catch(l){Kt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Kt(t,i,l)}}var o=t.return;try{a1(t)}catch(l){Kt(t,o,l)}break;case 5:var a=t.return;try{a1(t)}catch(l){Kt(t,a,l)}}}catch(l){Kt(t,t.return,l)}if(t===e){Be=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Be=s;break}Be=t.return}}var cH=Math.ceil,ug=Uo.ReactCurrentDispatcher,L2=Uo.ReactCurrentOwner,ai=Uo.ReactCurrentBatchConfig,dt=0,kn=null,pn=null,Vn=0,Dr=0,rc=Xa(0),bn=0,xd=null,Zs=0,Fv=0,R2=0,jf=null,_r=null,j2=0,jc=1/0,vo=null,fg=!1,c1=null,La=null,Pp=!1,ba=null,dg=0,Nf=0,u1=null,xm=-1,Sm=0;function pr(){return dt&6?on():xm!==-1?xm:xm=on()}function Ra(e){return e.mode&1?dt&2&&Vn!==0?Vn&-Vn:Yz.transition!==null?(Sm===0&&(Sm=MR()),Sm):(e=xt,e!==0||(e=window.event,e=e===void 0?16:IR(e.type)),e):1}function Di(e,t,n,r){if(50<Nf)throw Nf=0,u1=null,Error(Ce(185));th(e,n,r),(!(dt&2)||e!==kn)&&(e===kn&&(!(dt&2)&&(Fv|=n),bn===4&&da(e,Vn)),Or(e,r),n===1&&dt===0&&!(t.mode&1)&&(jc=on()+500,jv&&Ja()))}function Or(e,t){var n=e.callbackNode;YU(e,t);var r=Km(e,e===kn?Vn:0);if(r===0)n!==null&&$T(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&$T(n),t===1)e.tag===0?Wz(DP.bind(null,e)):nj(DP.bind(null,e)),Uz(function(){!(dt&6)&&Ja()}),n=null;else{switch(DR(r)){case 1:n=a2;break;case 4:n=PR;break;case 16:n=Gm;break;case 536870912:n=kR;break;default:n=Gm}n=tN(n,Gj.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gj(e,t){if(xm=-1,Sm=0,dt&6)throw Error(Ce(327));var n=e.callbackNode;if(vc()&&e.callbackNode!==n)return null;var r=Km(e,e===kn?Vn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=hg(e,r);else{t=r;var i=dt;dt|=2;var o=Zj();(kn!==e||Vn!==t)&&(vo=null,jc=on()+500,Is(e,t));do try{dH();break}catch(s){Kj(e,s)}while(1);_2(),ug.current=o,dt=i,pn!==null?t=0:(kn=null,Vn=0,t=bn)}if(t!==0){if(t===2&&(i=Ib(e),i!==0&&(r=i,t=f1(e,i))),t===1)throw n=xd,Is(e,0),da(e,r),Or(e,on()),n;if(t===6)da(e,r);else{if(i=e.current.alternate,!(r&30)&&!uH(i)&&(t=hg(e,r),t===2&&(o=Ib(e),o!==0&&(r=o,t=f1(e,o))),t===1))throw n=xd,Is(e,0),da(e,r),Or(e,on()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ce(345));case 2:xs(e,_r,vo);break;case 3:if(da(e,r),(r&130023424)===r&&(t=j2+500-on(),10<t)){if(Km(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){pr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wb(xs.bind(null,e,_r,vo),t);break}xs(e,_r,vo);break;case 4:if(da(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Mi(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=on()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cH(r/1960))-r,10<r){e.timeoutHandle=Wb(xs.bind(null,e,_r,vo),r);break}xs(e,_r,vo);break;case 5:xs(e,_r,vo);break;default:throw Error(Ce(329))}}}return Or(e,on()),e.callbackNode===n?Gj.bind(null,e):null}function f1(e,t){var n=jf;return e.current.memoizedState.isDehydrated&&(Is(e,t).flags|=256),e=hg(e,t),e!==2&&(t=_r,_r=n,t!==null&&d1(t)),e}function d1(e){_r===null?_r=e:_r.push.apply(_r,e)}function uH(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Ri(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function da(e,t){for(t&=~R2,t&=~Fv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mi(t),r=1<<n;e[n]=-1,t&=~r}}function DP(e){if(dt&6)throw Error(Ce(327));vc();var t=Km(e,0);if(!(t&1))return Or(e,on()),null;var n=hg(e,t);if(e.tag!==0&&n===2){var r=Ib(e);r!==0&&(t=r,n=f1(e,r))}if(n===1)throw n=xd,Is(e,0),da(e,t),Or(e,on()),n;if(n===6)throw Error(Ce(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,_r,vo),Or(e,on()),null}function N2(e,t){var n=dt;dt|=1;try{return e(t)}finally{dt=n,dt===0&&(jc=on()+500,jv&&Ja())}}function Qs(e){ba!==null&&ba.tag===0&&!(dt&6)&&vc();var t=dt;dt|=1;var n=ai.transition,r=xt;try{if(ai.transition=null,xt=1,e)return e()}finally{xt=r,ai.transition=n,dt=t,!(dt&6)&&Ja()}}function A2(){Dr=rc.current,At(rc)}function Is(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Bz(n)),pn!==null)for(n=pn.return;n!==null;){var r=n;switch(g2(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&eg();break;case 3:Lc(),At(xr),At(nr),C2();break;case 5:O2(r);break;case 4:Lc();break;case 13:At(Vt);break;case 19:At(Vt);break;case 10:b2(r.type._context);break;case 22:case 23:A2()}n=n.return}if(kn=e,pn=e=ja(e.current,null),Vn=Dr=t,bn=0,xd=null,R2=Fv=Zs=0,_r=jf=null,Ms!==null){for(t=0;t<Ms.length;t++)if(n=Ms[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Ms=null}return e}function Kj(e,t){do{var n=pn;try{if(_2(),_m.current=cg,lg){for(var r=Yt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}lg=!1}if(Ks=0,Tn=yn=Yt=null,Lf=!1,_d=0,L2.current=null,n===null||n.return===null){bn=1,xd=t,pn=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Vn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=s,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=yP(a);if(g!==null){g.flags&=-257,_P(g,a,s,o,t),g.mode&1&&vP(o,c,t),t=g,l=c;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){vP(o,c,t),I2();break e}l=Error(Ce(426))}}else if(Bt&&s.mode&1){var x=yP(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),_P(x,a,s,o,t),v2(Rc(l,s));break e}}o=l=Rc(l,s),bn!==4&&(bn=2),jf===null?jf=[o]:jf.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=Lj(o,l,t);uP(o,b);break e;case 1:s=l;var w=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(La===null||!La.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var C=Rj(o,s,t);uP(o,C);break e}}o=o.return}while(o!==null)}Xj(n)}catch(T){t=T,pn===n&&n!==null&&(pn=n=n.return);continue}break}while(1)}function Zj(){var e=ug.current;return ug.current=cg,e===null?cg:e}function I2(){(bn===0||bn===3||bn===2)&&(bn=4),kn===null||!(Zs&268435455)&&!(Fv&268435455)||da(kn,Vn)}function hg(e,t){var n=dt;dt|=2;var r=Zj();(kn!==e||Vn!==t)&&(vo=null,Is(e,t));do try{fH();break}catch(i){Kj(e,i)}while(1);if(_2(),dt=n,ug.current=r,pn!==null)throw Error(Ce(261));return kn=null,Vn=0,bn}function fH(){for(;pn!==null;)Qj(pn)}function dH(){for(;pn!==null&&!IU();)Qj(pn)}function Qj(e){var t=eN(e.alternate,e,Dr);e.memoizedProps=e.pendingProps,t===null?Xj(e):pn=t,L2.current=null}function Xj(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=oH(n,t),n!==null){n.flags&=32767,pn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{bn=6,pn=null;return}}else if(n=iH(n,t,Dr),n!==null){pn=n;return}if(t=t.sibling,t!==null){pn=t;return}pn=t=e}while(t!==null);bn===0&&(bn=5)}function xs(e,t,n){var r=xt,i=ai.transition;try{ai.transition=null,xt=1,hH(e,t,n,r)}finally{ai.transition=i,xt=r}return null}function hH(e,t,n,r){do vc();while(ba!==null);if(dt&6)throw Error(Ce(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ce(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(qU(e,o),e===kn&&(pn=kn=null,Vn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pp||(Pp=!0,tN(Gm,function(){return vc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ai.transition,ai.transition=null;var a=xt;xt=1;var s=dt;dt|=4,L2.current=null,sH(e,n),Yj(n,e),Rz(Hb),Zm=!!zb,Hb=zb=null,e.current=n,lH(n),FU(),dt=s,xt=a,ai.transition=o}else e.current=n;if(Pp&&(Pp=!1,ba=e,dg=i),o=e.pendingLanes,o===0&&(La=null),UU(n.stateNode),Or(e,on()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(fg)throw fg=!1,e=c1,c1=null,e;return dg&1&&e.tag!==0&&vc(),o=e.pendingLanes,o&1?e===u1?Nf++:(Nf=0,u1=e):Nf=0,Ja(),null}function vc(){if(ba!==null){var e=DR(dg),t=ai.transition,n=xt;try{if(ai.transition=null,xt=16>e?16:e,ba===null)var r=!1;else{if(e=ba,ba=null,dg=0,dt&6)throw Error(Ce(331));var i=dt;for(dt|=4,Be=e.current;Be!==null;){var o=Be,a=o.child;if(Be.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Be=c;Be!==null;){var f=Be;switch(f.tag){case 0:case 11:case 15:Rf(8,f,o)}var h=f.child;if(h!==null)h.return=f,Be=h;else for(;Be!==null;){f=Be;var p=f.sibling,g=f.return;if(Hj(f),f===c){Be=null;break}if(p!==null){p.return=g,Be=p;break}Be=g}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}Be=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Be=a;else e:for(;Be!==null;){if(o=Be,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Rf(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,Be=b;break e}Be=o.return}}var w=e.current;for(Be=w;Be!==null;){a=Be;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,Be=S;else e:for(a=w;Be!==null;){if(s=Be,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Iv(9,s)}}catch(T){Kt(s,s.return,T)}if(s===a){Be=null;break e}var C=s.sibling;if(C!==null){C.return=s.return,Be=C;break e}Be=s.return}}if(dt=i,Ja(),Ji&&typeof Ji.onPostCommitFiberRoot=="function")try{Ji.onPostCommitFiberRoot(kv,e)}catch{}r=!0}return r}finally{xt=n,ai.transition=t}}return!1}function LP(e,t,n){t=Rc(n,t),t=Lj(e,t,1),e=Da(e,t,1),t=pr(),e!==null&&(th(e,1,t),Or(e,t))}function Kt(e,t,n){if(e.tag===3)LP(e,e,n);else for(;t!==null;){if(t.tag===3){LP(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(La===null||!La.has(r))){e=Rc(n,e),e=Rj(t,e,1),t=Da(t,e,1),e=pr(),t!==null&&(th(t,1,e),Or(t,e));break}}t=t.return}}function pH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pr(),e.pingedLanes|=e.suspendedLanes&n,kn===e&&(Vn&n)===n&&(bn===4||bn===3&&(Vn&130023424)===Vn&&500>on()-j2?Is(e,0):R2|=n),Or(e,t)}function Jj(e,t){t===0&&(e.mode&1?(t=yp,yp<<=1,!(yp&130023424)&&(yp=4194304)):t=1);var n=pr();e=Do(e,t),e!==null&&(th(e,t,n),Or(e,n))}function mH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jj(e,n)}function gH(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ce(314))}r!==null&&r.delete(t),Jj(e,n)}var eN;eN=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xr.current)wr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wr=!1,rH(e,t,n);wr=!!(e.flags&131072)}else wr=!1,Bt&&t.flags&1048576&&rj(t,rg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wm(e,t),e=t.pendingProps;var i=kc(t,nr.current);gc(t,n),i=T2(null,t,r,e,i,n);var o=P2();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Sr(r)?(o=!0,tg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,x2(t),i.updater=Nv,t.stateNode=i,i._reactInternals=t,Xb(t,r,e,n),t=t1(null,t,r,!0,o,n)):(t.tag=0,Bt&&o&&m2(t),cr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wm(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yH(r),e=wi(r,e),i){case 0:t=e1(null,t,r,e,n);break e;case 1:t=xP(null,t,r,e,n);break e;case 11:t=bP(null,t,r,e,n);break e;case 14:t=wP(null,t,r,wi(r.type,e),n);break e}throw Error(Ce(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),e1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),xP(e,t,r,i,n);case 3:e:{if(Ij(t),e===null)throw Error(Ce(387));r=t.pendingProps,o=t.memoizedState,i=o.element,sj(e,t),ag(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Rc(Error(Ce(423)),t),t=SP(e,t,r,n,i);break e}else if(r!==i){i=Rc(Error(Ce(424)),t),t=SP(e,t,r,n,i);break e}else for(Rr=Ma(t.stateNode.containerInfo.firstChild),Fr=t,Bt=!0,Si=null,n=fj(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mc(),r===i){t=Lo(e,t,n);break e}cr(e,t,r,n)}t=t.child}return t;case 5:return dj(t),e===null&&Kb(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Vb(r,i)?a=null:o!==null&&Vb(r,o)&&(t.flags|=32),Aj(e,t),cr(e,t,a,n),t.child;case 6:return e===null&&Kb(t),null;case 13:return Fj(e,t,n);case 4:return S2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dc(t,null,r,n):cr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),bP(e,t,r,i,n);case 7:return cr(e,t,t.pendingProps,n),t.child;case 8:return cr(e,t,t.pendingProps.children,n),t.child;case 12:return cr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,kt(ig,r._currentValue),r._currentValue=a,o!==null)if(Ri(o.value,a)){if(o.children===i.children&&!xr.current){t=Lo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=To(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Zb(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Zb(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}cr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,gc(t,n),i=ci(i),r=r(i),t.flags|=1,cr(e,t,r,n),t.child;case 14:return r=t.type,i=wi(r,t.pendingProps),i=wi(r.type,i),wP(e,t,r,i,n);case 15:return jj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),wm(e,t),t.tag=1,Sr(r)?(e=!0,tg(t)):e=!1,gc(t,n),cj(t,r,i),Xb(t,r,i,n),t1(null,t,r,!0,e,n);case 19:return $j(e,t,n);case 22:return Nj(e,t,n)}throw Error(Ce(156,t.tag))};function tN(e,t){return TR(e,t)}function vH(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,n,r){return new vH(e,t,n,r)}function F2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yH(e){if(typeof e=="function")return F2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===r2)return 11;if(e===i2)return 14}return 2}function ja(e,t){var n=e.alternate;return n===null?(n=ii(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Om(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")F2(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ql:return Fs(n.children,i,o,t);case n2:a=8,i|=8;break;case xb:return e=ii(12,n,t,i|2),e.elementType=xb,e.lanes=o,e;case Sb:return e=ii(13,n,t,i),e.elementType=Sb,e.lanes=o,e;case Ob:return e=ii(19,n,t,i),e.elementType=Ob,e.lanes=o,e;case uR:return $v(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lR:a=10;break e;case cR:a=9;break e;case r2:a=11;break e;case i2:a=14;break e;case aa:a=16,r=null;break e}throw Error(Ce(130,e==null?e:typeof e,""))}return t=ii(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fs(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function $v(e,t,n,r){return e=ii(22,e,r,t),e.elementType=uR,e.lanes=n,e.stateNode={isHidden:!1},e}function Q0(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function X0(e,t,n){return t=ii(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _H(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=L0(0),this.expirationTimes=L0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=L0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $2(e,t,n,r,i,o,a,s,l){return e=new _H(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ii(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},x2(o),e}function bH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Yl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function nN(e){if(!e)return za;e=e._reactInternals;e:{if(sl(e)!==e||e.tag!==1)throw Error(Ce(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Sr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ce(171))}if(e.tag===1){var n=e.type;if(Sr(n))return tj(e,n,t)}return t}function rN(e,t,n,r,i,o,a,s,l){return e=$2(n,r,!0,e,i,o,a,s,l),e.context=nN(null),n=e.current,r=pr(),i=Ra(n),o=To(r,i),o.callback=t??null,Da(n,o,i),e.current.lanes=i,th(e,i,r),Or(e,r),e}function Bv(e,t,n,r){var i=t.current,o=pr(),a=Ra(i);return n=nN(n),t.context===null?t.context=n:t.pendingContext=n,t=To(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Da(i,t,a),e!==null&&(Di(e,i,a,o),ym(e,i,a)),a}function pg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function RP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function B2(e,t){RP(e,t),(e=e.alternate)&&RP(e,t)}function wH(){return null}var iN=typeof reportError=="function"?reportError:function(e){console.error(e)};function U2(e){this._internalRoot=e}Uv.prototype.render=U2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ce(409));Bv(e,t,null,null)};Uv.prototype.unmount=U2.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qs(function(){Bv(null,e,null,null)}),t[Mo]=null}};function Uv(e){this._internalRoot=e}Uv.prototype.unstable_scheduleHydration=function(e){if(e){var t=jR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fa.length&&t!==0&&t<fa[n].priority;n++);fa.splice(n,0,e),n===0&&AR(e)}};function z2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jP(){}function xH(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=pg(a);o.call(c)}}var a=rN(t,r,e,0,null,!1,!1,"",jP);return e._reactRootContainer=a,e[Mo]=a.current,pd(e.nodeType===8?e.parentNode:e),Qs(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=pg(l);s.call(c)}}var l=$2(e,0,!1,null,null,!1,!1,"",jP);return e._reactRootContainer=l,e[Mo]=l.current,pd(e.nodeType===8?e.parentNode:e),Qs(function(){Bv(t,l,n,r)}),l}function Hv(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=pg(a);s.call(l)}}Bv(t,a,e,i)}else a=xH(n,t,e,i,r);return pg(a)}LR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ff(t.pendingLanes);n!==0&&(s2(t,n|1),Or(t,on()),!(dt&6)&&(jc=on()+500,Ja()))}break;case 13:Qs(function(){var r=Do(e,1);if(r!==null){var i=pr();Di(r,e,1,i)}}),B2(e,1)}};l2=function(e){if(e.tag===13){var t=Do(e,134217728);if(t!==null){var n=pr();Di(t,e,134217728,n)}B2(e,134217728)}};RR=function(e){if(e.tag===13){var t=Ra(e),n=Do(e,t);if(n!==null){var r=pr();Di(n,e,t,r)}B2(e,t)}};jR=function(){return xt};NR=function(e,t){var n=xt;try{return xt=e,t()}finally{xt=n}};jb=function(e,t,n){switch(t){case"input":if(Tb(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Rv(r);if(!i)throw Error(Ce(90));dR(r),Tb(r,i)}}}break;case"textarea":pR(e,n);break;case"select":t=n.value,t!=null&&dc(e,!!n.multiple,t,!1)}};wR=N2;xR=Qs;var SH={usingClientEntryPoint:!1,Events:[rh,Ql,Rv,_R,bR,N2]},Yu={findFiberByHostInstance:ks,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},OH={bundleType:Yu.bundleType,version:Yu.version,rendererPackageName:Yu.rendererPackageName,rendererConfig:Yu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Uo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=CR(e),e===null?null:e.stateNode},findFiberByHostInstance:Yu.findFiberByHostInstance||wH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kp.isDisabled&&kp.supportsFiber)try{kv=kp.inject(OH),Ji=kp}catch{}}Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SH;Yr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z2(t))throw Error(Ce(200));return bH(e,t,null,n)};Yr.createRoot=function(e,t){if(!z2(e))throw Error(Ce(299));var n=!1,r="",i=iN;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=$2(e,1,!1,null,null,n,!1,r,i),e[Mo]=t.current,pd(e.nodeType===8?e.parentNode:e),new U2(t)};Yr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ce(188)):(e=Object.keys(e).join(","),Error(Ce(268,e)));return e=CR(t),e=e===null?null:e.stateNode,e};Yr.flushSync=function(e){return Qs(e)};Yr.hydrate=function(e,t,n){if(!zv(t))throw Error(Ce(200));return Hv(null,e,t,!0,n)};Yr.hydrateRoot=function(e,t,n){if(!z2(e))throw Error(Ce(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=iN;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=rN(t,null,e,1,n??null,i,!1,o,a),e[Mo]=t.current,pd(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Uv(t)};Yr.render=function(e,t,n){if(!zv(t))throw Error(Ce(200));return Hv(null,e,t,!1,n)};Yr.unmountComponentAtNode=function(e){if(!zv(e))throw Error(Ce(40));return e._reactRootContainer?(Qs(function(){Hv(null,null,e,!1,function(){e._reactRootContainer=null,e[Mo]=null})}),!0):!1};Yr.unstable_batchedUpdates=N2;Yr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zv(n))throw Error(Ce(200));if(e==null||e._reactInternals===void 0)throw Error(Ce(38));return Hv(e,t,n,!1,r)};Yr.version="18.2.0-next-9e3b772b8-20220608";function oN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oN)}catch(e){console.error(e)}}oN(),rR.exports=Yr;var au=rR.exports;const $s=pi(au);var aN,NP=au;aN=NP.createRoot,NP.hydrateRoot;var sN={exports:{}},lN={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.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 Nc=H;function CH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var EH=typeof Object.is=="function"?Object.is:CH,TH=Nc.useState,PH=Nc.useEffect,kH=Nc.useLayoutEffect,MH=Nc.useDebugValue;function DH(e,t){var n=t(),r=TH({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return kH(function(){i.value=n,i.getSnapshot=t,J0(i)&&o({inst:i})},[e,n,t]),PH(function(){return J0(i)&&o({inst:i}),e(function(){J0(i)&&o({inst:i})})},[e]),MH(n),n}function J0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!EH(e,n)}catch{return!0}}function LH(e,t){return t()}var RH=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?LH:DH;lN.useSyncExternalStore=Nc.useSyncExternalStore!==void 0?Nc.useSyncExternalStore:RH;sN.exports=lN;var cN=sN.exports,jH={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Vv=H,NH=cN;function AH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var IH=typeof Object.is=="function"?Object.is:AH,FH=NH.useSyncExternalStore,$H=Vv.useRef,BH=Vv.useEffect,UH=Vv.useMemo,zH=Vv.useDebugValue;jH.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=$H(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=UH(function(){function l(g){if(!c){if(c=!0,f=g,g=r(g),i!==void 0&&a.hasValue){var v=a.value;if(i(v,g))return h=v}return h=g}if(v=h,IH(f,g))return v;var y=r(g);return i!==void 0&&i(v,y)?v:(f=g,h=y)}var c=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=FH(e,o[0],o[1]);return BH(function(){a.hasValue=!0,a.value=s},[s]),zH(s),s};function HH(e){e()}let uN=HH;const VH=e=>uN=e,WH=()=>uN,AP=Symbol.for("react-redux-context"),IP=typeof globalThis<"u"?globalThis:{};function YH(){var e;if(!H.createContext)return{};const t=(e=IP[AP])!=null?e:IP[AP]=new Map;let n=t.get(H.createContext);return n||(n=H.createContext(null),t.set(H.createContext,n)),n}const fN=YH(),qH=()=>{throw new Error("uSES not initialized!")};function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yc.apply(this,arguments)}function H2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dN={exports:{}},St={};/** @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 Dn=typeof Symbol=="function"&&Symbol.for,V2=Dn?Symbol.for("react.element"):60103,W2=Dn?Symbol.for("react.portal"):60106,Wv=Dn?Symbol.for("react.fragment"):60107,Yv=Dn?Symbol.for("react.strict_mode"):60108,qv=Dn?Symbol.for("react.profiler"):60114,Gv=Dn?Symbol.for("react.provider"):60109,Kv=Dn?Symbol.for("react.context"):60110,Y2=Dn?Symbol.for("react.async_mode"):60111,Zv=Dn?Symbol.for("react.concurrent_mode"):60111,Qv=Dn?Symbol.for("react.forward_ref"):60112,Xv=Dn?Symbol.for("react.suspense"):60113,GH=Dn?Symbol.for("react.suspense_list"):60120,Jv=Dn?Symbol.for("react.memo"):60115,ey=Dn?Symbol.for("react.lazy"):60116,KH=Dn?Symbol.for("react.block"):60121,ZH=Dn?Symbol.for("react.fundamental"):60117,QH=Dn?Symbol.for("react.responder"):60118,XH=Dn?Symbol.for("react.scope"):60119;function Gr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case V2:switch(e=e.type,e){case Y2:case Zv:case Wv:case qv:case Yv:case Xv:return e;default:switch(e=e&&e.$$typeof,e){case Kv:case Qv:case ey:case Jv:case Gv:return e;default:return t}}case W2:return t}}}function hN(e){return Gr(e)===Zv}St.AsyncMode=Y2;St.ConcurrentMode=Zv;St.ContextConsumer=Kv;St.ContextProvider=Gv;St.Element=V2;St.ForwardRef=Qv;St.Fragment=Wv;St.Lazy=ey;St.Memo=Jv;St.Portal=W2;St.Profiler=qv;St.StrictMode=Yv;St.Suspense=Xv;St.isAsyncMode=function(e){return hN(e)||Gr(e)===Y2};St.isConcurrentMode=hN;St.isContextConsumer=function(e){return Gr(e)===Kv};St.isContextProvider=function(e){return Gr(e)===Gv};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===V2};St.isForwardRef=function(e){return Gr(e)===Qv};St.isFragment=function(e){return Gr(e)===Wv};St.isLazy=function(e){return Gr(e)===ey};St.isMemo=function(e){return Gr(e)===Jv};St.isPortal=function(e){return Gr(e)===W2};St.isProfiler=function(e){return Gr(e)===qv};St.isStrictMode=function(e){return Gr(e)===Yv};St.isSuspense=function(e){return Gr(e)===Xv};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Wv||e===Zv||e===qv||e===Yv||e===Xv||e===GH||typeof e=="object"&&e!==null&&(e.$$typeof===ey||e.$$typeof===Jv||e.$$typeof===Gv||e.$$typeof===Kv||e.$$typeof===Qv||e.$$typeof===ZH||e.$$typeof===QH||e.$$typeof===XH||e.$$typeof===KH)};St.typeOf=Gr;dN.exports=St;var JH=dN.exports,q2=JH,eV={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},tV={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nV={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pN={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G2={};G2[q2.ForwardRef]=nV;G2[q2.Memo]=pN;function FP(e){return q2.isMemo(e)?pN:G2[e.$$typeof]||eV}var rV=Object.defineProperty,iV=Object.getOwnPropertyNames,$P=Object.getOwnPropertySymbols,oV=Object.getOwnPropertyDescriptor,aV=Object.getPrototypeOf,BP=Object.prototype;function mN(e,t,n){if(typeof t!="string"){if(BP){var r=aV(t);r&&r!==BP&&mN(e,r,n)}var i=iV(t);$P&&(i=i.concat($P(t)));for(var o=FP(e),a=FP(t),s=0;s<i.length;++s){var l=i[s];if(!tV[l]&&!(n&&n[l])&&!(a&&a[l])&&!(o&&o[l])){var c=oV(t,l);try{rV(e,l,c)}catch{}}}}return e}var sV=mN;const UP=pi(sV);var gN={exports:{}},Ot={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var K2=Symbol.for("react.element"),Z2=Symbol.for("react.portal"),ty=Symbol.for("react.fragment"),ny=Symbol.for("react.strict_mode"),ry=Symbol.for("react.profiler"),iy=Symbol.for("react.provider"),oy=Symbol.for("react.context"),lV=Symbol.for("react.server_context"),ay=Symbol.for("react.forward_ref"),sy=Symbol.for("react.suspense"),ly=Symbol.for("react.suspense_list"),cy=Symbol.for("react.memo"),uy=Symbol.for("react.lazy"),cV=Symbol.for("react.offscreen"),uV=Symbol.for("react.module.reference");function mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case K2:switch(e=e.type,e){case ty:case ry:case ny:case sy:case ly:return e;default:switch(e=e&&e.$$typeof,e){case lV:case oy:case ay:case uy:case cy:case iy:return e;default:return t}}case Z2:return t}}}Ot.ContextConsumer=oy;Ot.ContextProvider=iy;Ot.Element=K2;Ot.ForwardRef=ay;Ot.Fragment=ty;Ot.Lazy=uy;Ot.Memo=cy;Ot.Portal=Z2;Ot.Profiler=ry;Ot.StrictMode=ny;Ot.Suspense=sy;Ot.SuspenseList=ly;Ot.isAsyncMode=function(){return!1};Ot.isConcurrentMode=function(){return!1};Ot.isContextConsumer=function(e){return mi(e)===oy};Ot.isContextProvider=function(e){return mi(e)===iy};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===K2};Ot.isForwardRef=function(e){return mi(e)===ay};Ot.isFragment=function(e){return mi(e)===ty};Ot.isLazy=function(e){return mi(e)===uy};Ot.isMemo=function(e){return mi(e)===cy};Ot.isPortal=function(e){return mi(e)===Z2};Ot.isProfiler=function(e){return mi(e)===ry};Ot.isStrictMode=function(e){return mi(e)===ny};Ot.isSuspense=function(e){return mi(e)===sy};Ot.isSuspenseList=function(e){return mi(e)===ly};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ty||e===ry||e===ny||e===sy||e===ly||e===cV||typeof e=="object"&&e!==null&&(e.$$typeof===uy||e.$$typeof===cy||e.$$typeof===iy||e.$$typeof===oy||e.$$typeof===ay||e.$$typeof===uV||e.getModuleId!==void 0)};Ot.typeOf=mi;gN.exports=Ot;var fV=gN.exports;const dV=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function hV(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,c,f,h,p;function g(w,S){return l=w,c=S,f=e(l,c),h=t(r,c),p=n(f,h,c),s=!0,p}function v(){return f=e(l,c),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function y(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function x(){const w=e(l,c),S=!a(w,f);return f=w,S&&(p=n(f,h,c)),p}function b(w,S){const C=!o(S,c),T=!i(w,l,S,c);return l=w,c=S,C&&T?v():C?y():T?x():p}return function(S,C){return s?b(S,C):g(S,C)}}function pV(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=H2(t,dV);const a=n(e,o),s=r(e,o),l=i(e,o);return hV(a,s,l,e,o)}function mV(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function h1(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function zP(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function vN(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=zP(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=zP(c),c=o(s,l)),c},o}}function Q2(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function gV(e){return e&&typeof e=="object"?h1(t=>mV(e,t)):e?typeof e=="function"?vN(e):Q2(e,"mapDispatchToProps"):h1(t=>({dispatch:t}))}function vV(e){return e?typeof e=="function"?vN(e):Q2(e,"mapStateToProps"):h1(()=>({}))}function yV(e,t,n){return yc({},n,e,t)}function _V(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,f){const h=e(l,c,f);return o?i(h,a)||(a=h):(o=!0,a=h),a}}}function bV(e){return e?typeof e=="function"?_V(e):Q2(e,"mergeProps"):()=>yV}function wV(){const e=WH();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const HP={notify(){},get:()=>[]};function yN(e,t){let n,r=HP;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function a(){f.onStateChange&&f.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=wV())}function c(){n&&(n(),n=void 0,r.clear(),r=HP)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const xV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mg=xV?H.useLayoutEffect:H.useEffect;function VP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function e_(e,t){if(VP(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])||!VP(e[n[i]],t[n[i]]))return!1;return!0}const SV=["reactReduxForwardedRef"];let _N=qH;const OV=e=>{_N=e},CV=[null,null];function EV(e,t,n){mg(()=>e(...t),n)}function TV(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function PV(e,t,n,r,i,o,a,s,l,c,f){if(!e)return()=>{};let h=!1,p=null;const g=()=>{if(h||!s.current)return;const y=t.getState();let x,b;try{x=r(y,i.current)}catch(w){b=w,p=w}b||(p=null),x===o.current?a.current||c():(o.current=x,l.current=x,a.current=!0,f())};return n.onStateChange=g,n.trySubscribe(),g(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function kV(e,t){return e===t}function bN(e,t,n,{pure:r,areStatesEqual:i=kV,areOwnPropsEqual:o=e_,areStatePropsEqual:a=e_,areMergedPropsEqual:s=e_,forwardRef:l=!1,context:c=fN}={}){const f=c,h=vV(e),p=gV(t),g=bV(n),v=!!e;return x=>{const b=x.displayName||x.name||"Component",w=`Connect(${b})`,S={shouldHandleStateChanges:v,displayName:w,wrappedComponentName:b,WrappedComponent:x,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:g,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function C(R){const[j,z,N]=H.useMemo(()=>{const{reactReduxForwardedRef:Q}=R,se=H2(R,SV);return[R.context,Q,se]},[R]),V=H.useMemo(()=>j&&j.Consumer&&fV.isContextConsumer(H.createElement(j.Consumer,null))?j:f,[j,f]),W=H.useContext(V),ne=!!R.store&&!!R.store.getState&&!!R.store.dispatch,q=!!W&&!!W.store,J=ne?R.store:W.store,oe=q?W.getServerState:J.getState,le=H.useMemo(()=>pV(J.dispatch,S),[J]),[G,F]=H.useMemo(()=>{if(!v)return CV;const Q=yN(J,ne?void 0:W.subscription),se=Q.notifyNestedSubs.bind(Q);return[Q,se]},[J,ne,W]),A=H.useMemo(()=>ne?W:yc({},W,{subscription:G}),[ne,W,G]),B=H.useRef(),re=H.useRef(N),U=H.useRef(),Z=H.useRef(!1);H.useRef(!1);const ie=H.useRef(!1),ae=H.useRef();mg(()=>(ie.current=!0,()=>{ie.current=!1}),[]);const pe=H.useMemo(()=>()=>U.current&&N===re.current?U.current:le(J.getState(),N),[J,N]),E=H.useMemo(()=>se=>G?PV(v,J,G,le,re,B,Z,ie,U,F,se):()=>{},[G]);EV(TV,[re,B,Z,N,U,F]);let M;try{M=_N(E,pe,oe?()=>le(oe(),N):pe)}catch(Q){throw ae.current&&(Q.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ae.current.stack}
|
||
|
||
`),Q}mg(()=>{ae.current=void 0,U.current=void 0,B.current=M});const I=H.useMemo(()=>H.createElement(x,yc({},M,{ref:z})),[z,x,M]);return H.useMemo(()=>v?H.createElement(V.Provider,{value:A},I):I,[V,I,A])}const P=H.memo(C);if(P.WrappedComponent=x,P.displayName=C.displayName=w,l){const j=H.forwardRef(function(N,V){return H.createElement(P,yc({},N,{reactReduxForwardedRef:V}))});return j.displayName=w,j.WrappedComponent=x,UP(j,x)}return UP(P,x)}}function wN({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=H.useMemo(()=>{const c=yN(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=H.useMemo(()=>e.getState(),[e]);mg(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||fN;return H.createElement(l.Provider,{value:a},n)}OV(cN.useSyncExternalStore);VH(au.unstable_batchedUpdates);/**
|
||
* @remix-run/router v1.7.2
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(this,arguments)}var wa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wa||(wa={}));const WP="popstate";function MV(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return p1("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:gg(i)}return LV(t,n,null,e)}function cn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X2(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DV(){return Math.random().toString(36).substr(2,8)}function YP(e,t){return{usr:e.state,key:e.key,idx:t}}function p1(e,t,n,r){return n===void 0&&(n=null),Sd({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?su(t):t,{state:n,key:t&&t.key||r||DV()})}function gg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function su(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function LV(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=wa.Pop,l=null,c=f();c==null&&(c=0,a.replaceState(Sd({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function h(){s=wa.Pop;let x=f(),b=x==null?null:x-c;c=x,l&&l({action:s,location:y.location,delta:b})}function p(x,b){s=wa.Push;let w=p1(y.location,x,b);n&&n(w,x),c=f()+1;let S=YP(w,c),C=y.createHref(w);try{a.pushState(S,"",C)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(C)}o&&l&&l({action:s,location:y.location,delta:1})}function g(x,b){s=wa.Replace;let w=p1(y.location,x,b);n&&n(w,x),c=f();let S=YP(w,c),C=y.createHref(w);a.replaceState(S,"",C),o&&l&&l({action:s,location:y.location,delta:0})}function v(x){let b=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof x=="string"?x:gg(x);return cn(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let y={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(WP,h),l=x,()=>{i.removeEventListener(WP,h),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let b=v(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:g,go(x){return a.go(x)}};return y}var qP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qP||(qP={}));function RV(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?su(t):t,i=J2(r.pathname||"/",n);if(i==null)return null;let o=xN(e);jV(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=HV(o[s],YV(i));return a}function xN(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(cn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Na([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(cn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),xN(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:UV(c,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of SN(o.path))i(o,a,l)}),t}function SN(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=SN(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function jV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const NV=/^:\w+$/,AV=3,IV=2,FV=1,$V=10,BV=-2,GP=e=>e==="*";function UV(e,t){let n=e.split("/"),r=n.length;return n.some(GP)&&(r+=BV),t&&(r+=IV),n.filter(i=>!GP(i)).reduce((i,o)=>i+(NV.test(o)?AV:o===""?FV:$V),r)}function zV(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 HV(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=VV({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=s.route;o.push({params:r,pathname:Na([i,f.pathname]),pathnameBase:ZV(Na([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Na([i,f.pathnameBase]))}return o}function VV(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=WV(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,f,h)=>{if(f==="*"){let p=s[h]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=qV(s[h]||"",f),c},{}),pathname:o,pathnameBase:a,pattern:e}}function WV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),X2(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function YV(e){try{return decodeURI(e)}catch(t){return X2(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function qV(e,t){try{return decodeURIComponent(e)}catch(n){return X2(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function J2(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 GV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?su(e):e;return{pathname:n?n.startsWith("/")?n:KV(n,t):t,search:QV(r),hash:XV(i)}}function KV(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 t_(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 eS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=su(e):(i=Sd({},e),cn(!i.pathname||!i.pathname.includes("?"),t_("?","pathname","search",i)),cn(!i.pathname||!i.pathname.includes("#"),t_("#","pathname","hash",i)),cn(!i.search||!i.search.includes("#"),t_("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let h=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}s=h>=0?t[h]:"/"}let l=GV(i,s),c=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Na=e=>e.join("/").replace(/\/\/+/g,"/"),ZV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function JV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ON=["post","put","patch","delete"];new Set(ON);const eW=["get",...ON];new Set(eW);/**
|
||
* React Router v6.14.2
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vg.apply(this,arguments)}const nS=H.createContext(null),CN=H.createContext(null),ll=H.createContext(null),fy=H.createContext(null),zo=H.createContext({outlet:null,matches:[],isDataRoute:!1}),EN=H.createContext(null);function tW(e,t){let{relative:n}=t===void 0?{}:t;cl()||cn(!1);let{basename:r,navigator:i}=H.useContext(ll),{hash:o,pathname:a,search:s}=rS(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Na([r,a])),i.createHref({pathname:l,search:s,hash:o})}function cl(){return H.useContext(fy)!=null}function gn(){return cl()||cn(!1),H.useContext(fy).location}function TN(e){H.useContext(ll).static||H.useLayoutEffect(e)}function ao(){let{isDataRoute:e}=H.useContext(zo);return e?pW():nW()}function nW(){cl()||cn(!1);let e=H.useContext(nS),{basename:t,navigator:n}=H.useContext(ll),{matches:r}=H.useContext(zo),{pathname:i}=gn(),o=JSON.stringify(eS(r).map(l=>l.pathnameBase)),a=H.useRef(!1);return TN(()=>{a.current=!0}),H.useCallback(function(l,c){if(c===void 0&&(c={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let f=tS(l,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Na([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,o,i,e])}function ul(){let{matches:e}=H.useContext(zo),t=e[e.length-1];return t?t.params:{}}function rS(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=H.useContext(zo),{pathname:i}=gn(),o=JSON.stringify(eS(r).map(a=>a.pathnameBase));return H.useMemo(()=>tS(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function rW(e,t){return iW(e,t)}function iW(e,t,n){cl()||cn(!1);let{navigator:r}=H.useContext(ll),{matches:i}=H.useContext(zo),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=gn(),c;if(t){var f;let y=typeof t=="string"?su(t):t;s==="/"||(f=y.pathname)!=null&&f.startsWith(s)||cn(!1),c=y}else c=l;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",g=RV(e,{pathname:p}),v=cW(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Na([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Na([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&v?H.createElement(fy.Provider,{value:{location:vg({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:wa.Pop}},v):v}function oW(){let e=hW(),t=JV(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return H.createElement(H.Fragment,null,H.createElement("h2",null,"Unexpected Application Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},t),n?H.createElement("pre",{style:i},n):null,o)}const aW=H.createElement(oW,null);class sW extends H.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?H.createElement(zo.Provider,{value:this.props.routeContext},H.createElement(EN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lW(e){let{routeContext:t,match:n,children:r}=e,i=H.useContext(nS);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),H.createElement(zo.Provider,{value:t},r)}function cW(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=o.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||cn(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,l,c)=>{let f=l.route.id?a==null?void 0:a[l.route.id]:null,h=null;n&&(h=l.route.errorElement||aW);let p=t.concat(o.slice(0,c+1)),g=()=>{let v;return f?v=h:l.route.Component?v=H.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,H.createElement(lW,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?H.createElement(sW,{location:n.location,revalidation:n.revalidation,component:h,error:f,children:g(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):g()},null)}var m1;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(m1||(m1={}));var Od;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Od||(Od={}));function uW(e){let t=H.useContext(nS);return t||cn(!1),t}function fW(e){let t=H.useContext(CN);return t||cn(!1),t}function dW(e){let t=H.useContext(zo);return t||cn(!1),t}function PN(e){let t=dW(),n=t.matches[t.matches.length-1];return n.route.id||cn(!1),n.route.id}function hW(){var e;let t=H.useContext(EN),n=fW(Od.UseRouteError),r=PN(Od.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function pW(){let{router:e}=uW(m1.UseNavigateStable),t=PN(Od.UseNavigateStable),n=H.useRef(!1);return TN(()=>{n.current=!0}),H.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,vg({fromRouteId:t},o)))},[e,t])}function iS(e){let{to:t,replace:n,state:r,relative:i}=e;cl()||cn(!1);let{matches:o}=H.useContext(zo),{pathname:a}=gn(),s=ao(),l=tS(t,eS(o).map(f=>f.pathnameBase),a,i==="path"),c=JSON.stringify(l);return H.useEffect(()=>s(JSON.parse(c),{replace:n,state:r,relative:i}),[s,c,i,n,r]),null}function vt(e){cn(!1)}function mW(e){let{basename:t="/",children:n=null,location:r,navigationType:i=wa.Pop,navigator:o,static:a=!1}=e;cl()&&cn(!1);let s=t.replace(/^\/*/,"/"),l=H.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=su(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:g="default"}=r,v=H.useMemo(()=>{let y=J2(c,s);return y==null?null:{location:{pathname:y,search:f,hash:h,state:p,key:g},navigationType:i}},[s,c,f,h,p,g,i]);return v==null?null:H.createElement(ll.Provider,{value:l},H.createElement(fy.Provider,{children:n,value:v}))}function dy(e){let{children:t,location:n}=e;return rW(g1(t),n)}var KP;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(KP||(KP={}));new Promise(()=>{});function g1(e,t){t===void 0&&(t=[]);let n=[];return H.Children.forEach(e,(r,i)=>{if(!H.isValidElement(r))return;let o=[...t,i];if(r.type===H.Fragment){n.push.apply(n,g1(r.props.children,o));return}r.type!==vt&&cn(!1),!r.props.index||!r.props.children||cn(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=g1(r.props.children,o)),n.push(a)}),n}/**
|
||
* React Router DOM v6.14.2
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yg.apply(this,arguments)}function kN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function gW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vW(e,t){return e.button===0&&(!t||t==="_self")&&!gW(e)}const yW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],_W=["aria-current","caseSensitive","className","end","style","to","children"],bW="startTransition",ZP=uF[bW];function MN(e){let{basename:t,children:n,future:r,window:i}=e,o=H.useRef();o.current==null&&(o.current=MV({window:i,v5Compat:!0}));let a=o.current,[s,l]=H.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},f=H.useCallback(h=>{c&&ZP?ZP(()=>l(h)):l(h)},[l,c]);return H.useLayoutEffect(()=>a.listen(f),[a,f]),H.createElement(mW,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}const wW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=H.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:f}=t,h=kN(t,yW),{basename:p}=H.useContext(ll),g,v=!1;if(typeof c=="string"&&xW.test(c)&&(g=c,wW))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),C=J2(S.pathname,p);S.origin===w.origin&&C!=null?c=C+S.search+S.hash:v=!0}catch{}let y=tW(c,{relative:i}),x=SW(c,{replace:a,state:s,target:l,preventScrollReset:f,relative:i});function b(w){r&&r(w),w.defaultPrevented||x(w)}return H.createElement("a",yg({},h,{href:g||y,onClick:v||o?r:b,ref:n,target:l}))}),DN=H.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,children:c}=t,f=kN(t,_W),h=rS(l,{relative:f.relative}),p=gn(),g=H.useContext(CN),{navigator:v}=H.useContext(ll),y=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=p.pathname,b=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(x=x.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase());let w=x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/",S=b!=null&&(b===y||!a&&b.startsWith(y)&&b.charAt(y.length)==="/"),C=w?r:void 0,T;typeof o=="function"?T=o({isActive:w,isPending:S}):T=[o,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let P=typeof s=="function"?s({isActive:w,isPending:S}):s;return H.createElement(Ft,yg({},f,{"aria-current":C,className:T,ref:n,style:P,to:l}),typeof c=="function"?c({isActive:w,isPending:S}):c)});var QP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(QP||(QP={}));var XP;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(XP||(XP={}));function SW(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=ao(),l=gn(),c=rS(e,{relative:a});return H.useCallback(f=>{if(vW(f,n)){f.preventDefault();let h=r!==void 0?r:gg(l)===gg(c);s(e,{replace:h,state:i,preventScrollReset:o,relative:a})}},[l,s,c,r,i,n,e,o,a])}const OW="shlink-web-client",CW="A React-based progressive web application for shlink",EW="/shlink-web-client/feature/update-deps",TW="https://github.com/shlinkio/shlink-web-client",PW="MIT",kW={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss shlink-web-component/*.scss shlink-web-component/**/*.scss shlink-frontend-kit/*.scss shlink-frontend-kit/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src shlink-web-component shlink-frontend-kit test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},MW={"@fortawesome/fontawesome-free":"^6.4.2","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^7.0.1","@reduxjs/toolkit":"^1.9.5",bootstrap:"^5.3.1",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.3.3",classnames:"^2.3.2","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^2.30.0","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.4",qs:"^6.11.2",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.2.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.16.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-leaflet":"^4.2.1","react-redux":"^8.1.2","react-router-dom":"^6.14.2","react-swipeable":"^7.0.1","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.2.0","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.0","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},DW={"@shlinkio/eslint-config-js-coding-standard":"~2.2.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^5.17.0","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.1","@types/leaflet":"^1.9.3","@types/qs":"^6.9.7","@types/ramda":"^0.27.66","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.15.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^9.0.2","@vitejs/plugin-react":"^4.0.4","@vitest/coverage-v8":"^0.34.1","adm-zip":"^0.5.10",chalk:"^5.3.0",eslint:"^8.46.0",jsdom:"^22.1.0","resize-observer-polyfill":"^1.5.1",sass:"^1.64.2",stylelint:"^15.10.2",typescript:"^5.1.6",vite:"^4.4.9","vite-plugin-pwa":"^0.16.4",vitest:"^0.34.1","vitest-canvas-mock":"^0.3.2"},LW=[">0.2%","not dead","not ie <= 11","not op_mini all"],_g={name:OW,description:CW,private:!1,homepage:EW,repository:TW,license:PW,scripts:kW,dependencies:MW,devDependencies:DW,browserslist:LW};var ji,ro=".",LN="function",RN="string",jN="__global__",oS="Provider",RW=0,aS=Array.prototype.slice,jW=function(t,n){var r=t[n];if(r===void 0&&ji.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},hy=function(t){var n;return this.nested[t]||(n=ji.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},NN=function(t){return t.split(ro).reduce(jW,this)},NW=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(f){if(f)throw f;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},AW=function(t,n){var r,i;return typeof t===LN&&(n=t,t=jN),r=t.split(ro),i=r.shift(),r.length?hy.call(this,i).middleware(r.join(ro),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},IW=function(t,n){return n(t)},JP=function(t,n){return(t[n]||[]).concat(t.__global__||[])},FW=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+oS,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete o[r],o[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=o[r],f;return c&&(f=JP(a,t).reduce(IW,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:NW(JP(s,t),t,f,o)}},Object.defineProperties(o,i),this},AN=function(t,n){var r,i;return r=t.split(ro),this.providerMap[t]&&r.length===1&&!this.container[t+oS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(hy.call(this,i).provider(r.join(ro),n),this):FW.call(this,i,n))},sS=function(t,n){return AN.call(this,t,function(){this.$get=n})},IN=function(t,n,r){var i=arguments.length>3?aS.call(arguments,3):[],o=this;return sS.call(this,t,function(){var s=n,l=i.map(NN,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},$W=function(t,n){return IN.apply(this,[t,n,!0].concat(aS.call(arguments,2)))},BW=function(t,n){return IN.apply(this,[t,n,!1].concat(aS.call(arguments,2)))},FN=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},$N=function(t,n){var r=t[n];return r||(r={},FN.call(t,n,r)),r},UW=function(t,n){var r;return r=t.split(ro),t=r.pop(),FN.call(r.reduce($N,this.container),t,n),this},zW=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},HW=function(t,n){var r=t.split(ro);return t=r.pop(),zW.call(r.reduce($N,this.container),t,n),this},BN=function(t,n){var r,i;return typeof t===LN&&(n=t,t=jN),r=t.split(ro),i=r.shift(),r.length?hy.call(this,i).decorator(r.join(ro),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},VW=function(t){return this.deferred.push(t),this},WW=function(t){return(t||[]).map(NN,this.container)},YW=function(t,n){return sS.call(this,t,function(i){return{instance:n.bind(n,i)}})},qW=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},lS=function(t){return Object.keys(t||this.container||{}).filter(qW)},bg={},GW=function(t){var n;return typeof t===RN?(n=bg[t],n||(bg[t]=n=new ji,n.constant("BOTTLE_NAME",t)),n):new ji},KW=function(t){typeof t===RN?delete bg[t]:bg={}},UN=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},ek=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+oS]},ZW=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(ro);a.length>1&&a.forEach(ek,hy.call(this,a[0])),ek.call(this,o),this.provider(o,n[o])}},this)},QW=function(t){return this.deferred.forEach(function(r){r(t)}),this};ji=function e(t){if(!(this instanceof e))return e.pop(t);this.id=RW++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:BN.bind(this),$register:UN.bind(this),$list:lS.bind(this)}};ji.prototype={constant:HW,decorator:BN,defer:VW,digest:WW,factory:sS,instanceFactory:YW,list:lS,middleware:AW,provider:AN,resetProviders:ZW,register:UN,resolve:QW,service:$W,serviceFactory:BW,value:UW};ji.pop=GW;ji.clear=KW;ji.list=lS;ji.config={strict:!1};const zN=ji;var XW=function(){return!0};const HN=XW;function Lt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function wt(e){return function t(n){return arguments.length===0||Lt(n)?t:e.apply(this,arguments)}}function ut(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Lt(n)?t:wt(function(i){return e(n,i)});default:return Lt(n)&&Lt(r)?t:Lt(n)?wt(function(i){return e(i,r)}):Lt(r)?wt(function(i){return e(n,i)}):e(n,r)}}}function JW(e,t){e=e||[],t=t||[];var n,r=e.length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}function lu(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,i){return t.apply(this,arguments)};case 4:return function(n,r,i,o){return t.apply(this,arguments)};case 5:return function(n,r,i,o,a){return t.apply(this,arguments)};case 6:return function(n,r,i,o,a,s){return t.apply(this,arguments)};case 7:return function(n,r,i,o,a,s,l){return t.apply(this,arguments)};case 8:return function(n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 9:return function(n,r,i,o,a,s,l,c,f){return t.apply(this,arguments)};case 10:return function(n,r,i,o,a,s,l,c,f,h){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function py(e,t,n){return function(){for(var r=[],i=0,o=e,a=0;a<t.length||i<arguments.length;){var s;a<t.length&&(!Lt(t[a])||i>=arguments.length)?s=t[a]:(s=arguments[i],i+=1),r[a]=s,Lt(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):lu(o,py(e,r,n))}}var eY=ut(function(t,n){return t===1?wt(n):lu(t,py(t,[],n))});const wg=eY;function es(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Lt(n)?t:ut(function(o,a){return e(n,o,a)});case 2:return Lt(n)&&Lt(r)?t:Lt(n)?ut(function(o,a){return e(o,r,a)}):Lt(r)?ut(function(o,a){return e(n,o,a)}):wt(function(o){return e(n,r,o)});default:return Lt(n)&&Lt(r)&&Lt(i)?t:Lt(n)&&Lt(r)?ut(function(o,a){return e(o,a,i)}):Lt(n)&&Lt(i)?ut(function(o,a){return e(o,r,a)}):Lt(r)&&Lt(i)?ut(function(o,a){return e(n,o,a)}):Lt(n)?wt(function(o){return e(o,r,i)}):Lt(r)?wt(function(o){return e(n,o,i)}):Lt(i)?wt(function(o){return e(n,r,o)}):e(n,r,i)}}}const oh=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function tY(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function cS(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!oh(i)){for(var o=0;o<e.length;){if(typeof i[e[o]]=="function")return i[e[o]].apply(i,r);o+=1}if(tY(i)){var a=t.apply(null,r);return a(i)}}return n.apply(this,arguments)}}const Cd={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var nY=ut(function(t,n){return n>t?n:t});const VN=nY;function Cm(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function my(e){return Object.prototype.toString.call(e)==="[object String]"}var rY=wt(function(t){return oh(t)?!0:!t||typeof t!="object"||my(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const WN=rY;var iY=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},e}();function oY(e){return new iY(e)}var aY=ut(function(t,n){return lu(t.length,function(){return t.apply(n,arguments)})});const sY=aY;function lY(e,t,n){for(var r=0,i=n.length;r<i;){if(t=e["@@transducer/step"](t,n[r]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}function tk(e,t,n){for(var r=n.next();!r.done;){if(t=e["@@transducer/step"](t,r.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function nk(e,t,n,r){return e["@@transducer/result"](n[r](sY(e["@@transducer/step"],e),t))}var rk=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function cu(e,t,n){if(typeof e=="function"&&(e=oY(e)),WN(n))return lY(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return nk(e,t,n,"fantasy-land/reduce");if(n[rk]!=null)return tk(e,t,n[rk]());if(typeof n.next=="function")return tk(e,t,n);if(typeof n.reduce=="function")return nk(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var cY=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=Cd.init,e.prototype["@@transducer/result"]=Cd.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),uY=ut(function(t,n){return new cY(t,n)});const fY=uY;function jr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var ik=Object.prototype.toString,dY=function(){return ik.call(arguments)==="[object Arguments]"?function(t){return ik.call(t)==="[object Arguments]"}:function(t){return jr("callee",t)}}();const YN=dY;var hY=!{toString:null}.propertyIsEnumerable("toString"),ok=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ak=function(){return arguments.propertyIsEnumerable("length")}(),pY=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},mY=wt(typeof Object.keys=="function"&&!ak?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=ak&&YN(t);for(n in t)jr(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(hY)for(r=ok.length-1;r>=0;)n=ok[r],jr(n,t)&&!pY(i,n)&&(i[i.length]=n),r-=1;return i});const io=mY;var gY=ut(cS(["fantasy-land/map","map"],fY,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return wg(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return cu(function(r,i){return r[i]=t(n[i]),r},{},io(n));default:return Cm(t,n)}}));const ah=gY,v1=Number.isInteger||function(t){return t<<0===t};var vY=ut(function(t,n){var r=t<0?n.length+t:t;return my(n)?n.charAt(r):n[r]});const qN=vY;var yY=ut(function(t,n){return t.map(function(r){for(var i=n,o=0,a;o<r.length;){if(i==null)return;a=r[o],i=v1(a)?qN(a,i):i[a],o+=1}return i})});const _Y=yY;var bY=ut(function(t,n){return _Y([t],n)[0]});const wY=bY;var xY=ut(function(t,n){return wY([t],n)});const ct=xY;var SY=es(cu);const uS=SY;var OY=wt(function(t){return function(){return t}});const n_=OY;var CY=ut(function(t,n){return typeof n["fantasy-land/ap"]=="function"?n["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(n):typeof t=="function"?function(r){return t(r)(n(r))}:cu(function(r,i){return JW(r,ah(i,n))},[],t)});const EY=CY;var TY=wt(function(t){for(var n=io(t),r=n.length,i=[],o=0;o<r;)i[o]=t[n[o]],o+=1;return i});const uu=TY;var PY=es(function(t,n,r){var i={};for(var o in r)i[o]=r[o];return i[t]=n,i});const Ed=PY;var kY=wt(function(t){return t==null});const Ho=kY;var MY=es(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var o=!Ho(r)&&jr(i,r)?r[i]:v1(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(v1(i)&&oh(r)){var a=[].concat(r);return a[i]=n,a}else return Ed(i,n,r)});const Dl=MY;function DY(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var LY=ut(function(t,n){var r=wg(t,n);return wg(t,function(){return cu(EY,ah(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const RY=LY;var jY=wt(function(t){return RY(t.length,t)});const NY=jY;function AY(e){return function t(n){for(var r,i,o,a=[],s=0,l=n.length;s<l;){if(WN(n[s]))for(r=e?t(n[s]):n[s],o=0,i=r.length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}function IY(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var FY=wt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});const xg=FY;function GN(e,t,n,r){var i=function(a){for(var s=t.length,l=0;l<s;){if(e===t[l])return n[l];l+=1}t[l+1]=e,n[l+1]=a;for(var c in e)a[c]=r?GN(e[c],t,n,!0):e[c];return a};switch(xg(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return IY(e);default:return e}}var $Y=wt(function(t){return!t});const BY=$Y;var UY=NY(BY);const zY=UY;function HY(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function fS(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return oh(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var VY=es(fS("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)}));const KN=VY;var WY=wt(fS("tail",KN(1,1/0)));const YY=WY;function Mt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return lu(arguments[0].length,uS(HY,arguments[0],YY(arguments)))}var qY=wt(function(t){return my(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});const y1=qY;function GY(e){return e}var KY=wt(GY);const gy=KY;function sk(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function lk(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function ZY(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function QY(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const r_=typeof Object.is=="function"?Object.is:QY;function ck(e,t,n,r){var i=sk(e),o=sk(t);function a(s,l){return dS(s,l,n.slice(),r.slice())}return!lk(function(s,l){return!lk(a,l,s)},o,i)}function dS(e,t,n,r){if(r_(e,t))return!0;var i=xg(e);if(i!==xg(t)||e==null||t==null)return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&ZY(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&r_(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!r_(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:ck(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:ck(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=io(e);if(a.length!==io(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(o=a.length-1;o>=0;){var c=a[o];if(!(jr(c,t)&&dS(t[c],e[c],s,l)))return!1;o-=1}return!0}var XY=ut(function(t,n){return dS(t,n,[],[])});const hS=XY;function JY(e,t,n){var r,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(r=1/t;n<e.length;){if(i=e[n],i===0&&1/i===r)return n;n+=1}return-1}else if(t!==t){for(;n<e.length;){if(i=e[n],typeof i=="number"&&i!==i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(t===null)return e.indexOf(t,n)}for(;n<e.length;){if(hS(e[n],t))return n;n+=1}return-1}function eq(e,t){return JY(t,e,0)>=0}function i_(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var qu=function(t){return(t<10?"0":"")+t},tq=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+qu(t.getUTCMonth()+1)+"-"+qu(t.getUTCDate())+"T"+qu(t.getUTCHours())+":"+qu(t.getUTCMinutes())+":"+qu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const nq=tq;function rq(e){return function(){return!e.apply(this,arguments)}}function iq(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}function Sg(e){return Object.prototype.toString.call(e)==="[object Object]"}var oq=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=Cd.init,e.prototype["@@transducer/result"]=Cd.result,e.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e}(),aq=ut(function(t,n){return new oq(t,n)});const sq=aq;var lq=ut(cS(["filter"],sq,function(e,t){return Sg(t)?cu(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},io(t)):iq(e,t)}));const ZN=lq;var cq=ut(function(t,n){return ZN(rq(t),n)});const sh=cq;function QN(e,t){var n=function(a){var s=t.concat([e]);return eq(a,s)?"<Circular>":QN(a,s)},r=function(o,a){return Cm(function(s){return i_(s)+": "+n(o[s])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Cm(n,e).join(", ")+"))";case"[object Array]":return"["+Cm(n,e).concat(r(e,sh(function(o){return/^\d+$/.test(o)},io(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):i_(nq(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":i_(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+r(e,io(e)).join(", ")+"}"}}var uq=wt(function(t){return QN(t,[])});const fq=uq;var dq=wt(function(t){var n=uS(VN,0,ah(function(r){return r[0].length},t));return lu(n,function(){for(var r=0;r<t.length;){if(t[r][0].apply(this,arguments))return t[r][1].apply(this,arguments);r+=1}})});const pS=dq;var hq=function(){function e(t,n,r,i){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=Cd.init,e.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(jr(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t},e}(),pq=py(4,[],function(t,n,r,i){return new hq(t,n,r,i)});const mq=pq;var gq=py(4,[],cS([],mq,function(t,n,r,i){return cu(function(o,a){var s=r(a);return o[s]=t(jr(s,o)?o[s]:GN(n,[],[],!1),a),o},{},i)}));const XN=gq;var vq=XN(function(e,t){return e+1},0);const JN=vq;var yq=ut(function(t,n){var r={};for(var i in n)r[i]=n[i];return delete r[t],r});const _q=yq;var bq=qN(-1);const wq=bq;var xq=wt(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():oh(t)?[]:my(t)?"":Sg(t)?{}:YN(t)?function(){return arguments}():void 0});const Sq=xq;var Oq=wt(AY(!0));const Cq=Oq;var Eq=wt(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n});const hf=Eq;var Tq=ut(fS("groupBy",XN(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));const Pq=Tq;var kq=ut(function(t,n){return wg(t+1,function(){var r=arguments[t];if(r!=null&&DY(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(fq(r)+' does not have a method named "'+n+'"')})});const Mq=kq;var Dq=wt(function(t){return t!=null&&hS(t,Sq(t))});const Yn=Dq;function uk(e){return Object.prototype.toString.call(e)==="[object Number]"}var Lq=ut(function(t,n){var r={};return lu(n.length,function(){var i=t.apply(this,arguments);return jr(i,r)||(r[i]=n.apply(this,arguments)),r[i]})});const eA=Lq;var Rq=es(function(t,n,r){var i={},o;for(o in n)jr(o,n)&&(i[o]=jr(o,r)?t(o,n[o],r[o]):n[o]);for(o in r)jr(o,r)&&!jr(o,i)&&(i[o]=r[o]);return i});const jq=Rq;var Nq=es(function e(t,n,r){return jq(function(i,o,a){return Sg(o)&&Sg(a)?e(t,o,a):t(i,o,a)},n,r)});const Aq=Nq;var Iq=ut(function(t,n){return Aq(function(r,i,o){return o},t,n)});const tA=Iq;var Fq=ut(function(t,n){return n<t?n:t});const nA=Fq;var $q=ut(function(t,n){for(var r={},i={},o=0,a=t.length;o<a;)i[t[o]]=1,o+=1;for(var s in n)i.hasOwnProperty(s)||(r[s]=n[s]);return r});const Bq=$q;var Uq=ut(function(t,n){for(var r={},i=0;i<t.length;)t[i]in n&&(r[t[i]]=n[t[i]]),i+=1;return r});const mS=Uq;var zq=es(function(t,n,r){return hS(n,r[t])});const Hq=zq;var Vq=ut(function(t,n){if(!(uk(t)&&uk(n)))throw new TypeError("Both arguments to range must be numbers");for(var r=[],i=t;i<n;)r.push(i),i+=1;return r});const gS=Vq;var Wq=es(function(t,n,r){return r.replace(t,n)});const Yq=Wq;var qq=ut(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,i){var o=t(r),a=t(i);return o<a?-1:o>a?1:0})});const Gq=qq;var Kq=ut(function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],i=0;i<n.length;)r.push(KN(i,i+=t,n));return r});const Td=Kq;var Zq=Mq(0,"toLowerCase");const Qq=Zq;var Xq=wt(function(t){var n=[];for(var r in t)jr(r,t)&&(n[n.length]=[r,t[r]]);return n});const Og=Xq;var Gu=`
|
||
\v\f\r \u2028\u2029\uFEFF`,Jq="",eG=typeof String.prototype.trim=="function",tG=wt(!eG||Gu.trim()||!Jq.trim()?function(t){var n=new RegExp("^["+Gu+"]["+Gu+"]*"),r=new RegExp("["+Gu+"]["+Gu+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()});const nG=tG;var rG=ut(function(t,n){for(var r=0,i=Math.min(t.length,n.length),o={};r<i;)o[t[r]]=n[r],r+=1;return o});const rA=rG,iA=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Af=e=>!!(e!=null&&e.id),oA=e=>!!(e!=null&&e.version),iG=e=>!!(e!=null&&e.serverNotFound),oG=e=>Af(e)?e.id:"",aG=e=>Bq(["id","autoConnect"],e);var sG={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},lG=sG,cG={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},vS=cG,uG={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V368c0-8.8 7.2-16 16-16z"]},fG={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},dG=fG,aA={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},hG={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},sA={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},pG={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},mG=pG,gG={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},yS=gG,vG={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},yG={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},_G={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},fk={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},bG={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},wG=bG,xG={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},lA=xG,SG={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},OG={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},CG={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},EG=CG,_S={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},cA={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},dk={prefix:"fas",iconName:"calendar-xmark",icon:[512,512,["calendar-times"],"f273","M160 0c17.7 0 32 14.3 32 32V64H320V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H32V112c0-26.5 21.5-48 48-48h48V32c0-17.7 14.3-32 32-32zM32 192H480V464c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V192zM337 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},TG={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},uA={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},PG={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},kG=PG,MG={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},DG={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},bS=DG,LG={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},RG=LG,jG={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},NG={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},AG=NG,IG={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},FG=IG,$G={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},BG=$G,UG={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},fA=UG,zG={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},HG={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},VG={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},WG=VG,YG={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},wS={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},qG={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},_1=qG,GG={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},KG={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},ZG=KG,hk={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},QG={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},XG=QG,JG={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},eK={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},tK={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},nK={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},Pd={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function pk(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pk(Object(n),!0).forEach(function(r){xn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cg(e){"@babel/helpers - typeof";return Cg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cg(e)}function rK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iK(e,t,n){return t&&mk(e.prototype,t),n&&mk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xS(e,t){return aK(e)||lK(e,t)||dA(e,t)||uK()}function lh(e){return oK(e)||sK(e)||dA(e)||cK()}function oK(e){if(Array.isArray(e))return b1(e)}function aK(e){if(Array.isArray(e))return e}function sK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function dA(e,t){if(e){if(typeof e=="string")return b1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b1(e,t)}}function b1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cK(){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 uK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gk=function(){},SS={},hA={},pA=null,mA={mark:gk,measure:gk};try{typeof window<"u"&&(SS=window),typeof document<"u"&&(hA=document),typeof MutationObserver<"u"&&(pA=MutationObserver),typeof performance<"u"&&(mA=performance)}catch{}var fK=SS.navigator||{},vk=fK.userAgent,yk=vk===void 0?"":vk,Ha=SS,It=hA,_k=pA,Mp=mA;Ha.document;var Vo=!!It.documentElement&&!!It.head&&typeof It.addEventListener=="function"&&typeof It.createElement=="function",gA=~yk.indexOf("MSIE")||~yk.indexOf("Trident/"),Dp,Lp,Rp,jp,Np,Ro="___FONT_AWESOME___",w1=16,vA="fa",yA="svg-inline--fa",Xs="data-fa-i2svg",x1="data-fa-pseudo-element",dK="data-fa-pseudo-element-pending",OS="data-prefix",CS="data-icon",bk="fontawesome-i2svg",hK="async",pK=["HTML","HEAD","STYLE","SCRIPT"],_A=function(){try{return!0}catch{return!1}}(),Rt="classic",Zt="sharp",ES=[Rt,Zt];function ch(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Rt]}})}var kd=ch((Dp={},xn(Dp,Rt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),xn(Dp,Zt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Dp)),Md=ch((Lp={},xn(Lp,Rt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),xn(Lp,Zt,{solid:"fass",regular:"fasr",light:"fasl"}),Lp)),Dd=ch((Rp={},xn(Rp,Rt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),xn(Rp,Zt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Rp)),mK=ch((jp={},xn(jp,Rt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),xn(jp,Zt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),jp)),gK=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,bA="fa-layers-text",vK=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,yK=ch((Np={},xn(Np,Rt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),xn(Np,Zt,{900:"fass",400:"fasr",300:"fasl"}),Np)),wA=[1,2,3,4,5,6,7,8,9,10],_K=wA.concat([11,12,13,14,15,16,17,18,19,20]),bK=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ls={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ld=new Set;Object.keys(Md[Rt]).map(Ld.add.bind(Ld));Object.keys(Md[Zt]).map(Ld.add.bind(Ld));var wK=[].concat(ES,lh(Ld),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ls.GROUP,Ls.SWAP_OPACITY,Ls.PRIMARY,Ls.SECONDARY]).concat(wA.map(function(e){return"".concat(e,"x")})).concat(_K.map(function(e){return"w-".concat(e)})),If=Ha.FontAwesomeConfig||{};function xK(e){var t=It.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function SK(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(It&&typeof It.querySelector=="function"){var OK=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];OK.forEach(function(e){var t=xS(e,2),n=t[0],r=t[1],i=SK(xK(n));i!=null&&(If[r]=i)})}var xA={styleDefault:"solid",familyDefault:"classic",cssPrefix:vA,replacementClass:yA,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};If.familyPrefix&&(If.cssPrefix=If.familyPrefix);var Ac=Fe(Fe({},xA),If);Ac.autoReplaceSvg||(Ac.observeMutations=!1);var ze={};Object.keys(xA).forEach(function(e){Object.defineProperty(ze,e,{enumerable:!0,set:function(n){Ac[e]=n,Ff.forEach(function(r){return r(ze)})},get:function(){return Ac[e]}})});Object.defineProperty(ze,"familyPrefix",{enumerable:!0,set:function(t){Ac.cssPrefix=t,Ff.forEach(function(n){return n(ze)})},get:function(){return Ac.cssPrefix}});Ha.FontAwesomeConfig=ze;var Ff=[];function CK(e){return Ff.push(e),function(){Ff.splice(Ff.indexOf(e),1)}}var ea=w1,Qi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function EK(e){if(!(!e||!Vo)){var t=It.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=It.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return It.head.insertBefore(t,r),e}}var TK="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Rd(){for(var e=12,t="";e-- >0;)t+=TK[Math.random()*62|0];return t}function fu(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function TS(e){return e.classList?fu(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function SA(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function PK(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(SA(e[n]),'" ')},"").trim()}function vy(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function PS(e){return e.size!==Qi.size||e.x!==Qi.x||e.y!==Qi.y||e.rotate!==Qi.rotate||e.flipX||e.flipY}function kK(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function MK(e){var t=e.transform,n=e.width,r=n===void 0?w1:n,i=e.height,o=i===void 0?w1:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&gA?l+="translate(".concat(t.x/ea-r/2,"em, ").concat(t.y/ea-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ea,"em), calc(-50% + ").concat(t.y/ea,"em)) "):l+="translate(".concat(t.x/ea,"em, ").concat(t.y/ea,"em) "),l+="scale(".concat(t.size/ea*(t.flipX?-1:1),", ").concat(t.size/ea*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var DK=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
}
|
||
|
||
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
||
overflow: visible;
|
||
box-sizing: content-box;
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
}
|
||
.svg-inline--fa.fa-2xs {
|
||
vertical-align: 0.1em;
|
||
}
|
||
.svg-inline--fa.fa-xs {
|
||
vertical-align: 0em;
|
||
}
|
||
.svg-inline--fa.fa-sm {
|
||
vertical-align: -0.0714285705em;
|
||
}
|
||
.svg-inline--fa.fa-lg {
|
||
vertical-align: -0.2em;
|
||
}
|
||
.svg-inline--fa.fa-xl {
|
||
vertical-align: -0.25em;
|
||
}
|
||
.svg-inline--fa.fa-2xl {
|
||
vertical-align: -0.3125em;
|
||
}
|
||
.svg-inline--fa.fa-pull-left {
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-pull-right {
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
top: 0.25em;
|
||
}
|
||
.svg-inline--fa.fa-fw {
|
||
width: var(--fa-fw-width, 1.25em);
|
||
}
|
||
|
||
.fa-layers svg.svg-inline--fa {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.fa-layers-counter, .fa-layers-text {
|
||
display: inline-block;
|
||
position: absolute;
|
||
text-align: center;
|
||
}
|
||
|
||
.fa-layers {
|
||
display: inline-block;
|
||
height: 1em;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: -0.125em;
|
||
width: 1em;
|
||
}
|
||
.fa-layers svg.svg-inline--fa {
|
||
-webkit-transform-origin: center center;
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
-webkit-transform: translate(-50%, -50%);
|
||
transform: translate(-50%, -50%);
|
||
-webkit-transform-origin: center center;
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-counter {
|
||
background-color: var(--fa-counter-background-color, #ff253a);
|
||
border-radius: var(--fa-counter-border-radius, 1em);
|
||
box-sizing: border-box;
|
||
color: var(--fa-inverse, #fff);
|
||
line-height: var(--fa-counter-line-height, 1);
|
||
max-width: var(--fa-counter-max-width, 5em);
|
||
min-width: var(--fa-counter-min-width, 1.5em);
|
||
overflow: hidden;
|
||
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
||
right: var(--fa-right, 0);
|
||
text-overflow: ellipsis;
|
||
top: var(--fa-top, 0);
|
||
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom right;
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom left;
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top left;
|
||
transform-origin: top left;
|
||
}
|
||
|
||
.fa-1x {
|
||
font-size: 1em;
|
||
}
|
||
|
||
.fa-2x {
|
||
font-size: 2em;
|
||
}
|
||
|
||
.fa-3x {
|
||
font-size: 3em;
|
||
}
|
||
|
||
.fa-4x {
|
||
font-size: 4em;
|
||
}
|
||
|
||
.fa-5x {
|
||
font-size: 5em;
|
||
}
|
||
|
||
.fa-6x {
|
||
font-size: 6em;
|
||
}
|
||
|
||
.fa-7x {
|
||
font-size: 7em;
|
||
}
|
||
|
||
.fa-8x {
|
||
font-size: 8em;
|
||
}
|
||
|
||
.fa-9x {
|
||
font-size: 9em;
|
||
}
|
||
|
||
.fa-10x {
|
||
font-size: 10em;
|
||
}
|
||
|
||
.fa-2xs {
|
||
font-size: 0.625em;
|
||
line-height: 0.1em;
|
||
vertical-align: 0.225em;
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: 0.75em;
|
||
line-height: 0.0833333337em;
|
||
vertical-align: 0.125em;
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: 0.875em;
|
||
line-height: 0.0714285718em;
|
||
vertical-align: 0.0535714295em;
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: 1.25em;
|
||
line-height: 0.05em;
|
||
vertical-align: -0.075em;
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: 1.5em;
|
||
line-height: 0.0416666682em;
|
||
vertical-align: -0.125em;
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: 2em;
|
||
line-height: 0.03125em;
|
||
vertical-align: -0.1875em;
|
||
}
|
||
|
||
.fa-fw {
|
||
text-align: center;
|
||
width: 1.25em;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-left: var(--fa-li-margin, 2.5em);
|
||
padding-left: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
left: calc(var(--fa-li-width, 2em) * -1);
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
.fa-border {
|
||
border-color: var(--fa-border-color, #eee);
|
||
border-radius: var(--fa-border-radius, 0.1em);
|
||
border-style: var(--fa-border-style, solid);
|
||
border-width: var(--fa-border-width, 0.08em);
|
||
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
||
}
|
||
|
||
.fa-pull-left {
|
||
float: left;
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right {
|
||
float: right;
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-beat {
|
||
-webkit-animation-name: fa-beat;
|
||
animation-name: fa-beat;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
-webkit-animation-name: fa-bounce;
|
||
animation-name: fa-bounce;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
-webkit-animation-name: fa-fade;
|
||
animation-name: fa-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
-webkit-animation-name: fa-beat-fade;
|
||
animation-name: fa-beat-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
-webkit-animation-name: fa-flip;
|
||
animation-name: fa-flip;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
-webkit-animation-name: fa-shake;
|
||
animation-name: fa-shake;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.fa-beat,
|
||
.fa-bounce,
|
||
.fa-fade,
|
||
.fa-beat-fade,
|
||
.fa-flip,
|
||
.fa-pulse,
|
||
.fa-shake,
|
||
.fa-spin,
|
||
.fa-spin-pulse {
|
||
-webkit-animation-delay: -1ms;
|
||
animation-delay: -1ms;
|
||
-webkit-animation-duration: 1ms;
|
||
animation-duration: 1ms;
|
||
-webkit-animation-iteration-count: 1;
|
||
animation-iteration-count: 1;
|
||
-webkit-transition-delay: 0s;
|
||
transition-delay: 0s;
|
||
-webkit-transition-duration: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
-webkit-transform: rotate(90deg);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
-webkit-transform: rotate(180deg);
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
-webkit-transform: rotate(270deg);
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
-webkit-transform: scale(-1, 1);
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
-webkit-transform: scale(1, -1);
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
-webkit-transform: scale(-1, -1);
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
-webkit-transform: rotate(var(--fa-rotate-angle, none));
|
||
transform: rotate(var(--fa-rotate-angle, none));
|
||
}
|
||
|
||
.fa-stack {
|
||
display: inline-block;
|
||
vertical-align: middle;
|
||
height: 2em;
|
||
position: relative;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-stack-1x,
|
||
.fa-stack-2x {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
z-index: var(--fa-stack-z-index, auto);
|
||
}
|
||
|
||
.svg-inline--fa.fa-stack-1x {
|
||
height: 1em;
|
||
width: 1.25em;
|
||
}
|
||
.svg-inline--fa.fa-stack-2x {
|
||
height: 2em;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.sr-only,
|
||
.fa-sr-only {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.sr-only-focusable:not(:focus),
|
||
.fa-sr-only-focusable:not(:focus) {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.svg-inline--fa .fa-primary {
|
||
fill: var(--fa-primary-color, currentColor);
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa .fa-secondary {
|
||
fill: var(--fa-secondary-color, currentColor);
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa mask .fa-primary,
|
||
.svg-inline--fa mask .fa-secondary {
|
||
fill: black;
|
||
}
|
||
|
||
.fad.fa-inverse,
|
||
.fa-duotone.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}`;function OA(){var e=vA,t=yA,n=ze.cssPrefix,r=ze.replacementClass,i=DK;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var wk=!1;function o_(){ze.autoAddCss&&!wk&&(EK(OA()),wk=!0)}var LK={mixout:function(){return{dom:{css:OA,insertCss:o_}}},hooks:function(){return{beforeDOMElementCreation:function(){o_()},beforeI2svg:function(){o_()}}}},jo=Ha||{};jo[Ro]||(jo[Ro]={});jo[Ro].styles||(jo[Ro].styles={});jo[Ro].hooks||(jo[Ro].hooks={});jo[Ro].shims||(jo[Ro].shims=[]);var Ti=jo[Ro],CA=[],RK=function e(){It.removeEventListener("DOMContentLoaded",e),Eg=1,CA.map(function(t){return t()})},Eg=!1;Vo&&(Eg=(It.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(It.readyState),Eg||It.addEventListener("DOMContentLoaded",RK));function jK(e){Vo&&(Eg?setTimeout(e,0):CA.push(e))}function uh(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?SA(e):"<".concat(t," ").concat(PK(r),">").concat(o.map(uh).join(""),"</").concat(t,">")}function xk(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var NK=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},a_=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?NK(n,i):n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<a;l++)c=o[l],f=s(f,t[c],c,t);return f};function AK(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function S1(e){var t=AK(e);return t.length===1?t[0].toString(16):null}function IK(e,t){var n=e.length,r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Sk(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 O1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=Sk(t);typeof Ti.hooks.addPack=="function"&&!i?Ti.hooks.addPack(e,Sk(t)):Ti.styles[e]=Fe(Fe({},Ti.styles[e]||{}),o),e==="fas"&&O1("fa",t)}var Ap,Ip,Fp,ic=Ti.styles,FK=Ti.shims,$K=(Ap={},xn(Ap,Rt,Object.values(Dd[Rt])),xn(Ap,Zt,Object.values(Dd[Zt])),Ap),kS=null,EA={},TA={},PA={},kA={},MA={},BK=(Ip={},xn(Ip,Rt,Object.keys(kd[Rt])),xn(Ip,Zt,Object.keys(kd[Zt])),Ip);function UK(e){return~wK.indexOf(e)}function zK(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!UK(i)?i:null}var DA=function(){var t=function(o){return a_(ic,function(a,s,l){return a[l]=a_(s,o,{}),a},{})};EA=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),TA=t(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),MA=t(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in ic||ze.autoFetchSvg,r=a_(FK,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});PA=r.names,kA=r.unicodes,kS=yy(ze.styleDefault,{family:ze.familyDefault})};CK(function(e){kS=yy(e.styleDefault,{family:ze.familyDefault})});DA();function MS(e,t){return(EA[e]||{})[t]}function HK(e,t){return(TA[e]||{})[t]}function Rs(e,t){return(MA[e]||{})[t]}function LA(e){return PA[e]||{prefix:null,iconName:null}}function VK(e){var t=kA[e],n=MS("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Va(){return kS}var DS=function(){return{prefix:null,iconName:null,rest:[]}};function yy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Rt:n,i=kd[r][e],o=Md[r][e]||Md[r][i],a=e in Ti.styles?e:null;return o||a||null}var Ok=(Fp={},xn(Fp,Rt,Object.keys(Dd[Rt])),xn(Fp,Zt,Object.keys(Dd[Zt])),Fp);function _y(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},xn(t,Rt,"".concat(ze.cssPrefix,"-").concat(Rt)),xn(t,Zt,"".concat(ze.cssPrefix,"-").concat(Zt)),t),a=null,s=Rt;(e.includes(o[Rt])||e.some(function(c){return Ok[Rt].includes(c)}))&&(s=Rt),(e.includes(o[Zt])||e.some(function(c){return Ok[Zt].includes(c)}))&&(s=Zt);var l=e.reduce(function(c,f){var h=zK(ze.cssPrefix,f);if(ic[f]?(f=$K[s].includes(f)?mK[s][f]:f,a=f,c.prefix=f):BK[s].indexOf(f)>-1?(a=f,c.prefix=yy(f,{family:s})):h?c.iconName=h:f!==ze.replacementClass&&f!==o[Rt]&&f!==o[Zt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=a==="fa"?LA(c.iconName):{},g=Rs(c.prefix,c.iconName);p.prefix&&(a=null),c.iconName=p.iconName||g||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!ic.far&&ic.fas&&!ze.autoFetchSvg&&(c.prefix="fas")}return c},DS());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===Zt&&(ic.fass||ze.autoFetchSvg)&&(l.prefix="fass",l.iconName=Rs(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=Va()||"fas"),l}var WK=function(){function e(){rK(this,e),this.definitions={}}return iK(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=Fe(Fe({},n.definitions[s]||{}),a[s]),O1(s,a[s]);var l=Dd[Rt][s];l&&O1(l,a[s]),DA()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var a=i[o],s=a.prefix,l=a.iconName,c=a.icon,f=c[2];n[s]||(n[s]={}),f.length>0&&f.forEach(function(h){typeof h=="string"&&(n[s][h]=c)}),n[s][l]=c}),n}}]),e}(),Ck=[],oc={},_c={},YK=Object.keys(_c);function qK(e,t){var n=t.mixoutsTo;return Ck=e,oc={},Object.keys(_c).forEach(function(r){YK.indexOf(r)===-1&&delete _c[r]}),Ck.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Cg(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){oc[a]||(oc[a]=[]),oc[a].push(o[a])})}r.provides&&r.provides(_c)}),n}function C1(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=oc[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function Js(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=oc[e]||[];i.forEach(function(o){o.apply(null,n)})}function No(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return _c[e]?_c[e].apply(null,t):void 0}function E1(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Va();if(t)return t=Rs(n,t)||t,xk(RA.definitions,n,t)||xk(Ti.styles,n,t)}var RA=new WK,GK=function(){ze.autoReplaceSvg=!1,ze.observeMutations=!1,Js("noAuto")},KK={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Vo?(Js("beforeI2svg",t),No("pseudoElements2svg",t),No("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ze.autoReplaceSvg===!1&&(ze.autoReplaceSvg=!0),ze.observeMutations=!0,jK(function(){QK({autoReplaceSvgRoot:n}),Js("watch",t)})}},ZK={icon:function(t){if(t===null)return null;if(Cg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Rs(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=yy(t[0]);return{prefix:r,iconName:Rs(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ze.cssPrefix,"-"))>-1||t.match(gK))){var i=_y(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Va(),iconName:Rs(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Va();return{prefix:o,iconName:Rs(o,t)||t}}}},Kr={noAuto:GK,config:ze,dom:KK,parse:ZK,library:RA,findIconDefinition:E1,toHtml:uh},QK=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?It:n;(Object.keys(Ti.styles).length>0||ze.autoFetchSvg)&&Vo&&ze.autoReplaceSvg&&Kr.dom.i2svg({node:r})};function by(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return uh(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Vo){var r=It.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function XK(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(PS(a)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};i.style=vy(Fe(Fe({},o),{},{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function JK(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(ze.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Fe(Fe({},i),{},{id:a}),children:r}]}]}function LS(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,c=e.maskId,f=e.titleId,h=e.extra,p=e.watchable,g=p===void 0?!1:p,v=r.found?r:n,y=v.width,x=v.height,b=i==="fak",w=[ze.replacementClass,o?"".concat(ze.cssPrefix,"-").concat(o):""].filter(function(z){return h.classes.indexOf(z)===-1}).filter(function(z){return z!==""||!!z}).concat(h.classes).join(" "),S={children:[],attributes:Fe(Fe({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:w,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(x)})},C=b&&!~h.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};g&&(S.attributes[Xs]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(f||Rd())},children:[l]}),delete S.attributes.title);var T=Fe(Fe({},S),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:s,styles:Fe(Fe({},C),h.styles)}),P=r.found&&n.found?No("generateAbstractMask",T)||{children:[],attributes:{}}:No("generateAbstractIcon",T)||{children:[],attributes:{}},R=P.children,j=P.attributes;return T.children=R,T.attributes=j,s?JK(T):XK(T)}function Ek(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=s===void 0?!1:s,c=Fe(Fe(Fe({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(c[Xs]="");var f=Fe({},a.styles);PS(i)&&(f.transform=MK({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=vy(f);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function eZ(e){var t=e.content,n=e.title,r=e.extra,i=Fe(Fe(Fe({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=vy(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var s_=Ti.styles;function T1(e){var t=e[0],n=e[1],r=e.slice(4),i=xS(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(ze.cssPrefix,"-").concat(Ls.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ze.cssPrefix,"-").concat(Ls.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(ze.cssPrefix,"-").concat(Ls.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var tZ={found:!1,width:512,height:512};function nZ(e,t){!_A&&!ze.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function P1(e,t){var n=t;return t==="fa"&&ze.styleDefault!==null&&(t=Va()),new Promise(function(r,i){if(No("missingIconAbstract"),n==="fa"){var o=LA(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&s_[t]&&s_[t][e]){var a=s_[t][e];return r(T1(a))}nZ(e,t),r(Fe(Fe({},tZ),{},{icon:ze.showMissingIcons&&e?No("missingIconAbstract")||{}:{}}))})}var Tk=function(){},k1=ze.measurePerformance&&Mp&&Mp.mark&&Mp.measure?Mp:{mark:Tk,measure:Tk},pf='FA "6.4.2"',rZ=function(t){return k1.mark("".concat(pf," ").concat(t," begins")),function(){return jA(t)}},jA=function(t){k1.mark("".concat(pf," ").concat(t," ends")),k1.measure("".concat(pf," ").concat(t),"".concat(pf," ").concat(t," begins"),"".concat(pf," ").concat(t," ends"))},RS={begin:rZ,end:jA},Em=function(){};function Pk(e){var t=e.getAttribute?e.getAttribute(Xs):null;return typeof t=="string"}function iZ(e){var t=e.getAttribute?e.getAttribute(OS):null,n=e.getAttribute?e.getAttribute(CS):null;return t&&n}function oZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ze.replacementClass)}function aZ(){if(ze.autoReplaceSvg===!0)return Tm.replace;var e=Tm[ze.autoReplaceSvg];return e||Tm.replace}function sZ(e){return It.createElementNS("http://www.w3.org/2000/svg",e)}function lZ(e){return It.createElement(e)}function NA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?sZ:lZ:n;if(typeof e=="string")return It.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(NA(a,{ceFn:r}))}),i}function cZ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Tm={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(NA(i),n)}),n.getAttribute(Xs)===null&&ze.keepOriginalSource){var r=It.createComment(cZ(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~TS(n).indexOf(ze.replacementClass))return Tm.replace(t);var i=new RegExp("".concat(ze.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===ze.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return uh(s)}).join(`
|
||
`);n.setAttribute(Xs,""),n.innerHTML=a}};function kk(e){e()}function AA(e,t){var n=typeof t=="function"?t:Em;if(e.length===0)n();else{var r=kk;ze.mutateApproach===hK&&(r=Ha.requestAnimationFrame||kk),r(function(){var i=aZ(),o=RS.begin("mutate");e.map(i),o(),n()})}}var jS=!1;function IA(){jS=!0}function M1(){jS=!1}var Tg=null;function Mk(e){if(_k&&ze.observeMutations){var t=e.treeCallback,n=t===void 0?Em:t,r=e.nodeCallback,i=r===void 0?Em:r,o=e.pseudoElementsCallback,a=o===void 0?Em:o,s=e.observeMutationsRoot,l=s===void 0?It:s;Tg=new _k(function(c){if(!jS){var f=Va();fu(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!Pk(h.addedNodes[0])&&(ze.searchPseudoElements&&a(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&ze.searchPseudoElements&&a(h.target.parentNode),h.type==="attributes"&&Pk(h.target)&&~bK.indexOf(h.attributeName))if(h.attributeName==="class"&&iZ(h.target)){var p=_y(TS(h.target)),g=p.prefix,v=p.iconName;h.target.setAttribute(OS,g||f),v&&h.target.setAttribute(CS,v)}else oZ(h.target)&&i(h.target)})}}),Vo&&Tg.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function uZ(){Tg&&Tg.disconnect()}function fZ(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function dZ(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=_y(TS(e));return i.prefix||(i.prefix=Va()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=HK(i.prefix,e.innerText)||MS(i.prefix,S1(e.innerText))),!i.iconName&&ze.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function hZ(e){var t=fu(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ze.autoA11y&&(n?t["aria-labelledby"]="".concat(ze.replacementClass,"-title-").concat(r||Rd()):(t["aria-hidden"]="true",t.focusable="false")),t}function pZ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Qi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Dk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=dZ(e),r=n.iconName,i=n.prefix,o=n.rest,a=hZ(e),s=C1("parseNodeAttributes",{},e),l=t.styleParser?fZ(e):[];return Fe({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Qi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var mZ=Ti.styles;function FA(e){var t=ze.autoReplaceSvg==="nest"?Dk(e,{styleParser:!1}):Dk(e);return~t.extra.classes.indexOf(bA)?No("generateLayersText",e,t):No("generateSvgReplacementMutation",e,t)}var Wa=new Set;ES.map(function(e){Wa.add("fa-".concat(e))});Object.keys(kd[Rt]).map(Wa.add.bind(Wa));Object.keys(kd[Zt]).map(Wa.add.bind(Wa));Wa=lh(Wa);function Lk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Vo)return Promise.resolve();var n=It.documentElement.classList,r=function(h){return n.add("".concat(bk,"-").concat(h))},i=function(h){return n.remove("".concat(bk,"-").concat(h))},o=ze.autoFetchSvg?Wa:ES.map(function(f){return"fa-".concat(f)}).concat(Object.keys(mZ));o.includes("fa")||o.push("fa");var a=[".".concat(bA,":not([").concat(Xs,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Xs,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=fu(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=RS.begin("onTree"),c=s.reduce(function(f,h){try{var p=FA(h);p&&f.push(p)}catch(g){_A||g.name==="MissingIcon"&&console.error(g)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){AA(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function gZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;FA(e).then(function(n){n&&AA([n],t)})}function vZ(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:E1(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:E1(i||{})),e(r,Fe(Fe({},n),{},{mask:i}))}}var yZ=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Qi:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,g=n.titleId,v=g===void 0?null:g,y=n.classes,x=y===void 0?[]:y,b=n.attributes,w=b===void 0?{}:b,S=n.styles,C=S===void 0?{}:S;if(t){var T=t.prefix,P=t.iconName,R=t.icon;return by(Fe({type:"icon"},t),function(){return Js("beforeDOMElementCreation",{iconDefinition:t,params:n}),ze.autoA11y&&(p?w["aria-labelledby"]="".concat(ze.replacementClass,"-title-").concat(v||Rd()):(w["aria-hidden"]="true",w.focusable="false")),LS({icons:{main:T1(R),mask:l?T1(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:T,iconName:P,transform:Fe(Fe({},Qi),i),symbol:a,title:p,maskId:f,titleId:v,extra:{attributes:w,styles:C,classes:x}})})}},_Z={mixout:function(){return{icon:vZ(yZ)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Lk,n.nodeCallback=gZ,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?It:r,o=n.callback,a=o===void 0?function(){}:o;return Lk(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(g,v){Promise.all([P1(i,s),f.iconName?P1(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var x=xS(y,2),b=x[0],w=x[1];g([n,LS({icons:{main:b,mask:w},prefix:s,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:a,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=vy(s);l.length>0&&(i.style=l);var c;return PS(a)&&(c=No("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},bZ={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return by({type:"layer"},function(){Js("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(ze.cssPrefix,"-layers")].concat(lh(o)).join(" ")},children:a}]})}}}},wZ={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,a=r.classes,s=a===void 0?[]:a,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return by({type:"counter",content:n},function(){return Js("beforeDOMElementCreation",{content:n,params:r}),eZ({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(ze.cssPrefix,"-layers-counter")].concat(lh(s))}})})}}}},xZ={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Qi:i,a=r.title,s=a===void 0?null:a,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,g=p===void 0?{}:p;return by({type:"text",content:n},function(){return Js("beforeDOMElementCreation",{content:n,params:r}),Ek({content:n,transform:Fe(Fe({},Qi),o),title:s,extra:{attributes:h,styles:g,classes:["".concat(ze.cssPrefix,"-layers-text")].concat(lh(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(gA){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/c,l=f.height/c}return ze.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,Ek({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},SZ=new RegExp('"',"ug"),Rk=[1105920,1112319];function OZ(e){var t=e.replace(SZ,""),n=IK(t,0),r=n>=Rk[0]&&n<=Rk[1],i=t.length===2?t[0]===t[1]:!1;return{value:S1(i?t[0]:t),isSecondary:r||i}}function jk(e,t){var n="".concat(dK).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=fu(e.children),a=o.filter(function(R){return R.getAttribute(x1)===t})[0],s=Ha.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(vK),c=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&f!=="none"&&f!==""){var h=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Zt:Rt,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Md[p][l[2].toLowerCase()]:yK[p][c],v=OZ(h),y=v.value,x=v.isSecondary,b=l[0].startsWith("FontAwesome"),w=MS(g,y),S=w;if(b){var C=VK(y);C.iconName&&C.prefix&&(w=C.iconName,g=C.prefix)}if(w&&!x&&(!a||a.getAttribute(OS)!==g||a.getAttribute(CS)!==S)){e.setAttribute(n,S),a&&e.removeChild(a);var T=pZ(),P=T.extra;P.attributes[x1]=t,P1(w,g).then(function(R){var j=LS(Fe(Fe({},T),{},{icons:{main:R,mask:DS()},prefix:g,iconName:S,extra:P,watchable:!0})),z=It.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(z,e.firstChild):e.appendChild(z),z.outerHTML=j.map(function(N){return uh(N)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function CZ(e){return Promise.all([jk(e,"::before"),jk(e,"::after")])}function EZ(e){return e.parentNode!==document.head&&!~pK.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(x1)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Nk(e){if(Vo)return new Promise(function(t,n){var r=fu(e.querySelectorAll("*")).filter(EZ).map(CZ),i=RS.begin("searchPseudoElements");IA(),Promise.all(r).then(function(){i(),M1(),t()}).catch(function(){i(),M1(),n()})})}var TZ={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Nk,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?It:r;ze.searchPseudoElements&&Nk(i)}}},Ak=!1,PZ={mixout:function(){return{dom:{unwatch:function(){IA(),Ak=!0}}}},hooks:function(){return{bootstrap:function(){Mk(C1("mutationObserverCallbacks",{}))},noAuto:function(){uZ()},watch:function(n){var r=n.observeMutationsRoot;Ak?M1():Mk(C1("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Ik=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},kZ={mixout:function(){return{parse:{transform:function(n){return Ik(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=Ik(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(l," ").concat(c," ").concat(f)},p={transform:"translate(".concat(a/2*-1," -256)")},g={outer:s,inner:h,path:p};return{tag:"g",attributes:Fe({},g.outer),children:[{tag:"g",attributes:Fe({},g.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Fe(Fe({},r.icon.attributes),g.path)}]}]}}}},l_={x:0,y:0,width:"100%",height:"100%"};function Fk(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 MZ(e){return e.tag==="g"?e.children:[e]}var DZ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?_y(i.split(" ").map(function(a){return a.trim()})):DS();return o.prefix||(o.prefix=Va()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,s=n.maskId,l=n.transform,c=o.width,f=o.icon,h=a.width,p=a.icon,g=kK({transform:l,containerWidth:h,iconWidth:c}),v={tag:"rect",attributes:Fe(Fe({},l_),{},{fill:"white"})},y=f.children?{children:f.children.map(Fk)}:{},x={tag:"g",attributes:Fe({},g.inner),children:[Fk(Fe({tag:f.tag,attributes:Fe(Fe({},f.attributes),g.path)},y))]},b={tag:"g",attributes:Fe({},g.outer),children:[x]},w="mask-".concat(s||Rd()),S="clip-".concat(s||Rd()),C={tag:"mask",attributes:Fe(Fe({},l_),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:MZ(p)},C]};return r.push(T,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(w,")")},l_)}),{children:r,attributes:i}}}},LZ={provides:function(t){var n=!1;Ha.matchMedia&&(n=Ha.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Fe(Fe({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Fe(Fe({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Fe(Fe({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Fe(Fe({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Fe(Fe({},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:Fe(Fe({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Fe(Fe({},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:Fe(Fe({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},RZ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},jZ=[LK,_Z,bZ,wZ,xZ,TZ,PZ,kZ,DZ,LZ,RZ];qK(jZ,{mixoutsTo:Kr});Kr.noAuto;Kr.config;Kr.library;Kr.dom;var D1=Kr.parse;Kr.findIconDefinition;Kr.toHtml;var NZ=Kr.icon;Kr.layer;Kr.text;Kr.counter;var $A={exports:{}},AZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",IZ=AZ,FZ=IZ;function BA(){}function UA(){}UA.resetWarningCache=BA;var $Z=function(){function e(r,i,o,a,s,l){if(l!==FZ){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:UA,resetWarningCache:BA};return n.PropTypes=n,n};$A.exports=$Z();var BZ=$A.exports;const D=pi(BZ);function $k(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 xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$k(Object(n),!0).forEach(function(r){ac(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$k(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}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 ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zZ(e,t){if(e==null)return{};var n=UZ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function L1(e){return HZ(e)||VZ(e)||WZ(e)||YZ()}function HZ(e){if(Array.isArray(e))return R1(e)}function VZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WZ(e,t){if(e){if(typeof e=="string")return R1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R1(e,t)}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YZ(){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 qZ(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,f=e.spinReverse,h=e.pulse,p=e.fixedWidth,g=e.inverse,v=e.border,y=e.listItem,x=e.flip,b=e.size,w=e.rotation,S=e.pull,C=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":h,"fa-fw":p,"fa-inverse":g,"fa-border":v,"fa-li":y,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},ac(t,"fa-".concat(b),typeof b<"u"&&b!==null),ac(t,"fa-rotate-".concat(w),typeof w<"u"&&w!==null&&w!==0),ac(t,"fa-pull-".concat(S),typeof S<"u"&&S!==null),ac(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(C).map(function(T){return C[T]?T:null}).filter(function(T){return T})}function GZ(e){return e=e-0,e===e}function zA(e){return GZ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var KZ=["style"];function ZZ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function QZ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=zA(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[ZZ(i)]=o:t[i]=o,t},{})}function HA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return HA(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=QZ(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[zA(c)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=zZ(n,KZ);return i.attrs.style=xa(xa({},i.attrs.style),a),e.apply(void 0,[t.tag,xa(xa({},i.attrs),s)].concat(L1(r)))}var VA=!1;try{VA=!0}catch{}function XZ(){if(!VA&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Bk(e){if(e&&Pg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(D1.icon)return D1.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 c_(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ac({},e,t):{}}var Ie=Y.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,c=Bk(n),f=c_("classes",[].concat(L1(qZ(e)),L1(o.split(" ")))),h=c_("transform",typeof e.transform=="string"?D1.transform(e.transform):e.transform),p=c_("mask",Bk(r)),g=NZ(c,xa(xa(xa(xa({},f),h),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!g)return XZ("Could not find icon",c),null;var v=g.abstract,y={ref:t};return Object.keys(e).forEach(function(x){Ie.defaultProps.hasOwnProperty(x)||(y[x]=e[x])}),JZ(v[0],y)});Ie.displayName="FontAwesomeIcon";Ie.propTypes={beat:D.bool,border:D.bool,beatFade:D.bool,bounce:D.bool,className:D.string,fade:D.bool,flash:D.bool,mask:D.oneOfType([D.object,D.array,D.string]),maskId:D.string,fixedWidth:D.bool,inverse:D.bool,flip:D.oneOf([!0,!1,"horizontal","vertical","both"]),icon:D.oneOfType([D.object,D.array,D.string]),listItem:D.bool,pull:D.oneOf(["right","left"]),pulse:D.bool,rotation:D.oneOf([0,90,180,270]),shake:D.bool,size:D.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:D.bool,spinPulse:D.bool,spinReverse:D.bool,symbol:D.oneOfType([D.bool,D.string]),title:D.string,titleId:D.string,transform:D.oneOfType([D.string,D.object]),swapOpacity:D.bool};Ie.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var JZ=HA.bind(null,Y.createElement),WA={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(WA);var eQ=WA.exports;const Se=pi(eQ);function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function tQ(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function YA(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function nQ(){return document.body.clientWidth<window.innerWidth}function rQ(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function iQ(){var e=tQ(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;nQ()&&YA(n+e)}var oQ;function Ve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oQ;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ts(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function qA(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var Uk={};function j1(e){Uk[e]||(typeof console<"u"&&console.error(e),Uk[e]=!0)}function GA(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&j1('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
|
||
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return e.apply(void 0,[r,i,o].concat(s))}}var aQ=(typeof window>"u"?"undefined":Ic(window))==="object"&&window.Element||function(){};function NS(e,t,n){if(!(e[t]instanceof aQ))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var Fc=D.oneOfType([D.string,D.func,NS,D.shape({current:D.any})]),rt=D.oneOfType([D.func,D.string,D.shape({$$typeof:D.symbol,render:D.func}),D.arrayOf(D.oneOfType([D.func,D.string,D.shape({$$typeof:D.symbol,render:D.func})]))]),kg={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Mg=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],$p={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},_t={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},sQ=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],AS=!!(typeof window<"u"&&window.document&&window.document.createElement);function lQ(e){return e&&Ic(e)==="object"?"current"in e:!1}function KA(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function N1(e){var t=Ic(e);return e!=null&&(t==="object"||t==="function")}function zk(e){var t=Ic(e),n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&KA(e)==="[object Symbol]")return n;if(N1(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=N1(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function cQ(e){if(!N1(e))return!1;var t=KA(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function uQ(e){if(lQ(e))return e.current;if(cQ(e))return e();if(typeof e=="string"&&AS){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function Hk(e){return e===null?!1:Array.isArray(e)||AS&&typeof e.length=="number"}function jd(e,t){var n=uQ(e);return t?Hk(n)?n:n===null?[]:[n]:Hk(n)?n[0]:n}var fQ=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],dQ=["className","cssModule","noGutters","tag","widths"];function A1(){return A1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A1.apply(this,arguments)}function hQ(e,t){if(e==null)return{};var n=pQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mQ=["xs","sm","md","lg","xl","xxl"],Ll=D.oneOfType([D.number,D.string]),gQ={tag:rt,noGutters:GA(D.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:D.string,cssModule:D.object,xs:Ll,sm:Ll,md:Ll,lg:Ll,xl:Ll,xxl:Ll,widths:D.array};function dr(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?mQ:a,l=hQ(e,dQ),c=[];s.forEach(function(h,p){var g=e[h];if(delete l[h],!!g){var v=!p;c.push(v?"row-cols-".concat(g):"row-cols-".concat(h,"-").concat(g))}});var f=Ve(Se(t,r?"gx-0":null,"row",c),n);return Y.createElement(o,A1({},l,{className:f}))}dr.propTypes=gQ;var vQ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I1.apply(this,arguments)}function u_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yQ(e,t){if(e==null)return{};var n=_Q(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Q(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bQ={children:D.node,className:D.string,color:D.string,container:D.oneOfType([D.bool,D.string]),cssModule:D.object,dark:D.bool,expand:D.oneOfType([D.bool,D.string]),fixed:D.string,light:D.bool,role:D.string,sticky:D.string,tag:rt},wQ=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function ZA(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,c=e.sticky,f=e.color,h=e.container,p=h===void 0?"fluid":h,g=e.tag,v=g===void 0?"nav":g,y=e.children,x=yQ(e,vQ),b=Ve(Se(i,"navbar",wQ(r),(t={"navbar-light":a,"navbar-dark":s},u_(t,"bg-".concat(f),f),u_(t,"fixed-".concat(l),l),u_(t,"sticky-".concat(c),c),t)),o),w=p&&p===!0?"container":"container-".concat(p);return Y.createElement(v,I1({},x,{className:b}),p?Y.createElement("div",{className:w},y):y)}ZA.propTypes=bQ;var xQ=["className","cssModule","tag"];function F1(){return F1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F1.apply(this,arguments)}function SQ(e,t){if(e==null)return{};var n=OQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var CQ={className:D.string,cssModule:D.object,tag:rt};function QA(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=SQ(e,xQ),a=Ve(Se(t,"navbar-brand"),n);return Y.createElement(i,F1({},o,{className:a}))}QA.propTypes=CQ;var EQ=["className","cssModule","children","tag"];function $1(){return $1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$1.apply(this,arguments)}function Vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vk(Object(n),!0).forEach(function(r){PQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kQ(e,t){if(e==null)return{};var n=MQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var DQ={className:D.string,cssModule:D.object,tag:rt,type:D.string,children:D.node};function XA(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=kQ(e,EQ),s=Ve(Se(t,"navbar-toggler"),n);return Y.createElement(o,$1({"aria-label":"Toggle navigation"},TQ({type:"button"},a),{className:s}),r||Y.createElement("span",{className:Ve("navbar-toggler-icon",n)}))}XA.propTypes=DQ;var LQ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function B1(){return B1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B1.apply(this,arguments)}function RQ(e,t){if(e==null)return{};var n=jQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var NQ={card:D.bool,className:D.string,cssModule:D.object,fill:D.bool,horizontal:D.oneOf(["center","end"]),justified:D.bool,navbar:D.bool,pills:D.bool,tabs:D.bool,tag:rt,vertical:D.oneOfType([D.bool,D.string])},AQ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function IS(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,l=e.justified,c=e.fill,f=e.navbar,h=e.card,p=e.tag,g=p===void 0?"ul":p,v=RQ(e,LQ),y=Ve(Se(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,AQ(a),{"nav-tabs":r,"card-header-tabs":h&&r,"nav-pills":i,"card-header-pills":h&&i,"nav-justified":l,"nav-fill":c}),n);return Y.createElement(g,B1({},v,{className:y}))}IS.propTypes=NQ;var IQ=["className","cssModule","active","tag"];function U1(){return U1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U1.apply(this,arguments)}function FQ(e,t){if(e==null)return{};var n=$Q(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $Q(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var BQ={active:D.bool,className:D.string,cssModule:D.object,tag:rt};function JA(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=FQ(e,IQ),s=Ve(Se(t,"nav-item",r?"active":!1),n);return Y.createElement(o,U1({},a,{className:s}))}JA.propTypes=BQ;function z1(e){"@babel/helpers - typeof";return z1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z1(e)}var UQ=["className","cssModule","active","tag","innerRef"];function H1(){return H1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H1.apply(this,arguments)}function zQ(e,t){if(e==null)return{};var n=HQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function VQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function WQ(e,t,n){return t&&Wk(e.prototype,t),n&&Wk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function YQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V1(e,t)}function V1(e,t){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},V1(e,t)}function qQ(e){var t=KQ();return function(){var r=Dg(e),i;if(t){var o=Dg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return GQ(this,i)}}function GQ(e,t){if(t&&(z1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e4(e)}function e4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dg(e){return Dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dg(e)}var ZQ={active:D.bool,className:D.string,cssModule:D.object,disabled:D.bool,href:D.any,innerRef:D.oneOfType([D.object,D.func,D.string]),onClick:D.func,tag:rt},t4=function(e){YQ(n,e);var t=qQ(n);function n(r){var i;return VQ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(e4(i)),i}return WQ(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,l=i.tag,c=l===void 0?"a":l,f=i.innerRef,h=zQ(i,UQ),p=Ve(Se(o,"nav-link",{disabled:h.disabled,active:s}),a);return Y.createElement(c,H1({},h,{ref:f,onClick:this.onClick,className:p}))}}]),n}(Y.Component);t4.propTypes=ZQ;const n4=t4;var QQ=["className","cssModule","variant","innerRef"];function W1(){return W1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W1.apply(this,arguments)}function Yk(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 XQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yk(Object(n),!0).forEach(function(r){JQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eX(e,t){if(e==null)return{};var n=tX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nX={active:D.bool,"aria-label":D.string,onClick:D.func,variant:D.oneOf(["white"]),className:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func])};function r4(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=eX(e,QQ),o=Ve(Se(t,"btn-close",n&&"btn-close-".concat(n)));return Y.createElement("button",W1({ref:r,type:"button",className:o},XQ({"aria-label":"close"},i)))}r4.propTypes=nX;var rX=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(this,arguments)}function iX(e,t){if(e==null)return{};var n=oX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var aX={active:D.bool,"aria-label":D.string,block:D.bool,children:D.node,className:D.string,cssModule:D.object,close:D.bool,color:D.string,disabled:D.bool,innerRef:D.oneOfType([D.object,D.func,D.string]),onClick:D.func,outline:D.bool,size:D.string,tag:rt};function yt(e){var t=H.useCallback(function(w){if(e.disabled){w.preventDefault();return}if(e.onClick)return e.onClick(w)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,c=l===void 0?"secondary":l,f=e.outline,h=e.size,p=e.tag,g=p===void 0?"button":p,v=e.innerRef,y=iX(e,rX);if(a)return Y.createElement(r4,y);var x="btn".concat(f?"-outline":"","-").concat(c),b=Ve(Se(o,"btn",x,h?"btn-".concat(h):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return y.href&&g==="button"&&(g="a"),Y.createElement(g,Y1({type:g==="button"&&y.onClick?"button":void 0},y,{className:b,ref:v,onClick:t,"aria-label":r}))}yt.propTypes=aX;var i4=H.createContext(),o4=H.createContext();function q1(e){var t=e.children,n=H.useState(null),r=n[0],i=n[1],o=H.useRef(!1);H.useEffect(function(){return function(){o.current=!0}},[]);var a=H.useCallback(function(s){o.current||i(s)},[]);return H.createElement(i4.Provider,{value:r},H.createElement(o4.Provider,{value:a},t))}var a4=function(t){return Array.isArray(t)?t[0]:t},s4=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},G1=function(t,n){if(typeof t=="function")return s4(t,n);t!=null&&(t.current=n)},qk=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},Gk=typeof window<"u"&&window.document&&window.document.createElement?H.useLayoutEffect:H.useEffect,Cr="top",fi="bottom",di="right",Er="left",FS="auto",fh=[Cr,fi,di,Er],$c="start",Nd="end",sX="clippingParents",l4="viewport",Ku="popper",lX="reference",Kk=fh.reduce(function(e,t){return e.concat([t+"-"+$c,t+"-"+Nd])},[]),c4=[].concat(fh,[FS]).reduce(function(e,t){return e.concat([t,t+"-"+$c,t+"-"+Nd])},[]),cX="beforeRead",uX="read",fX="afterRead",dX="beforeMain",hX="main",pX="afterMain",mX="beforeWrite",gX="write",vX="afterWrite",yX=[cX,uX,fX,dX,hX,pX,mX,gX,vX];function oo(e){return e?(e.nodeName||"").toLowerCase():null}function zr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function el(e){var t=zr(e).Element;return e instanceof t||e instanceof Element}function si(e){var t=zr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $S(e){if(typeof ShadowRoot>"u")return!1;var t=zr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _X(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!si(o)||!oo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function bX(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!si(i)||!oo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const wX={name:"applyStyles",enabled:!0,phase:"write",fn:_X,effect:bX,requires:["computeStyles"]};function to(e){return e.split("-")[0]}var Bs=Math.max,Lg=Math.min,Bc=Math.round;function K1(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function u4(){return!/^((?!chrome|android).)*safari/i.test(K1())}function Uc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&si(e)&&(i=e.offsetWidth>0&&Bc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Bc(r.height)/e.offsetHeight||1);var a=el(e)?zr(e):window,s=a.visualViewport,l=!u4()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function BS(e){var t=Uc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function f4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$S(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ao(e){return zr(e).getComputedStyle(e)}function xX(e){return["table","td","th"].indexOf(oo(e))>=0}function ns(e){return((el(e)?e.ownerDocument:e.document)||window.document).documentElement}function wy(e){return oo(e)==="html"?e:e.assignedSlot||e.parentNode||($S(e)?e.host:null)||ns(e)}function Zk(e){return!si(e)||Ao(e).position==="fixed"?null:e.offsetParent}function SX(e){var t=/firefox/i.test(K1()),n=/Trident/i.test(K1());if(n&&si(e)){var r=Ao(e);if(r.position==="fixed")return null}var i=wy(e);for($S(i)&&(i=i.host);si(i)&&["html","body"].indexOf(oo(i))<0;){var o=Ao(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function dh(e){for(var t=zr(e),n=Zk(e);n&&xX(n)&&Ao(n).position==="static";)n=Zk(n);return n&&(oo(n)==="html"||oo(n)==="body"&&Ao(n).position==="static")?t:n||SX(e)||t}function US(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $f(e,t,n){return Bs(e,Lg(t,n))}function OX(e,t,n){var r=$f(e,t,n);return r>n?n:r}function d4(){return{top:0,right:0,bottom:0,left:0}}function h4(e){return Object.assign({},d4(),e)}function p4(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var CX=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,h4(typeof t!="number"?t:p4(t,fh))};function EX(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=to(n.placement),l=US(s),c=[Er,di].indexOf(s)>=0,f=c?"height":"width";if(!(!o||!a)){var h=CX(i.padding,n),p=BS(o),g=l==="y"?Cr:Er,v=l==="y"?fi:di,y=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],b=dh(o),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,C=h[g],T=w-p[f]-h[v],P=w/2-p[f]/2+S,R=$f(C,P,T),j=l;n.modifiersData[r]=(t={},t[j]=R,t.centerOffset=R-P,t)}}function TX(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||f4(t.elements.popper,i)&&(t.elements.arrow=i))}const PX={name:"arrow",enabled:!0,phase:"main",fn:EX,effect:TX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zc(e){return e.split("-")[1]}var kX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MX(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Bc(n*i)/i||0,y:Bc(r*i)/i||0}}function Qk(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=a.x,g=p===void 0?0:p,v=a.y,y=v===void 0?0:v,x=typeof f=="function"?f({x:g,y}):{x:g,y};g=x.x,y=x.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Er,C=Cr,T=window;if(c){var P=dh(n),R="clientHeight",j="clientWidth";if(P===zr(n)&&(P=ns(n),Ao(P).position!=="static"&&s==="absolute"&&(R="scrollHeight",j="scrollWidth")),P=P,i===Cr||(i===Er||i===di)&&o===Nd){C=fi;var z=h&&P===T&&T.visualViewport?T.visualViewport.height:P[R];y-=z-r.height,y*=l?1:-1}if(i===Er||(i===Cr||i===fi)&&o===Nd){S=di;var N=h&&P===T&&T.visualViewport?T.visualViewport.width:P[j];g-=N-r.width,g*=l?1:-1}}var V=Object.assign({position:s},c&&kX),W=f===!0?MX({x:g,y},zr(n)):{x:g,y};if(g=W.x,y=W.y,l){var ne;return Object.assign({},V,(ne={},ne[C]=w?"0":"",ne[S]=b?"0":"",ne.transform=(T.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",ne))}return Object.assign({},V,(t={},t[C]=w?y+"px":"",t[S]=b?g+"px":"",t.transform="",t))}function DX(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:to(t.placement),variation:zc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Qk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Qk(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const LX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:DX,data:{}};var Bp={passive:!0};function RX(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=zr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Bp)}),s&&l.addEventListener("resize",n.update,Bp),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Bp)}),s&&l.removeEventListener("resize",n.update,Bp)}}const jX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:RX,data:{}};var NX={left:"right",right:"left",bottom:"top",top:"bottom"};function Pm(e){return e.replace(/left|right|bottom|top/g,function(t){return NX[t]})}var AX={start:"end",end:"start"};function Xk(e){return e.replace(/start|end/g,function(t){return AX[t]})}function zS(e){var t=zr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function HS(e){return Uc(ns(e)).left+zS(e).scrollLeft}function IX(e,t){var n=zr(e),r=ns(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=u4();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+HS(e),y:l}}function FX(e){var t,n=ns(e),r=zS(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Bs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Bs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+HS(e),l=-r.scrollTop;return Ao(i||n).direction==="rtl"&&(s+=Bs(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function VS(e){var t=Ao(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function m4(e){return["html","body","#document"].indexOf(oo(e))>=0?e.ownerDocument.body:si(e)&&VS(e)?e:m4(wy(e))}function Bf(e,t){var n;t===void 0&&(t=[]);var r=m4(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=zr(r),a=i?[o].concat(o.visualViewport||[],VS(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Bf(wy(a)))}function Z1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $X(e,t){var n=Uc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Jk(e,t,n){return t===l4?Z1(IX(e,n)):el(t)?$X(t,n):Z1(FX(ns(e)))}function BX(e){var t=Bf(wy(e)),n=["absolute","fixed"].indexOf(Ao(e).position)>=0,r=n&&si(e)?dh(e):e;return el(r)?t.filter(function(i){return el(i)&&f4(i,r)&&oo(i)!=="body"}):[]}function UX(e,t,n,r){var i=t==="clippingParents"?BX(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var f=Jk(e,c,r);return l.top=Bs(f.top,l.top),l.right=Lg(f.right,l.right),l.bottom=Lg(f.bottom,l.bottom),l.left=Bs(f.left,l.left),l},Jk(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function g4(e){var t=e.reference,n=e.element,r=e.placement,i=r?to(r):null,o=r?zc(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Cr:l={x:a,y:t.y-n.height};break;case fi:l={x:a,y:t.y+t.height};break;case di:l={x:t.x+t.width,y:s};break;case Er:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?US(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case $c:l[c]=l[c]-(t[f]/2-n[f]/2);break;case Nd:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function Ad(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?sX:s,c=n.rootBoundary,f=c===void 0?l4:c,h=n.elementContext,p=h===void 0?Ku:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,b=h4(typeof x!="number"?x:p4(x,fh)),w=p===Ku?lX:Ku,S=e.rects.popper,C=e.elements[v?w:p],T=UX(el(C)?C:C.contextElement||ns(e.elements.popper),l,f,a),P=Uc(e.elements.reference),R=g4({reference:P,element:S,strategy:"absolute",placement:i}),j=Z1(Object.assign({},S,R)),z=p===Ku?j:P,N={top:T.top-z.top+b.top,bottom:z.bottom-T.bottom+b.bottom,left:T.left-z.left+b.left,right:z.right-T.right+b.right},V=e.modifiersData.offset;if(p===Ku&&V){var W=V[i];Object.keys(N).forEach(function(ne){var q=[di,fi].indexOf(ne)>=0?1:-1,J=[Cr,fi].indexOf(ne)>=0?"y":"x";N[ne]+=W[J]*q})}return N}function zX(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?c4:l,f=zc(r),h=f?s?Kk:Kk.filter(function(v){return zc(v)===f}):fh,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=Ad(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[to(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function HX(e){if(to(e)===FS)return[];var t=Pm(e);return[Xk(e),t,Xk(t)]}function VX(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,b=to(x),w=b===x,S=l||(w||!v?[Pm(x)]:HX(x)),C=[x].concat(S).reduce(function(Z,ie){return Z.concat(to(ie)===FS?zX(t,{placement:ie,boundary:f,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:y}):ie)},[]),T=t.rects.reference,P=t.rects.popper,R=new Map,j=!0,z=C[0],N=0;N<C.length;N++){var V=C[N],W=to(V),ne=zc(V)===$c,q=[Cr,fi].indexOf(W)>=0,J=q?"width":"height",oe=Ad(t,{placement:V,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),le=q?ne?di:Er:ne?fi:Cr;T[J]>P[J]&&(le=Pm(le));var G=Pm(le),F=[];if(o&&F.push(oe[W]<=0),s&&F.push(oe[le]<=0,oe[G]<=0),F.every(function(Z){return Z})){z=V,j=!1;break}R.set(V,F)}if(j)for(var A=v?3:1,B=function(ie){var ae=C.find(function(pe){var E=R.get(pe);if(E)return E.slice(0,ie).every(function(M){return M})});if(ae)return z=ae,"break"},re=A;re>0;re--){var U=B(re);if(U==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const WX={name:"flip",enabled:!0,phase:"main",fn:VX,requiresIfExists:["offset"],data:{_skip:!1}};function eM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tM(e){return[Cr,di,fi,Er].some(function(t){return e[t]>=0})}function YX(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ad(t,{elementContext:"reference"}),s=Ad(t,{altBoundary:!0}),l=eM(a,r),c=eM(s,i,o),f=tM(l),h=tM(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const qX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YX};function GX(e,t,n){var r=to(e),i=[Er,Cr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Er,di].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function KX(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=c4.reduce(function(f,h){return f[h]=GX(h,t.rects,o),f},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const ZX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:KX};function QX(e){var t=e.state,n=e.name;t.modifiersData[n]=g4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const XX={name:"popperOffsets",enabled:!0,phase:"read",fn:QX,data:{}};function JX(e){return e==="x"?"y":"x"}function eJ(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=Ad(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),b=to(t.placement),w=zc(t.placement),S=!w,C=US(b),T=JX(C),P=t.modifiersData.popperOffsets,R=t.rects.reference,j=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(P){if(o){var ne,q=C==="y"?Cr:Er,J=C==="y"?fi:di,oe=C==="y"?"height":"width",le=P[C],G=le+x[q],F=le-x[J],A=g?-j[oe]/2:0,B=w===$c?R[oe]:j[oe],re=w===$c?-j[oe]:-R[oe],U=t.elements.arrow,Z=g&&U?BS(U):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d4(),ae=ie[q],pe=ie[J],E=$f(0,R[oe],Z[oe]),M=S?R[oe]/2-A-E-ae-N.mainAxis:B-E-ae-N.mainAxis,I=S?-R[oe]/2+A+E+pe+N.mainAxis:re+E+pe+N.mainAxis,X=t.elements.arrow&&dh(t.elements.arrow),Q=X?C==="y"?X.clientTop||0:X.clientLeft||0:0,se=(ne=V==null?void 0:V[C])!=null?ne:0,ge=le+M-se-Q,Le=le+I-se,ue=$f(g?Lg(G,ge):G,le,g?Bs(F,Le):F);P[C]=ue,W[C]=ue-le}if(s){var ve,_e=C==="x"?Cr:Er,Ee=C==="x"?fi:di,Re=P[T],Me=T==="y"?"height":"width",De=Re+x[_e],ce=Re-x[Ee],de=[Cr,Er].indexOf(b)!==-1,be=(ve=V==null?void 0:V[T])!=null?ve:0,ye=de?De:Re-R[Me]-j[Me]-be+N.altAxis,Oe=de?Re+R[Me]+j[Me]-be-N.altAxis:ce,ke=g&&de?OX(ye,Re,Oe):$f(g?ye:De,Re,g?Oe:ce);P[T]=ke,W[T]=ke-Re}t.modifiersData[r]=W}}const tJ={name:"preventOverflow",enabled:!0,phase:"main",fn:eJ,requiresIfExists:["offset"]};function nJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rJ(e){return e===zr(e)||!si(e)?zS(e):nJ(e)}function iJ(e){var t=e.getBoundingClientRect(),n=Bc(t.width)/e.offsetWidth||1,r=Bc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function oJ(e,t,n){n===void 0&&(n=!1);var r=si(t),i=si(t)&&iJ(t),o=ns(t),a=Uc(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((oo(t)!=="body"||VS(o))&&(s=rJ(t)),si(t)?(l=Uc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=HS(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function aJ(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function sJ(e){var t=aJ(e);return yX.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function lJ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cJ(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var nM={placement:"bottom",modifiers:[],strategy:"absolute"};function rM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function uJ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?nM:i;return function(s,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nM,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],p=!1,g={state:f,setOptions:function(b){var w=typeof b=="function"?b(f.options):b;y(),f.options=Object.assign({},o,f.options,w),f.scrollParents={reference:el(s)?Bf(s):s.contextElement?Bf(s.contextElement):[],popper:Bf(l)};var S=sJ(cJ([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(C){return C.enabled}),v(),g.update()},forceUpdate:function(){if(!p){var b=f.elements,w=b.reference,S=b.popper;if(rM(w,S)){f.rects={reference:oJ(w,dh(S),f.options.strategy==="fixed"),popper:BS(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(N){return f.modifiersData[N.name]=Object.assign({},N.data)});for(var C=0;C<f.orderedModifiers.length;C++){if(f.reset===!0){f.reset=!1,C=-1;continue}var T=f.orderedModifiers[C],P=T.fn,R=T.options,j=R===void 0?{}:R,z=T.name;typeof P=="function"&&(f=P({state:f,options:j,name:z,instance:g})||f)}}}},update:lJ(function(){return new Promise(function(x){g.forceUpdate(),x(f)})}),destroy:function(){y(),p=!0}};if(!rM(s,l))return g;g.setOptions(c).then(function(x){!p&&c.onFirstUpdate&&c.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var b=x.name,w=x.options,S=w===void 0?{}:w,C=x.effect;if(typeof C=="function"){var T=C({state:f,name:b,instance:g,options:S}),P=function(){};h.push(T||P)}})}function y(){h.forEach(function(x){return x()}),h=[]}return g}}var fJ=[jX,XX,LX,wX,ZX,WX,tJ,PX,qX],dJ=uJ({defaultModifiers:fJ}),hJ=typeof Element<"u",pJ=typeof Map=="function",mJ=typeof Set=="function",gJ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function km(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!km(e[r],t[r]))return!1;return!0}var o;if(pJ&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!km(r.value[1],t.get(r.value[0])))return!1;return!0}if(mJ&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(gJ&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(hJ&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!km(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var vJ=function(t,n){try{return km(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const yJ=pi(vJ);var _J=[],bJ=function(t,n,r){r===void 0&&(r={});var i=H.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||_J},a=H.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=H.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var v=g.state,y=Object.keys(v.elements);au.flushSync(function(){l({styles:qk(y.map(function(x){return[x,v.styles[x]||{}]})),attributes:qk(y.map(function(x){return[x,v.attributes[x]]}))})})},requires:["computeStyles"]}},[]),f=H.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return yJ(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=H.useRef();return Gk(function(){h.current&&h.current.setOptions(f)},[f]),Gk(function(){if(!(t==null||n==null)){var p=r.createPopper||dJ,g=p(t,n,f);return h.current=g,function(){g.destroy(),h.current=null}}},[t,n,r.createPopper]),{state:h.current?h.current.state:null,styles:s.styles,attributes:s.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},wJ=function(){},xJ=function(){return Promise.resolve(null)},SJ=[];function WS(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?SJ:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=H.useContext(i4),p=H.useState(null),g=p[0],v=p[1],y=H.useState(null),x=y[0],b=y[1];H.useEffect(function(){G1(c,g)},[c,g]);var w=H.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,a,x]),S=bJ(s||h,g,w),C=S.state,T=S.styles,P=S.forceUpdate,R=S.update,j=H.useMemo(function(){return{ref:v,style:T.popper,placement:C?C.placement:n,hasPopperEscaped:C&&C.modifiersData.hide?C.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:C&&C.modifiersData.hide?C.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:T.arrow,ref:b},forceUpdate:P||wJ,update:R||xJ}},[v,b,n,C,T,R,P]);return a4(f)(j)}var OJ=function(){},CJ=OJ;const EJ=pi(CJ);function v4(e){var t=e.children,n=e.innerRef,r=H.useContext(o4),i=H.useCallback(function(o){G1(n,o),s4(r,o)},[n,r]);return H.useEffect(function(){return function(){return G1(n,null)}},[]),H.useEffect(function(){EJ(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),a4(t)({ref:i})}var Id=Y.createContext({}),y4=Y.createContext({});function Q1(e){"@babel/helpers - typeof";return Q1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q1(e)}var TJ=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}function ta(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PJ(e,t){if(e==null)return{};var n=kJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function MJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function DJ(e,t,n){return t&&iM(e.prototype,t),n&&iM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J1(e,t)}function J1(e,t){return J1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},J1(e,t)}function RJ(e){var t=NJ();return function(){var r=Rg(e),i;if(t){var o=Rg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jJ(this,i)}}function jJ(e,t){if(t&&(Q1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ia(e)}function ia(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rg(e){return Rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rg(e)}var AJ={a11y:D.bool,disabled:D.bool,direction:D.oneOf(["up","down","start","end","left","right"]),group:D.bool,isOpen:D.bool,nav:D.bool,active:D.bool,size:D.string,tag:rt,toggle:D.func,children:D.node,className:D.string,cssModule:D.object,dropup:D.bool,inNavbar:D.bool,setActiveFromChild:D.bool,menuRole:D.oneOf(["listbox","menu"])},IJ={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},FJ=[_t.space,_t.enter,_t.up,_t.down,_t.end,_t.home],xy=function(e){LJ(n,e);var t=RJ(n);function n(r){var i;return MJ(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(ia(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ia(i)),i.handleKeyDown=i.handleKeyDown.bind(ia(i)),i.removeEvents=i.removeEvents.bind(ia(i)),i.toggle=i.toggle.bind(ia(i)),i.handleMenuRef=i.handleMenuRef.bind(ia(i)),i.handleToggleRef=i.handleToggleRef.bind(ia(i)),i.containerRef=Y.createRef(),i.menuRef=Y.createRef(),i.toggleRef=Y.createRef(),i}return DJ(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==_t.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle(),l=s.contains(i.target),c=a&&a.contains(i.target)&&a!==i.target,f=!1;o&&(f=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!f||c)&&(i.type!=="keyup"||i.which===_t.tab))&&this.toggle(i)}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=_t.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((FJ.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([_t.space,_t.enter,_t.up,_t.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var w;return(w=o.getMenuItems()[0])===null||w===void 0?void 0:w.focus()});else if(this.props.isOpen&&l){var c;i.preventDefault(),(c=this.getMenuItems()[0])===null||c===void 0||c.focus()}else this.props.isOpen&&i.which===_t.esc&&this.toggle(i);if(this.props.isOpen&&a){if([_t.tab,_t.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([_t.space,_t.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([_t.down,_t.up].indexOf(i.which)>-1||[_t.n,_t.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),h=f.indexOf(i.target);_t.up===i.which||_t.p===i.which&&i.ctrlKey?h=h!==0?h-1:f.length-1:(_t.down===i.which||_t.n===i.which&&i.ctrlKey)&&(h=h===f.length-1?0:h+1),f[h].focus()}else if(_t.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(_t.home===i.which){var g=this.getMenuItems();g[0].focus()}else if(i.which>=48&&i.which<=90)for(var v=this.getMenuItems(),y=String.fromCharCode(i.which).toLowerCase(),x=0;x<v.length;x+=1){var b=v[x].textContent&&v[x].textContent[0].toLowerCase();if(b===y){v[x].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,o=this,a=ts(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,l=a.cssModule,c=a.direction,f=a.isOpen,h=a.group,p=a.size,g=a.nav,v=a.setActiveFromChild,y=a.active,x=a.tag;a.menuRole;var b=PJ(a,TJ),w=x||(g?"li":"div"),S=!1;v&&Y.Children.map(this.props.children[1].props.children,function(T){T&&T.props.active&&(S=!0)});var C=Ve(Se(s,g&&y?"active":!1,v&&S?"active":!1,(i={"btn-group":h},ta(i,"btn-group-".concat(p),!!p),ta(i,"dropdown",!h),ta(i,"dropup",c==="up"),ta(i,"dropstart",c==="start"||c==="left"),ta(i,"dropend",c==="end"||c==="right"),ta(i,"show",f),ta(i,"nav-item",g),i)),l);return this.context.insideInputGroup?Y.createElement(Id.Provider,{value:this.getContextValue()},Y.createElement(q1,null,Y.Children.map(this.props.children,function(T){return Y.cloneElement(T,{onKeyDown:o.handleKeyDown})}))):Y.createElement(Id.Provider,{value:this.getContextValue()},Y.createElement(q1,null,Y.createElement(w,X1({},b,ta({},typeof w=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:C}))))}}]),n}(Y.Component);xy.propTypes=AJ;xy.defaultProps=IJ;xy.contextType=y4;const hh=xy;function ew(e){"@babel/helpers - typeof";return ew=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ew(e)}var $J=["className","cssModule","divider","tag","header","active","text"];function tw(){return tw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tw.apply(this,arguments)}function BJ(e,t){if(e==null)return{};var n=UJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HJ(e,t,n){return t&&oM(e.prototype,t),n&&oM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nw(e,t)}function nw(e,t){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nw(e,t)}function WJ(e){var t=qJ();return function(){var r=jg(e),i;if(t){var o=jg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return YJ(this,i)}}function YJ(e,t){if(t&&(ew(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rw(e)}function rw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jg(e){return jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jg(e)}var GJ={children:D.node,active:D.bool,disabled:D.bool,divider:D.bool,tag:rt,header:D.bool,onClick:D.func,className:D.string,cssModule:D.object,toggle:D.bool,text:D.bool},YS=function(e){VJ(n,e);var t=WJ(n);function n(r){var i;return zJ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(rw(i)),i.getTabIndex=i.getTabIndex.bind(rw(i)),i}return HJ(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,c=a.divider,f=a.text;if(s||l||c||f){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=ts(this.props,["toggle"]),s=a.className,l=a.cssModule,c=a.divider,f=a.tag,h=f===void 0?"button":f,p=a.header,g=a.active,v=a.text,y=BJ(a,$J),x=Ve(Se(s,{disabled:y.disabled,"dropdown-item":!c&&!p&&!v,active:g,"dropdown-header":p,"dropdown-divider":c,"dropdown-item-text":v}),l);return h==="button"&&(p?h="h6":c?h="div":y.href?h="a":v&&(h="span")),Y.createElement(h,tw({type:h==="button"&&(y.onClick||this.props.toggle)?"button":void 0},y,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(Y.Component);YS.propTypes=GJ;YS.contextType=Id;const Ue=YS;function iw(e){"@babel/helpers - typeof";return iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iw(e)}var KJ=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ng.apply(this,arguments)}function aM(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 sM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aM(Object(n),!0).forEach(function(r){ZJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QJ(e){return tee(e)||eee(e)||JJ(e)||XJ()}function XJ(){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 JJ(e,t){if(e){if(typeof e=="string")return ow(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ow(e,t)}}function eee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tee(e){if(Array.isArray(e))return ow(e)}function ow(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nee(e,t){if(e==null)return{};var n=ree(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ree(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function iee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oee(e,t,n){return t&&lM(e.prototype,t),n&&lM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aw(e,t)}function aw(e,t){return aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aw(e,t)}function see(e){var t=uee();return function(){var r=Ag(e),i;if(t){var o=Ag(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return lee(this,i)}}function lee(e,t){if(t&&(iw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cee(e)}function cee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ag(e){return Ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ag(e)}var fee={tag:rt,children:D.node.isRequired,dark:D.bool,end:D.bool,flip:D.bool,modifiers:D.array,className:D.string,cssModule:D.object,style:D.object,persist:D.bool,strategy:D.string,container:Fc,updateOnSelect:D.bool,right:GA(D.bool,'Please use "end" instead.')},dee={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},qS=function(e){aee(n,e);var t=see(n);function n(){return iee(this,n),t.apply(this,arguments)}return oee(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,c=o.end,f=o.right,h=o.tag,p=h===void 0?"div":h,g=o.flip,v=g===void 0?!0:g,y=o.modifiers,x=y===void 0?[]:y,b=o.persist,w=o.strategy,S=o.container,C=o.updateOnSelect,T=nee(o,KJ),P=Ve(Se(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":c||f,show:this.context.isOpen}),s),R=p;if(b||this.context.isOpen&&!this.context.inNavbar){var j=dee[this.context.direction]||"bottom",z=c||f?"end":"start",N="".concat(j,"-").concat(z),V=[].concat(QJ(x),[{name:"flip",enabled:!!v}]),W=Y.createElement(WS,{placement:N,modifiers:V,strategy:w},function(q){var J=q.ref,oe=q.style,le=q.placement,G=q.update,F=sM(sM({},i.props.style),oe),A=function(re){J(re);var U=i.context.onMenuRef;U&&U(re)};return Y.createElement(R,Ng({tabIndex:"-1",role:i.getRole(),ref:A},T,{style:F,"aria-hidden":!i.context.isOpen,className:P,"data-popper-placement":le,onClick:function(){return C&&G()}}))});return S?$s.createPortal(W,jd(S)):W}var ne=this.context.onMenuRef;return Y.createElement(R,Ng({tabIndex:"-1",role:this.getRole()},T,{ref:ne,"aria-hidden":!this.context.isOpen,className:P,"data-popper-placement":T.placement}))}}]),n}(Y.Component);qS.propTypes=fee;qS.contextType=Id;const du=qS;function sw(e){"@babel/helpers - typeof";return sw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sw(e)}var hee=["className","color","cssModule","caret","split","nav","tag","innerRef"];function pee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ig.apply(this,arguments)}function mee(e,t){if(e==null)return{};var n=gee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function vee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yee(e,t,n){return t&&cM(e.prototype,t),n&&cM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lw(e,t)}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lw(e,t)}function bee(e){var t=xee();return function(){var r=Fg(e),i;if(t){var o=Fg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wee(this,i)}}function wee(e,t){if(t&&(sw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _4(e)}function _4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fg(e){return Fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fg(e)}var See={caret:D.bool,color:D.string,children:D.node,className:D.string,cssModule:D.object,disabled:D.bool,onClick:D.func,"aria-haspopup":D.bool,split:D.bool,tag:rt,nav:D.bool,innerRef:D.oneOfType([D.object,D.string,D.func])},Oee={color:"secondary","aria-haspopup":!0},Sy=function(e){_ee(n,e);var t=bee(n);function n(r){var i;return vee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(_4(i)),i}return yee(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,l=o.cssModule,c=o.caret,f=o.split,h=o.nav,p=o.tag,g=o.innerRef,v=mee(o,hee),y=v["aria-label"]||"Toggle Dropdown",x=Ve(Se(a,{"dropdown-toggle":c||f,"dropdown-toggle-split":f,"nav-link":h}),l),b=typeof v.children<"u"?v.children:Y.createElement("span",{className:"visually-hidden"},y),w;return h&&!p?(w="a",v.href="#"):p?w=p:(w=yt,v.color=s,v.cssModule=l),this.context.inNavbar?Y.createElement(w,Ig({},v,{className:x,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:b})):Y.createElement(v4,{innerRef:g},function(S){var C=S.ref,T=function(R){C(R);var j=i.context.onToggleRef;j&&j(R)};return Y.createElement(w,Ig({},v,pee({},typeof w=="string"?"ref":"innerRef",T),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:b}))})}}]),n}(Y.Component);Sy.propTypes=See;Sy.defaultProps=Oee;Sy.contextType=Id;const ph=Sy;function $g(e,t){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$g(e,t)}function Cee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$g(e,t)}const uM={disabled:!1},b4=Y.createContext(null);var mf="unmounted",Ss="exited",Os="entering",zl="entered",cw="exiting",Wo=function(e){Cee(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Ss,o.appearStatus=Os):l=zl:r.unmountOnExit||r.mountOnEnter?l=mf:l=Ss,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===mf?{status:Ss}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Os&&a!==zl&&(o=Os):(a===Os||a===zl)&&(o=cw)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Os?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Ss&&this.setState({status:mf})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[$s.findDOMNode(this),s],c=l[0],f=l[1],h=this.getTimeouts(),p=s?h.appear:h.enter;if(!i&&!a||uM.disabled){this.safeSetState({status:zl},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Os},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:zl},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:$s.findDOMNode(this);if(!o||uM.disabled){this.safeSetState({status:Ss},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cw},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ss},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:$s.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===mf)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=H2(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(b4.Provider,{value:null},typeof a=="function"?a(i,s):Y.cloneElement(Y.Children.only(a),s))},t}(Y.Component);Wo.contextType=b4;Wo.propTypes={};function Rl(){}Wo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rl,onEntering:Rl,onEntered:Rl,onExit:Rl,onExiting:Rl,onExited:Rl};Wo.UNMOUNTED=mf;Wo.EXITED=Ss;Wo.ENTERING=Os;Wo.ENTERED=zl;Wo.EXITING=cw;const hu=Wo;function $e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Eee=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bg.apply(this,arguments)}function Tee(e,t){if(e==null)return{};var n=Pee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(n),!0).forEach(function(r){kee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mee=Fd(Fd({},hu.propTypes),{},{children:D.oneOfType([D.arrayOf(D.node),D.node]),tag:rt,baseClass:D.string,baseClassActive:D.string,className:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func])}),w4=Fd(Fd({},hu.defaultProps),{},{timeout:kg.Fade,appear:!0,enter:!0,exit:!0,in:!0});function hr(e){var t=H.useRef(null),n=e.tag,r=n===void 0?"div":n,i=e.baseClass,o=i===void 0?"fade":i,a=e.baseClassActive,s=a===void 0?"show":a,l=e.className,c=e.cssModule,f=e.children,h=e.innerRef,p=h===void 0?t:h,g=Tee(e,Eee),v=qA(Fd({defaultProps:w4},g),Mg),y=ts(g,Mg);return Y.createElement(hu,Bg({nodeRef:p},v),function(x){var b=x==="entered",w=Ve(Se(l,o,b&&s),c);return Y.createElement(r,Bg({className:w},y,{ref:p}),f)})}hr.propTypes=Mee;hr.defaultProps=w4;function uw(e){"@babel/helpers - typeof";return uw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uw(e)}var Dee=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],jl;function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ug.apply(this,arguments)}function Lee(e,t){if(e==null)return{};var n=Ree(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ree(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nee(e,t,n){return t&&dM(e.prototype,t),n&&dM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fw(e,t)}function fw(e,t){return fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fw(e,t)}function Iee(e){var t=$ee();return function(){var r=zg(e),i;if(t){var o=zg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Fee(this,i)}}function Fee(e,t){if(t&&(uw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x4(e)}function x4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $ee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zg(e){return zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zg(e)}function hM(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 Hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hM(Object(n),!0).forEach(function(r){sc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bee=Hc(Hc({},hu.propTypes),{},{horizontal:D.bool,isOpen:D.bool,children:D.oneOfType([D.arrayOf(D.node),D.node]),tag:rt,className:D.node,navbar:D.bool,cssModule:D.object,innerRef:D.shape({current:D.object})}),Uee=Hc(Hc({},hu.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:kg.Collapse}),zee=(jl={},sc(jl,$p.ENTERING,"collapsing"),sc(jl,$p.ENTERED,"collapse show"),sc(jl,$p.EXITING,"collapsing"),sc(jl,$p.EXITED,"collapse"),jl);function Hee(e){return zee[e]||"collapse"}var GS=function(e){Aee(n,e);var t=Iee(n);function n(r){var i;return jee(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||Y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(x4(i))}),i}return Nee(n,[{key:"onEntering",value:function(i,o){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,o)}},{key:"onEntered",value:function(i,o){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,o)}},{key:"onExit",value:function(){var i=this.getNode();this.setState({dimension:this.getDimension(i)}),this.props.onExit(i)}},{key:"onExiting",value:function(){var i=this.getNode();this.getDimension(i),this.setState({dimension:0}),this.props.onExiting(i)}},{key:"onExited",value:function(){var i=this.getNode();this.setState({dimension:null}),this.props.onExited(i)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(i){return this.props.horizontal?i.scrollWidth:i.scrollHeight}},{key:"render",value:function(){var i=this,o=this.props,a=o.tag,s=o.horizontal,l=o.isOpen,c=o.className,f=o.navbar,h=o.cssModule,p=o.children;o.innerRef;var g=Lee(o,Dee),v=this.state.dimension,y=qA(g,Mg),x=ts(g,Mg);return Y.createElement(hu,Ug({},y,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(b){var w=Hee(b),S=Ve(Se(c,s&&"collapse-horizontal",w,f&&"navbar-collapse"),h),C=v===null?null:sc({},s?"width":"height",v);return Y.createElement(a,Ug({},x,{style:Hc(Hc({},x.style),C),className:S,ref:i.nodeRef}),p)})}}]),n}(H.Component);GS.propTypes=Bee;GS.defaultProps=Uee;const Vee=GS;var Wee=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dw.apply(this,arguments)}function Yee(e,t){if(e==null)return{};var n=qee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Gee={body:D.bool,className:D.string,color:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func]),inverse:D.bool,outline:D.bool,tag:rt};function Hr(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,c=e.innerRef,f=Yee(e,Wee),h=Ve(Se(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return Y.createElement(l,dw({},f,{className:h,ref:c}))}Hr.propTypes=Gee;var Kee=["className","cssModule","innerRef","tag"];function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hw.apply(this,arguments)}function Zee(e,t){if(e==null)return{};var n=Qee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xee={className:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func]),tag:rt};function Vc(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Zee(e,Kee),s=Ve(Se(t,"card-body"),n);return Y.createElement(o,hw({},a,{className:s,ref:r}))}Vc.propTypes=Xee;var Jee=["className","cssModule","tag"];function pw(){return pw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pw.apply(this,arguments)}function ete(e,t){if(e==null)return{};var n=tte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nte={className:D.string,cssModule:D.object,tag:rt};function S4(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=ete(e,Jee),a=Ve(Se(t,"card-footer"),n);return Y.createElement(i,pw({},o,{className:a}))}S4.propTypes=nte;var rte=["className","cssModule","tag"];function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mw.apply(this,arguments)}function ite(e,t){if(e==null)return{};var n=ote(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ote(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ate={className:D.string,cssModule:D.object,tag:rt};function Wc(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=ite(e,rte),a=Ve(Se(t,"card-header"),n);return Y.createElement(i,mw({},o,{className:a}))}Wc.propTypes=ate;var ste=["className","cssModule","tag"];function gw(){return gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gw.apply(this,arguments)}function lte(e,t){if(e==null)return{};var n=cte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ute={className:D.string,cssModule:D.object,tag:rt};function O4(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=lte(e,ste),a=Ve(Se(t,"card-text"),n);return Y.createElement(i,gw({},o,{className:a}))}O4.propTypes=ute;var fte=["className","cssModule","tag"];function vw(){return vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vw.apply(this,arguments)}function dte(e,t){if(e==null)return{};var n=hte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var pte={className:D.string,cssModule:D.object,tag:rt};function C4(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=dte(e,fte),a=Ve(Se(t,"card-title"),n);return Y.createElement(i,vw({},o,{className:a}))}C4.propTypes=pte;function yw(e){"@babel/helpers - typeof";return yw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yw(e)}var mte=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function _w(){return _w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_w.apply(this,arguments)}function pM(e){return _te(e)||yte(e)||vte(e)||gte()}function gte(){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 vte(e,t){if(e){if(typeof e=="string")return bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bw(e,t)}}function yte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _te(e){if(Array.isArray(e))return bw(e)}function bw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bte(e,t){if(e==null)return{};var n=wte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ste(e,t,n){return t&&mM(e.prototype,t),n&&mM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ote(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ww(e,t)}function ww(e,t){return ww=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ww(e,t)}function Cte(e){var t=Tte();return function(){var r=Hg(e),i;if(t){var o=Hg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ete(this,i)}}function Ete(e,t){if(t&&(yw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gf(e)}function gf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hg(e)}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 Mm(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){Pte(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 Pte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kte(){}var Mte={children:D.oneOfType([D.node,D.func]).isRequired,popperClassName:D.string,placement:D.string,placementPrefix:D.string,arrowClassName:D.string,hideArrow:D.bool,tag:rt,isOpen:D.bool,cssModule:D.object,offset:D.arrayOf(D.number),fallbackPlacements:D.array,flip:D.bool,container:Fc,target:Fc.isRequired,modifiers:D.array,strategy:D.string,boundariesElement:D.oneOfType([D.string,NS]),onClosed:D.func,fade:D.bool,transition:D.shape(hr.propTypes)},Dte={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:kte,fade:!0,transition:Mm({},hr.defaultProps)},KS=function(e){Ote(n,e);var t=Cte(n);function n(r){var i;return xte(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(gf(i)),i.getTargetNode=i.getTargetNode.bind(gf(i)),i.getRef=i.getRef.bind(gf(i)),i.onClosed=i.onClosed.bind(gf(i)),i.state={isOpen:r.isOpen},i}return Ste(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return jd(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?jd(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,l=i.flip;i.target;var c=i.offset,f=i.fallbackPlacements,h=i.placementPrefix,p=i.arrowClassName,g=i.hideArrow,v=i.popperClassName,y=i.tag;i.container;var x=i.modifiers,b=i.strategy,w=i.boundariesElement;i.onClosed;var S=i.fade,C=i.transition,T=i.placement,P=bte(i,mte),R=Ve(Se("arrow",p),o),j=Ve(Se(v,h?"".concat(h,"-auto"):""),this.props.cssModule),z=x.map(function(ne){return ne.name}),N=[{name:"offset",options:{offset:c}},{name:"flip",enabled:l,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:w}}].filter(function(ne){return!z.includes(ne.name)}),V=[].concat(pM(N),pM(x)),W=Mm(Mm(Mm({},hr.defaultProps),C),{},{baseClass:S?C.baseClass:"",timeout:S?C.timeout:0});return Y.createElement(hr,_w({},W,P,{in:s,onExited:this.onClosed,tag:y}),Y.createElement(WS,{referenceElement:this.targetNode,modifiers:V,placement:T,strategy:b},function(ne){var q=ne.ref,J=ne.style,oe=ne.placement,le=ne.isReferenceHidden,G=ne.arrowProps,F=ne.update;return Y.createElement("div",{ref:q,style:J,className:j,"data-popper-placement":oe,"data-popper-reference-hidden":le?"true":void 0},typeof a=="function"?a({update:F}):a,!g&&Y.createElement("span",{ref:G.ref,className:R,style:G.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():$s.createPortal(Y.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Y.Component);KS.propTypes=Mte;KS.defaultProps=Dte;const Lte=KS;function xw(){return xw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xw.apply(this,arguments)}function $d(e){"@babel/helpers - typeof";return $d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$d(e)}function Rte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jte(e,t,n){return t&&vM(e.prototype,t),n&&vM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sw(e,t)}function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sw(e,t)}function Ate(e){var t=Fte();return function(){var r=Vg(e),i;if(t){var o=Vg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ite(this,i)}}function Ite(e,t){if(t&&($d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kr(e)}function kr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vg(e){return Vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vg(e)}var Oy={children:D.oneOfType([D.node,D.func]),placement:D.oneOf(sQ),target:Fc.isRequired,container:Fc,isOpen:D.bool,disabled:D.bool,hideArrow:D.bool,boundariesElement:D.oneOfType([D.string,NS]),className:D.string,innerClassName:D.string,arrowClassName:D.string,popperClassName:D.string,cssModule:D.object,toggle:D.func,autohide:D.bool,placementPrefix:D.string,delay:D.oneOfType([D.shape({show:D.number,hide:D.number}),D.number]),modifiers:D.array,strategy:D.string,offset:D.arrayOf(D.number),innerRef:D.oneOfType([D.func,D.string,D.object]),trigger:D.string,fade:D.bool,flip:D.bool},E4={show:0,hide:50},$te={isOpen:!1,hideArrow:!1,autohide:!1,delay:E4,toggle:function(){},trigger:"click",fade:!0};function T4(e,t){return t&&(e===t||t.contains(e))}function yM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return T4(e,n)})[0]}var ZS=function(e){Nte(n,e);var t=Ate(n);function n(r){var i;return Rte(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(kr(i)),i.handleDocumentClick=i.handleDocumentClick.bind(kr(i)),i.removeTargetEvents=i.removeTargetEvents.bind(kr(i)),i.toggle=i.toggle.bind(kr(i)),i.showWithDelay=i.showWithDelay.bind(kr(i)),i.hideWithDelay=i.hideWithDelay.bind(kr(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(kr(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(kr(i)),i.show=i.show.bind(kr(i)),i.hide=i.hide.bind(kr(i)),i.onEscKeyDown=i.onEscKeyDown.bind(kr(i)),i.getRef=i.getRef.bind(kr(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return jte(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||yM(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!T4(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&yM(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var o=this.props.innerRef;o&&(typeof o=="function"?o(i):$d(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return $d(o)==="object"?isNaN(o[i])?E4[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var o=i.composedPath();this.currentTargetElement=o&&o[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=jd(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,c=a.innerClassName,f=a.isOpen,h=a.hideArrow,p=a.boundariesElement,g=a.placement,v=a.placementPrefix,y=a.arrowClassName,x=a.popperClassName,b=a.container,w=a.modifiers,S=a.strategy,C=a.offset,T=a.fade,P=a.flip,R=a.children,j=ts(this.props,Object.keys(Oy)),z=Ve(x,l),N=Ve(c,l);return Y.createElement(Lte,{className:s,target:o,isOpen:f,hideArrow:h,boundariesElement:p,placement:g,placementPrefix:v,arrowClassName:y,popperClassName:z,container:b,modifiers:w,strategy:S,offset:C,cssModule:l,fade:T,flip:P},function(V){var W=V.update;return Y.createElement("div",xw({},j,{ref:i.getRef,className:N,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof R=="function"?R({update:W}):R)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Y.Component);ZS.propTypes=Oy;ZS.defaultProps=$te;const P4=ZS;function Ow(){return Ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ow.apply(this,arguments)}var Bte={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function QS(e){var t=Se("popover","show",e.popperClassName),n=Se("popover-inner",e.innerClassName);return Y.createElement(P4,Ow({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}QS.propTypes=Oy;QS.defaultProps=Bte;var Ute=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(this,arguments)}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function f_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){zte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hte(e,t){if(e==null)return{};var n=Vte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Wte={animated:D.bool,bar:D.bool,barAriaLabelledBy:D.string,barAriaValueText:D.string,barClassName:D.string,barStyle:D.object,children:D.node,className:D.string,cssModule:D.object,color:D.string,max:D.oneOfType([D.string,D.number]),min:D.oneOfType([D.string,D.number]),multi:D.bool,striped:D.bool,style:D.object,tag:rt,value:D.oneOfType([D.string,D.number])};function k4(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,c=e.max,f=c===void 0?100:c,h=e.animated,p=e.striped,g=e.color,v=e.bar,y=e.multi,x=e.tag,b=x===void 0?"div":x,w=e.style,S=w===void 0?{}:w,C=e.barStyle,T=C===void 0?{}:C,P=e.barAriaValueText,R=e.barAriaLabelledBy,j=Hte(e,Ute),z=zk(a)/zk(f)*100,N=Ve(Se(n,"progress"),i),V=Ve(Se("progress-bar",v&&n||r,h?"progress-bar-animated":null,g?"bg-".concat(g):null,p||h?"progress-bar-striped":null),i),W={className:V,style:f_(f_(f_({},v?S:{}),T),{},{width:"".concat(z,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":f,"aria-valuetext":P,"aria-labelledby":R,children:t};return v?Y.createElement(b,Wg({},j,W)):Y.createElement(b,Wg({},j,{style:S,className:N}),y?t:Y.createElement("div",W))}k4.propTypes=Wte;function Cw(e){"@babel/helpers - typeof";return Cw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cw(e)}function Yte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qte(e,t,n){return t&&bM(e.prototype,t),n&&bM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ew(e,t)}function Ew(e,t){return Ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ew(e,t)}function Kte(e){var t=Xte();return function(){var r=Yg(e),i;if(t){var o=Yg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Zte(this,i)}}function Zte(e,t){if(t&&(Cw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qte(e)}function Qte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yg(e){return Yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yg(e)}var Jte={children:D.node.isRequired,node:D.any},M4=function(e){Gte(n,e);var t=Kte(n);function n(){return Yte(this,n),t.apply(this,arguments)}return qte(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return AS?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),$s.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(Y.Component);M4.propTypes=Jte;const ene=M4;function Tw(e){"@babel/helpers - typeof";return Tw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tw(e)}function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wM(Object(n),!0).forEach(function(r){Hl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uf.apply(this,arguments)}function Hl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nne(e,t,n){return t&&xM(e.prototype,t),n&&xM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pw(e,t)}function Pw(e,t){return Pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Pw(e,t)}function ine(e){var t=ane();return function(){var r=qg(e),i;if(t){var o=qg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return one(this,i)}}function one(e,t){if(t&&(Tw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ei(e)}function ei(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ane(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qg(e){return qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qg(e)}function Gg(){}var SM=D.shape(hr.propTypes),D4={autoFocus:D.bool,backdrop:D.oneOfType([D.bool,D.oneOf(["static"])]),backdropClassName:D.string,backdropTransition:SM,centered:D.bool,children:D.node,contentClassName:D.string,className:D.string,container:Fc,cssModule:D.object,external:D.node,fade:D.bool,fullscreen:D.oneOfType([D.bool,D.oneOf(["sm","md","lg","xl"])]),innerRef:D.oneOfType([D.object,D.string,D.func]),isOpen:D.bool,keyboard:D.bool,labelledBy:D.string,modalClassName:D.string,modalTransition:SM,onClosed:D.func,onEnter:D.func,onExit:D.func,onOpened:D.func,returnFocusAfterClose:D.bool,role:D.string,scrollable:D.bool,size:D.string,toggle:D.func,trapFocus:D.bool,unmountOnClose:D.bool,wrapClassName:D.string,zIndex:D.oneOfType([D.number,D.string])},sne=Object.keys(D4),lne={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Gg,onClosed:Gg,modalTransition:{timeout:kg.Modal},backdropTransition:{mountOnEnter:!0,timeout:kg.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},mh=function(e){rne(n,e);var t=ine(n);function n(r){var i;return tne(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(ei(i)),i.handleBackdropClick=i.handleBackdropClick.bind(ei(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(ei(i)),i.handleEscape=i.handleEscape.bind(ei(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(ei(i)),i.handleTab=i.handleTab.bind(ei(i)),i.onOpened=i.onOpened.bind(ei(i)),i.onClosed=i.onClosed.bind(ei(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(ei(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(ei(i)),i.trapFocus=i.trapFocus.bind(ei(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return nne(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),l=0,c=0;c<a;c+=1)if(o[c]===s){l=c;break}i.shiftKey&&l===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&l===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===_t.esc&&this.props.toggle&&(this.props.keyboard?(i.preventDefault(),i.stopPropagation(),this.props.toggle(i)):this.props.backdrop==="static"&&(i.preventDefault(),i.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var i=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(function(){i.setState({showStaticBackdropAnimation:!1})},100)}},{key:"onOpened",value:function(i,o){this.props.onOpened(),(this.props.modalTransition.onEntered||Gg)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Gg)(i),o&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(fQ.join(", "))}},{key:"getFocusedChild",value:function(){var i,o=this.getFocusableChildren();try{i=document.activeElement}catch{i=o[0]}return i}},{key:"trapFocus",value:function(i){if(this.props.trapFocus&&this._element&&!(this._dialog&&this._dialog.parentNode===i.target)&&!(this.modalIndex<n.openCount-1)){for(var o=this.getFocusableChildren(),a=0;a<o.length;a+=1)if(o[a]===i.target)return;o.length>0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=jd(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=rQ(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),iQ(),n.openCount===0&&(document.body.className=Se(document.body.className,Ve("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=Ve("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),YA(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=ts(this.props,sne),s="modal-dialog";return Y.createElement("div",Uf({},a,{className:Ve(Se(s,this.props.className,(i={},Hl(i,"modal-".concat(this.props.size),this.props.size),Hl(i,"".concat(s,"-centered"),this.props.centered),Hl(i,"".concat(s,"-scrollable"),this.props.scrollable),Hl(i,"modal-fullscreen",this.props.fullscreen===!0),Hl(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(c){o._dialog=c}}),Y.createElement("div",{className:Ve(Se("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,c=a.backdropClassName,f=a.cssModule,h=a.isOpen,p=a.backdrop,g=a.role,v=a.labelledBy,y=a.external,x=a.innerRef,b={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":v,"aria-modal":!0,role:g,tabIndex:"-1"},w=this.props.fade,S=Nl(Nl(Nl({},hr.defaultProps),this.props.modalTransition),{},{baseClass:w?this.props.modalTransition.baseClass:"",timeout:w?this.props.modalTransition.timeout:0}),C=Nl(Nl(Nl({},hr.defaultProps),this.props.backdropTransition),{},{baseClass:w?this.props.backdropTransition.baseClass:"",timeout:w?this.props.backdropTransition.timeout:0}),T=p&&(w?Y.createElement(hr,Uf({},C,{in:h&&!!p,cssModule:f,className:Ve(Se("modal-backdrop",c),f)})):Y.createElement("div",{className:Ve(Se("modal-backdrop","show",c),f)}));return Y.createElement(ene,{node:this._element},Y.createElement("div",{className:Ve(s)},Y.createElement(hr,Uf({},b,S,{in:h,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:Ve(Se("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:x}),y,this.renderModalDialog()),T))}return null}}]),n}(Y.Component);mh.propTypes=D4;mh.defaultProps=lne;mh.openCount=0;mh.originalBodyOverflow=null;const Yo=mh;var cne=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(this,arguments)}function une(e,t){if(e==null)return{};var n=fne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dne={children:D.node,className:D.string,close:D.object,closeAriaLabel:D.string,cssModule:D.object,tag:rt,toggle:D.func,wrapTag:rt};function qo(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,c=l===void 0?"div":l,f=e.closeAriaLabel,h=f===void 0?"Close":f,p=e.close,g=une(e,cne),v=Ve(Se(n,"modal-header"),r);return!p&&o&&(t=Y.createElement("button",{type:"button",onClick:o,className:Ve("btn-close",r),"aria-label":h})),Y.createElement(c,kw({},g,{className:v}),Y.createElement(s,{className:Ve("modal-title",r)},i),p||t)}qo.propTypes=dne;var hne=["className","cssModule","tag"];function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mw.apply(this,arguments)}function pne(e,t){if(e==null)return{};var n=mne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gne={className:D.string,cssModule:D.object,tag:rt};function so(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=pne(e,hne),a=Ve(Se(t,"modal-body"),n);return Y.createElement(i,Mw({},o,{className:a}))}so.propTypes=gne;var vne=["className","cssModule","tag"];function Dw(){return Dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dw.apply(this,arguments)}function yne(e,t){if(e==null)return{};var n=_ne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bne={className:D.string,cssModule:D.object,tag:rt};function fl(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=yne(e,vne),a=Ve(Se(t,"modal-footer"),n);return Y.createElement(i,Dw({},o,{className:a}))}fl.propTypes=bne;function Lw(){return Lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lw.apply(this,arguments)}var wne={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function gh(e){var t=Se("tooltip","show",e.popperClassName),n=Se("tooltip-inner",e.innerClassName);return Y.createElement(P4,Lw({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}gh.propTypes=Oy;gh.defaultProps=wne;var xne=["className","cssModule","tag","flush","horizontal","numbered"];function Rw(){return Rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rw.apply(this,arguments)}function Sne(e,t){if(e==null)return{};var n=One(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function One(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cne={className:D.string,cssModule:D.object,flush:D.bool,horizontal:D.oneOfType([D.bool,D.string]),numbered:D.bool,tag:rt},Ene=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function L4(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,c=l===void 0?!1:l,f=Sne(e,xne),h=Ve(Se(t,"list-group",o?"list-group-flush":Ene(s),{"list-group-numbered":c}),n);return Y.createElement(i,Rw({},f,{className:h}))}L4.propTypes=Cne;var Tne=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function jw(){return jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jw.apply(this,arguments)}function Pne(e,t){if(e==null)return{};var n=kne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Mne={children:D.node,row:D.bool,check:D.bool,switch:D.bool,inline:D.bool,floating:D.bool,disabled:D.bool,tag:rt,className:D.string,cssModule:D.object};function Nr(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.tag,c=l===void 0?"div":l,f=e.switch,h=Pne(e,Tne),p=o||f,g=Ve(Se(t,r?"row":!1,p?"form-check":"mb-3",f?"form-switch":!1,p&&a?"form-check-inline":!1,p&&i?"disabled":!1,s&&"form-floating"),n);return c==="fieldset"&&(h.disabled=i),Y.createElement(c,jw({},h,{className:g}))}Nr.propTypes=Mne;function Nw(e){"@babel/helpers - typeof";return Nw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nw(e)}var Dne=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function Aw(){return Aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aw.apply(this,arguments)}function Lne(e,t){if(e==null)return{};var n=Rne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nne(e,t,n){return t&&OM(e.prototype,t),n&&OM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ane(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iw(e,t)}function Iw(e,t){return Iw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Iw(e,t)}function Ine(e){var t=$ne();return function(){var r=Kg(e),i;if(t){var o=Kg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Fne(this,i)}}function Fne(e,t){if(t&&(Nw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fw(e)}function Fw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $ne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kg(e)}var Bne={children:D.node,type:D.string,size:D.oneOfType([D.number,D.string]),bsSize:D.string,valid:D.bool,invalid:D.bool,tag:rt,innerRef:D.oneOfType([D.object,D.func,D.string]),plaintext:D.bool,addon:D.bool,className:D.string,cssModule:D.object},R4=function(e){Ane(n,e);var t=Ine(n);function n(r){var i;return jne(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(Fw(i)),i.focus=i.focus.bind(Fw(i)),i}return Nne(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,c=i.bsSize,f=i.valid,h=i.invalid,p=i.tag,g=i.addon,v=i.plaintext,y=i.innerRef,x=Lne(i,Dne),b=["switch","radio","checkbox"].indexOf(l)>-1,w=/\D/g,S=l==="textarea",C=l==="select",T=l==="range",P=p||(C||S?l:"input"),R="form-control";v?(R="".concat(R,"-plaintext"),P=p||"input"):T?R="form-range":C?R="form-select":b&&(g?R=null:R="form-check-input"),x.size&&w.test(x.size)&&(j1(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),c=x.size,delete x.size);var j=Ve(Se(o,h&&"is-invalid",f&&"is-valid",c?C?"form-select-".concat(c):"form-control-".concat(c):!1,R),a);return(P==="input"||p&&typeof p=="function")&&(x.type=l==="switch"?"checkbox":l),x.children&&!(v||l==="select"||typeof P!="string"||P==="select")&&(j1('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),Y.createElement(P,Aw({},x,{ref:y,className:j,"aria-invalid":h}))}}]),n}(Y.Component);R4.propTypes=Bne;const Yc=R4;var Une=["className","cssModule","tag","type","size"];function Zg(){return Zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zg.apply(this,arguments)}function zne(e,t){if(e==null)return{};var n=Hne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Vne={className:D.string,cssModule:D.object,size:D.string,tag:rt,type:D.string};function Cy(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=zne(e,Une),s=Ve(Se(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?Y.createElement(hh,Zg({},a,{className:s})):Y.createElement(y4.Provider,{value:{insideInputGroup:!0}},Y.createElement(i,Zg({},a,{className:s})))}Cy.propTypes=Vne;var Wne=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$w.apply(this,arguments)}function Yne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qne(e,t){if(e==null)return{};var n=Gne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Kne={children:D.node,className:D.string,listClassName:D.string,cssModule:D.object,size:D.string,tag:rt,listTag:rt,"aria-label":D.string};function XS(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,l=s===void 0?"ul":s,c=e["aria-label"],f=c===void 0?"pagination":c,h=qne(e,Wne),p=Ve(Se(t),r),g=Ve(Se(n,"pagination",Yne({},"pagination-".concat(i),!!i)),r);return Y.createElement(a,{className:p,"aria-label":f},Y.createElement(l,$w({},h,{className:g})))}XS.propTypes=Kne;var Zne=["active","className","cssModule","disabled","tag"];function Bw(){return Bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bw.apply(this,arguments)}function Qne(e,t){if(e==null)return{};var n=Xne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Jne={active:D.bool,children:D.node,className:D.string,cssModule:D.object,disabled:D.bool,tag:rt};function Us(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Qne(e,Zne),l=Ve(Se(n,"page-item",{active:t,disabled:i}),r);return Y.createElement(a,Bw({},s,{className:l}))}Us.propTypes=Jne;var ere=["className","cssModule","next","previous","first","last","tag"];function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uw.apply(this,arguments)}function tre(e,t){if(e==null)return{};var n=nre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var rre={"aria-label":D.string,children:D.node,className:D.string,cssModule:D.object,next:D.bool,previous:D.bool,first:D.bool,last:D.bool,tag:rt};function zs(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,c=tre(e,ere),f=Ve(Se(t,"page-link"),n),h;i?h="Previous":r?h="Next":o?h="First":a&&(h="Last");var p=e["aria-label"]||h,g;i?g="‹":r?g="›":o?g="«":a&&(g="»");var v=e.children;return v&&Array.isArray(v)&&v.length===0&&(v=null),!c.href&&l==="a"&&(l="button"),(i||r||o||a)&&(v=[Y.createElement("span",{"aria-hidden":"true",key:"caret"},v||g),Y.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),Y.createElement(l,Uw({},c,{className:f,"aria-label":p}),v)}zs.propTypes=rre;var ire=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}function 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 Zu(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){ore(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 ore(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function are(e,t){if(e==null)return{};var n=sre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var lre={children:D.node,className:D.string,closeClassName:D.string,closeAriaLabel:D.string,color:D.string,cssModule:D.object,fade:D.bool,innerRef:D.oneOfType([D.object,D.string,D.func]),isOpen:D.bool,tag:rt,toggle:D.func,transition:D.shape(hr.propTypes)};function j4(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,c=l===void 0?"success":l,f=e.isOpen,h=f===void 0?!0:f,p=e.toggle,g=e.children,v=e.transition,y=v===void 0?Zu(Zu({},hr.defaultProps),{},{unmountOnExit:!0}):v,x=e.fade,b=x===void 0?!0:x,w=e.innerRef,S=are(e,ire),C=Ve(Se(t,"alert","alert-".concat(c),{"alert-dismissible":p}),o),T=Ve(Se("btn-close",n),o),P=Zu(Zu(Zu({},hr.defaultProps),y),{},{baseClass:b?y.baseClass:"",timeout:b?y.timeout:0});return Y.createElement(hr,zw({},S,P,{tag:s,className:C,in:h,role:"alert",innerRef:w}),p?Y.createElement("button",{type:"button",className:T,"aria-label":i,onClick:p}):null,g)}j4.propTypes=lre;var cre=["className","cssModule","tag","active","disabled","action","color"];function Hw(){return Hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hw.apply(this,arguments)}function ure(e,t){if(e==null)return{};var n=fre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dre={action:D.bool,active:D.bool,className:D.string,cssModule:D.object,color:D.string,disabled:D.bool,tag:rt},hre=function(t){t.preventDefault()};function N4(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,c=ure(e,cre),f=Ve(Se(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(c.onClick=hre),Y.createElement(i,Hw({},c,{className:f}))}N4.propTypes=dre;function Vw(e){"@babel/helpers - typeof";return Vw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vw(e)}function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ww.apply(this,arguments)}function gre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vre(e,t,n){return t&&TM(e.prototype,t),n&&TM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yw(e,t)}function Yw(e,t){return Yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yw(e,t)}function _re(e){var t=wre();return function(){var r=Qg(e),i;if(t){var o=Qg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bre(this,i)}}function bre(e,t){if(t&&(Vw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A4(e)}function A4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qg(e){return Qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qg(e)}var xre=["defaultOpen"],vh=function(e){yre(n,e);var t=_re(n);function n(r){var i;return gre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(A4(i)),i}return vre(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return Y.createElement(hh,Ww({isOpen:this.state.isOpen,toggle:this.toggle},ts(this.props,xre)))}}]),n}(H.Component);vh.propTypes=pre({defaultOpen:D.bool,onToggle:D.func},hh.propTypes);function qw(e){"@babel/helpers - typeof";return qw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qw(e)}function PM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){Ore(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ore(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gw.apply(this,arguments)}function Cre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ere(e,t,n){return t&&kM(e.prototype,t),n&&kM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kw(e,t)}function Kw(e,t){return Kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kw(e,t)}function Pre(e){var t=Mre();return function(){var r=Xg(e),i;if(t){var o=Xg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kre(this,i)}}function kre(e,t){if(t&&(qw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I4(e)}function I4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xg(e)}var Dre=["defaultOpen"],Pr=function(e){Tre(n,e);var t=Pre(n);function n(r){var i;return Cre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(I4(i)),i}return Ere(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Y.createElement(gh,Gw({isOpen:this.state.isOpen,toggle:this.toggle},ts(this.props,Dre)))}}]),n}(H.Component);Pr.propTypes=Sre({defaultOpen:D.bool},gh.propTypes);const Lre=e=>({error:"border-danger",default:""})[e],Rre=e=>({error:"text-danger",default:"text-muted"})[e],Po=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Se({"col-md-12":i,"col-md-10 offset-md-1":!i});return m.jsx(dr,{className:Se("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(Hr,{className:Lre(r),body:!0,children:m.jsxs("h3",{className:Se("text-center mb-0",Rre(r)),children:[n&&m.jsx(Ie,{icon:aA,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},hn=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(Hr,{...r,children:[e&&m.jsx(Wc,{role:"heading",children:e}),m.jsx(Vc,{className:n,children:t})]}),$r=({children:e,type:t,className:n,small:r=!1})=>m.jsx(dr,{className:n,children:m.jsx("div",{className:Se({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.jsx(hn,{role:"document",className:Se("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Se({"p-2":r}),children:e})})});let Up;const jre=new Uint8Array(16);function Nre(){if(!Up&&(Up=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Up))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Up(jre)}const Un=[];for(let e=0;e<256;++e)Un.push((e+256).toString(16).slice(1));function Are(e,t=0){return(Un[e[t+0]]+Un[e[t+1]]+Un[e[t+2]]+Un[e[t+3]]+"-"+Un[e[t+4]]+Un[e[t+5]]+"-"+Un[e[t+6]]+Un[e[t+7]]+"-"+Un[e[t+8]]+Un[e[t+9]]+"-"+Un[e[t+10]]+Un[e[t+11]]+Un[e[t+12]]+Un[e[t+13]]+Un[e[t+14]]+Un[e[t+15]]).toLowerCase()}const Ire=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),MM={randomUUID:Ire};function JS(e,t,n){if(MM.randomUUID&&!t&&!e)return MM.randomUUID();e=e||{};const r=e.random||(e.rng||Nre)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Are(r)}const mn=(e=!1)=>{const[t,n]=H.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},Ey=()=>{const{current:e}=H.useRef(`dom-${JS()}`);return e},dl=()=>H.useRef(null),F4=({checked:e=!1,onChange:t=gy,className:n,children:r,type:i,inline:o=!1})=>{const a=Ey(),s=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return m.jsxs("span",{className:Se("form-check",l,n),style:c,children:[m.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),m.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},$4=e=>m.jsx(F4,{type:"checkbox",...e}),qc=e=>m.jsx(F4,{type:"switch",...e}),pu=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>m.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[m.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),Dm=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=Ey();return m.jsx(pu,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:a??"",labelClassName:s,id:l,children:m.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})};const Fre=500;let zp;const yh=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,a]=H.useState(i),s=()=>{zp&&clearTimeout(zp),zp=null},l=(c,f=Fre)=>{a(c),s(),zp=setTimeout(()=>{e(c),s()},f)};return m.jsxs("div",{className:Se("search-field",t),children:[m.jsx("input",{type:"text",className:Se("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>l(c.target.value)}),m.jsx(Ie,{icon:WG,className:"search-field__icon"}),m.jsx("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})};const Go=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:c})=>{const[f,h]=mn(),p=Se("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),g={minWidth:s&&`${s}px`};return m.jsxs(hh,{isOpen:f,toggle:h,disabled:t,className:i,children:[m.jsx(ph,{size:c,caret:!o,className:p,color:"primary",children:e}),m.jsx(du,{className:"w-100",end:a,style:g,children:r})]})},Ty=({children:e,minWidth:t})=>m.jsx(Go,{text:m.jsx(Ie,{className:"px-1",icon:AG}),size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e});const zf=({children:e,...t})=>m.jsx(n4,{className:"nav-pills__nav-link",tag:DN,...t,children:e}),B4=({children:e,fill:t=!1,className:n=""})=>m.jsx(Hr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(IS,{pills:!0,fill:t,children:H.Children.map(e,r=>{if(!H.isValidElement(r)||r.type!==zf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),Py=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",U4=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),z4=e=>e.dir?`${e.field}-${e.dir}`:void 0,$re=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function _h({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=Py(s,t.field,t.dir);n(l?s:void 0,l)};return m.jsxs(vh,{children:[m.jsxs(ph,{caret:!0,color:r?"primary":"link",className:Se({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&m.jsx(m.Fragment,{children:"Order by"}),r&&!t.field&&m.jsx("i",{children:"Order by..."}),r&&t.field&&m.jsxs(m.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",m.jsx("small",{children:t.dir??"DESC"})]})]}),m.jsxs(du,{end:i,className:Se("w-100",{"ordering-dropdown__menu--link":!r}),children:[Og(e).map(([s,l])=>m.jsxs(Ue,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&m.jsx(Ie,{icon:t.dir==="ASC"?BG:EG,className:"ordering-dropdown__sort-icon"})]},s)),m.jsx(Ue,{divider:!0}),m.jsx(Ue,{disabled:!t.field,onClick:()=>n(),children:m.jsx("i",{children:"Clear selection"})})]})]})}const eO="#4696e5",Bre="rgba(70, 150, 229, 0.4)",H4="#f77f28",Ure="rgba(247, 127, 40, 0.4)",zre="white",Hre="#161b22",V4=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},Vre=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"};var Wre=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0},DM=typeof Symbol<"u"&&Symbol,Yre=Wre,qre=function(){return typeof DM!="function"||typeof Symbol!="function"||typeof DM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Yre()},Gre="Function.prototype.bind called on incompatible ",d_=Array.prototype.slice,Kre=Object.prototype.toString,Zre="[object Function]",Qre=function(t){var n=this;if(typeof n!="function"||Kre.call(n)!==Zre)throw new TypeError(Gre+n);for(var r=d_.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(d_.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(d_.call(arguments)))},a=Math.max(0,n.length-r.length),s=[],l=0;l<a;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},Xre=Qre,tO=Function.prototype.bind||Xre,Jre=tO,eie=Jre.call(Function.call,Object.prototype.hasOwnProperty),lt,Bd=SyntaxError,W4=Function,bc=TypeError,h_=function(e){try{return W4('"use strict"; return ('+e+").constructor;")()}catch{}},Hs=Object.getOwnPropertyDescriptor;if(Hs)try{Hs({},"")}catch{Hs=null}var p_=function(){throw new bc},tie=Hs?function(){try{return arguments.callee,p_}catch{try{return Hs(arguments,"callee").get}catch{return p_}}}():p_,Al=qre(),la=Object.getPrototypeOf||function(e){return e.__proto__},Vl={},nie=typeof Uint8Array>"u"?lt:la(Uint8Array),wc={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Al?la([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":Vl,"%AsyncGenerator%":Vl,"%AsyncGeneratorFunction%":Vl,"%AsyncIteratorPrototype%":Vl,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":W4,"%GeneratorFunction%":Vl,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Al?la(la([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Al?lt:la(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Al?lt:la(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Al?la(""[Symbol.iterator]()):lt,"%Symbol%":Al?Symbol:lt,"%SyntaxError%":Bd,"%ThrowTypeError%":tie,"%TypedArray%":nie,"%TypeError%":bc,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet},rie=function e(t){var n;if(t==="%AsyncFunction%")n=h_("async function () {}");else if(t==="%GeneratorFunction%")n=h_("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=h_("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=la(i.prototype))}return wc[t]=n,n},LM={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ky=tO,Jg=eie,iie=ky.call(Function.call,Array.prototype.concat),oie=ky.call(Function.apply,Array.prototype.splice),RM=ky.call(Function.call,String.prototype.replace),ev=ky.call(Function.call,String.prototype.slice),aie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sie=/\\(\\)?/g,lie=function(t){var n=ev(t,0,1),r=ev(t,-1);if(n==="%"&&r!=="%")throw new Bd("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Bd("invalid intrinsic syntax, expected opening `%`");var i=[];return RM(t,aie,function(o,a,s,l){i[i.length]=s?RM(l,sie,"$1"):a||o}),i},cie=function(t,n){var r=t,i;if(Jg(LM,r)&&(i=LM[r],r="%"+i[0]+"%"),Jg(wc,r)){var o=wc[r];if(o===Vl&&(o=rie(r)),typeof o>"u"&&!n)throw new bc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Bd("intrinsic "+t+" does not exist!")},nO=function(t,n){if(typeof t!="string"||t.length===0)throw new bc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new bc('"allowMissing" argument must be a boolean');var r=lie(t),i=r.length>0?r[0]:"",o=cie("%"+i+"%",n),a=o.name,s=o.value,l=!1,c=o.alias;c&&(i=c[0],oie(r,iie([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],g=ev(p,0,1),v=ev(p,-1);if((g==='"'||g==="'"||g==="`"||v==='"'||v==="'"||v==="`")&&g!==v)throw new Bd("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,a="%"+i+"%",Jg(wc,a))s=wc[a];else if(s!=null){if(!(p in s)){if(!n)throw new bc("base intrinsic for "+t+" exists, but the property is not available.");return}if(Hs&&f+1>=r.length){var y=Hs(s,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else h=Jg(s,p),s=s[p];h&&!l&&(wc[a]=s)}}return s},Y4={exports:{}};(function(e){var t=tO,n=nO,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(h){var p=o(t,i,arguments);if(a&&s){var g=a(p,"length");g.configurable&&s(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(Y4);var uie=Y4.exports,q4=nO,G4=uie,fie=G4(q4("String.prototype.indexOf")),die=function(t,n){var r=q4(t,!!n);return typeof r=="function"&&fie(t,".prototype.")>-1?G4(r):r};const hie={},pie=Object.freeze(Object.defineProperty({__proto__:null,default:hie},Symbol.toStringTag,{value:"Module"})),mie=G8(pie);var rO=typeof Map=="function"&&Map.prototype,m_=Object.getOwnPropertyDescriptor&&rO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,tv=rO&&m_&&typeof m_.get=="function"?m_.get:null,gie=rO&&Map.prototype.forEach,iO=typeof Set=="function"&&Set.prototype,g_=Object.getOwnPropertyDescriptor&&iO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,nv=iO&&g_&&typeof g_.get=="function"?g_.get:null,vie=iO&&Set.prototype.forEach,yie=typeof WeakMap=="function"&&WeakMap.prototype,Hf=yie?WeakMap.prototype.has:null,_ie=typeof WeakSet=="function"&&WeakSet.prototype,Vf=_ie?WeakSet.prototype.has:null,bie=typeof WeakRef=="function"&&WeakRef.prototype,jM=bie?WeakRef.prototype.deref:null,wie=Boolean.prototype.valueOf,xie=Object.prototype.toString,Sie=Function.prototype.toString,Oie=String.prototype.match,oO=String.prototype.slice,Sa=String.prototype.replace,Cie=String.prototype.toUpperCase,NM=String.prototype.toLowerCase,K4=RegExp.prototype.test,AM=Array.prototype.concat,Yi=Array.prototype.join,Eie=Array.prototype.slice,IM=Math.floor,Zw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,v_=Object.getOwnPropertySymbols,Qw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Gc||"symbol")?Symbol.toStringTag:null,Z4=Object.prototype.propertyIsEnumerable,FM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function $M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||K4.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-IM(-e):IM(e);if(r!==e){var i=String(r),o=oO.call(t,i.length+1);return Sa.call(i,n,"$&_")+"."+Sa.call(Sa.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Sa.call(t,n,"$&_")}var y_=mie.custom,__=y_&&X4(y_)?y_:null,Tie=function e(t,n,r,i){var o=n||{};if(ca(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ca(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ca(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ca(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ca(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return e6(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?$M(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?$M(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return Xw(t)?"[Array]":"[Object]";var h=Yie(o,r);if(typeof i>"u")i=[];else if(J4(i,t)>=0)return"[Circular]";function p(ne,q,J){if(q&&(i=Eie.call(i),i.push(q)),J){var oe={depth:o.depth};return ca(o,"quoteStyle")&&(oe.quoteStyle=o.quoteStyle),e(ne,oe,r+1,i)}return e(ne,o,r+1,i)}if(typeof t=="function"){var g=Iie(t),v=Hp(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Yi.call(v,", ")+" }":"")}if(X4(t)){var y=Gc?Sa.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Qw.call(t);return typeof t=="object"&&!Gc?Qu(y):y}if(Hie(t)){for(var x="<"+NM.call(String(t.nodeName)),b=t.attributes||[],w=0;w<b.length;w++)x+=" "+b[w].name+"="+Q4(Pie(b[w].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+NM.call(String(t.nodeName))+">",x}if(Xw(t)){if(t.length===0)return"[]";var S=Hp(t,p);return h&&!Wie(S)?"["+Jw(S,h)+"]":"[ "+Yi.call(S,", ")+" ]"}if(Die(t)){var C=Hp(t,p);return"cause"in t&&!Z4.call(t,"cause")?"{ ["+String(t)+"] "+Yi.call(AM.call("[cause]: "+p(t.cause),C),", ")+" }":C.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Yi.call(C,", ")+" }"}if(typeof t=="object"&&a){if(__&&typeof t[__]=="function")return t[__]();if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Fie(t)){var T=[];return gie.call(t,function(ne,q){T.push(p(q,t,!0)+" => "+p(ne,t))}),BM("Map",tv.call(t),T,h)}if(Uie(t)){var P=[];return vie.call(t,function(ne){P.push(p(ne,t))}),BM("Set",nv.call(t),P,h)}if($ie(t))return b_("WeakMap");if(zie(t))return b_("WeakSet");if(Bie(t))return b_("WeakRef");if(Rie(t))return Qu(p(Number(t)));if(Nie(t))return Qu(p(Zw.call(t)));if(jie(t))return Qu(wie.call(t));if(Lie(t))return Qu(p(String(t)));if(!kie(t)&&!Mie(t)){var R=Hp(t,p),j=FM?FM(t)===Object.prototype:t instanceof Object||t.constructor===Object,z=t instanceof Object?"":"null prototype",N=!j&&rr&&Object(t)===t&&rr in t?oO.call(rs(t),8,-1):z?"Object":"",V=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",W=V+(N||z?"["+Yi.call(AM.call([],N||[],z||[]),": ")+"] ":"");return R.length===0?W+"{}":h?W+"{"+Jw(R,h)+"}":W+"{ "+Yi.call(R,", ")+" }"}return String(t)};function Q4(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Pie(e){return Sa.call(String(e),/"/g,""")}function Xw(e){return rs(e)==="[object Array]"&&(!rr||!(typeof e=="object"&&rr in e))}function kie(e){return rs(e)==="[object Date]"&&(!rr||!(typeof e=="object"&&rr in e))}function Mie(e){return rs(e)==="[object RegExp]"&&(!rr||!(typeof e=="object"&&rr in e))}function Die(e){return rs(e)==="[object Error]"&&(!rr||!(typeof e=="object"&&rr in e))}function Lie(e){return rs(e)==="[object String]"&&(!rr||!(typeof e=="object"&&rr in e))}function Rie(e){return rs(e)==="[object Number]"&&(!rr||!(typeof e=="object"&&rr in e))}function jie(e){return rs(e)==="[object Boolean]"&&(!rr||!(typeof e=="object"&&rr in e))}function X4(e){if(Gc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Qw)return!1;try{return Qw.call(e),!0}catch{}return!1}function Nie(e){if(!e||typeof e!="object"||!Zw)return!1;try{return Zw.call(e),!0}catch{}return!1}var Aie=Object.prototype.hasOwnProperty||function(e){return e in this};function ca(e,t){return Aie.call(e,t)}function rs(e){return xie.call(e)}function Iie(e){if(e.name)return e.name;var t=Oie.call(Sie.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function J4(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Fie(e){if(!tv||!e||typeof e!="object")return!1;try{tv.call(e);try{nv.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function $ie(e){if(!Hf||!e||typeof e!="object")return!1;try{Hf.call(e,Hf);try{Vf.call(e,Vf)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Bie(e){if(!jM||!e||typeof e!="object")return!1;try{return jM.call(e),!0}catch{}return!1}function Uie(e){if(!nv||!e||typeof e!="object")return!1;try{nv.call(e);try{tv.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function zie(e){if(!Vf||!e||typeof e!="object")return!1;try{Vf.call(e,Vf);try{Hf.call(e,Hf)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Hie(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function e6(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return e6(oO.call(e,0,t.maxStringLength),t)+r}var i=Sa.call(Sa.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Vie);return Q4(i,"single",t)}function Vie(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Cie.call(t.toString(16))}function Qu(e){return"Object("+e+")"}function b_(e){return e+" { ? }"}function BM(e,t,n,r){var i=r?Jw(n,r):Yi.call(n,", ");return e+" ("+t+") {"+i+"}"}function Wie(e){for(var t=0;t<e.length;t++)if(J4(e[t],`
|
||
`)>=0)return!1;return!0}function Yie(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Yi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Yi.call(Array(t+1),n)}}function Jw(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+Yi.call(e,","+n)+`
|
||
`+t.prev}function Hp(e,t){var n=Xw(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ca(e,i)?t(e[i],e):""}var o=typeof v_=="function"?v_(e):[],a;if(Gc){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)ca(e,l)&&(n&&String(Number(l))===l&&l<e.length||Gc&&a["$"+l]instanceof Symbol||(K4.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof v_=="function")for(var c=0;c<o.length;c++)Z4.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}var aO=nO,mu=die,qie=Tie,Gie=aO("%TypeError%"),Vp=aO("%WeakMap%",!0),Wp=aO("%Map%",!0),Kie=mu("WeakMap.prototype.get",!0),Zie=mu("WeakMap.prototype.set",!0),Qie=mu("WeakMap.prototype.has",!0),Xie=mu("Map.prototype.get",!0),Jie=mu("Map.prototype.set",!0),eoe=mu("Map.prototype.has",!0),sO=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},toe=function(e,t){var n=sO(e,t);return n&&n.value},noe=function(e,t,n){var r=sO(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},roe=function(e,t){return!!sO(e,t)},ioe=function(){var t,n,r,i={assert:function(o){if(!i.has(o))throw new Gie("Side channel does not contain "+qie(o))},get:function(o){if(Vp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Kie(t,o)}else if(Wp){if(n)return Xie(n,o)}else if(r)return toe(r,o)},has:function(o){if(Vp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Qie(t,o)}else if(Wp){if(n)return eoe(n,o)}else if(r)return roe(r,o);return!1},set:function(o,a){Vp&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Vp),Zie(t,o,a)):Wp?(n||(n=new Wp),Jie(n,o,a)):(r||(r={key:{},next:null}),noe(r,o,a))}};return i},ooe=String.prototype.replace,aoe=/%20/g,w_={RFC1738:"RFC1738",RFC3986:"RFC3986"},lO={default:w_.RFC3986,formatters:{RFC1738:function(e){return ooe.call(e,aoe,"+")},RFC3986:function(e){return String(e)}},RFC1738:w_.RFC1738,RFC3986:w_.RFC3986},soe=lO,x_=Object.prototype.hasOwnProperty,Ts=Array.isArray,Ui=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),loe=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Ts(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},t6=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},coe=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ts(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!x_.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return Ts(t)&&!Ts(n)&&(i=t6(t,r)),Ts(t)&&Ts(n)?(n.forEach(function(o,a){if(x_.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,r):t.push(o)}else t[a]=o}),t):Object.keys(n).reduce(function(o,a){var s=n[a];return x_.call(o,a)?o[a]=e(o[a],s,r):o[a]=s,o},i)},uoe=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},foe=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},doe=function(t,n,r,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;++l){var c=a.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===soe.RFC1738&&(c===40||c===41)){s+=a.charAt(l);continue}if(c<128){s=s+Ui[c];continue}if(c<2048){s=s+(Ui[192|c>>6]+Ui[128|c&63]);continue}if(c<55296||c>=57344){s=s+(Ui[224|c>>12]+Ui[128|c>>6&63]+Ui[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|a.charCodeAt(l)&1023),s+=Ui[240|c>>18]+Ui[128|c>>12&63]+Ui[128|c>>6&63]+Ui[128|c&63]}return s},hoe=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],f=a[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:a,prop:c}),r.push(f))}return loe(n),t},poe=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},moe=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},goe=function(t,n){return[].concat(t,n)},voe=function(t,n){if(Ts(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},n6={arrayToObject:t6,assign:uoe,combine:goe,compact:hoe,decode:foe,encode:doe,isBuffer:moe,isRegExp:poe,maybeMap:voe,merge:coe},r6=ioe,Lm=n6,Wf=lO,yoe=Object.prototype.hasOwnProperty,UM={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},bo=Array.isArray,_oe=Array.prototype.push,i6=function(e,t){_oe.apply(e,bo(t)?t:[t])},boe=Date.prototype.toISOString,zM=Wf.default,Kn={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Lm.encode,encodeValuesOnly:!1,format:zM,formatter:Wf.formatters[zM],indices:!1,serializeDate:function(t){return boe.call(t)},skipNulls:!1,strictNullHandling:!1},woe=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},S_={},xoe=function e(t,n,r,i,o,a,s,l,c,f,h,p,g,v,y,x){for(var b=t,w=x,S=0,C=!1;(w=w.get(S_))!==void 0&&!C;){var T=w.get(t);if(S+=1,typeof T<"u"){if(T===S)throw new RangeError("Cyclic object value");C=!0}typeof w.get(S_)>"u"&&(S=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=h(b):r==="comma"&&bo(b)&&(b=Lm.maybeMap(b,function(oe){return oe instanceof Date?h(oe):oe})),b===null){if(o)return s&&!v?s(n,Kn.encoder,y,"key",p):n;b=""}if(woe(b)||Lm.isBuffer(b)){if(s){var P=v?n:s(n,Kn.encoder,y,"key",p);return[g(P)+"="+g(s(b,Kn.encoder,y,"value",p))]}return[g(n)+"="+g(String(b))]}var R=[];if(typeof b>"u")return R;var j;if(r==="comma"&&bo(b))v&&s&&(b=Lm.maybeMap(b,s)),j=[{value:b.length>0?b.join(",")||null:void 0}];else if(bo(l))j=l;else{var z=Object.keys(b);j=c?z.sort(c):z}for(var N=i&&bo(b)&&b.length===1?n+"[]":n,V=0;V<j.length;++V){var W=j[V],ne=typeof W=="object"&&typeof W.value<"u"?W.value:b[W];if(!(a&&ne===null)){var q=bo(b)?typeof r=="function"?r(N,W):N:N+(f?"."+W:"["+W+"]");x.set(t,S);var J=r6();J.set(S_,x),i6(R,e(ne,q,r,i,o,a,r==="comma"&&v&&bo(b)?null:s,l,c,f,h,p,g,v,y,J))}}return R},Soe=function(t){if(!t)return Kn;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Kn.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Wf.default;if(typeof t.format<"u"){if(!yoe.call(Wf.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=Wf.formatters[r],o=Kn.filter;return(typeof t.filter=="function"||bo(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Kn.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Kn.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Kn.charsetSentinel,delimiter:typeof t.delimiter>"u"?Kn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Kn.encode,encoder:typeof t.encoder=="function"?t.encoder:Kn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Kn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Kn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Kn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Kn.strictNullHandling}},Ooe=function(e,t){var n=e,r=Soe(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):bo(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in UM?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=UM[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=r6(),h=0;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||i6(a,xoe(n[p],p,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var g=a.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""},Kc=n6,ex=Object.prototype.hasOwnProperty,Coe=Array.isArray,En={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Kc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Eoe=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},o6=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Toe="utf8=%26%2310003%3B",Poe="utf8=%E2%9C%93",koe=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,a=i.split(n.delimiter,o),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===Poe?c="utf-8":a[l]===Toe&&(c="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var f=a[l],h=f.indexOf("]="),p=h===-1?f.indexOf("="):h+1,g,v;p===-1?(g=n.decoder(f,En.decoder,c,"key"),v=n.strictNullHandling?null:""):(g=n.decoder(f.slice(0,p),En.decoder,c,"key"),v=Kc.maybeMap(o6(f.slice(p+1),n),function(y){return n.decoder(y,En.decoder,c,"value")})),v&&n.interpretNumericEntities&&c==="iso-8859-1"&&(v=Eoe(v)),f.indexOf("[]=")>-1&&(v=Coe(v)?[v]:v),ex.call(r,g)?r[g]=Kc.combine(r[g],v):r[g]=v}return r},Moe=function(e,t,n,r){for(var i=r?t:o6(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(l,10);!n.parseArrays&&l===""?a={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},Doe=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&ex.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=s.exec(o))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&ex.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+o.slice(l.index)+"]"),Moe(f,n,r,i)}},Loe=function(t){if(!t)return En;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?En.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?En.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:En.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:En.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:En.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:En.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:En.comma,decoder:typeof t.decoder=="function"?t.decoder:En.decoder,delimiter:typeof t.delimiter=="string"||Kc.isRegExp(t.delimiter)?t.delimiter:En.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:En.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:En.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:En.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:En.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:En.strictNullHandling}},Roe=function(e,t){var n=Loe(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?koe(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=Doe(s,r[s],n,typeof e=="string");i=Kc.merge(i,l,n)}return n.allowSparse===!0?i:Kc.compact(i)},joe=Ooe,Noe=Roe,Aoe=lO,Ioe={formats:Aoe,parse:Noe,stringify:joe};const a6=pi(Ioe),hl=e=>a6.parse(e,{ignoreQueryPrefix:!0}),bh=e=>a6.stringify(e,{arrayFormat:"brackets"});var My=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(My||{}),Dy=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(Dy||{});const Foe=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},$oe=(e,t)=>`${e}/rest/v${t}`,Boe=sh(Ho),Uoe=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:z4(e)}),zoe=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===My.NOT_FOUND||e.type===Dy.NOT_FOUND)&&e.status===404;class Hoe{constructor(t,n,r){me(this,"apiVersion");me(this,"listShortUrls",async(t={})=>this.performRequest({url:"/short-urls",query:Uoe(t)}).then(({shortUrls:n})=>n));me(this,"createShortUrl",async t=>{const n=sh(r=>Yn(r)||Ho(r),t);return this.performRequest({url:"/short-urls",method:"POST",body:n})});me(this,"getShortUrlVisits",async(t,n)=>this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r));me(this,"getTagVisits",async(t,n)=>this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r));me(this,"getDomainVisits",async(t,n)=>this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r));me(this,"getOrphanVisits",async t=>this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n));me(this,"getNonOrphanVisits",async t=>this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n));me(this,"getVisitsOverview",async()=>this.performRequest({url:"/visits"}).then(({visits:t})=>t));me(this,"getShortUrl",async(t,n)=>this.performRequest({url:`/short-urls/${t}`,query:{domain:n}}));me(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}}));me(this,"updateShortUrl",async(t,n,r)=>this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r}));me(this,"listTags",async()=>this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));me(this,"tagsStats",async()=>this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));me(this,"deleteTags",async t=>this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t})));me(this,"editTag",async(t,n)=>this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n})));me(this,"health",async t=>this.performRequest({url:"/health",domain:t}));me(this,"mercureInfo",async()=>this.performRequest({url:"/mercure-info"}));me(this,"listDomains",async()=>this.performRequest({url:"/domains"}).then(({domains:t})=>t));me(this,"editDomainRedirects",async t=>this.performRequest({url:"/domains/redirects",method:"PATCH",body:t}));me(this,"performRequest",async t=>this.httpClient.fetchJson(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t)))));me(this,"performEmptyRequest",async t=>this.httpClient.fetchEmpty(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t)))));me(this,"toFetchParams",({url:t,method:n="GET",query:r={},body:i,domain:o})=>{const a=bh(Boe(r)),s=Yn(a)?"":`?${a}`,l=o?Foe(this.baseUrl,o):this.baseUrl;return[`${$oe(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});me(this,"handleFetchError",t=>n=>{if(!zoe(n))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const O_={},Voe=e=>typeof e=="function",Woe=e=>{const{selectedServer:t}=e();if(!iA(t))throw new Error("There's no selected server or it is not found");return t},Yoe=e=>t=>{const{url:n,apiKey:r}=Voe(t)?Woe(t):t,i=`${n}_${r}`;return O_[i]||(O_[i]=new Hoe(e,n,r)),O_[i]},qoe=e=>{e.serviceFactory("buildShlinkApiClient",Yoe,"HttpClient")};const Goe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=mn(),o=()=>{i(),n()};return m.jsxs(j4,{className:"app-update-banner",isOpen:e,toggle:t,tag:hn,color:"secondary",children:[m.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),m.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",m.jsxs(yt,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&m.jsxs(m.Fragment,{children:["Restart now ",m.jsx(Ie,{icon:ZG,className:"ms-1"})]}),r&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})},s6=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(hn,{className:"p-4",children:[m.jsx("h2",{children:"Oops! We could not find requested route."}),m.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),m.jsx("br",{}),m.jsx(Ft,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),Koe=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})};const Zoe=(e,t,n,r,i,o,a,s)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const v=gn().pathname==="/";return H.useEffect(()=>{var y;Object.keys(c).length===0&&l(),V4(((y=f.ui)==null?void 0:y.theme)??"light")},[]),m.jsxs("div",{className:"container-fluid app-container",children:[m.jsx(e,{}),m.jsxs("div",{className:"app",children:[m.jsx("div",{className:Se("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:m.jsxs(dy,{children:[m.jsx(vt,{index:!0,element:m.jsx(t,{})}),m.jsx(vt,{path:"/settings/*",element:m.jsx(o,{})}),m.jsx(vt,{path:"/manage-servers",element:m.jsx(a,{})}),m.jsx(vt,{path:"/server/create",element:m.jsx(r,{})}),m.jsx(vt,{path:"/server/:serverId/edit",element:m.jsx(i,{})}),m.jsx(vt,{path:"/server/:serverId/*",element:m.jsx(n,{})}),m.jsx(vt,{path:"*",element:m.jsx(s6,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(s,{})})]}),m.jsx(Goe,{isOpen:h,toggle:p,forceUpdate:Koe})]})};function Ci(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ya(e){return!!e&&!!e[$t]}function Io(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===oae}(e)||Array.isArray(e)||!!e[KM]||!!(!((t=e.constructor)===null||t===void 0)&&t[KM])||cO(e)||uO(e))}function tl(e,t,n){n===void 0&&(n=!1),gu(e)===0?(n?Object.keys:Sc)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function gu(e){var t=e[$t];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:cO(e)?2:uO(e)?3:0}function xc(e,t){return gu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qoe(e,t){return gu(e)===2?e.get(t):e[t]}function l6(e,t,n){var r=gu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function c6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function cO(e){return rae&&e instanceof Map}function uO(e){return iae&&e instanceof Set}function Cs(e){return e.o||e.t}function fO(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=f6(e);delete t[$t];for(var n=Sc(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function dO(e,t){return t===void 0&&(t=!1),hO(e)||Ya(e)||!Io(e)||(gu(e)>1&&(e.set=e.add=e.clear=e.delete=Xoe),Object.freeze(e),t&&tl(e,function(n,r){return dO(r,!0)},!0)),e}function Xoe(){Ci(2)}function hO(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function no(e){var t=ix[e];return t||Ci(18,e),t}function Joe(e,t){ix[e]||(ix[e]=t)}function tx(){return Ud}function C_(e,t){t&&(no("Patches"),e.u=[],e.s=[],e.v=t)}function rv(e){nx(e),e.p.forEach(eae),e.p=null}function nx(e){e===Ud&&(Ud=e.l)}function HM(e){return Ud={p:[],l:Ud,h:e,m:!0,_:0}}function eae(e){var t=e[$t];t.i===0||t.i===1?t.j():t.g=!0}function E_(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||no("ES5").S(t,e,r),r?(n[$t].P&&(rv(t),Ci(4)),Io(e)&&(e=iv(t,e),t.l||ov(t,e)),t.u&&no("Patches").M(n[$t].t,e,t.u,t.s)):e=iv(t,n,[]),rv(t),t.u&&t.v(t.u,t.s),e!==u6?e:void 0}function iv(e,t,n){if(hO(t))return t;var r=t[$t];if(!r)return tl(t,function(s,l){return VM(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ov(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=fO(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),tl(o,function(s,l){return VM(e,r,i,s,l,n,a)}),ov(e,i,!1),n&&e.u&&no("Patches").N(r,n,e.u,e.s)}return r.o}function VM(e,t,n,r,i,o,a){if(Ya(i)){var s=iv(e,i,o&&t&&t.i!==3&&!xc(t.R,r)?o.concat(r):void 0);if(l6(n,r,s),!Ya(s))return;e.m=!1}else a&&n.add(i);if(Io(i)&&!hO(i)){if(!e.h.D&&e._<1)return;iv(e,i),t&&t.A.l||ov(e,i)}}function ov(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&dO(t,n)}function T_(e,t){var n=e[$t];return(n?Cs(n):e)[t]}function WM(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ha(e){e.P||(e.P=!0,e.l&&ha(e.l))}function P_(e){e.o||(e.o=fO(e.t))}function rx(e,t,n){var r=cO(t)?no("MapSet").F(t,n):uO(t)?no("MapSet").T(t,n):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:tx(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=zd;a&&(l=[s],c=vf);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return s.k=p,s.j=h,p}(t,n):no("ES5").J(t,n);return(n?n.A:tx()).p.push(r),r}function tae(e){return Ya(e)||Ci(22,e),function t(n){if(!Io(n))return n;var r,i=n[$t],o=gu(n);if(i){if(!i.P&&(i.i<4||!no("ES5").K(i)))return i.t;i.I=!0,r=YM(n,o),i.I=!1}else r=YM(n,o);return tl(r,function(a,s){i&&Qoe(i.t,a)===s||l6(r,a,t(s))}),o===3?new Set(r):r}(e)}function YM(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return fO(e)}function nae(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[$t];return zd.get(l,o)},set:function(l){var c=this[$t];zd.set(c,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][$t];if(!s.P)switch(s.i){case 5:r(s)&&ha(s);break;case 4:n(s)&&ha(s)}}}function n(o){for(var a=o.t,s=o.k,l=Sc(s),c=l.length-1;c>=0;c--){var f=l[c];if(f!==$t){var h=a[f];if(h===void 0&&!xc(a,f))return!0;var p=s[f],g=p&&p[$t];if(g?g.t!==h:!c6(p,h))return!0}}var v=!!a[$t];return l.length!==Sc(a).length+(v?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l<a.length;l++)if(!a.hasOwnProperty(l))return!0;return!1}var i={};Joe("ES5",{J:function(o,a){var s=Array.isArray(o),l=function(f,h){if(f){for(var p=Array(h.length),g=0;g<h.length;g++)Object.defineProperty(p,""+g,e(g,!0));return p}var v=f6(h);delete v[$t];for(var y=Sc(v),x=0;x<y.length;x++){var b=y[x];v[b]=e(b,f||!!v[b].enumerable)}return Object.create(Object.getPrototypeOf(h),v)}(s,o),c={i:s?5:4,A:a?a.A:tx(),P:!1,I:!1,R:{},l:a,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,$t,{value:c,writable:!0}),l},S:function(o,a,s){s?Ya(a)&&a[$t].A===o&&t(o.p):(o.u&&function l(c){if(c&&typeof c=="object"){var f=c[$t];if(f){var h=f.t,p=f.k,g=f.R,v=f.i;if(v===4)tl(p,function(S){S!==$t&&(h[S]!==void 0||xc(h,S)?g[S]||l(p[S]):(g[S]=!0,ha(f)))}),tl(h,function(S){p[S]!==void 0||xc(p,S)||(g[S]=!1,ha(f))});else if(v===5){if(r(f)&&(ha(f),g.length=!0),p.length<h.length)for(var y=p.length;y<h.length;y++)g[y]=!1;else for(var x=h.length;x<p.length;x++)g[x]=!0;for(var b=Math.min(p.length,h.length),w=0;w<b;w++)p.hasOwnProperty(w)||(g[w]=!0),g[w]===void 0&&l(p[w])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var qM,Ud,pO=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",rae=typeof Map<"u",iae=typeof Set<"u",GM=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",u6=pO?Symbol.for("immer-nothing"):((qM={})["immer-nothing"]=!0,qM),KM=pO?Symbol.for("immer-draftable"):"__$immer_draftable",$t=pO?Symbol.for("immer-state"):"__$immer_state",oae=""+Object.prototype.constructor,Sc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,f6=Object.getOwnPropertyDescriptors||function(e){var t={};return Sc(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ix={},zd={get:function(e,t){if(t===$t)return e;var n=Cs(e);if(!xc(n,t))return function(i,o,a){var s,l=WM(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Io(r)?r:r===T_(e.t,t)?(P_(e),e.o[t]=rx(e.A.h,r,e)):r},has:function(e,t){return t in Cs(e)},ownKeys:function(e){return Reflect.ownKeys(Cs(e))},set:function(e,t,n){var r=WM(Cs(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=T_(Cs(e),t),o=i==null?void 0:i[$t];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(c6(n,i)&&(n!==void 0||xc(e.t,t)))return!0;P_(e),ha(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return T_(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,P_(e),ha(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Cs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Ci(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ci(12)}},vf={};tl(zd,function(e,t){vf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),vf.deleteProperty=function(e,t){return vf.set.call(this,e,t,void 0)},vf.set=function(e,t,n){return zd.set.call(this,e[0],t,n,e[0])};var aae=function(){function e(n){var r=this;this.O=GM,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(y){var x=this;y===void 0&&(y=s);for(var b=arguments.length,w=Array(b>1?b-1:0),S=1;S<b;S++)w[S-1]=arguments[S];return l.produce(y,function(C){var T;return(T=o).call.apply(T,[x,C].concat(w))})}}var c;if(typeof o!="function"&&Ci(6),a!==void 0&&typeof a!="function"&&Ci(7),Io(i)){var f=HM(r),h=rx(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?rv(f):nx(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return C_(f,a),E_(y,f)},function(y){throw rv(f),y}):(C_(f,a),E_(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===u6&&(c=void 0),r.D&&dO(c,!0),a){var g=[],v=[];no("Patches").M(i,c,g,v),a(g,v)}return c}Ci(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return r.produceWithPatches(c,function(g){return i.apply(void 0,[g].concat(h))})};var a,s,l=r.produce(i,o,function(c,f){a=c,s=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,a,s]}):[l,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Io(n)||Ci(8),Ya(n)&&(n=tae(n));var r=HM(this),i=rx(this,n,void 0);return i[$t].C=!0,nx(r),i},t.finishDraft=function(n,r){var i=n&&n[$t],o=i.A;return C_(o,r),E_(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!GM&&Ci(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=no("Patches").$;return Ya(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),Vr=new aae,d6=Vr.produce;Vr.produceWithPatches.bind(Vr);Vr.setAutoFreeze.bind(Vr);Vr.setUseProxies.bind(Vr);Vr.applyPatches.bind(Vr);Vr.createDraft.bind(Vr);Vr.finishDraft.bind(Vr);function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function sae(e,t){if(Wr(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wr(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h6(e){var t=sae(e,"string");return Wr(t)==="symbol"?t:String(t)}function je(e,t,n){return t=h6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 QM(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){je(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 Zn(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 XM=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),k_=function(){return Math.random().toString(36).substring(7).split("").join(".")},av={INIT:"@@redux/INIT"+k_(),REPLACE:"@@redux/REPLACE"+k_(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+k_()}};function lae(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p6(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Zn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Zn(1));return n(p6)(e,t)}if(typeof e!="function")throw new Error(Zn(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(Zn(3));return o}function h(y){if(typeof y!="function")throw new Error(Zn(4));if(l)throw new Error(Zn(5));var x=!0;return c(),s.push(y),function(){if(x){if(l)throw new Error(Zn(6));x=!1,c();var w=s.indexOf(y);s.splice(w,1),a=null}}}function p(y){if(!lae(y))throw new Error(Zn(7));if(typeof y.type>"u")throw new Error(Zn(8));if(l)throw new Error(Zn(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=a=s,b=0;b<x.length;b++){var w=x[b];w()}return y}function g(y){if(typeof y!="function")throw new Error(Zn(10));i=y,p({type:av.REPLACE})}function v(){var y,x=h;return y={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(Zn(11));function S(){w.next&&w.next(f())}S();var C=x(S);return{unsubscribe:C}}},y[XM]=function(){return this},y}return p({type:av.INIT}),r={dispatch:p,subscribe:h,getState:f,replaceReducer:g},r[XM]=v,r}function cae(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:av.INIT});if(typeof r>"u")throw new Error(Zn(12));if(typeof n(void 0,{type:av.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Zn(13))})}function mO(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var o=Object.keys(n),a;try{cae(n)}catch(s){a=s}return function(l,c){if(l===void 0&&(l={}),a)throw a;for(var f=!1,h={},p=0;p<o.length;p++){var g=o[p],v=n[g],y=l[g],x=v(y,c);if(typeof x>"u")throw c&&c.type,new Error(Zn(14));h[g]=x,f=f||x!==y}return f=f||o.length!==Object.keys(l).length,f?h:l}}function sv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function uae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(Zn(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=sv.apply(void 0,s)(i.dispatch),QM(QM({},i),{},{dispatch:o})}}}function m6(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,e):a(s)}}};return t}var g6=m6();g6.withExtraArgument=m6;const JM=g6;var v6=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fae=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Zc=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},dae=Object.defineProperty,hae=Object.defineProperties,pae=Object.getOwnPropertyDescriptors,e3=Object.getOwnPropertySymbols,mae=Object.prototype.hasOwnProperty,gae=Object.prototype.propertyIsEnumerable,t3=function(e,t,n){return t in e?dae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Aa=function(e,t){for(var n in t||(t={}))mae.call(t,n)&&t3(e,n,t[n]);if(e3)for(var r=0,i=e3(t);r<i.length;r++){var n=i[r];gae.call(t,n)&&t3(e,n,t[n])}return e},M_=function(e,t){return hae(e,pae(t))},vae=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(c){i(c)}},a=function(l){try{s(n.throw(l))}catch(c){i(c)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(e,t)).next())})},yae=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sv:sv.apply(null,arguments)};function _ae(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var bae=function(e){v6(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,Zc([void 0],n[0].concat(this)))):new(t.bind.apply(t,Zc([void 0],n.concat(this))))},t}(Array),wae=function(e){v6(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,Zc([void 0],n[0].concat(this)))):new(t.bind.apply(t,Zc([void 0],n.concat(this))))},t}(Array);function ox(e){return Io(e)?d6(e,function(){}):e}function xae(e){return typeof e=="boolean"}function Sae(){return function(t){return Oae(t)}}function Oae(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new bae;return n&&(xae(n)?r.push(JM):r.push(JM.withExtraArgument(n.extraArgument))),r}var Cae=!0;function y6(e){var t=Sae(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,a=o===void 0?t():o,s=n.devTools,l=s===void 0?!0:s,c=n.preloadedState,f=c===void 0?void 0:c,h=n.enhancers,p=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(_ae(i))g=mO(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=a;typeof v=="function"&&(v=v(t));var y=uae.apply(void 0,v),x=sv;l&&(x=yae(Aa({trace:!Cae},typeof l=="object"&&l)));var b=new wae(y),w=b;Array.isArray(p)?w=Zc([y],p):typeof p=="function"&&(w=p(b));var S=x.apply(void 0,w);return p6(g,f,S)}function Mn(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return Aa(Aa({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function _6(e){var t={},n=[],r,i={addCase:function(o,a){var s=typeof o=="string"?o:o.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,i},addMatcher:function(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function Eae(e){return typeof e=="function"}function Tae(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?_6(t):[t,n,r],o=i[0],a=i[1],s=i[2],l;if(Eae(e))l=function(){return ox(e())};else{var c=ox(e);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var g=Zc([o[p.type]],a.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[s]),g.reduce(function(v,y){if(y)if(Ya(v)){var x=v,b=y(x,p);return b===void 0?v:b}else{if(Io(v))return d6(v,function(w){return y(w,p)});var b=y(v,p);if(b===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return v},h)}return f.getInitialState=l,f}function Pae(e,t){return e+"/"+t}function ir(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof e.initialState=="function"?e.initialState:ox(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},a={},s={};i.forEach(function(f){var h=r[f],p=Pae(t,f),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,o[f]=g,a[p]=g,s[f]=v?Mn(p,v):Mn(p)});function l(){var f=typeof e.extraReducers=="function"?_6(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,g=f[1],v=g===void 0?[]:g,y=f[2],x=y===void 0?void 0:y,b=Aa(Aa({},p),a);return Tae(n,function(w){for(var S in b)w.addCase(S,b[S]);for(var C=0,T=v;C<T.length;C++){var P=T[C];w.addMatcher(P.matcher,P.reducer)}x&&w.addDefaultCase(x)})}var c;return{name:t,reducer:function(f,h){return c||(c=l()),c(f,h)},actions:s,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var kae="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Mae=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=kae[Math.random()*64|0];return t},Dae=["name","message","stack","code"],D_=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),n3=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),Lae=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=Dae;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},b6=function(){function e(t,n,r){var i=Mn(t+"/fulfilled",function(c,f,h,p){return{payload:c,meta:M_(Aa({},p||{}),{arg:h,requestId:f,requestStatus:"fulfilled"})}}),o=Mn(t+"/pending",function(c,f,h){return{payload:void 0,meta:M_(Aa({},h||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),a=Mn(t+"/rejected",function(c,f,h,p,g){return{payload:p,error:(r&&r.serializeError||Lae)(c||"Rejected"),meta:M_(Aa({},g||{}),{arg:h,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),s=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function l(c){return function(f,h,p){var g=r!=null&&r.idGenerator?r.idGenerator(c):Mae(),v=new s,y;function x(w){y=w,v.abort()}var b=function(){return vae(this,null,function(){var w,S,C,T,P,R,j;return fae(this,function(z){switch(z.label){case 0:return z.trys.push([0,4,,5]),T=(w=r==null?void 0:r.condition)==null?void 0:w.call(r,c,{getState:h,extra:p}),jae(T)?[4,T]:[3,2];case 1:T=z.sent(),z.label=2;case 2:if(T===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=new Promise(function(N,V){return v.signal.addEventListener("abort",function(){return V({name:"AbortError",message:y||"Aborted"})})}),f(o(g,c,(S=r==null?void 0:r.getPendingMeta)==null?void 0:S.call(r,{requestId:g,arg:c},{getState:h,extra:p}))),[4,Promise.race([P,Promise.resolve(n(c,{dispatch:f,getState:h,extra:p,requestId:g,signal:v.signal,abort:x,rejectWithValue:function(N,V){return new D_(N,V)},fulfillWithValue:function(N,V){return new n3(N,V)}})).then(function(N){if(N instanceof D_)throw N;return N instanceof n3?i(N.payload,g,c,N.meta):i(N,g,c)})])];case 3:return C=z.sent(),[3,5];case 4:return R=z.sent(),C=R instanceof D_?a(null,g,c,R.payload,R.meta):a(R,g,c),[3,5];case 5:return j=r&&!r.dispatchConditionRejection&&a.match(C)&&C.meta.condition,j||f(C),[2,C]}})})}();return Object.assign(b,{abort:x,requestId:g,arg:c,unwrap:function(){return b.then(Rae)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function Rae(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function jae(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var gO="listenerMiddleware";Mn(gO+"/add");Mn(gO+"/removeAll");Mn(gO+"/remove");var r3;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);nae();const{actions:Nae,reducer:Aae}=ir({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Iae,resetAppUpdate:Fae}=Nae,$ae=Aae,Bae=(e,t)=>{e.serviceFactory("App",Zoe,"MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Iae),e.serviceFactory("resetAppUpdate",()=>Fae)};const Uae=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=mn(),{domains:s}=n,l=Yn(t),c=()=>r("");return H.useEffect(()=>{e()},[]),i?m.jsxs(Cy,{children:[m.jsx(Yc,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),m.jsx(yt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Mt(c,a),children:m.jsx(Ie,{icon:RG})}),m.jsx(Pr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(Go,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:f,isDefault:h})=>m.jsxs(Ue,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&m.jsx("span",{className:"float-end text-muted",children:"default"})]},f)),m.jsx(Ue,{divider:!0}),m.jsx(Ue,{onClick:Mt(c,o),children:m.jsx("i",{children:"New domain"})})]})},zae=e=>(e==null?void 0:e.type)===My.INVALID_ARGUMENT||(e==null?void 0:e.type)===Dy.INVALID_ARGUMENT,Hae=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===My.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===Dy.INVALID_SHORT_URL_DELETION,Vae=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Ko=e=>Vae(e)?e:void 0,Fo=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,zae(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Wae=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,i3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Wae);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},o3=e=>e==="*"||e==="x"||e==="X",a3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Yae=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],qae=(e,t)=>{if(o3(e)||o3(t))return 0;const[n,r]=Yae(a3(e),a3(t));return n>r?1:n<r?-1:0},s3=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=qae(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},Gae=(e,t)=>{const n=i3(e),r=i3(t),i=n.pop(),o=r.pop(),a=s3(n,r);return a!==0?a:i&&o?s3(i.split("."),o.split(".")):i||o?i?-1:1:0},ax=(e,t,n)=>{Kae(n);const r=Gae(e,t);return w6[n].includes(r)},w6={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},l3=Object.keys(w6),Kae=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(l3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${l3.join("|")}`)},Zae=(e,{maxVersion:t,minVersion:n})=>{const r=!n||ax(e,n,">=");return(!t||ax(e,t,"<="))&&r},x6={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0"};Object.freeze(x6);const Yp=(e,t)=>Zae(t,{minVersion:x6[e]}),S6=e=>({domainVisits:Yp("domainVisits",e),excludeBotsOnShortUrls:Yp("excludeBotsOnShortUrls",e),filterDisabledUrls:Yp("filterDisabledUrls",e),deviceLongUrls:Yp("deviceLongUrls",e)}),Qae=e=>H.useMemo(()=>S6(e),[e]),O6=H.createContext(S6("0.0.0")),Xae=O6.Provider,wh=e=>H.useContext(O6)[e],C6=H.createContext(""),Jae=C6.Provider,pl=()=>H.useContext(C6),Yf=(e,t,n)=>Ho(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,ese=(e,t)=>!e.domain&&t===eI?!0:e.domain===t,tse=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},E6="__",nse=e=>e.replaceAll("/",E6),Rm=e=>e.replaceAll(E6,"/");function Ye(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Te(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Pe(e){Te(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Wr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ml(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function hi(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function rse(e,t){if(Te(2,arguments),!t||Wr(t)!=="object")return new Date(NaN);var n=t.years?Ye(t.years):0,r=t.months?Ye(t.months):0,i=t.weeks?Ye(t.weeks):0,o=t.days?Ye(t.days):0,a=t.hours?Ye(t.hours):0,s=t.minutes?Ye(t.minutes):0,l=t.seconds?Ye(t.seconds):0,c=Pe(e),f=r||n?hi(c,r+n*12):c,h=o||i?ml(f,o+i*7):f,p=s+a*60,g=l+p*60,v=g*1e3,y=new Date(h.getTime()+v);return y}function vO(e,t){Te(2,arguments);var n=Pe(e).getTime(),r=Ye(t);return new Date(n+r)}var ise=36e5;function ose(e,t){Te(2,arguments);var n=Ye(t);return vO(e,n*ise)}var ase={};function Zo(){return ase}function T6(e,t){var n,r,i,o,a,s,l,c;Te(1,arguments);var f=Zo(),h=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Pe(e),g=p.getDay(),v=(g<h?7:0)+g-h;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function Hd(e){return Te(1,arguments),T6(e,{weekStartsOn:1})}function sse(e){Te(1,arguments);var t=Pe(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=Hd(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=Hd(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function lse(e){Te(1,arguments);var t=sse(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Hd(n);return r}function Qc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Br(e){Te(1,arguments);var t=Pe(e);return t.setHours(0,0,0,0),t}var cse=864e5;function Vd(e,t){Te(2,arguments);var n=Br(e),r=Br(t),i=n.getTime()-Qc(n),o=r.getTime()-Qc(r);return Math.round((i-o)/cse)}var use=6e4;function sx(e,t){Te(2,arguments);var n=Ye(t);return vO(e,n*use)}function P6(e,t){Te(2,arguments);var n=Ye(t),r=n*3;return hi(e,r)}function yO(e,t){Te(2,arguments);var n=Ye(t),r=n*7;return ml(e,r)}function Xc(e,t){Te(2,arguments);var n=Ye(t);return hi(e,n*12)}function c3(e){Te(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Wr(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Pe(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function u3(e){Te(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Wr(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Pe(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function jm(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var _O=6e4,Ly=36e5,fse=1e3;function dse(e,t){Te(2,arguments);var n=Br(e),r=Br(t);return n.getTime()===r.getTime()}function bO(e){return Te(1,arguments),e instanceof Date||Wr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lv(e){if(Te(1,arguments),!bO(e)&&typeof e!="number")return!1;var t=Pe(e);return!isNaN(Number(t))}function Wd(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function lc(e){Te(1,arguments);var t=Pe(e),n=Math.floor(t.getMonth()/3)+1;return n}function cv(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t);return n.getFullYear()-r.getFullYear()}function f3(e,t){var 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 wO(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t),i=f3(n,r),o=Math.abs(Vd(n,r));n.setDate(n.getDate()-i*o);var a=+(f3(n,r)===-i),s=i*(o-a);return s===0?0:s}function k6(e,t){return Te(2,arguments),Pe(e).getTime()-Pe(t).getTime()}var d3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},hse="trunc";function xO(e){return e?d3[e]:d3[hse]}function pse(e,t,n){Te(2,arguments);var r=k6(e,t)/Ly;return xO(n==null?void 0:n.roundingMethod)(r)}function nl(e){Te(1,arguments);var t=Pe(e);return t.setHours(23,59,59,999),t}function M6(e){Te(1,arguments);var t=Pe(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function mse(e){Te(1,arguments);var t=Pe(e);return nl(t).getTime()===M6(t).getTime()}function uv(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t),i=jm(n,r),o=Math.abs(Wd(n,r)),a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var s=jm(n,r)===-i;mse(Pe(e))&&o===1&&jm(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function gse(e,t,n){Te(2,arguments);var r=k6(e,t)/1e3;return xO(n==null?void 0:n.roundingMethod)(r)}function vse(e,t,n){Te(2,arguments);var r=wO(e,t)/7;return xO(n==null?void 0:n.roundingMethod)(r)}function lx(e){Te(1,arguments);var t=Pe(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function D6(e){Te(1,arguments);var t=Pe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function yse(e){Te(1,arguments);var t=Pe(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function L6(e){Te(1,arguments);var t=Pe(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _se(e,t){var n,r,i,o,a,s,l,c;Te(1,arguments);var f=Zo(),h=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Pe(e),g=p.getDay(),v=(g<h?-7:0)+6-(g-h);return p.setDate(p.getDate()+v),p.setHours(23,59,59,999),p}function bse(e){return Te(1,arguments),_se(e,{weekStartsOn:1})}function R6(e,t){Te(2,arguments);var n=Ye(t);return vO(e,-n)}var wse=864e5;function xse(e){Te(1,arguments);var t=Pe(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/wse)+1}function Jc(e){Te(1,arguments);var t=1,n=Pe(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function j6(e){Te(1,arguments);var t=Pe(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Jc(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Jc(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Sse(e){Te(1,arguments);var t=j6(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Jc(n);return r}var Ose=6048e5;function N6(e){Te(1,arguments);var t=Pe(e),n=Jc(t).getTime()-Sse(t).getTime();return Math.round(n/Ose)+1}function rl(e,t){var n,r,i,o,a,s,l,c;Te(1,arguments);var f=Zo(),h=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Pe(e),g=p.getUTCDay(),v=(g<h?7:0)+g-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function SO(e,t){var n,r,i,o,a,s,l,c;Te(1,arguments);var f=Pe(e),h=f.getUTCFullYear(),p=Zo(),g=Ye((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,g),v.setUTCHours(0,0,0,0);var y=rl(v,t),x=new Date(0);x.setUTCFullYear(h,0,g),x.setUTCHours(0,0,0,0);var b=rl(x,t);return f.getTime()>=y.getTime()?h+1:f.getTime()>=b.getTime()?h:h-1}function Cse(e,t){var n,r,i,o,a,s,l,c;Te(1,arguments);var f=Zo(),h=Ye((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=SO(e,t),g=new Date(0);g.setUTCFullYear(p,0,h),g.setUTCHours(0,0,0,0);var v=rl(g,t);return v}var Ese=6048e5;function A6(e,t){Te(1,arguments);var n=Pe(e),r=rl(n,t).getTime()-Cse(n,t).getTime();return Math.round(r/Ese)+1}function tt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Tse={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return tt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tt(r+1,2)},d:function(t,n){return tt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tt(t.getUTCHours(),n.length)},m:function(t,n){return tt(t.getUTCMinutes(),n.length)},s:function(t,n){return tt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return tt(o,n.length)}};const na=Tse;var Il={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pse={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return na.y(t,n)},Y:function(t,n,r,i){var o=SO(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return tt(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):tt(a,n.length)},R:function(t,n){var r=j6(t);return tt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return tt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return tt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return na.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return tt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=A6(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):tt(o,n.length)},I:function(t,n,r){var i=N6(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):na.d(t,n)},D:function(t,n,r){var i=xse(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):tt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return tt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return tt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return tt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Il.noon:i===0?o=Il.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Il.evening:i>=12?o=Il.afternoon:i>=4?o=Il.morning:o=Il.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return na.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):na.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):na.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):na.s(t,n)},S:function(t,n){return na.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return p3(a);case"XXXX":case"XX":return Es(a);case"XXXXX":case"XXX":default:return Es(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return p3(a);case"xxxx":case"xx":return Es(a);case"xxxxx":case"xxx":default:return Es(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+h3(a,":");case"OOOO":default:return"GMT"+Es(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+h3(a,":");case"zzzz":default:return"GMT"+Es(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return tt(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return tt(a,n.length)}};function h3(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t||"";return n+String(i)+a+tt(o,2)}function p3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tt(Math.abs(e)/60,2)}return Es(e,t)}function Es(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=tt(Math.floor(i/60),2),a=tt(i%60,2);return r+o+n+a}const kse=Pse;var m3=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},I6=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Mse=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return m3(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",m3(i,n)).replace("{{time}}",I6(o,n))},Dse={p:I6,P:Mse};const cx=Dse;var Lse=["D","DD"],Rse=["YY","YYYY"];function F6(e){return Lse.indexOf(e)!==-1}function $6(e){return Rse.indexOf(e)!==-1}function fv(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var jse={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"}},Nse=function(t,n,r){var i,o=jse[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Ase=Nse;function L_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Ise={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Fse={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$se={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bse={date:L_({formats:Ise,defaultWidth:"full"}),time:L_({formats:Fse,defaultWidth:"full"}),dateTime:L_({formats:$se,defaultWidth:"full"})};const Use=Bse;var zse={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hse=function(t,n,r,i){return zse[t]};const Vse=Hse;function Xu(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var Wse={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Yse={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qse={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"]},Gse={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"]},Kse={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"}},Zse={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"}},Qse=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Xse={ordinalNumber:Qse,era:Xu({values:Wse,defaultWidth:"wide"}),quarter:Xu({values:Yse,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Xu({values:qse,defaultWidth:"wide"}),day:Xu({values:Gse,defaultWidth:"wide"}),dayPeriod:Xu({values:Kse,defaultWidth:"wide",formattingValues:Zse,defaultFormattingWidth:"wide"})};const Jse=Xse;function Ju(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?tle(s,function(h){return h.test(a)}):ele(s,function(h){return h.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(a.length);return{value:c,rest:f}}}function ele(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function tle(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function nle(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var rle=/^(\d+)(th|st|nd|rd)?/i,ile=/\d+/i,ole={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},ale={any:[/^b/i,/^(a|c)/i]},sle={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},lle={any:[/1/i,/2/i,/3/i,/4/i]},cle={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},ule={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]},fle={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},dle={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]},hle={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},ple={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}},mle={ordinalNumber:nle({matchPattern:rle,parsePattern:ile,valueCallback:function(t){return parseInt(t,10)}}),era:Ju({matchPatterns:ole,defaultMatchWidth:"wide",parsePatterns:ale,defaultParseWidth:"any"}),quarter:Ju({matchPatterns:sle,defaultMatchWidth:"wide",parsePatterns:lle,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ju({matchPatterns:cle,defaultMatchWidth:"wide",parsePatterns:ule,defaultParseWidth:"any"}),day:Ju({matchPatterns:fle,defaultMatchWidth:"wide",parsePatterns:dle,defaultParseWidth:"any"}),dayPeriod:Ju({matchPatterns:hle,defaultMatchWidth:"any",parsePatterns:ple,defaultParseWidth:"any"})};const gle=mle;var vle={code:"en-US",formatDistance:Ase,formatLong:Use,formatRelative:Vse,localize:Jse,match:gle,options:{weekStartsOn:0,firstWeekContainsDate:1}};const OO=vle;var yle=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ble=/^'([^]*?)'?$/,wle=/''/g,xle=/[a-zA-Z]/;function eu(e,t,n){var r,i,o,a,s,l,c,f,h,p,g,v,y,x,b,w,S,C;Te(2,arguments);var T=String(t),P=Zo(),R=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:P.locale)!==null&&r!==void 0?r:OO,j=Ye((o=(a=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:P.firstWeekContainsDate)!==null&&a!==void 0?a:(h=P.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=Ye((g=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&y!==void 0?y:P.weekStartsOn)!==null&&v!==void 0?v:(S=P.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&g!==void 0?g:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var N=Pe(e);if(!lv(N))throw new RangeError("Invalid time value");var V=Qc(N),W=R6(N,V),ne={firstWeekContainsDate:j,weekStartsOn:z,locale:R,_originalDate:N},q=T.match(_le).map(function(J){var oe=J[0];if(oe==="p"||oe==="P"){var le=cx[oe];return le(J,R.formatLong)}return J}).join("").match(yle).map(function(J){if(J==="''")return"'";var oe=J[0];if(oe==="'")return Sle(J);var le=kse[oe];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&$6(J)&&fv(J,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&F6(J)&&fv(J,t,String(e)),le(W,J,R.localize,ne);if(oe.match(xle))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return J}).join("");return q}function Sle(e){var t=e.match(ble);return t?t[1].replace(wle,"'"):e}function CO(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Ole(e){return CO({},e)}var g3=1440,Cle=2520,R_=43200,Ele=86400;function Tle(e,t,n){var r,i;Te(2,arguments);var o=Zo(),a=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:OO;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=jm(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l=CO(Ole(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:s}),c,f;s>0?(c=Pe(t),f=Pe(e)):(c=Pe(e),f=Pe(t));var h=gse(f,c),p=(Qc(f)-Qc(c))/1e3,g=Math.round((h-p)/60),v;if(g<2)return n!=null&&n.includeSeconds?h<5?a.formatDistance("lessThanXSeconds",5,l):h<10?a.formatDistance("lessThanXSeconds",10,l):h<20?a.formatDistance("lessThanXSeconds",20,l):h<40?a.formatDistance("halfAMinute",0,l):h<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):g===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",g,l);if(g<45)return a.formatDistance("xMinutes",g,l);if(g<90)return a.formatDistance("aboutXHours",1,l);if(g<g3){var y=Math.round(g/60);return a.formatDistance("aboutXHours",y,l)}else{if(g<Cle)return a.formatDistance("xDays",1,l);if(g<R_){var x=Math.round(g/g3);return a.formatDistance("xDays",x,l)}else if(g<Ele)return v=Math.round(g/R_),a.formatDistance("aboutXMonths",v,l)}if(v=uv(f,c),v<12){var b=Math.round(g/R_);return a.formatDistance("xMonths",b,l)}else{var w=v%12,S=Math.floor(v/12);return w<3?a.formatDistance("aboutXYears",S,l):w<9?a.formatDistance("overXYears",S,l):a.formatDistance("almostXYears",S+1,l)}}function Ple(e,t){var n,r;Te(1,arguments);var i=Pe(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),a=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",c=o==="extended"?"-":"",f=o==="extended"?":":"";if(a!=="time"){var h=tt(i.getDate(),2),p=tt(i.getMonth()+1,2),g=tt(i.getFullYear(),4);s="".concat(g).concat(c).concat(p).concat(c).concat(h)}if(a!=="date"){var v=i.getTimezoneOffset();if(v!==0){var y=Math.abs(v),x=tt(Math.floor(y/60),2),b=tt(y%60,2),w=v<0?"+":"-";l="".concat(w).concat(x,":").concat(b)}else l="Z";var S=tt(i.getHours(),2),C=tt(i.getMinutes(),2),T=tt(i.getSeconds(),2),P=s===""?"":"T",R=[S,C,T].join(f);s="".concat(s).concat(P).concat(R).concat(l)}return s}function v3(e){Te(1,arguments);var t=Pe(e),n=t.getDate();return n}function kle(e){Te(1,arguments);var t=Pe(e),n=t.getDay();return n}function Mle(e){Te(1,arguments);var t=Pe(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Ar(e){Te(1,arguments);var t=Pe(e),n=t.getHours();return n}var Dle=6048e5;function Lle(e){Te(1,arguments);var t=Pe(e),n=Hd(t).getTime()-lse(t).getTime();return Math.round(n/Dle)+1}function Ir(e){Te(1,arguments);var t=Pe(e),n=t.getMinutes();return n}function Jn(e){Te(1,arguments);var t=Pe(e),n=t.getMonth();return n}function j_(e){Te(1,arguments);var t=Pe(e),n=t.getSeconds();return n}function dv(e){Te(1,arguments);var t=Pe(e),n=t.getTime();return n}function Rle(e){return Te(1,arguments),Math.floor(dv(e)/1e3)}function Je(e){return Te(1,arguments),Pe(e).getFullYear()}function qa(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t);return n.getTime()>r.getTime()}function oi(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t);return n.getTime()<r.getTime()}function B6(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t);return n.getTime()===r.getTime()}function y3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jle(e,t){if(e){if(typeof e=="string")return y3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y3(e,t)}}function _3(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=jle(e))||t&&e&&typeof e.length=="number"){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(c){throw c},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 o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function ht(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$g(e,t)}function hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hv(e)}function Nle(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ale(e,t){if(t&&(Wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(e)}function pt(e){var t=Nle();return function(){var r=hv(e),i;if(t){var o=hv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ale(this,i)}}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b3(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,h6(r.key),r)}}function at(e,t,n){return t&&b3(e.prototype,t),n&&b3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ile=10,U6=function(){function e(){ot(this,e),je(this,"priority",void 0),je(this,"subPriority",0)}return at(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),Fle=function(e){ht(n,e);var t=pt(n);function n(r,i,o,a,s){var l;return ot(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return at(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),n}(U6),$le=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",Ile),je($e(r),"subPriority",-1),r}return at(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),n}(U6),gt=function(){function e(){ot(this,e),je(this,"incompatibleTokens",void 0),je(this,"priority",void 0),je(this,"subPriority",void 0)}return at(e,[{key:"run",value:function(n,r,i,o){var a=this.parse(n,r,i,o);return a?{setter:new Fle(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}(),Ble=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",140),je($e(r),"incompatibleTokens",["R","u","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt),an={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Gi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function sn(e,t){return e&&{value:t(e.value),rest:e.rest}}function Wt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ki(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Ly+o*_O+a*fse),rest:t.slice(n[0].length)}}function z6(e){return Wt(an.anyDigitsSigned,e)}function en(e,t){switch(e){case 1:return Wt(an.singleDigit,t);case 2:return Wt(an.twoDigits,t);case 3:return Wt(an.threeDigits,t);case 4:return Wt(an.fourDigits,t);default:return Wt(new RegExp("^\\d{1,"+e+"}"),t)}}function pv(e,t){switch(e){case 1:return Wt(an.singleDigitSigned,t);case 2:return Wt(an.twoDigitsSigned,t);case 3:return Wt(an.threeDigitsSigned,t);case 4:return Wt(an.fourDigitsSigned,t);default:return Wt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function EO(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function H6(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function V6(e){return e%400===0||e%4===0&&e%100!==0}var Ule=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",130),je($e(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="yy"}};switch(o){case"y":return sn(en(4,i),s);case"yo":return sn(a.ordinalNumber(i,{unit:"year"}),s);default:return sn(en(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=H6(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt),zle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",130),je($e(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return sn(en(4,i),s);case"Yo":return sn(a.ordinalNumber(i,{unit:"year"}),s);default:return sn(en(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var l=SO(i,s);if(a.isTwoDigitYear){var c=H6(a.year,l);return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),rl(i,s)}var f=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(f,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),rl(i,s)}}]),n}(gt),Hle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",130),je($e(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o){return pv(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Jc(s)}}]),n}(gt),Vle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",130),je($e(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o){return pv(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt),Wle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",120),je($e(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return en(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt),Yle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",120),je($e(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return en(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt),qle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),je($e(r),"priority",110),r}return at(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"M":return sn(Wt(an.month,i),s);case"MM":return sn(en(2,i),s);case"Mo":return sn(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt),Gle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",110),je($e(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"L":return sn(Wt(an.month,i),s);case"LL":return sn(en(2,i),s);case"Lo":return sn(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Kle(e,t,n){Te(2,arguments);var r=Pe(e),i=Ye(t),o=A6(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var Zle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",100),je($e(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"w":return Wt(an.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return rl(Kle(i,a,s),s)}}]),n}(gt);function Qle(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t),i=N6(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var Xle=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",100),je($e(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"I":return Wt(an.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Jc(Qle(i,a))}}]),n}(gt),Jle=[31,28,31,30,31,30,31,31,30,31,30,31],ece=[31,29,31,30,31,30,31,31,30,31,30,31],tce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",90),je($e(r),"subPriority",1),je($e(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"d":return Wt(an.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=V6(a),l=i.getUTCMonth();return s?o>=1&&o<=ece[l]:o>=1&&o<=Jle[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n}(gt),nce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",90),je($e(r),"subpriority",1),je($e(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return Wt(an.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=V6(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function TO(e,t,n){var r,i,o,a,s,l,c,f;Te(2,arguments);var h=Zo(),p=Ye((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Pe(e),v=Ye(t),y=g.getUTCDay(),x=v%7,b=(x+7)%7,w=(b<p?7:0)+v-y;return g.setUTCDate(g.getUTCDate()+w),g}var rce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",90),je($e(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=TO(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt),ice=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",90),je($e(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a,s){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(o){case"e":case"ee":return sn(en(o.length,i),l);case"eo":return sn(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=TO(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt),oce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",90),je($e(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a,s){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(o){case"c":case"cc":return sn(en(o.length,i),l);case"co":return sn(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=TO(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function ace(e,t){Te(2,arguments);var n=Ye(t);n%7===0&&(n=n-7);var r=1,i=Pe(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}var sce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",90),je($e(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c===0?7:c};switch(o){case"i":case"ii":return en(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return sn(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return sn(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return sn(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return sn(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=ace(i,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt),lce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",80),je($e(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(EO(a),0,0,0),i}}]),n}(gt),cce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",80),je($e(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(EO(a),0,0,0),i}}]),n}(gt),uce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",80),je($e(r),"incompatibleTokens",["a","b","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(EO(a),0,0,0),i}}]),n}(gt),fce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",70),je($e(r),"incompatibleTokens",["H","K","k","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"h":return Wt(an.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(gt),dce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",70),je($e(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"H":return Wt(an.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n}(gt),hce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",70),je($e(r),"incompatibleTokens",["h","H","k","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"K":return Wt(an.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(gt),pce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",70),je($e(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"k":return Wt(an.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),n}(gt),mce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",60),je($e(r),"incompatibleTokens",["t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"m":return Wt(an.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n}(gt),gce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",50),je($e(r),"incompatibleTokens",["t","T"]),r}return at(n,[{key:"parse",value:function(i,o,a){switch(o){case"s":return Wt(an.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return en(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n}(gt),vce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",30),je($e(r),"incompatibleTokens",["t","T"]),r}return at(n,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return sn(en(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),n}(gt),yce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",10),je($e(r),"incompatibleTokens",["t","T","x"]),r}return at(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Ki(Gi.basicOptionalMinutes,i);case"XX":return Ki(Gi.basic,i);case"XXXX":return Ki(Gi.basicOptionalSeconds,i);case"XXXXX":return Ki(Gi.extendedOptionalSeconds,i);case"XXX":default:return Ki(Gi.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(gt),_ce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",10),je($e(r),"incompatibleTokens",["t","T","X"]),r}return at(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Ki(Gi.basicOptionalMinutes,i);case"xx":return Ki(Gi.basic,i);case"xxxx":return Ki(Gi.basicOptionalSeconds,i);case"xxxxx":return Ki(Gi.extendedOptionalSeconds,i);case"xxx":default:return Ki(Gi.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(gt),bce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",40),je($e(r),"incompatibleTokens","*"),r}return at(n,[{key:"parse",value:function(i){return z6(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n}(gt),wce=function(e){ht(n,e);var t=pt(n);function n(){var r;ot(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),je($e(r),"priority",20),je($e(r),"incompatibleTokens","*"),r}return at(n,[{key:"parse",value:function(i){return z6(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),n}(gt),xce={G:new Ble,y:new Ule,Y:new zle,R:new Hle,u:new Vle,Q:new Wle,q:new Yle,M:new qle,L:new Gle,w:new Zle,I:new Xle,d:new tce,D:new nce,E:new rce,e:new ice,c:new oce,i:new sce,a:new lce,b:new cce,B:new uce,h:new fce,H:new dce,K:new hce,k:new pce,m:new mce,s:new gce,S:new vce,X:new yce,x:new _ce,t:new bce,T:new wce},Sce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Oce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cce=/^'([^]*?)'?$/,Ece=/''/g,Tce=/\S/,Pce=/[a-zA-Z]/;function N_(e,t,n,r){var i,o,a,s,l,c,f,h,p,g,v,y,x,b,w,S,C,T;Te(3,arguments);var P=String(e),R=String(t),j=Zo(),z=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:j.locale)!==null&&i!==void 0?i:OO;if(!z.match)throw new RangeError("locale must contain match property");var N=Ye((a=(s=(l=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(f=r.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&l!==void 0?l:j.firstWeekContainsDate)!==null&&s!==void 0?s:(p=j.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=Ye((v=(y=(x=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(w=r.locale)===null||w===void 0||(S=w.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&x!==void 0?x:j.weekStartsOn)!==null&&y!==void 0?y:(C=j.locale)===null||C===void 0||(T=C.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&v!==void 0?v:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(R==="")return P===""?Pe(n):new Date(NaN);var W={firstWeekContainsDate:N,weekStartsOn:V,locale:z},ne=[new $le],q=R.match(Oce).map(function(E){var M=E[0];if(M in cx){var I=cx[M];return I(E,z.formatLong)}return E}).join("").match(Sce),J=[],oe=_3(q),le;try{var G=function(){var M=le.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&$6(M)&&fv(M,R,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&F6(M)&&fv(M,R,e);var I=M[0],X=xce[I];if(X){var Q=X.incompatibleTokens;if(Array.isArray(Q)){var se=J.find(function(Le){return Q.includes(Le.token)||Le.token===I});if(se)throw new RangeError("The format string mustn't contain `".concat(se.fullToken,"` and `").concat(M,"` at the same time"))}else if(X.incompatibleTokens==="*"&&J.length>0)throw new RangeError("The format string mustn't contain `".concat(M,"` and any other token at the same time"));J.push({token:I,fullToken:M});var ge=X.run(P,M,z.match,W);if(!ge)return{v:new Date(NaN)};ne.push(ge.setter),P=ge.rest}else{if(I.match(Pce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(M==="''"?M="'":I==="'"&&(M=kce(M)),P.indexOf(M)===0)P=P.slice(M.length);else return{v:new Date(NaN)}}};for(oe.s();!(le=oe.n()).done;){var F=G();if(Wr(F)==="object")return F.v}}catch(E){oe.e(E)}finally{oe.f()}if(P.length>0&&Tce.test(P))return new Date(NaN);var A=ne.map(function(E){return E.priority}).sort(function(E,M){return M-E}).filter(function(E,M,I){return I.indexOf(E)===M}).map(function(E){return ne.filter(function(M){return M.priority===E}).sort(function(M,I){return I.subPriority-M.subPriority})}).map(function(E){return E[0]}),B=Pe(n);if(isNaN(B.getTime()))return new Date(NaN);var re=R6(B,Qc(B)),U={},Z=_3(A),ie;try{for(Z.s();!(ie=Z.n()).done;){var ae=ie.value;if(!ae.validate(re,W))return new Date(NaN);var pe=ae.set(re,U,W);Array.isArray(pe)?(re=pe[0],CO(U,pe[1])):re=pe}}catch(E){Z.e(E)}finally{Z.f()}return re}function kce(e){return e.match(Cce)[1].replace(Ece,"'")}function Mce(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Dce(e,t){Te(2,arguments);var n=lx(e),r=lx(t);return n.getTime()===r.getTime()}function Lce(e,t){Te(2,arguments);var n=Pe(e),r=Pe(t);return n.getFullYear()===r.getFullYear()}function tu(e,t){Te(2,arguments);var n=Pe(e).getTime(),r=Pe(t.start).getTime(),i=Pe(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function PO(e,t){Te(2,arguments);var n=Ye(t);return ml(e,-n)}function $o(e,t){var n;Te(1,arguments);var r=Ye((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Ace(e),o;if(i.date){var a=Ice(i.date,r);o=Fce(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,c;if(i.time&&(l=$ce(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Bce(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(s+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(s+l+c)}var qp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rce=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jce=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Nce=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ace(e){var t={},n=e.split(qp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],qp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(qp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=qp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ice(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Fce(e,t){if(t===null)return new Date(NaN);var n=e.match(Rce);if(!n)return new Date(NaN);var r=!!n[4],i=ef(n[1]),o=ef(n[2])-1,a=ef(n[3]),s=ef(n[4]),l=ef(n[5])-1;if(r)return Wce(t,s,l)?Uce(t,s,l):new Date(NaN);var c=new Date(0);return!Hce(t,o,a)||!Vce(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}function ef(e){return e?parseInt(e):1}function $ce(e){var t=e.match(jce);if(!t)return NaN;var n=A_(t[1]),r=A_(t[2]),i=A_(t[3]);return Yce(n,r,i)?n*Ly+r*_O+i*1e3:NaN}function A_(e){return e&&parseFloat(e.replace(",","."))||0}function Bce(e){if(e==="Z")return 0;var t=e.match(Nce);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return qce(r,i)?n*(r*Ly+i*_O):NaN}function Uce(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var zce=[31,null,31,30,31,30,31,31,30,31,30,31];function W6(e){return e%400===0||e%4===0&&e%100!==0}function Hce(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zce[t]||(W6(e)?29:28))}function Vce(e,t){return t>=1&&t<=(W6(e)?366:365)}function Wce(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Yce(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function qce(e,t){return t>=0&&t<=59}function ur(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=Mle(a);return n.setMonth(r,Math.min(o,s)),n}function Gce(e,t){if(Te(2,arguments),Wr(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Pe(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=ur(n,t.month)),t.date!=null&&n.setDate(Ye(t.date)),t.hours!=null&&n.setHours(Ye(t.hours)),t.minutes!=null&&n.setMinutes(Ye(t.minutes)),t.seconds!=null&&n.setSeconds(Ye(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Ye(t.milliseconds)),n)}function qf(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t);return n.setHours(r),n}function Gf(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t);return n.setMinutes(r),n}function Fl(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return ur(n,n.getMonth()+o*3)}function Kce(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t);return n.setSeconds(r),n}function wo(e,t){Te(2,arguments);var n=Pe(e),r=Ye(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function nu(e,t){Te(2,arguments);var n=Ye(t);return hi(e,-n)}function Zce(e,t){Te(2,arguments);var n=Ye(t);return P6(e,-n)}function Qce(e,t){Te(2,arguments);var n=Ye(t);return yO(e,-n)}function Yd(e,t){Te(2,arguments);var n=Ye(t);return Xc(e,-n)}const Y6="yyyy-MM-dd",kO="yyyy-MM-dd HH:mm",Ga=()=>new Date,MO=e=>typeof e!="string",DO=(e,t)=>!e||!MO(e)?e:t?eu(e,t):Ple(e),Ka=e=>DO(e,void 0),js=e=>DO(e,Y6),mv=e=>DO(e,kO),Pi=e=>MO(e)?e:$o(e),xh=(e,t,n)=>{try{return tu(Pi(e),{start:Pi(t??e),end:Pi(n??e)})}catch{return!1}},ms=(e,t)=>B6(e,t)||oi(e,t),Sh="all",q6={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Sh]:void 0},G6=Object.keys(q6),K6=e=>e===void 0||Yn(ZN(Boolean,e)),gv=e=>typeof e=="string"&&G6.includes(e),Xce=G6.filter(e=>e!==Sh),w3=e=>e?Pi(e):null,Z6=(e,t)=>({startDate:w3(e),endDate:w3(t)}),Jce=e=>{if(!(!e||K6(e)))return e.startDate&&!e.endDate?`Since ${js(e.startDate)}`:!e.startDate&&e.endDate?`Until ${js(e.endDate)}`:`${js(e.startDate)} - ${js(e.endDate)}`},Q6=e=>{if(!(!e||e===Sh))return gv(e)?q6[e]:Jce(e)},ri=e=>Br(PO(Ga(),e)),$l=e=>({startDate:e,endDate:nl(Ga())}),gs=e=>t=>e===t,X6=pS([[gs("today"),()=>$l(Br(Ga()))],[gs("yesterday"),()=>({startDate:ri(1),endDate:nl(PO(Ga(),1))})],[gs("last7Days"),()=>$l(ri(7))],[gs("last30Days"),()=>$l(ri(30))],[gs("last90Days"),()=>$l(ri(90))],[gs("last180Days"),()=>$l(ri(180))],[gs("last365Days"),()=>$l(ri(365))],[HN,()=>({})]]),eue=e=>{const t=Pi(e);return pS([[()=>ms(Br(Ga()),t),()=>"today"],[()=>ms(ri(1),t),()=>"yesterday"],[()=>ms(ri(7),t),()=>"last7Days"],[()=>ms(ri(30),t),()=>"last30Days"],[()=>ms(ri(90),t),()=>"last90Days"],[()=>ms(ri(180),t),()=>"last180Days"],[()=>ms(ri(365),t),()=>"last365Days"],[HN,()=>Sh]])()},tue=e=>gv(e)?X6(e):e,Tr=(e,t)=>b6(e,t,{serializeError:gy}),Oh=Mn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),x3=5e3,S3=4,O3=2,nue=({currentPage:e,pagesCount:t})=>e>=t,rue=(e,t)=>t*100/e,Ch=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=Mn(`${e}/progressChanged`),o=Mn(`${e}/large`),a=Mn(`${e}/fallbackToInterval`),s=Tr(e,async(l,{getState:c,dispatch:f})=>{var w;const[h,p]=t(l),g=async S=>Promise.all(S.map(async C=>h(C,x3).then(ct("data")))).then(Cq),v=async(S,C=0)=>{if(r(c))return[];const T=await g(S[C]);return f(i(rue(S.length,C+O3))),C<S.length-1?T.concat(await v(S,C+1)):T},y=async(S=1)=>{const{pagination:C,data:T}=await h(S,x3);if(!C||nue(C))return T;const P=gS(O3,C.pagesCount+1),R=Td(S3,P);return C.pagesCount-1>S3&&f(o()),T.concat(await v(R))},[x,b]=await Promise.all([y(),p((w=l.query)==null?void 0:w.excludeBots)]);return!x.length&&b&&f(a(eue(b.date))),{...n(l),visits:x}});return Object.assign(s,{progressChanged:i,large:o,fallbackToInterval:a})},Eh=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),Th=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:a,large:s,progressChanged:l,fallbackToInterval:c}=t,{reducer:f,actions:h}=ir({name:e,initialState:n,reducers:{cancelGetVisits:g=>({...g,cancelLoad:!0})},extraReducers:g=>{g.addCase(i,()=>({...n,loading:!0})),g.addCase(o,(v,{error:y})=>({...n,error:!0,errorData:Ko(y)})),g.addCase(a,(v,{payload:y})=>({...v,...y,loading:!1,loadingLarge:!1,error:!1})),g.addCase(s,v=>({...v,loadingLarge:!0})),g.addCase(l,(v,{payload:y})=>({...v,progress:y})),g.addCase(c,(v,{payload:y})=>({...v,fallbackInterval:y})),g.addCase(Oh,(v,{payload:y})=>{const{visits:x}=v,b=r(v,y.createdVisits).map(({visit:w})=>w);return b.length?{...v,visits:[...b,...x]}:v})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},J6="shlink/domainVisits",eI="DEFAULT",iue={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},oue=e=>Ch({typePrefix:`${J6}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1})=>{const{getDomainVisits:i}=e(),o=async(s,l)=>i(t,{...n,page:s,itemsPerPage:l}),a=Eh(r,async s=>i(t,s));return[o,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),aue=e=>Th({name:J6,initialState:iue,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>a&&ese(a,t)&&xh(s.date,i,o))}}),Nm=({className:e="",placement:t,children:n})=>{const r=dl();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(Ie,{icon:bS})}),m.jsx(Pr,{target:r,placement:t,children:n})]})},Ry=e=>Mt(t=>t.preventDefault(),e),LO=(e,t,n=1)=>gS(n,e+1).map(t),Zi=e=>!Ho(e)&&!Yn(e),I_=e=>Yn(e)?null:e,tI=e=>e?"true":"false",F_=e=>e===void 0?void 0:tI(e),$_=({isLast:e,...t})=>m.jsx(Dm,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),sue=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,g;const[i,o]=H.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[a,s]=H.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=H.useState(((g=n.redirects)==null?void 0:g.invalidShortUrlRedirect)??""),f=Ry(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:I_(i),regular404Redirect:I_(a),invalidShortUrlRedirect:I_(l)}}).then(t));return m.jsx(Yo,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:f,children:[m.jsxs(qo,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(so,{children:[m.jsxs($_,{value:i,onChange:o,children:[m.jsxs(Nm,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",m.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),m.jsxs($_,{value:a,onChange:s,children:[m.jsxs(Nm,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",m.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),m.jsxs($_,{value:l,isLast:!0,onChange:c,children:[m.jsx(Nm,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),m.jsxs(fl,{children:[m.jsx(yt,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(yt,{color:"primary",children:"Save"})]})]})})},lue=({domain:e,editDomainRedirects:t})=>{const[n,r]=mn(),i=wh("domainVisits"),o=pl();return m.jsxs(Ty,{children:[i&&m.jsxs(Ue,{tag:Ft,to:`${o}/domain/${e.domain}${e.isDefault?`_${eI}`:""}/visits`,children:[m.jsx(Ie,{icon:_S,fixedWidth:!0})," Visit stats"]}),m.jsxs(Ue,{onClick:r,children:[m.jsx(Ie,{fixedWidth:!0,icon:yS})," Edit redirects"]}),m.jsx(sue,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Li=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),cue=({status:e,matchMedia:t=window.matchMedia})=>{const n=dl(),r=()=>t("(max-width: 991px)").matches,[i,o]=H.useState(r());return H.useEffect(()=>{const a=()=>o(r());return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),e==="validating"?m.jsx(Ie,{fixedWidth:!0,icon:aA,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(Ie,{fixedWidth:!0,icon:Pd,className:"text-muted"}):m.jsx(Ie,{fixedWidth:!0,icon:_1,className:"text-danger"})}),m.jsx(Pr,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":m.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",m.jsx("br",{}),"Check the ",m.jsx(Li,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},B_=({fallback:e})=>m.jsxs("span",{className:"text-muted",children:[!e&&m.jsx("small",{children:"No redirect"}),e&&m.jsxs(m.Fragment,{children:[e," ",m.jsx("small",{children:"(as fallback)"})]})]}),uue=()=>m.jsxs(m.Fragment,{children:[m.jsx(Ie,{fixedWidth:!0,icon:mG,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Pr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),fue=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return H.useEffect(()=>{n(e.domain)},[]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&m.jsx(uue,{})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??m.jsx(B_,{fallback:r==null?void 0:r.baseUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??m.jsx(B_,{fallback:r==null?void 0:r.regular404Redirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??m.jsx(B_,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(cue,{status:s})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(lue,{domain:e,editDomainRedirects:t})})]})},C3=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],due=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var p;const{filteredDomains:o,defaultRedirects:a,loading:s,error:l,errorData:c}=t,f=a??((p=o.find(({isDefault:g})=>g))==null?void 0:p.redirects);if(H.useEffect(()=>{e()},[]),s)return m.jsx(Po,{loading:!0});const h=()=>l?m.jsx($r,{type:"error",children:m.jsx(Fo,{errorData:c,fallbackMessage:"Error loading domains :("})}):m.jsx(hn,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsx("tr",{children:C3.map((g,v)=>m.jsx("th",{children:g},v))})}),m.jsxs("tbody",{children:[o.length<1&&m.jsx("tr",{children:m.jsx("td",{colSpan:C3.length,className:"text-center",children:"No results found"})}),o.map(g=>m.jsx(fue,{domain:g,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:f},g.domain))]})]})});return m.jsxs(m.Fragment,{children:[m.jsx(yh,{className:"mb-3",onChange:n}),h()]})},hue="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",pue=e=>Tr(hue,async({domain:t,redirects:n})=>{const i=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:i}}),Gp="shlink/domainsList",Kp={domains:[],filteredDomains:[],loading:!1,error:!1},E3=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},T3=(e,t)=>n=>n.domain!==e?n:{...n,status:t},mue=(e,t)=>{const n=Tr(`${Gp}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=Tr(`${Gp}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=Mn(`${Gp}/filterDomains`),{reducer:o}=ir({name:Gp,initialState:Kp,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Kp,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Kp,error:!0,errorData:Ko(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Kp,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...c},{payload:f})=>({...c,domains:s.map(T3(f.domain,f.status)),filteredDomains:l.map(T3(f.domain,f.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(E3(l)),filteredDomains:s.filteredDomains.map(E3(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},gue=(e,t)=>{e.serviceFactory("DomainSelector",()=>Uae),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>due),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",mue,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",ct("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",ct("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",ct("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",pue,"apiClientFactory"),e.serviceFactory("checkDomainHealth",ct("checkDomainHealth"),"domainsListReducerCreator")},P3="shlink/mercure",vue={loading:!0,error:!1},yue=e=>{const t=Tr(`${P3}/loadMercureInfo`,({realTimeUpdates:r})=>{if(r&&!r.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=ir({name:P3,initialState:vue,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},_ue=e=>{e.serviceFactory("mercureInfoReducerCreator",yue,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",ct("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",ct("loadMercureInfo"),"mercureInfoReducerCreator")};var ux={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,g=n.TextDecoder,v=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(ue){c.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function ve(){}return ve.prototype=ue,new ve}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var x=h;h=function(ue,ve){var _e=ve.signal;return x(ue,{headers:ve.headers,credentials:ve.credentials,cache:ve.cache}).then(function(Ee){var Re=Ee.body.getReader();return _e._reader=Re,_e._aborted&&_e._reader.cancel(),{status:Ee.status,statusText:Ee.statusText,headers:Ee.headers,body:{getReader:function(){return Re}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(ue){function ve(be,ye,Oe){if(Oe===1)return be>=128>>ye&&be<<ye<=2047;if(Oe===2)return be>=2048>>ye&&be<<ye<=55295||be>=57344>>ye&&be<<ye<=65535;if(Oe===3)return be>=65536>>ye&&be<<ye<=1114111;throw new Error}function _e(be,ye){if(be===6*1)return ye>>6>15?3:ye>31?2:1;if(be===6*2)return ye>15?3:2;if(be===6*3)return 3;throw new Error}for(var Ee=65533,Re="",Me=this.bitsNeeded,De=this.codePoint,ce=0;ce<ue.length;ce+=1){var de=ue[ce];Me!==0&&(de<128||de>191||!ve(De<<6|de&63,Me-6,_e(Me,De)))&&(Me=0,De=Ee,Re+=String.fromCharCode(De)),Me===0?(de>=0&&de<=127?(Me=0,De=de):de>=192&&de<=223?(Me=6*1,De=de&31):de>=224&&de<=239?(Me=6*2,De=de&15):de>=240&&de<=247?(Me=6*3,De=de&7):(Me=0,De=Ee),Me!==0&&!ve(De,Me,_e(Me,De))&&(Me=0,De=Ee)):(Me-=6,De=De<<6|de&63),Me===0&&(De<=65535?Re+=String.fromCharCode(De):(Re+=String.fromCharCode(55296+(De-65535-1>>10)),Re+=String.fromCharCode(56320+(De-65535-1&1023))))}return this.bitsNeeded=Me,this.codePoint=De,Re};var w=function(){try{return new g().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(g==null||v==null||!w())&&(g=b);var S=function(){};function C(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=S}C.prototype.open=function(ue,ve){this._abort(!0);var _e=this,Ee=this._xhr,Re=1,Me=0;this._abort=function(Oe){_e._sendTimeout!==0&&(i(_e._sendTimeout),_e._sendTimeout=0),(Re===1||Re===2||Re===3)&&(Re=4,Ee.onload=S,Ee.onerror=S,Ee.onabort=S,Ee.onprogress=S,Ee.onreadystatechange=S,Ee.abort(),Me!==0&&(i(Me),Me=0),Oe||(_e.readyState=4,_e.onabort(null),_e.onreadystatechange())),Re=0};var De=function(){if(Re===1){var Oe=0,ke="",Ne=void 0;if("contentType"in Ee)Oe=200,ke="OK",Ne=Ee.contentType;else try{Oe=Ee.status,ke=Ee.statusText,Ne=Ee.getResponseHeader("Content-Type")}catch{Oe=0,ke="",Ne=void 0}Oe!==0&&(Re=2,_e.readyState=2,_e.status=Oe,_e.statusText=ke,_e._contentType=Ne,_e.onreadystatechange())}},ce=function(){if(De(),Re===2||Re===3){Re=3;var Oe="";try{Oe=Ee.responseText}catch{}_e.readyState=3,_e.responseText=Oe,_e.onprogress()}},de=function(Oe,ke){if((ke==null||ke.preventDefault==null)&&(ke={preventDefault:S}),ce(),Re===1||Re===2||Re===3){if(Re=4,Me!==0&&(i(Me),Me=0),_e.readyState=4,Oe==="load")_e.onload(ke);else if(Oe==="error")_e.onerror(ke);else if(Oe==="abort")_e.onabort(ke);else throw new TypeError;_e.onreadystatechange()}},be=function(Oe){Ee!=null&&(Ee.readyState===4?(!("onload"in Ee)||!("onerror"in Ee)||!("onabort"in Ee))&&de(Ee.responseText===""?"error":"load",Oe):Ee.readyState===3?"onprogress"in Ee||ce():Ee.readyState===2&&De())},ye=function(){Me=r(function(){ye()},500),Ee.readyState===3&&ce()};"onload"in Ee&&(Ee.onload=function(Oe){de("load",Oe)}),"onerror"in Ee&&(Ee.onerror=function(Oe){de("error",Oe)}),"onabort"in Ee&&(Ee.onabort=function(Oe){de("abort",Oe)}),"onprogress"in Ee&&(Ee.onprogress=ce),"onreadystatechange"in Ee&&(Ee.onreadystatechange=function(Oe){be(Oe)}),("contentType"in Ee||!("ontimeout"in o.prototype))&&(ve+=(ve.indexOf("?")===-1?"?":"&")+"padding=true"),Ee.open(ue,ve,!0),"readyState"in Ee&&(Me=r(function(){ye()},0))},C.prototype.abort=function(){this._abort(!1)},C.prototype.getResponseHeader=function(ue){return this._contentType},C.prototype.setRequestHeader=function(ue,ve){var _e=this._xhr;"setRequestHeader"in _e&&_e.setRequestHeader(ue,ve)},C.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},C.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var ve=this._xhr;"withCredentials"in ve&&(ve.withCredentials=this.withCredentials);try{ve.send(void 0)}catch(_e){throw _e}};function T(ue){return ue.replace(/[A-Z]/g,function(ve){return String.fromCharCode(ve.charCodeAt(0)+32)})}function P(ue){for(var ve=Object.create(null),_e=ue.split(`\r
|
||
`),Ee=0;Ee<_e.length;Ee+=1){var Re=_e[Ee],Me=Re.split(": "),De=Me.shift(),ce=Me.join(": ");ve[T(De)]=ce}this._map=ve}P.prototype.get=function(ue){return this._map[T(ue)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function R(){}R.prototype.open=function(ue,ve,_e,Ee,Re,Me,De){ue.open("GET",Re);var ce=0;ue.onprogress=function(){var be=ue.responseText,ye=be.slice(ce);ce+=ye.length,_e(ye)},ue.onerror=function(be){be.preventDefault(),Ee(new Error("NetworkError"))},ue.onload=function(){Ee(null)},ue.onabort=function(){Ee(null)},ue.onreadystatechange=function(){if(ue.readyState===o.HEADERS_RECEIVED){var be=ue.status,ye=ue.statusText,Oe=ue.getResponseHeader("Content-Type"),ke=ue.getAllResponseHeaders();ve(be,ye,Oe,new P(ke))}},ue.withCredentials=Me;for(var de in De)Object.prototype.hasOwnProperty.call(De,de)&&ue.setRequestHeader(de,De[de]);return ue.send(),ue};function j(ue){this._headers=ue}j.prototype.get=function(ue){return this._headers.get(ue)};function z(){}z.prototype.open=function(ue,ve,_e,Ee,Re,Me,De){var ce=null,de=new y,be=de.signal,ye=new g;return h(Re,{headers:De,credentials:Me?"include":"same-origin",signal:be,cache:"no-store"}).then(function(Oe){return ce=Oe.body.getReader(),ve(Oe.status,Oe.statusText,Oe.headers.get("Content-Type"),new j(Oe.headers)),new f(function(ke,Ne){var Qe=function(){ce.read().then(function(et){if(et.done)ke(void 0);else{var qe=ye.decode(et.value,{stream:!0});_e(qe),Qe()}}).catch(function(et){Ne(et)})};Qe()})}).catch(function(Oe){if(Oe.name!=="AbortError")return Oe}).then(function(Oe){Ee(Oe)}),{abort:function(){ce!=null&&ce.cancel(),de.abort()}}};function N(){this._listeners=Object.create(null)}function V(ue){r(function(){throw ue},0)}N.prototype.dispatchEvent=function(ue){ue.target=this;var ve=this._listeners[ue.type];if(ve!=null)for(var _e=ve.length,Ee=0;Ee<_e;Ee+=1){var Re=ve[Ee];try{typeof Re.handleEvent=="function"?Re.handleEvent(ue):Re.call(this,ue)}catch(Me){V(Me)}}},N.prototype.addEventListener=function(ue,ve){ue=String(ue);var _e=this._listeners,Ee=_e[ue];Ee==null&&(Ee=[],_e[ue]=Ee);for(var Re=!1,Me=0;Me<Ee.length;Me+=1)Ee[Me]===ve&&(Re=!0);Re||Ee.push(ve)},N.prototype.removeEventListener=function(ue,ve){ue=String(ue);var _e=this._listeners,Ee=_e[ue];if(Ee!=null){for(var Re=[],Me=0;Me<Ee.length;Me+=1)Ee[Me]!==ve&&Re.push(Ee[Me]);Re.length===0?delete _e[ue]:_e[ue]=Re}};function W(ue){this.type=ue,this.target=void 0}function ne(ue,ve){W.call(this,ue),this.data=ve.data,this.lastEventId=ve.lastEventId}ne.prototype=Object.create(W.prototype);function q(ue,ve){W.call(this,ue),this.status=ve.status,this.statusText=ve.statusText,this.headers=ve.headers}q.prototype=Object.create(W.prototype);function J(ue,ve){W.call(this,ue),this.error=ve.error}J.prototype=Object.create(W.prototype);var oe=-1,le=0,G=1,F=2,A=-1,B=0,re=1,U=2,Z=3,ie=/^text\/event\-stream(;.*)?$/i,ae=1e3,pe=18e6,E=function(ue,ve){var _e=ue==null?ve:parseInt(ue,10);return _e!==_e&&(_e=ve),M(_e)},M=function(ue){return Math.min(Math.max(ue,ae),pe)},I=function(ue,ve,_e){try{typeof ve=="function"&&ve.call(ue,_e)}catch(Ee){V(Ee)}};function X(ue,ve){N.call(this),ve=ve||{},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,ge(this,ue,ve)}function Q(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var se=h!=null&&p!=null&&"body"in p.prototype;function ge(ue,ve,_e){ve=String(ve);var Ee=!!_e.withCredentials,Re=_e.lastEventIdQueryParameterName||"lastEventId",Me=M(1e3),De=E(_e.heartbeatTimeout,45e3),ce="",de=Me,be=!1,ye=0,Oe=_e.headers||{},ke=_e.Transport,Ne=se&&ke==null?void 0:new C(ke!=null?new ke:Q()),Qe=ke!=null&&typeof ke!="string"?new ke:Ne==null?new z:new R,et=void 0,qe=0,Gt=oe,zt="",Sn="",or="",Ni="",An=B,bu=0,Ai=0,Rh=function(un,tn,ar,In){if(Gt===le)if(un===200&&ar!=null&&ie.test(ar)){Gt=G,be=Date.now(),de=Me,ue.readyState=G;var Fn=new q("open",{status:un,statusText:tn,headers:In});ue.dispatchEvent(Fn),I(ue,ue.onopen,Fn)}else{var vn="";un!==200?(tn&&(tn=tn.replace(/\s+/g," ")),vn="EventSource's response has a status "+un+" "+tn+" that is not 200. Aborting the connection."):vn="EventSource's response has a Content-Type specifying an unsupported type: "+(ar==null?"-":ar.replace(/\s+/g," "))+". Aborting the connection.",wu();var Fn=new q("error",{status:un,statusText:tn,headers:In});ue.dispatchEvent(Fn),I(ue,ue.onerror,Fn),console.error(vn)}},jh=function(un){if(Gt===G){for(var tn=-1,ar=0;ar<un.length;ar+=1){var In=un.charCodeAt(ar);(In===`
|
||
`.charCodeAt(0)||In==="\r".charCodeAt(0))&&(tn=ar)}var Fn=(tn!==-1?Ni:"")+un.slice(0,tn+1);Ni=(tn===-1?Ni:"")+un.slice(tn+1),un!==""&&(be=Date.now(),ye+=un.length);for(var vn=0;vn<Fn.length;vn+=1){var In=Fn.charCodeAt(vn);if(An===A&&In===`
|
||
`.charCodeAt(0))An=B;else if(An===A&&(An=B),In==="\r".charCodeAt(0)||In===`
|
||
`.charCodeAt(0)){if(An!==B){An===re&&(Ai=vn+1);var gi=Fn.slice(bu,Ai-1),vi=Fn.slice(Ai+(Ai<vn&&Fn.charCodeAt(Ai)===" ".charCodeAt(0)?1:0),vn);gi==="data"?(zt+=`
|
||
`,zt+=vi):gi==="id"?Sn=vi:gi==="event"?or=vi:gi==="retry"?(Me=E(vi,Me),de=Me):gi==="heartbeatTimeout"&&(De=E(vi,De),qe!==0&&(i(qe),qe=r(function(){os()},De)))}if(An===B){if(zt!==""){ce=Sn,or===""&&(or="message");var $n=new ne(or,{data:zt.slice(1),lastEventId:Sn});if(ue.dispatchEvent($n),or==="open"?I(ue,ue.onopen,$n):or==="message"?I(ue,ue.onmessage,$n):or==="error"&&I(ue,ue.onerror,$n),Gt===F)return}zt="",or=""}An=In==="\r".charCodeAt(0)?A:B}else An===B&&(bu=vn,An=re),An===re?In===":".charCodeAt(0)&&(Ai=vn+1,An=U):An===U&&(An=Z)}}},Nh=function(un){if(Gt===G||Gt===le){Gt=oe,qe!==0&&(i(qe),qe=0),qe=r(function(){os()},de),de=M(Math.min(Me*16,de*2)),ue.readyState=le;var tn=new J("error",{error:un});ue.dispatchEvent(tn),I(ue,ue.onerror,tn),un!=null&&console.error(un)}},wu=function(){Gt=F,et!=null&&(et.abort(),et=void 0),qe!==0&&(i(qe),qe=0),ue.readyState=F},os=function(){if(qe=0,Gt!==oe){if(!be&&et!=null)Nh(new Error("No activity within "+De+" milliseconds. "+(Gt===le?"No response received.":ye+" chars received.")+" Reconnecting.")),et!=null&&(et.abort(),et=void 0);else{var un=Math.max((be||Date.now())+De-Date.now(),1);be=!1,qe=r(function(){os()},un)}return}be=!1,ye=0,qe=r(function(){os()},De),Gt=le,zt="",or="",Sn=ce,Ni="",bu=0,Ai=0,An=B;var tn=ve;if(ve.slice(0,5)!=="data:"&&ve.slice(0,5)!=="blob:"&&ce!==""){var ar=ve.indexOf("?");tn=ar===-1?ve:ve.slice(0,ar+1)+ve.slice(ar+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(vi,$n){return $n===Re?"":vi}),tn+=(ve.indexOf("?")===-1?"?":"&")+Re+"="+encodeURIComponent(ce)}var In=ue.withCredentials,Fn={};Fn.Accept="text/event-stream";var vn=ue.headers;if(vn!=null)for(var gi in vn)Object.prototype.hasOwnProperty.call(vn,gi)&&(Fn[gi]=vn[gi]);try{et=Qe.open(Ne,Rh,jh,Nh,tn,In,Fn)}catch(vi){throw wu(),vi}};ue.url=ve,ue.readyState=le,ue.withCredentials=Ee,ue.headers=Oe,ue._close=wu,os()}X.prototype=Object.create(N.prototype),X.prototype.CONNECTING=le,X.prototype.OPEN=G,X.prototype.CLOSED=F,X.prototype.close=function(){this._close()},X.CONNECTING=le,X.OPEN=G,X.CLOSED=F,X.prototype.withCredentials=void 0;var Le=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Le=X),function(ue){{var ve=ue(t);ve!==void 0&&(e.exports=ve)}}(function(ue){ue.EventSourcePolyfill=X,ue.NativeEventSource=l,ue.EventSource=Le})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Wl:globalThis)})(ux,ux.exports);var bue=ux.exports;const wue=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:h})=>n(JSON.parse(h)),c=({status:h})=>h===401&&r(),f=t.map(h=>{const p=new URL(i);p.searchParams.append("topic",h);const g=new bue.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return g.onmessage=l,g.onerror=c,g});return()=>f.forEach(h=>h.close())};function is(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,{interval:s}=a,l=ul();return H.useEffect(()=>{const c=g=>s?n.add(g):i([g]),f=t(r,l),h=wue(a,f,c,o);if(!s)return h;const p=setInterval(()=>{i([...n]),n.clear()},s*1e3*60);return Mt(()=>clearInterval(p),()=>h==null?void 0:h())},[a]),m.jsx(e,{...r})}}class li{}me(li,"visits","https://shlink.io/new-visit"),me(li,"orphanVisits","https://shlink.io/new-orphan-visit"),me(li,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);const RO="shlink/shortUrlDeletion",k3={shortCode:"",loading:!1,deleted:!1,error:!1},xue=e=>Tr(`${RO}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),nI=Mn(`${RO}/shortUrlDeleted`),Sue=e=>{const{actions:t,reducer:n}=ir({name:RO,initialState:k3,reducers:{resetDeleteShortUrl:()=>k3},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Ko(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},rI="shlink/shortUrlsList",iI=5,Oue={loading:!0,error:!1},Cue=e=>Tr(`${rI}/listShortUrls`,t=>e().listShortUrls(t??{})),Eue=(e,t,n)=>ir({name:rI,initialState:Oue,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,Mt((i,{payload:o})=>i.shortUrls?Dl(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,iI-1)],i):i,i=>i.shortUrls?Dl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?Dl(["shortUrls","data"],i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return Yf(a,s,l)?o:a}),i):i),r.addCase(nI,Mt((i,{payload:o})=>i.shortUrls?Dl(["shortUrls","data"],sh(a=>Yf(a,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?Dl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(Oh,(i,{payload:o})=>{var a,s;return Dl(["shortUrls","data"],(s=(a=i.shortUrls)==null?void 0:a.data)==null?void 0:s.map(l=>{var c;return((c=wq(o.createdVisits.filter(({shortUrl:f})=>f&&Yf(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),M3=10,{ceil:Tue}=Math,Pue=new Intl.NumberFormat("en-US"),wn=e=>Pue.format(Number(e)),kue=e=>Tue(e/M3)*M3,Mue={field:"dateCreated",dir:"DESC"},oI={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Mue}},aI=H.createContext(oI),Due=aI.Provider,jO=()=>H.useContext(aI)??oI,gl=e=>jO()[e];var Lue={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Rue=Lue,jue={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},Nue=jue,Aue={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},sI={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]};const Iue=e=>({tag:Ft,to:e}),fx=({children:e,title:t,link:n,tooltip:r})=>{const i=dl();return m.jsxs(m.Fragment,{children:[m.jsxs(Hr,{innerRef:i,className:"highlight-card",body:!0,...Iue(n),children:[m.jsx(Ie,{size:"3x",className:"highlight-card__link-icon",icon:Nue}),m.jsx(C4,{tag:"h5",className:"highlight-card__title",children:t}),m.jsx(O4,{tag:"h2",children:e})]}),r&&m.jsx(Pr,{target:i,placement:"bottom",children:r})]})},D3=({loading:e,excludeBots:t,visitsSummary:n,...r})=>m.jsx(fx,{tooltip:n.bots!==void 0?m.jsxs(m.Fragment,{children:[t?"Plus":"Including"," ",m.jsx("strong",{children:wn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":wn(t&&n.nonBots?n.nonBots:n.total)}),Fue=(e,t)=>is(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,loadVisitsOverview:a,visitsOverview:s})=>{const{loading:l,shortUrls:c}=n,{loading:f}=o,{loading:h,nonOrphanVisits:p,orphanVisits:g}=s,v=pl(),y=ao(),x=gl("visits");return H.useEffect(()=>{r({itemsPerPage:iI,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),a()},[]),m.jsxs(m.Fragment,{children:[m.jsxs(dr,{children:[m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(D3,{title:"Visits",link:`${v}/non-orphan-visits`,excludeBots:(x==null?void 0:x.excludeBots)??!1,loading:h,visitsSummary:p})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(D3,{title:"Orphan visits",link:`${v}/orphan-visits`,excludeBots:(x==null?void 0:x.excludeBots)??!1,loading:h,visitsSummary:g})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(fx,{title:"Short URLs",link:`${v}/list-short-urls/1`,children:l?"Loading...":wn((c==null?void 0:c.pagination.totalItems)??0)})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(fx,{title:"Tags",link:`${v}/manage-tags`,children:f?"Loading...":wn(o.tags.length)})})]}),m.jsxs(Hr,{className:"mb-3",children:[m.jsxs(Wc,{children:[m.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),m.jsx(Ft,{className:"float-end",to:`${v}/create-short-url`,children:"Advanced options »"})]}),m.jsx(Vc,{children:m.jsx(t,{basicMode:!0})})]}),m.jsxs(Hr,{children:[m.jsxs(Wc,{children:[m.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),m.jsx(Ft,{className:"float-end",to:`${v}/list-short-urls/1`,children:"See all »"})]}),m.jsx(Vc,{children:m.jsx(e,{shortUrlsList:n,className:"mb-0",onTagClick:b=>y(`${v}/list-short-urls/1?tags=${encodeURIComponent(b)}`)})})]})]})},()=>[li.visits,li.orphanVisits]);function $ue(e,t){e.serviceFactory("Overview",Fue,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const Bue=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),Uue=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,basicMode:o=!1})=>{const a=gl("shortUrlCreation"),s=H.useMemo(()=>Bue(a),[a]);return m.jsxs(m.Fragment,{children:[m.jsx(e,{initialState:s,saving:r.saving,mode:o?"create-basic":"create",onSave:async l=>(i(),n(l))}),m.jsx(t,{creation:r,resetCreateShortUrl:i,canBeClosed:o})]})},zue="Left",Hue="Right",Vue="Up",Wue="Down",cc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},dx={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},L3="mousemove",R3="mouseup",Yue="touchend",que="touchmove",Gue="touchstart";function Kue(e,t,n,r){return e>t?n>0?Hue:zue:r>0?Wue:Vue}function j3(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 Zue(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,g)=>{g.trackMouse&&!h&&(document.addEventListener(L3,r),document.addEventListener(R3,a));const{clientX:v,clientY:y}=h?f.touches[0]:f,x=j3([v,y],g.rotationAngle);return g.onTouchStartOrOnMouseDown&&g.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),dx),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const g="touches"in f;if(g&&f.touches.length>1)return h;if(f.timeStamp-h.start>p.swipeDuration)return h.swiping?Object.assign(Object.assign({},h),{swiping:!1}):h;const{clientX:v,clientY:y}=g?f.touches[0]:f,[x,b]=j3([v,y],p.rotationAngle),w=x-h.xy[0],S=b-h.xy[1],C=Math.abs(w),T=Math.abs(S),P=(f.timeStamp||0)-h.start,R=Math.sqrt(C*C+T*T)/(P||1),j=[w/(P||1),S/(P||1)],z=Kue(C,T,w,S),N=typeof p.delta=="number"?p.delta:p.delta[z.toLowerCase()]||cc.delta;if(C<N&&T<N&&!h.swiping)return h;const V={absX:C,absY:T,deltaX:w,deltaY:S,dir:z,event:f,first:h.first,initial:h.initial,velocity:R,vxvy:j};V.first&&p.onSwipeStart&&p.onSwipeStart(V),p.onSwiping&&p.onSwiping(V);let W=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${z}`])&&(W=!0),W&&p.preventScrollOnSwipe&&p.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},h),{first:!1,eventData:V,swiping:!0})})},i=f=>{e((h,p)=>{let g;if(h.swiping&&h.eventData){if(f.timeStamp-h.start<p.swipeDuration){g=Object.assign(Object.assign({},h.eventData),{event:f}),p.onSwiped&&p.onSwiped(g);const v=p[`onSwiped${g.dir}`];v&&v(g)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},h),dx),{eventData:g})})},o=()=>{document.removeEventListener(L3,r),document.removeEventListener(R3,a)},a=f=>{o(),i(f)},s=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const g=Object.assign(Object.assign({},cc.touchEventOptions),h.touchEventOptions),v=[[Gue,n,g],[que,r,Object.assign(Object.assign({},g),h.preventScrollOnSwipe?{passive:!1}:{})],[Yue,i,g]];v.forEach(([y,x,b])=>f.addEventListener(y,x,b)),p=()=>v.forEach(([y,x])=>f.removeEventListener(y,x))}return p},c={ref:f=>{f!==null&&e((h,p)=>{if(h.el===f)return h;const g={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),g.cleanUpTouch=void 0),p.trackTouch&&f&&(g.cleanUpTouch=s(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),g)})}};return t.trackMouse&&(c.onMouseDown=n),[c,s]}function Que(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 Xue(e){const{trackMouse:t}=e,n=H.useRef(Object.assign({},dx)),r=H.useRef(Object.assign({},cc)),i=H.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},cc),e);let o;for(o in cc)r.current[o]===void 0&&(r.current[o]=cc[o]);const[a,s]=H.useMemo(()=>Zue(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Que(n.current,r.current,i.current,s),a}const Jue=2e3,efe=(e,t)=>(n=!1,r=Jue)=>{const[i,o]=H.useState(n),a=H.useRef(void 0);return[i,()=>{o(!n),a.current&&t(a.current),a.current=e(()=>o(n),r)}]},tfe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:a})=>a==null?void 0:a.contains("visits-table"))||document.querySelector(".modal")||r()};return Xue({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},nfe=(e,t)=>{const[n,r]=H.useState(t);return[n,o=>{const{location:a,history:s}=window,l=hl(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${bh(l)}`),r(o)}]},rfe=(e,t)=>{const n=H.useRef(!0);H.useEffect(()=>{!n.current&&e(),n.current=!1},t)},vu=()=>{const e=ao();return()=>e(-1)},ife=e=>({shortUrlDetail:t,getShortUrlDetail:n,shortUrlEdition:r,editShortUrl:i})=>{const{search:o}=gn(),a=ul(),s=vu(),{loading:l,error:c,errorData:f,shortUrl:h}=t,{saving:p,saved:g,error:v,errorData:y}=r,{domain:x}=hl(o),b=gl("shortUrlCreation"),w=H.useMemo(()=>tse(h,b),[h,b]);return H.useEffect(()=>{a.shortCode&&n({shortCode:Rm(a.shortCode),domain:x})},[]),l?m.jsx(Po,{loading:!0}):c?m.jsx($r,{type:"error",children:m.jsx(Fo,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):m.jsxs(m.Fragment,{children:[m.jsx("header",{className:"mb-3",children:m.jsx(Hr,{body:!0,children:m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(yt,{color:"link",size:"lg",className:"p-0 me-3",onClick:s,children:m.jsx(Ie,{icon:uA})}),m.jsx("span",{className:"text-center",children:m.jsxs("small",{children:["Edit ",m.jsx(Li,{href:(h==null?void 0:h.shortUrl)??""})]})}),m.jsx("span",{})]})})}),m.jsx(e,{initialState:w,saving:p,mode:"edit",onSave:async S=>{h&&i({...h,data:S})}}),g&&v&&m.jsx($r,{type:"error",className:"mt-3",children:m.jsx(Fo,{errorData:y,fallbackMessage:"An error occurred while updating short URL :("})}),g&&!v&&m.jsx($r,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var jy={},ofe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},afe=ofe,N3={"text/plain":"Text","text/html":"Url",default:"Text"},sfe="Copy to clipboard: #{key}, Enter";function lfe(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function cfe(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=afe(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(f){if(f.stopPropagation(),t.format)if(f.preventDefault(),typeof f.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=N3[t.format]||N3.default;window.clipboardData.setData(h,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=lfe("message"in t?t.message:sfe),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var ufe=cfe;function hx(e){"@babel/helpers - typeof";return hx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hx(e)}Object.defineProperty(jy,"__esModule",{value:!0});jy.CopyToClipboard=void 0;var Zp=lI(H),ffe=lI(ufe),dfe=["text","onCopy","options","children"];function lI(e){return e&&e.__esModule?e:{default:e}}function A3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A3(Object(n),!0).forEach(function(r){NO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hfe(e,t){if(e==null)return{};var n=pfe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gfe(e,t,n){return t&&F3(e.prototype,t),n&&F3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&px(e,t)}function px(e,t){return px=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},px(e,t)}function yfe(e){var t=bfe();return function(){var r=vv(e),i;if(t){var o=vv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _fe(this,i)}}function _fe(e,t){if(t&&(hx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cI(e)}function cI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bfe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vv(e)}function NO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uI=function(e){vfe(n,e);var t=yfe(n);function n(){var r;mfe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),NO(cI(r),"onClick",function(s){var l=r.props,c=l.text,f=l.onCopy,h=l.children,p=l.options,g=Zp.default.Children.only(h),v=(0,ffe.default)(c,p);f&&f(c,v),g&&g.props&&typeof g.props.onClick=="function"&&g.props.onClick(s)}),r}return gfe(n,[{key:"render",value:function(){var i=this.props;i.text,i.onCopy,i.options;var o=i.children,a=hfe(i,dfe),s=Zp.default.Children.only(o);return Zp.default.cloneElement(s,I3(I3({},a),{},{onClick:this.onClick}))}}]),n}(Zp.default.PureComponent);jy.CopyToClipboard=uI;NO(uI,"defaultProps",{onCopy:void 0,options:void 0});var wfe=jy,mx=wfe.CopyToClipboard;mx.CopyToClipboard=mx;var xfe=mx;const fI=pi(xfe);const Sfe=e=>({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:a,saved:s}=t;if(H.useEffect(()=>{n()},[]),a)return m.jsxs($r,{type:"error",className:"mt-3",children:[r&&m.jsx(Ie,{icon:_1,className:"float-end pointer",onClick:n}),m.jsx(Fo,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=t.result;return m.jsxs($r,{type:"success",className:"mt-3",children:[r&&m.jsx(Ie,{icon:_1,className:"float-end pointer",onClick:n}),m.jsxs("span",{children:[m.jsx("b",{children:"Great!"})," The short URL is ",m.jsx("b",{children:l})]}),m.jsx(fI,{text:l,onCopy:o,children:m.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[m.jsx(Ie,{icon:sI})," Copy"]})}),m.jsx(gh,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},U_="delete",Ofe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=H.useState("");H.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,g=Mt(i,t),v=Ry(()=>o(e).then(t));return m.jsx(Yo,{isOpen:n,toggle:g,centered:!0,onClosed:()=>h&&a(e),children:m.jsxs("form",{onSubmit:v,children:[m.jsx(qo,{toggle:g,children:m.jsx("span",{className:"text-danger",children:"Delete short URL"})}),m.jsxs(so,{children:[m.jsxs("p",{children:[m.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),m.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),m.jsxs("p",{children:["Write ",m.jsx("b",{children:U_})," to confirm deletion."]}),m.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${U_}`,value:s,onChange:y=>l(y.target.value)}),f&&m.jsx($r,{type:Hae(p)?"warning":"error",small:!0,className:"mt-2",children:m.jsx(Fo,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),m.jsxs(fl,{children:[m.jsx("button",{type:"button",className:"btn btn-link",onClick:g,children:"Cancel"}),m.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==U_||c,children:c?"Deleting...":"Delete"})]})]})})},dI=({amount:e=0,loading:t=!1,...n})=>m.jsxs(yt,{...n,outline:!0,color:"primary",disabled:t,children:[m.jsx(Ie,{icon:uG})," ",t?"Exporting...":m.jsxs(m.Fragment,{children:["Export (",wn(e),")"]})]}),Ny=()=>{const e=ao(),{search:t}=gn(),n=pl(),r=H.useMemo(Mt(()=>hl(t),({orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f})=>{const h=o?$re(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...f,orderBy:h,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}}),[t]),i=H.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:h,...p}=a,g={...p,orderBy:s&&z4(s),tags:l.length>0?l.join(","):void 0,excludeBots:F_(c),excludeMaxVisitsReached:F_(f),excludePastValidUntil:F_(h)},v=bh(g),y=Yn(v)?"":`?${v}`;e(`${n}/list-short-urls/1${y}`)},[r,e,n]);return[r,i]},$3=20,Cfe=(e,{exportShortUrls:t})=>({amount:n=0})=>{const[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=Ny(),[c,,f,h]=mn(),p=H.useCallback(async()=>{const g=n/$3,v=async(x=1)=>{const{data:b}=await e().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:$3});return x>=g?b:b.concat(await v(x+1))};f();const y=await v();t(y.map(x=>{var C;const{hostname:b,pathname:w}=new URL(x.shortUrl),S=w.substring(1);return{createdAt:x.dateCreated,domain:b,shortCode:S,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((C=x==null?void 0:x.visitsSummary)==null?void 0:C.total)??x.visitsCount}})),h()},[]);return m.jsx(dI,{loading:c,className:"btn-md-block",amount:n,onClick:p})};const hI=({text:e,onCopy:t})=>m.jsx(fI,{text:e,onCopy:t,children:m.jsx(Ie,{icon:sI,className:"ms-2 copy-to-clipboard-icon"})}),Efe=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=bh({...n,margin:t>0?t:void 0});return`${r}${Yn(i)?"":`?${i}`}`},Tfe=({errorCorrection:e,setErrorCorrection:t})=>m.jsxs(Go,{text:`Error correction (${e})`,children:[m.jsxs(Ue,{active:e==="L",onClick:()=>t("L"),children:[m.jsx("b",{children:"L"}),"ow"]}),m.jsxs(Ue,{active:e==="M",onClick:()=>t("M"),children:[m.jsx("b",{children:"M"}),"edium"]}),m.jsxs(Ue,{active:e==="Q",onClick:()=>t("Q"),children:[m.jsx("b",{children:"Q"}),"uartile"]}),m.jsxs(Ue,{active:e==="H",onClick:()=>t("H"),children:[m.jsx("b",{children:"H"}),"igh"]})]}),Pfe=({format:e,setFormat:t})=>m.jsxs(Go,{text:`Format (${e})`,children:[m.jsx(Ue,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),m.jsx(Ue,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]});const kfe=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i})=>{const[o,a]=H.useState(300),[s,l]=H.useState(0),[c,f]=H.useState("png"),[h,p]=H.useState("L"),g=H.useMemo(()=>Efe(t,{size:o,format:c,margin:s,errorCorrection:h}),[t,o,c,s,h]),v=H.useMemo(()=>o+s,[o,s]),y=H.useMemo(()=>{if(!(v<500))return v<800?"lg":"xl"},[v]);return m.jsxs(Yo,{isOpen:i,toggle:r,centered:!0,size:y,children:[m.jsxs(qo,{toggle:r,children:["QR code for ",m.jsx(Li,{href:t,children:t})]}),m.jsxs(so,{children:[m.jsxs(dr,{children:[m.jsxs(Nr,{className:"d-grid col-md-6",children:[m.jsxs("label",{children:["Size: ",o,"px"]}),m.jsx("input",{type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:x=>a(Number(x.target.value))})]}),m.jsxs(Nr,{className:"d-grid col-md-6",children:[m.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),m.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:x=>l(Number(x.target.value))})]}),m.jsx(Nr,{className:"d-grid col-md-6",children:m.jsx(Pfe,{format:c,setFormat:f})}),m.jsx(Nr,{className:"col-md-6",children:m.jsx(Tfe,{errorCorrection:h,setErrorCorrection:p})})]}),m.jsxs("div",{className:"text-center",children:[m.jsxs("div",{className:"mb-3",children:[m.jsx(Li,{href:g}),m.jsx(hI,{text:g})]}),m.jsx("img",{src:g,className:"qr-code-modal__img",alt:"QR code"}),m.jsx("div",{className:"mt-3",children:m.jsxs(yt,{block:!0,color:"primary",onClick:()=>{e.saveImage(g,`${n}-qr-code.${c}`).catch(()=>{})},children:["Download ",m.jsx(Ie,{icon:fA,className:"ms-1"})]})})]})]})]})},yv=({date:e,format:t=kO,relative:n=!1})=>{const r=MO(e)?e:$o(e);return m.jsx("time",{dateTime:`${Rle(r)}000`,children:n?`${Tle(Ga(),r)} ago`:eu(r,t)})},Mfe=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n;return i&&s>=i?{icon:tK,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",m.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&oi(Pi(a),Ga())?{icon:dk,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be visited since ",m.jsx("b",{className:"indivisible",children:mv(Pi(a))}),"."]})}:o&&oi(Ga(),Pi(o))?{icon:dk,className:"text-warning",description:m.jsxs(m.Fragment,{children:["This short URL will start working on ",m.jsx("b",{className:"indivisible",children:mv(Pi(o))}),"."]})}:{icon:Pd,className:"text-primary",description:"This short URL can be visited normally."}},Dfe=({shortUrl:e})=>{const t=dl(),{icon:n,className:r,description:i}=Mfe(e);return m.jsxs(m.Fragment,{children:[m.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:m.jsx(Ie,{icon:n,className:r})}),m.jsx(Pr,{target:t,placement:"bottom",children:i})]})},Lfe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${nse(t)}/${r}${i}`},gx=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=pl();return!n||!e?m.jsx("span",{...i,children:r}):m.jsx(Ft,{to:Lfe(o,e,t),...i,children:r})};const pI=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:a}=(t==null?void 0:t.meta)??{},s=!!i||!!o||!!a,l=m.jsx(gx,{shortUrl:t,suffix:"visits",asLink:r,children:m.jsx("strong",{className:Se("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:wn(e)})});if(!s)return l;const c=dl();return m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"indivisible",children:[l,m.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:c,children:[i&&m.jsxs(m.Fragment,{children:[" / ",wn(i)]}),m.jsx("sup",{className:"ms-1",children:m.jsx(Ie,{icon:bS})})]})]}),m.jsx(Pr,{target:c,placement:"bottom",children:m.jsxs("ul",{className:"list-unstyled mb-0",children:[i&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",m.jsx("b",{children:wn(i)})," visit",i===1?"":"s","."]}),o&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",m.jsx("b",{className:"indivisible",children:mv(Pi(o))}),"."]}),a&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",m.jsx("b",{className:"indivisible",children:mv(Pi(a))}),"."]})]})})]})};const AO=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:a})=>m.jsxs("span",{className:Se("badge tag",r,{"tag--light-bg":i.isColorLightForKey(e)}),style:{backgroundColor:i.getColorForKey(e),cursor:n||!o?"auto":"pointer"},onClick:o,children:[t??e,n&&m.jsx("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:a,children:"×"})]}),Rfe=({tags:e,onTagClick:t,colorGenerator:n})=>Yn(e)?m.jsx("i",{className:"indivisible",children:m.jsx("small",{children:"No tags"})}):m.jsx(m.Fragment,{children:e.map(r=>m.jsx(AO,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))});const jfe=(e,t,n)=>({shortUrl:r,onTagClick:i})=>{var g,v,y,x;const[o,a]=n(),[s,l]=n(!1,500),c=H.useRef(!0),[{excludeBots:f}]=Ny(),h=gl("visits"),p=f??(h==null?void 0:h.excludeBots);return H.useEffect(()=>{!c.current&&l(),c.current=!1},[(g=r.visitsSummary)==null?void 0:g.total,(v=r.visitsSummary)==null?void 0:v.nonBots,r.visitsCount]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:m.jsx(yv,{date:r.dateCreated})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:m.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[m.jsx("span",{className:"short-urls-row__short-url-wrapper",children:m.jsx(Li,{href:r.shortUrl})}),m.jsx(hI,{text:r.shortUrl,onCopy:a}),m.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!o,children:"Copied short URL!"})]})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:m.jsx(Li,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&m.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:m.jsx(Li,{href:r.longUrl})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:m.jsx(Rfe,{tags:r.tags,colorGenerator:t,onTagClick:i})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:m.jsx(pI,{visitsCount:(p?(y=r.visitsSummary)==null?void 0:y.nonBots:(x=r.visitsSummary)==null?void 0:x.total)??r.visitsCount,shortUrl:r,active:s,asLink:!0})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:m.jsx(Dfe,{shortUrl:r})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:m.jsx(e,{shortUrl:r})})]})},Nfe=(e,t)=>({shortUrl:n})=>{const[r,,i,o]=mn(),[a,,s,l]=mn();return m.jsxs(Ty,{minWidth:190,children:[m.jsxs(Ue,{tag:gx,shortUrl:n,suffix:"visits",asLink:!0,children:[m.jsx(Ie,{icon:_S,fixedWidth:!0})," Visit stats"]}),m.jsxs(Ue,{tag:gx,shortUrl:n,suffix:"edit",asLink:!0,children:[m.jsx(Ie,{icon:yS,fixedWidth:!0})," Edit short URL"]}),m.jsxs(Ue,{onClick:i,children:[m.jsx(Ie,{icon:JG,fixedWidth:!0})," QR code"]}),m.jsx(t,{shortUrl:n,isOpen:r,toggle:o}),m.jsx(Ue,{divider:!0}),m.jsxs(Ue,{className:"dropdown-item--danger",onClick:s,children:[m.jsx(Ie,{icon:vS,fixedWidth:!0})," Delete short URL"]}),m.jsx(e,{shortUrl:n,isOpen:a,toggle:l})]})},mI="shlink/shortUrlCreation",B3={saving:!1,saved:!1,error:!1},Afe=e=>Tr(`${mI}/createShortUrl`,t=>e().createShortUrl(t)),Ife=e=>{const{reducer:t,actions:n}=ir({name:mI,initialState:B3,reducers:{resetCreateShortUrl:()=>B3},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Ko(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},U3="shlink/shortUrlDetail",z3={loading:!1,error:!1},Ffe=e=>{const t=Tr(`${U3}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var l;const{shortUrlsList:a}=o();return((l=a==null?void 0:a.shortUrls)==null?void 0:l.data.find(c=>Yf(c,r,i)))??await e().getShortUrl(r,i)}),{reducer:n}=ir({name:U3,initialState:z3,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Ko(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...z3,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},gI="shlink/shortUrlEdition",$fe={saving:!1,saved:!1,error:!1},Bfe=e=>Tr(`${gI}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),Ufe=e=>ir({name:gI,initialState:$fe,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:Ko(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}});var zfe={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Hfe={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]};const Vfe=({icon:e,className:t,...n})=>{const r=dl(),i=Se("icon-input-container__input",t);return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(Yc,{className:i,innerRef:r,...n}),m.jsx(Ie,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})};function Wfe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vx(e,t)}function vx(e,t){return vx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vx(e,t)}function Yfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function H3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qfe(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Gfe(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&qfe(e,t,n))return!0;e=e.parentNode||e.host}return e}function Kfe(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Zfe=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function Qfe(e){return e===void 0&&(e=0),function(){return++e}}var Xfe=Qfe(),yx,Qp={},z_={},Jfe=["touchstart","touchmove"],ede="ignore-react-onclickoutside";function V3(e,t){var n={},r=Jfe.indexOf(t)!==-1;return r&&yx&&(n.passive=!e.props.preventDefault),n}function Ay(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Wfe(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(f){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(f);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(f);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var f=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():au.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||z_[c._uid])){typeof yx>"u"&&(yx=Zfe()),z_[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),Qp[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&Kfe(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;Gfe(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,Qp[c._uid],V3(H3(c),h))})}},c.disableOnClickOutside=function(){delete z_[c._uid];var f=Qp[c._uid];if(f&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(p){return document.removeEventListener(p,f,V3(H3(c),p))}),delete Qp[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=Xfe(),c}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var f=Yfe(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,H.createElement(e,f)},a}(H.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:ede,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}function W3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W3(Object(n),!0).forEach(function(r){K(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _x(e){return _x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_x(e)}function Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q3(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,vI(r.key),r)}}function Rn(e,t,n){return t&&q3(e.prototype,t),n&&q3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function K(e,t,n){return(t=vI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qd.apply(this,arguments)}function jn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bx(e,t)}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_v(e)}function bx(e,t){return bx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},bx(e,t)}function ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nn(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=_v(e);if(t){var i=_v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(o)}(this,n)}}function wx(e){return function(t){if(Array.isArray(t))return H_(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return H_(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H_(t,n)}}(e)||function(){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 H_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vI(e){var t=function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return typeof t=="symbol"?t:String(t)}var G3=function(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"});default:return t.date({width:"full"})}},K3=function(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"});default:return t.time({width:"full"})}},tde={p:K3,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return G3(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",G3(i,t)).replace("{{time}}",K3(o,t))}},Kf=12,nde=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ct(e){var t=e?typeof e=="string"||e instanceof String?$o(e):Pe(e):new Date;return ua(t)?t:null}function ua(e,t){return t=t||new Date("1/1/1000"),lv(e)&&!oi(e,t)}function ln(e,t,n){if(n==="en")return eu(e,t,{awareOfUnicodeTokens:!0});var r=Fa(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Vs()&&Fa(Vs())&&(r=Fa(Vs())),eu(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function zi(e,t){var n=t.dateFormat,r=t.locale;return e&&ln(e,Array.isArray(n)?n[0]:n,r)||""}function Z3(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,a=t.second;return qf(Gf(Kce(e,a===void 0?0:a),o),r)}function IO(e,t,n){var r=Fa(t||Vs());return T6(e,{locale:r,weekStartsOn:n})}function Ia(e){return D6(e)}function yf(e){return L6(e)}function Q3(e){return lx(e)}function X3(){return Br(Ct())}function Oa(e,t){return e&&t?Lce(e,t):!e&&!t}function Oi(e,t){return e&&t?Mce(e,t):!e&&!t}function bv(e,t){return e&&t?Dce(e,t):!e&&!t}function fr(e,t){return e&&t?dse(e,t):!e&&!t}function Ca(e,t){return e&&t?B6(e,t):!e&&!t}function Am(e,t,n){var r,i=Br(t),o=nl(n);try{r=tu(e,{start:i,end:o})}catch{r=!1}return r}function Vs(){return(typeof window<"u"?window:globalThis).__localeId__}function Fa(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function FO(e,t){return ln(ur(Ct(),e),"LLLL",t)}function yI(e,t){return ln(ur(Ct(),e),"LLL",t)}function Iy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return Fy(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return fr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return tu(e,{start:f,end:h})})||a&&!a.some(function(c){return fr(e,c)})||s&&!s.some(function(c){var f=c.start,h=c.end;return tu(e,{start:f,end:h})})||l&&!l(Ct(e))||!1}function $O(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,a=i.end;return tu(e,{start:o,end:a})}):n&&n.some(function(i){return fr(e,i)})||!1}function _I(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return Fy(e,{minDate:D6(n),maxDate:M6(r)})||i&&i.some(function(s){return Oi(e,s)})||o&&!o.some(function(s){return Oi(e,s)})||a&&!a(Ct(e))||!1}function V_(e,t,n,r){var i=Je(e),o=Jn(e),a=Je(t),s=Jn(t),l=Je(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function rde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return Fy(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return bv(e,s)})||o&&!o.some(function(s){return bv(e,s)})||a&&!a(Ct(e))||!1}function W_(e,t,n){if(!lv(t)||!lv(n))return!1;var r=Je(t),i=Je(n);return r<=e&&i>=e}function bI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return Fy(s,{minDate:L6(n),maxDate:yse(r)})||i&&i.some(function(l){return Oa(s,l)})||o&&!o.some(function(l){return Oa(s,l)})||a&&!a(Ct(s))||!1}function Y_(e,t,n,r){var i=Je(e),o=lc(e),a=Je(t),s=lc(t),l=Je(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function Fy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Vd(e,n)<0||r&&Vd(e,r)>0}function J3(e,t){return t.some(function(n){return Ar(n)===Ar(e)&&Ir(n)===Ir(e)})}function eD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&J3(e,n)||r&&!J3(e,r)||i&&!i(e)||!1}function tD(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Ct(),a=qf(Gf(o,Ir(e)),Ar(e)),s=qf(Gf(o,Ir(n)),Ar(n)),l=qf(Gf(o,Ir(r)),Ar(r));try{i=!tu(a,{start:s,end:l})}catch{i=!1}return i}function nD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=nu(e,1);return n&&Wd(n,i)>0||r&&r.every(function(o){return Wd(o,i)>0})||!1}function rD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=hi(e,1);return n&&Wd(i,n)>0||r&&r.every(function(o){return Wd(i,o)>0})||!1}function iD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Yd(e,1);return n&&cv(n,i)>0||r&&r.every(function(o){return cv(o,i)>0})||!1}function oD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Xc(e,1);return n&&cv(i,n)>0||r&&r.every(function(o){return cv(i,o)>0})||!1}function wI(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Vd(i,t)>=0});return u3(r)}return n?u3(n):t}function xI(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Vd(i,t)<=0});return c3(r)}return n?c3(n):t}function aD(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(bO(o)){var a=ln(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(_x(o)==="object"){var l=Object.keys(o),c=l[0],f=o[l[0]];if(typeof c=="string"&&f.constructor===Array)for(var h=0,p=f.length;h<p;h++){var g=ln(f[h],"MM.dd.yyyy"),v=n.get(g)||[];v.includes(c)||(v.push(c),n.set(g,v))}}}return n}function ide(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=sx(ose(e,Ar(i[s])),Ir(i[s])),c=sx(e,(n+1)*r);qa(l,t)&&oi(l,c)&&a.push(i[s])}return a}function sD(e){return e<10?"0".concat(e):"".concat(e)}function uc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kf,n=Math.ceil(Je(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function ode(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=Je(n)<=a),r&&s&&(s=Je(r)>=a),s&&i.push(a)}return i}var ade=Ay(function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;Ln(this,n),K(ee(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return Y.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(ee(i),p),"aria-selected":l===p?"true":void 0},l===p?Y.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?Je(i.props.minDate):null,h=i.props.maxDate?Je(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(Y.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||c.push(Y.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),K(ee(i),"onChange",function(l){i.props.onChange(l)}),K(ee(i),"handleClickOutside",function(){i.props.onCancel()}),K(ee(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),K(ee(i),"incrementYears",function(){return i.shiftYears(1)}),K(ee(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:ode(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=H.createRef(),i}return Rn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find(function(a){return a.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=Se({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return Y.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),sde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),K(ee(r),"renderSelectOptions",function(){for(var s=r.props.minDate?Je(r.props.minDate):1900,l=r.props.maxDate?Je(r.props.maxDate):2100,c=[],f=s;f<=l;f++)c.push(Y.createElement("option",{key:f,value:f},f));return c}),K(ee(r),"onSelectChange",function(s){r.onChange(s.target.value)}),K(ee(r),"renderSelectMode",function(){return Y.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),K(ee(r),"renderReadView",function(s){return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},Y.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),K(ee(r),"renderDropdown",function(){return Y.createElement(ade,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),K(ee(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),K(ee(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)}),K(ee(r),"toggleDropdown",function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)})}),K(ee(r),"handleYearChange",function(s,l){r.onSelect(s,l),r.setOpen()}),K(ee(r),"onSelect",function(s,l){r.props.onSelect&&r.props.onSelect(s,l)}),K(ee(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Rn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return Y.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),lde=Ay(function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(s){return r.props.month===s}),K(ee(r),"renderOptions",function(){return r.props.monthNames.map(function(s,l){return Y.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(ee(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?Y.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),K(ee(r),"onChange",function(s){return r.props.onChange(s)}),K(ee(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Rn(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),cde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),K(ee(r),"renderSelectOptions",function(s){return s.map(function(l,c){return Y.createElement("option",{key:c,value:c},l)})}),K(ee(r),"renderSelectMode",function(s){return Y.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(s))}),K(ee(r),"renderReadView",function(s,l){return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},Y.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),K(ee(r),"renderDropdown",function(s){return Y.createElement(lde,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})}),K(ee(r),"renderScrollMode",function(s){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,s)];return l&&c.unshift(r.renderDropdown(s)),c}),K(ee(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)}),K(ee(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Rn(n,[{key:"render",value:function(){var r,i=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return yI(a,i.props.locale)}:function(a){return FO(a,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return Y.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function ude(e,t){for(var n=[],r=Ia(e),i=Ia(t);!qa(r,i);)n.push(Ct(r)),r=hi(r,1);return n}var Xp,fde=Ay(function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;return Ln(this,n),K(ee(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var a=dv(o),s=Oa(i.props.date,o)&&Oi(i.props.date,o);return Y.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:i.onChange.bind(ee(i),a),"aria-selected":s?"true":void 0},s?Y.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",ln(o,i.props.dateFormat,i.props.locale))})}),K(ee(i),"onChange",function(o){return i.props.onChange(o)}),K(ee(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:ude(i.props.minDate,i.props.maxDate)},i}return Rn(n,[{key:"render",value:function(){var r=Se({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return Y.createElement("div",{className:r},this.renderOptions())}}]),n}()),dde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),K(ee(r),"renderSelectOptions",function(){for(var s=Ia(r.props.minDate),l=Ia(r.props.maxDate),c=[];!qa(s,l);){var f=dv(s);c.push(Y.createElement("option",{key:f,value:f},ln(s,r.props.dateFormat,r.props.locale))),s=hi(s,1)}return c}),K(ee(r),"onSelectChange",function(s){r.onChange(s.target.value)}),K(ee(r),"renderSelectMode",function(){return Y.createElement("select",{value:dv(Ia(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),K(ee(r),"renderReadView",function(s){var l=ln(r.props.date,r.props.dateFormat,r.props.locale);return Y.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},Y.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),Y.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),K(ee(r),"renderDropdown",function(){return Y.createElement(fde,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),K(ee(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),K(ee(r),"onChange",function(s){r.toggleDropdown();var l=Ct(parseInt(s));Oa(r.props.date,l)&&Oi(r.props.date,l)||r.props.onChange(l)}),K(ee(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Rn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return Y.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),hde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"dayEl",Y.createRef()),K(ee(r),"handleClick",function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)}),K(ee(r),"handleMouseEnter",function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)}),K(ee(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),K(ee(r),"isSameDay",function(s){return fr(r.props.day,s)}),K(ee(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)}),K(ee(r),"isDisabled",function(){return Iy(r.props.day,r.props)}),K(ee(r),"isExcluded",function(){return $O(r.props.day,r.props)}),K(ee(r),"getHighLightedClass",function(){var s=r.props,l=s.day,c=s.highlightDates;if(!c)return!1;var f=ln(l,"MM.dd.yyyy");return c.get(f)}),K(ee(r),"isInRange",function(){var s=r.props,l=s.day,c=s.startDate,f=s.endDate;return!(!c||!f)&&Am(l,c,f)}),K(ee(r),"isInSelectingRange",function(){var s,l=r.props,c=l.day,f=l.selectsStart,h=l.selectsEnd,p=l.selectsRange,g=l.selectsDisabledDaysInRange,v=l.startDate,y=l.endDate,x=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(f||h||p)||!x||!g&&r.isDisabled())&&(f&&y&&(oi(x,y)||Ca(x,y))?Am(c,x,y):(h&&v&&(qa(x,v)||Ca(x,v))||!(!p||!v||y||!qa(x,v)&&!Ca(x,v)))&&Am(c,v,x))}),K(ee(r),"isSelectingRangeStart",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.startDate,h=l.selectsStart,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return fr(c,h?p:f)}),K(ee(r),"isSelectingRangeEnd",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.endDate,h=l.selectsEnd,p=l.selectsRange,g=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return fr(c,h||p?g:f)}),K(ee(r),"isRangeStart",function(){var s=r.props,l=s.day,c=s.startDate,f=s.endDate;return!(!c||!f)&&fr(c,l)}),K(ee(r),"isRangeEnd",function(){var s=r.props,l=s.day,c=s.startDate,f=s.endDate;return!(!c||!f)&&fr(f,l)}),K(ee(r),"isWeekend",function(){var s=kle(r.props.day);return s===0||s===6}),K(ee(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===Jn(r.props.day)}),K(ee(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(Jn(r.props.day)+1)%12===r.props.month}),K(ee(r),"isCurrentDay",function(){return r.isSameDay(Ct())}),K(ee(r),"isSelected",function(){return r.isSameDay(r.props.selected)}),K(ee(r),"getClassNames",function(s){var l,c=r.props.dayClassName?r.props.dayClassName(s):void 0;return Se("react-datepicker__day",c,"react-datepicker__day--"+ln(r.props.day,"ddd",l),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))}),K(ee(r),"getAriaLabel",function(){var s=r.props,l=s.day,c=s.ariaLabelPrefixWhenEnabled,f=c===void 0?"Choose":c,h=s.ariaLabelPrefixWhenDisabled,p=h===void 0?"Not available":h,g=r.isDisabled()||r.isExcluded()?p:f;return"".concat(g," ").concat(ln(l,"PPPP",r.props.locale))}),K(ee(r),"getTabIndex",function(s,l){var c=s||r.props.selected,f=l||r.props.preSelection;return r.isKeyboardSelected()||r.isSameDay(c)&&fr(f,c)?0:-1}),K(ee(r),"handleFocusDay",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(l=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(l=!1)),l&&r.dayEl.current.focus({preventScroll:!0})}),K(ee(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(v3(r.props.day),r.props.day):v3(r.props.day)}),K(ee(r),"render",function(){return Y.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents())}),r}return Rn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),pde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"handleClick",function(s){r.props.onClick&&r.props.onClick(s)}),r}return Rn(n,[{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,a=o===void 0?"week ":o,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick};return Y.createElement("div",{className:Se(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick},i)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),mde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l)}),K(ee(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),K(ee(r),"handleWeekClick",function(s,l,c){typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,l,c),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),K(ee(r),"formatWeekNumber",function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):function(l,c){var f=c&&Fa(c)||Vs()&&Fa(Vs());return Lle(l,f?{locale:f}:null)}(s)}),K(ee(r),"renderDays",function(){var s=IO(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(s);if(r.props.showWeekNumber){var f=r.props.onWeekSelect?r.handleWeekClick.bind(ee(r),s,c):void 0;l.push(Y.createElement(pde,{key:"W",weekNumber:c,onClick:f,ariaLabelPrefix:r.props.ariaLabelPrefix}))}return l.concat([0,1,2,3,4,5,6].map(function(h){var p=ml(s,h);return Y.createElement(hde,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(ee(r),p),onMouseEnter:r.handleDayMouseEnter.bind(ee(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),r}return Rn(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),SI="two_columns",OI="three_columns",CI="four_columns",q_=(K(Xp={},SI,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),K(Xp,OI,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),K(Xp,CI,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4}),Xp);function lD(e,t){return e?CI:t?SI:OI}var gde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",wx(Array(12)).map(function(){return Y.createRef()})),K(ee(r),"QUARTER_REFS",wx(Array(4)).map(function(){return Y.createRef()})),K(ee(r),"isDisabled",function(s){return Iy(s,r.props)}),K(ee(r),"isExcluded",function(s){return $O(s,r.props)}),K(ee(r),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l,r.props.orderInDisplay)}),K(ee(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),K(ee(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),K(ee(r),"isRangeStartMonth",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Oi(ur(c,s),f)}),K(ee(r),"isRangeStartQuarter",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&bv(Fl(c,s),f)}),K(ee(r),"isRangeEndMonth",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Oi(ur(c,s),h)}),K(ee(r),"isRangeEndQuarter",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&bv(Fl(c,s),h)}),K(ee(r),"isInSelectingRangeMonth",function(s){var l,c=r.props,f=c.day,h=c.selectsStart,p=c.selectsEnd,g=c.selectsRange,v=c.startDate,y=c.endDate,x=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(h||p||g)||!x)&&(h&&y?V_(x,y,s,f):(p&&v||!(!g||!v||y))&&V_(v,x,s,f))}),K(ee(r),"isSelectingMonthRangeStart",function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,f=c.day,h=c.startDate,p=c.selectsStart,g=ur(f,s),v=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Oi(g,p?v:h)}),K(ee(r),"isSelectingMonthRangeEnd",function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,f=c.day,h=c.endDate,p=c.selectsEnd,g=c.selectsRange,v=ur(f,s),y=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Oi(v,p||g?y:h)}),K(ee(r),"isInSelectingRangeQuarter",function(s){var l,c=r.props,f=c.day,h=c.selectsStart,p=c.selectsEnd,g=c.selectsRange,v=c.startDate,y=c.endDate,x=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(h||p||g)||!x)&&(h&&y?Y_(x,y,s,f):(p&&v||!(!g||!v||y))&&Y_(v,x,s,f))}),K(ee(r),"isWeekInMonth",function(s){var l=r.props.day,c=ml(s,6);return Oi(s,l)||Oi(c,l)}),K(ee(r),"isCurrentMonth",function(s,l){return Je(s)===Je(Ct())&&l===Jn(Ct())}),K(ee(r),"isCurrentQuarter",function(s,l){return Je(s)===Je(Ct())&&l===lc(Ct())}),K(ee(r),"isSelectedMonth",function(s,l,c){return Jn(c)===l&&Je(s)===Je(c)}),K(ee(r),"isSelectedQuarter",function(s,l,c){return lc(s)===l&&Je(s)===Je(c)}),K(ee(r),"renderWeeks",function(){for(var s=[],l=r.props.fixedHeight,c=0,f=!1,h=IO(Ia(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(Y.createElement(mde,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:h,month:Jn(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!f;){c++,h=yO(h,1);var p=l&&c>=6,g=!l&&!r.isWeekInMonth(h);if(p||g){if(!r.props.peekNextMonth)break;f=!0}}return s}),K(ee(r),"onMonthClick",function(s,l){r.handleDayClick(Ia(ur(r.props.day,l)),s)}),K(ee(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(Ia(ur(r.props.day,s)))}),K(ee(r),"handleMonthNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),K(ee(r),"onMonthKeyDown",function(s,l){var c=r.props,f=c.selected,h=c.preSelection,p=c.disabledKeyboardNavigation,g=c.showTwoColumnMonthYearPicker,v=c.showFourColumnMonthYearPicker,y=c.setPreSelection,x=s.key;if(x!=="Tab"&&s.preventDefault(),!p){var b=lD(v,g),w=q_[b].verticalNavigationOffset,S=q_[b].grid;switch(x){case"Enter":r.onMonthClick(s,l),y(f);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,hi(h,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,nu(h,1));break;case"ArrowUp":r.handleMonthNavigation(S[0].includes(l)?l+12-w:l-w,nu(h,w));break;case"ArrowDown":r.handleMonthNavigation(S[S.length-1].includes(l)?l-12+w:l+w,hi(h,w))}}}),K(ee(r),"onQuarterClick",function(s,l){r.handleDayClick(Q3(Fl(r.props.day,l)),s)}),K(ee(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(Q3(Fl(r.props.day,s)))}),K(ee(r),"handleQuarterNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),K(ee(r),"onQuarterKeyDown",function(s,l){var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,P6(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,Zce(r.props.preSelection,1))}}),K(ee(r),"getMonthClassNames",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,g=l.minDate,v=l.maxDate,y=l.preSelection,x=l.monthClassName,b=l.excludeDates,w=l.includeDates,S=x?x(ur(c,s)):void 0,C=ur(c,s);return Se("react-datepicker__month-text","react-datepicker__month-".concat(s),S,{"react-datepicker__month-text--disabled":(g||v||b||w)&&_I(C,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(c,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&Jn(y)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":V_(f,h,s,c),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(c,s)})}),K(ee(r),"getTabIndex",function(s){var l=Jn(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),K(ee(r),"getQuarterTabIndex",function(s){var l=lc(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),K(ee(r),"getAriaLabel",function(s){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,g=l.day,v=ur(g,s),y=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(y," ").concat(ln(v,"MMMM yyyy"))}),K(ee(r),"getQuarterClassNames",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,g=l.minDate,v=l.maxDate,y=l.preSelection;return Se("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(g||v)&&rde(Fl(c,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(c,s,p),"react-datepicker__quarter-text--keyboard-selected":lc(y)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":Y_(f,h,s,c),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),K(ee(r),"getMonthContent",function(s){var l=r.props,c=l.showFullMonthYearPicker,f=l.renderMonthContent,h=l.locale,p=yI(s,h),g=FO(s,h);return f?f(s,p,g):c?g:p}),K(ee(r),"getQuarterContent",function(s){var l=r.props,c=l.renderQuarterContent,f=function(h,p){return ln(Fl(Ct(),h),"QQQ",p)}(s,l.locale);return c?c(s,f):f}),K(ee(r),"renderMonths",function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,c=s.showFourColumnMonthYearPicker,f=s.day,h=s.selected;return q_[lD(c,l)].grid.map(function(p,g){return Y.createElement("div",{className:"react-datepicker__month-wrapper",key:g},p.map(function(v,y){return Y.createElement("div",{ref:r.MONTH_REFS[v],key:y,onClick:function(x){r.onMonthClick(x,v)},onKeyDown:function(x){r.onMonthKeyDown(x,v)},onMouseEnter:function(){return r.onMonthMouseEnter(v)},tabIndex:r.getTabIndex(v),className:r.getMonthClassNames(v),role:"option","aria-label":r.getAriaLabel(v),"aria-current":r.isCurrentMonth(f,v)?"date":void 0,"aria-selected":r.isSelectedMonth(f,v,h)},r.getMonthContent(v))}))})}),K(ee(r),"renderQuarters",function(){var s=r.props,l=s.day,c=s.selected;return Y.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return Y.createElement("div",{key:h,ref:r.QUARTER_REFS[h],role:"option",onClick:function(p){r.onQuarterClick(p,f)},onKeyDown:function(p){r.onQuarterKeyDown(p,f)},onMouseEnter:function(){return r.onQuarterMouseEnter(f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c),tabIndex:r.getQuarterTabIndex(f),"aria-current":r.isCurrentQuarter(l,f)?"date":void 0},r.getQuarterContent(f))}))}),K(ee(r),"getClassNames",function(){var s=r.props,l=s.selectingDate,c=s.selectsStart,f=s.selectsEnd,h=s.showMonthYearPicker,p=s.showQuarterYearPicker;return Se("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return Rn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return Y.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(ln(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),EI=function(e){jn(n,Y.Component);var t=Nn(n);function n(){var r;Ln(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return K(ee(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),K(ee(r),"handleClick",function(s){(r.props.minTime||r.props.maxTime)&&tD(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&eD(s,r.props)||r.props.onChange(s)}),K(ee(r),"isSelectedTime",function(s,l,c){return r.props.selected&&l===Ar(s)&&c===Ir(s)}),K(ee(r),"liClasses",function(s,l,c){var f=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s,l,c):void 0];return r.isSelectedTime(s,l,c)&&f.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&tD(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&eD(s,r.props))&&f.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Ar(s)+Ir(s))%r.props.intervals!=0&&f.push("react-datepicker__time-list-item--injected"),f.join(" ")}),K(ee(r),"handleOnKeyDown",function(s,l){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(s)}),K(ee(r),"renderTimes",function(){for(var s,l=[],c=r.props.format?r.props.format:"p",f=r.props.intervals,h=(s=Ct(r.props.selected),Br(s)),p=1440/f,g=r.props.injectTimes&&r.props.injectTimes.sort(function(T,P){return T-P}),v=r.props.selected||r.props.openToDate||Ct(),y=Ar(v),x=Ir(v),b=qf(Gf(h,x),y),w=0;w<p;w++){var S=sx(h,w*f);if(l.push(S),g){var C=ide(h,S,w,f,g);l=l.concat(C)}}return l.map(function(T,P){return Y.createElement("li",{key:P,onClick:r.handleClick.bind(ee(r),T),className:r.liClasses(T,y,x),ref:function(R){(oi(T,b)||Ca(T,b))&&(r.centerLi=R)},onKeyDown:function(R){r.handleOnKeyDown(R,T)},tabIndex:"0","aria-selected":r.isSelectedTime(T,y,x)?"true":void 0},ln(T,c,r.props.locale))})}),r}return Rn(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=this.centerLi&&n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,i=this.state.height;return Y.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},Y.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},Y.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),Y.createElement("div",{className:"react-datepicker__time"},Y.createElement("div",{className:"react-datepicker__time-box"},Y.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();K(EI,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var vde=function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;return Ln(this,n),K(ee(i=t.call(this,r)),"YEAR_REFS",wx(Array(i.props.yearItemNumber)).map(function(){return Y.createRef()})),K(ee(i),"isDisabled",function(o){return Iy(o,i.props)}),K(ee(i),"isExcluded",function(o){return $O(o,i.props)}),K(ee(i),"selectingDate",function(){var o;return(o=i.props.selectingDate)!==null&&o!==void 0?o:i.props.preSelection}),K(ee(i),"updateFocusOnPaginate",function(o){var a=(function(){this.YEAR_REFS[o].current.focus()}).bind(ee(i));window.requestAnimationFrame(a)}),K(ee(i),"handleYearClick",function(o,a){i.props.onDayClick&&i.props.onDayClick(o,a)}),K(ee(i),"handleYearNavigation",function(o,a){var s=i.props,l=s.date,c=s.yearItemNumber,f=uc(l,c).startPeriod;i.isDisabled(a)||i.isExcluded(a)||(i.props.setPreSelection(a),o-f==-1?i.updateFocusOnPaginate(c-1):o-f===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-f].current.focus())}),K(ee(i),"isSameDay",function(o,a){return fr(o,a)}),K(ee(i),"isCurrentYear",function(o){return o===Je(Ct())}),K(ee(i),"isRangeStart",function(o){return i.props.startDate&&i.props.endDate&&Oa(wo(Ct(),o),i.props.startDate)}),K(ee(i),"isRangeEnd",function(o){return i.props.startDate&&i.props.endDate&&Oa(wo(Ct(),o),i.props.endDate)}),K(ee(i),"isInRange",function(o){return W_(o,i.props.startDate,i.props.endDate)}),K(ee(i),"isInSelectingRange",function(o){var a=i.props,s=a.selectsStart,l=a.selectsEnd,c=a.selectsRange,f=a.startDate,h=a.endDate;return!(!(s||l||c)||!i.selectingDate())&&(s&&h?W_(o,i.selectingDate(),h):(l&&f||!(!c||!f||h))&&W_(o,f,i.selectingDate()))}),K(ee(i),"isSelectingRangeStart",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.startDate,l=a.selectsStart,c=wo(Ct(),o);return Oa(c,l?i.selectingDate():s)}),K(ee(i),"isSelectingRangeEnd",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.endDate,l=a.selectsEnd,c=a.selectsRange,f=wo(Ct(),o);return Oa(f,l||c?i.selectingDate():s)}),K(ee(i),"isKeyboardSelected",function(o){var a=yf(wo(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!fr(a,yf(i.props.selected))&&fr(a,yf(i.props.preSelection))}),K(ee(i),"onYearClick",function(o,a){var s=i.props.date;i.handleYearClick(yf(wo(s,a)),o)}),K(ee(i),"onYearKeyDown",function(o,a){var s=o.key;if(!i.props.disabledKeyboardNavigation)switch(s){case"Enter":i.onYearClick(o,a),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(a+1,Xc(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,Yd(i.props.preSelection,1))}}),K(ee(i),"getYearClassNames",function(o){var a=i.props,s=a.minDate,l=a.maxDate,c=a.selected,f=a.excludeDates,h=a.includeDates,p=a.filterDate;return Se("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===Je(c),"react-datepicker__year-text--disabled":(s||l||f||h||p)&&bI(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--range-start":i.isRangeStart(o),"react-datepicker__year-text--range-end":i.isRangeEnd(o),"react-datepicker__year-text--in-range":i.isInRange(o),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),K(ee(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===Je(i.props.preSelection)?"0":"-1"}),K(ee(i),"getYearContainerClassNames",function(){var o=i.props,a=o.selectingDate,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange;return Se("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||l||c)})}),K(ee(i),"getYearContent",function(o){return i.props.renderYearContent?i.props.renderYearContent(o):o}),i}return Rn(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,a=o.date,s=o.yearItemNumber,l=o.onYearMouseEnter,c=o.onYearMouseLeave,f=uc(a,s),h=f.startPeriod,p=f.endPeriod,g=function(y){i.push(Y.createElement("div",{ref:r.YEAR_REFS[y-h],onClick:function(x){r.onYearClick(x,y)},onKeyDown:function(x){r.onYearKeyDown(x,y)},tabIndex:r.getYearTabIndex(y),className:r.getYearClassNames(y),onMouseEnter:function(x){return l(x,y)},onMouseLeave:function(x){return c(x,y)},key:y,"aria-current":r.isCurrentYear(y)?"date":void 0},r.getYearContent(y)))},v=h;v<=p;v++)g(v);return Y.createElement("div",{className:this.getYearContainerClassNames()},Y.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},i))}}]),n}(),yde=function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;return Ln(this,n),K(ee(i=t.call(this,r)),"onTimeChange",function(o){i.setState({time:o});var a=new Date;a.setHours(o.split(":")[0]),a.setMinutes(o.split(":")[1]),i.props.onChange(a)}),K(ee(i),"renderTimeInput",function(){var o=i.state.time,a=i.props,s=a.date,l=a.timeString,c=a.customTimeInput;return c?Y.cloneElement(c,{date:s,value:o,onChange:i.onTimeChange}):Y.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(f){i.onTimeChange(f.target.value||l)}})}),i.state={time:i.props.timeString},i}return Rn(n,[{key:"render",value:function(){return Y.createElement("div",{className:"react-datepicker__input-time-container"},Y.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),Y.createElement("div",{className:"react-datepicker-time__input-container"},Y.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}]),n}();function _de(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return Y.createElement("div",{className:t},r&&Y.createElement("div",qd({className:"react-datepicker__triangle"},o)),n)}var bde=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],wde=function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;return Ln(this,n),K(ee(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),K(ee(i),"setClickOutsideRef",function(){return i.containerRef.current}),K(ee(i),"handleDropdownFocus",function(o){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return bde.some(function(s){return a.indexOf(s)>=0})})(o.target)&&i.props.onDropdownFocus()}),K(ee(i),"getDateInView",function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,c=wI(i.props),f=xI(i.props),h=Ct(),p=l||s||a;return p||(c&&oi(h,c)?c:f&&qa(h,f)?f:h)}),K(ee(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:hi(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),K(ee(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:nu(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),K(ee(i),"handleDayClick",function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)}),K(ee(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),K(ee(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),K(ee(i),"handleYearMouseEnter",function(o,a){i.setState({selectingDate:wo(Ct(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)}),K(ee(i),"handleYearMouseLeave",function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)}),K(ee(i),"handleYearChange",function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),K(ee(i),"handleMonthChange",function(o){i.handleCustomMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),K(ee(i),"handleCustomMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))}),K(ee(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),K(ee(i),"changeYear",function(o){i.setState(function(a){var s=a.date;return{date:wo(s,o)}},function(){return i.handleYearChange(i.state.date)})}),K(ee(i),"changeMonth",function(o){i.setState(function(a){var s=a.date;return{date:ur(s,o)}},function(){return i.handleMonthChange(i.state.date)})}),K(ee(i),"changeMonthYear",function(o){i.setState(function(a){var s=a.date;return{date:wo(ur(s,Jn(o)),Je(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),K(ee(i),"header",function(){var o=IO(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(Y.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var l=ml(o,s),c=i.formatWeekday(l,i.props.locale),f=i.props.weekDayClassName?i.props.weekDayClassName(l):void 0;return Y.createElement("div",{key:s,className:Se("react-datepicker__day-name",f)},c)}))}),K(ee(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(s,l,c){return l(ln(s,"EEEE",c))}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(s,l){return ln(s,"EEE",l)}(o,a):function(s,l){return ln(s,"EEEEEE",l)}(o,a)}),K(ee(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:Yd(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),K(ee(i),"clearSelectingDate",function(){i.setState({selectingDate:null})}),K(ee(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=iD(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.minDate,C=w.yearItemNumber,T=C===void 0?Kf:C,P=uc(yf(Yd(b,T)),T).endPeriod,R=S&&Je(S);return R&&R>P||!1}(i.state.date,i.props);break;default:o=nD(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,g=p.previousMonthAriaLabel,v=g===void 0?typeof f=="string"?f:"Previous Month":g,y=p.previousYearAriaLabel,x=y===void 0?typeof h=="string"?h:"Previous Year":y;return Y.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},Y.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),K(ee(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:Xc(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),K(ee(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=oD(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.maxDate,C=w.yearItemNumber,T=C===void 0?Kf:C,P=uc(Xc(b,T),T).startPeriod,R=S&&Je(S);return R&&R<P||!1}(i.state.date,i.props);break;default:o=rD(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.nextMonthButtonLabel,h=c.nextYearButtonLabel,p=i.props,g=p.nextMonthAriaLabel,v=g===void 0?typeof f=="string"?f:"Next Month":g,y=p.nextYearAriaLabel,x=y===void 0?typeof h=="string"?h:"Next Year":y;return Y.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},Y.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),K(ee(i),"renderCurrentMonth",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),Y.createElement("div",{className:a.join(" ")},ln(o,i.props.dateFormat,i.props.locale))}),K(ee(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return Y.createElement(sde,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:Je(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),K(ee(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return Y.createElement(cde,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:Jn(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),K(ee(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return Y.createElement(dde,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),K(ee(i),"handleTodayButtonClick",function(o){i.props.onSelect(X3(),o),i.props.setPreSelection&&i.props.setPreSelection(X3())}),K(ee(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return Y.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)}),K(ee(i),"renderDefaultHeader",function(o){var a=o.monthDate,s=o.i;return Y.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),Y.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),Y.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),K(ee(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=nD(i.state.date,i.props),c=rD(i.state.date,i.props),f=iD(i.state.date,i.props),h=oD(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return Y.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(Y3(Y3({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&Y.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),K(ee(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=uc(o,a.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return Y.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(f):Je(o))}),K(ee(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),K(ee(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],a=i.props.showPreviousMonths?i.props.monthsShown-1:0,s=nu(i.state.date,a),l=0;l<i.props.monthsShown;++l){var c=l-i.props.monthSelectedIn,f=hi(s,c),h="month-".concat(l),p=l<i.props.monthsShown-1,g=l>0;o.push(Y.createElement("div",{key:h,ref:function(v){i.monthContainer=v},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),Y.createElement(gde,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:f,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:g})))}return o}}),K(ee(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?Y.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),Y.createElement(vde,qd({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0}),K(ee(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return Y.createElement(EI,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),K(ee(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=ua(o)&&i.props.selected?"".concat(sD(o.getHours()),":").concat(sD(o.getMinutes())):"";if(i.props.showTimeInput)return Y.createElement(yde,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),K(ee(i),"renderAriaLiveRegion",function(){var o,a=uc(i.state.date,i.props.yearItemNumber),s=a.startPeriod,l=a.endPeriod;return o=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?Je(i.state.date):"".concat(FO(Jn(i.state.date),i.props.locale)," ").concat(Je(i.state.date)),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)}),K(ee(i),"renderChildren",function(){if(i.props.children)return Y.createElement("div",{className:"react-datepicker__children-container"},i.props.children)}),i.containerRef=Y.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return Rn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||fr(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!fr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!Oi(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&i.handleCustomMonthChange(i.state.date)})}}},{key:"render",value:function(){var r=this.props.container||_de;return Y.createElement("div",{ref:this.containerRef},Y.createElement(r,{className:Se("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Kf}}}]),n}(),TI=function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;return Ln(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Rn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return $s.createPortal(this.props.children,this.el)}}]),n}(),xde=function(e){return!e.disabled&&e.tabIndex!==-1},PI=function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;return Ln(this,n),K(ee(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(xde)}),K(ee(i),"handleFocusStart",function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),K(ee(i),"handleFocusEnd",function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=Y.createRef(),i}return Rn(n,[{key:"render",value:function(){return this.props.enableTabLoop?Y.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},Y.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,Y.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),Sde=function(e){jn(n,Y.Component);var t=Nn(n);function n(){return Ln(this,n),t.apply(this,arguments)}return Rn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,g=i.enableTabLoop,v=i.popperOnKeyDown,y=i.portalId,x=i.portalHost;if(!s){var b=Se("react-datepicker-popper",o);r=Y.createElement(WS,qd({modifiers:c,placement:f},h),function(S){var C=S.ref,T=S.style,P=S.placement,R=S.arrowProps;return Y.createElement(PI,{enableTabLoop:g},Y.createElement("div",{ref:C,style:T,className:b,"data-placement":P,onKeyDown:v},Y.cloneElement(l,{arrowProps:R})))})}this.props.popperContainer&&(r=Y.createElement(this.props.popperContainer,{},r)),y&&!s&&(r=Y.createElement(TI,{portalId:y,portalHost:x},r));var w=Se("react-datepicker-wrapper",a);return Y.createElement(q1,{className:"react-datepicker-manager"},Y.createElement(v4,null,function(S){var C=S.ref;return Y.createElement("div",{ref:C,className:w},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),cD="react-datepicker-ignore-onclickoutside",Ode=Ay(wde),G_="Date input not valid.",Cde=function(e){jn(n,Y.Component);var t=Nn(n);function n(r){var i;return Ln(this,n),K(ee(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Ct()}),K(ee(i),"calcInitialState",function(){var o,a=i.getPreSelection(),s=wI(i.props),l=xI(i.props),c=s&&oi(a,Br(s))?s:l&&qa(a,nl(l))?l:a;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:aD(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),K(ee(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),K(ee(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),K(ee(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),K(ee(i),"setOpen",function(o){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:K_},function(){o||i.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),K(ee(i),"inputOk",function(){return bO(i.state.preSelection)}),K(ee(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),K(ee(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),K(ee(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),K(ee(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),K(ee(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),K(ee(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),K(ee(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),K(ee(i),"handleChange",function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(ee(i),a),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:Ede});var c,f,h,p,g,v,y,x,b=(c=l.target.value,f=i.props.dateFormat,h=i.props.locale,p=i.props.strictParsing,g=i.props.minDate,v=null,y=Fa(h)||Fa(Vs()),x=!0,Array.isArray(f)?(f.forEach(function(w){var S=N_(c,w,new Date,{locale:y});p&&(x=ua(S,g)&&c===ln(S,w,h)),ua(S,g)&&x&&(v=S)}),v):(v=N_(c,f,new Date,{locale:y}),p?x=ua(v)&&c===ln(v,f,h):ua(v)||(f=f.match(nde).map(function(w){var S=w[0];return S==="p"||S==="P"?y?(0,tde[S])(w,y.formatLong):S:w}).join(""),c.length>0&&(v=N_(c,f.slice(0,c.length),new Date)),ua(v)||(v=new Date(c))),ua(v)&&x?v:null));i.props.showTimeSelectOnly&&i.props.selected&&!fr(b,i.props.selected)&&(b=Gce(i.props.selected,b==null?{hours:Ar(i.props.selected),minutes:Ir(i.props.selected),seconds:j_(i.props.selected)}:{hours:Ar(b),minutes:Ir(b),seconds:j_(b)})),!b&&l.target.value||i.setSelected(b,l,!0)}}),K(ee(i),"handleSelect",function(o,a,s){if(i.setState({preventFocus:!0},function(){return i.preventFocusTimeout=setTimeout(function(){return i.setState({preventFocus:!1})},50),i.preventFocusTimeout}),i.props.onChangeRaw&&i.props.onChangeRaw(a),i.setSelected(o,a,!1,s),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,c=l.startDate,f=l.endDate;!c||f||oi(o,c)||i.setOpen(!1)}}),K(ee(i),"setSelected",function(o,a,s,l){var c=o;if(i.props.showYearPicker){if(c!==null&&bI(Je(c),i.props))return}else if(i.props.showMonthYearPicker){if(c!==null&&_I(c,i.props))return}else if(c!==null&&Iy(c,i.props))return;var f=i.props,h=f.onChange,p=f.selectsRange,g=f.startDate,v=f.endDate;if(!Ca(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=Z3(c,{hour:Ar(i.props.selected),minute:Ir(i.props.selected),second:j_(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var y=g&&!v,x=g&&v;!g&&!v?h([c,null],a):y&&(oi(c,g)?h([c,null],a):h([g,c],a)),x&&h([c,null],a)}else h(c,a);s||(i.props.onSelect(c,a),i.setState({inputValue:null}))}),K(ee(i),"setPreSelection",function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){var c=Br(o);if(a&&s)l=Am(o,i.props.minDate,i.props.maxDate);else if(a){var f=Br(i.props.minDate);l=qa(o,f)||Ca(c,f)}else if(s){var h=nl(i.props.maxDate);l=oi(o,h)||Ca(c,h)}}l&&i.setState({preSelection:o})}),K(ee(i),"handleTimeChange",function(o){var a=Z3(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Ar(o),minute:Ir(o)});i.setState({preSelection:a}),i.props.onChange(a),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})}),K(ee(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),K(ee(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(s&&s.focus({preventScroll:!0}))}var l=Ct(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===K_?(i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l)):i.setOpen(!1)):a==="Escape"?(o.preventDefault(),i.setOpen(!1)):a==="Tab"&&o.shiftKey&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:G_})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()}),K(ee(i),"onPortalKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),K(ee(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var a=o.key,s=Ct(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:G_});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=PO(s,1);break;case"ArrowRight":l=ml(s,1);break;case"ArrowUp":l=Qce(s,1);break;case"ArrowDown":l=yO(s,1);break;case"PageUp":l=nu(s,1);break;case"PageDown":l=hi(s,1);break;case"Home":l=Yd(s,1);break;case"End":l=Xc(s,1)}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:G_}));if(o.preventDefault(),i.setState({lastPreSelectChange:K_}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=Jn(s),f=Jn(l),h=Je(s),p=Je(l);c!==f||h!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),K(ee(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),K(ee(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),K(ee(i),"clear",function(){i.onClearClick()}),K(ee(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),K(ee(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?Y.createElement(Ode,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:cD,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),K(ee(i),"renderAriaLiveRegion",function(){var o,a=i.props,s=a.dateFormat,l=a.locale,c=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(zi(i.props.startDate,{dateFormat:c,locale:l}),". ").concat(i.props.endDate?"End date: "+zi(i.props.endDate,{dateFormat:c,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(zi(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(zi(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(zi(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(zi(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(zi(i.props.selected,{dateFormat:c,locale:l})),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),K(ee(i),"renderDateInput",function(){var o,a=Se(i.props.className,K({},cD,i.state.open)),s=i.props.customInput||Y.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",c=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(f,h,p){if(!f)return"";var g=zi(f,p),v=h?zi(h,p):"";return"".concat(g," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):zi(i.props.selected,i.props);return Y.cloneElement(s,(K(o={},l,function(f){i.input=f}),K(o,"value",c),K(o,"onBlur",i.handleBlur),K(o,"onChange",i.handleChange),K(o,"onClick",i.onInputClick),K(o,"onFocus",i.handleFocus),K(o,"onKeyDown",i.onInputKeyDown),K(o,"id",i.props.id),K(o,"name",i.props.name),K(o,"form",i.props.form),K(o,"autoFocus",i.props.autoFocus),K(o,"placeholder",i.props.placeholderText),K(o,"disabled",i.props.disabled),K(o,"autoComplete",i.props.autoComplete),K(o,"className",Se(s.props.className,a)),K(o,"title",i.props.title),K(o,"readOnly",i.props.readOnly),K(o,"required",i.props.required),K(o,"tabIndex",i.props.tabIndex),K(o,"aria-describedby",i.props.ariaDescribedBy),K(o,"aria-invalid",i.props.ariaInvalid),K(o,"aria-labelledby",i.props.ariaLabelledBy),K(o,"aria-required",i.props.ariaRequired),o))}),K(ee(i),"renderClearButton",function(){var o=i.props,a=o.isClearable,s=o.selected,l=o.startDate,c=o.endDate,f=o.clearButtonTitle,h=o.clearButtonClassName,p=h===void 0?"":h,g=o.ariaLabelClose,v=g===void 0?"Close":g;return!a||s==null&&l==null&&c==null?null:Y.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(p).trim(),"aria-label":v,onClick:i.onClearClick,title:f,tabIndex:-1})}),i.state=i.calcInitialState(),i}return Rn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?Jn(o)!==Jn(a)||Je(o)!==Je(a):o!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:aD(this.props.highlightDates)}),i.focused||Ca(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props.showIcon;return Y.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&Y.createElement("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},Y.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?Y.createElement(PI,{enableTabLoop:this.props.enableTabLoop},Y.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=Y.createElement(TI,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),Y.createElement("div",null,this.renderInputContainer(),i)}return Y.createElement(Sde,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Kf,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),Ede="input",K_="navigate";const xx=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||Ho(r),a=H.useRef();return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(Cde,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??Y6,className:Se("icon-input-container__input form-control",t),ref:a}),o&&m.jsx(Ie,{icon:Rue,className:"icon-input-container__icon",onClick:()=>{var s;return(s=a.current)==null?void 0:s.input.focus()}})]})},Tde=e=>m.jsx(xx,{...e,dateFormat:kO,showTimeSelect:!0,timeIntervals:10}),Z_=({children:e,infoTooltip:t,checked:n,onChange:r})=>m.jsxs("p",{children:[m.jsx($4,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&m.jsx(Nm,{placement:"right",children:t})]});const Pde=({isOpen:e,toggle:t})=>m.jsxs(Yo,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[m.jsx(qo,{toggle:t,children:"Info"}),m.jsxs(so,{children:[m.jsxs("p",{children:["When the ",m.jsx("b",{children:m.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),m.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),m.jsxs("ul",{children:[m.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),m.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",m.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),m.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),kde=()=>{const[e,t]=mn();return m.jsxs(m.Fragment,{children:[m.jsx("span",{title:"What does this mean?",children:m.jsx(Ie,{icon:bS,style:{cursor:"pointer"},onClick:t})}),m.jsx(Pde,{isOpen:e,toggle:t})]})};const Mde=Mt(nG,Yq(/ /g,"-")),Q_=e=>typeof e=="string"?$o(e):e,Dde=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Lde=(e,t)=>function({mode:r,saving:i,onSave:o,initialState:a}){const[s,l]=H.useState(a),c=()=>l(a),f=wh("deviceLongUrls"),h=r==="edit",p=Dde(s),g=r==="create-basic",v=T=>l({...s,tags:T.map(Mde)}),y=(T,P)=>Zi(T)?T:Zi(P)?null:void 0,x=Ry(async()=>o({...s,validSince:Ka(s.validSince)??null,validUntil:Ka(s.validUntil)??null,maxVisits:Zi(s.maxVisits)?Number(s.maxVisits):null}).then(()=>!h&&c()).catch(()=>{}));H.useEffect(()=>{l(a)},[a]);const b=(T,P,R="text",j={},z={})=>m.jsx(Nr,{...z,children:m.jsx(Yc,{id:T,type:R,placeholder:P,value:s[T]??"",onChange:j.onChange??(N=>l({...s,[T]:N.target.value})),...j})}),w=(T,P,R)=>{var j;return m.jsx(Vfe,{icon:R,id:T,type:"url",placeholder:P,value:((j=s.deviceLongUrls)==null?void 0:j[T])??"",onChange:z=>{var N;return l({...s,deviceLongUrls:{...s.deviceLongUrls??{},[T]:y(z.target.value,(N=a.deviceLongUrls)==null?void 0:N[T])}})}})},S=(T,P,R={})=>m.jsx(Tde,{selected:s[T]?Q_(s[T]):null,placeholderText:P,isClearable:!0,onChange:j=>l({...s,[T]:j}),...R}),C=m.jsxs(m.Fragment,{children:[m.jsx(Nr,{children:m.jsx(Yc,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:s.longUrl,onChange:T=>l({...s,longUrl:T.target.value})})}),m.jsxs(dr,{children:[g&&b("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),m.jsx("div",{className:g?"col-lg-6 mb-3":"col-12",children:m.jsx(e,{selectedTags:s.tags??[],onChange:v})})]})]});return m.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:x,children:[g&&C,!g&&m.jsxs(m.Fragment,{children:[m.jsxs(dr,{children:[m.jsx("div",{className:Se("mb-3",{"col-sm-6":f,"col-12":!f}),children:m.jsx(hn,{title:"Main options",className:"mb-3",children:C})}),f&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(hn,{title:"Device-specific long URLs",children:[m.jsx(Nr,{children:w("android","Android-specific redirection",Hfe)}),m.jsx(Nr,{children:w("ios","iOS-specific redirection",zfe)}),w("desktop","Desktop-specific redirection",nK)]})})]}),m.jsxs(dr,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(hn,{title:"Customize the short URL",children:[b("title","Title","text",{onChange:({target:T})=>l({...s,title:y(T.value,a.title)})}),!h&&p&&m.jsxs(m.Fragment,{children:[m.jsxs(dr,{children:[m.jsx("div",{className:"col-lg-6",children:b("customSlug","Custom slug","text",{disabled:Zi(s.shortCodeLength)})}),m.jsx("div",{className:"col-lg-6",children:b("shortCodeLength","Short code length","number",{min:4,disabled:Zi(s.customSlug)})})]}),m.jsx(t,{value:s.domain,onChange:T=>l({...s,domain:T})})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(hn,{title:"Limit access to the short URL",children:[b("maxVisits","Maximum number of visits allowed","number",{min:1}),m.jsx("div",{className:"mb-3",children:S("validSince","Enabled since...",{maxDate:s.validUntil?Q_(s.validUntil):void 0})}),S("validUntil","Enabled until...",{minDate:s.validSince?Q_(s.validSince):void 0})]})})]}),m.jsxs(dr,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(hn,{title:"Extra checks",children:[m.jsx(Z_,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:s.validateUrl,onChange:T=>l({...s,validateUrl:T}),children:"Validate URL"}),!h&&p&&m.jsxs("p",{children:[m.jsx($4,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:T=>l({...s,findIfExists:T}),children:"Use existing URL if found"}),m.jsx(kde,{})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(hn,{title:"Configure behavior",children:[m.jsx(Z_,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:s.crawlable,onChange:T=>l({...s,crawlable:T}),children:"Make it crawlable"}),m.jsx(Z_,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:s.forwardQuery,onChange:T=>l({...s,forwardQuery:T}),children:"Forward query params on redirect"})]})})]})]}),m.jsx("div",{className:"text-center",children:m.jsx(yt,{outline:!0,color:"primary",disabled:i||Yn(s.longUrl),className:"btn-xs-block",children:i?"Saving...":"Save"})})]})},Rde=({active:e,allText:t,onChange:n})=>m.jsxs(m.Fragment,{children:[m.jsx(Ue,{active:e==="all",onClick:()=>n("all"),children:t}),m.jsx(Ue,{divider:!0}),Xce.map(r=>m.jsx(Ue,{active:e===r,onClick:()=>n(r),children:Q6(r)},r))]}),jde=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(xx,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),m.jsx("div",{className:"col-md-6",children:m.jsx(xx,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&nl(o))})})]}),kI=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=gv(t),[a,s]=H.useState(o?t:void 0),[l,c]=H.useState(o?void 0:t),f=p=>{s(K6(p)?Sh:void 0),c(p),e(p)},h=p=>{s(p),c(void 0),e(X6(p))};return i&&rfe(()=>{const p=gv(t);p&&h(t),t&&!p&&f(t)},[t]),m.jsxs(Go,{disabled:r,text:Q6(a??l)??n,children:[m.jsx(Rde,{allText:n,active:a,onChange:h}),m.jsx(Ue,{divider:!0}),m.jsx(Ue,{header:!0,children:"Custom:"}),m.jsx(Ue,{text:!0,children:m.jsx(jde,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},Nde={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Ade=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return m.jsxs(Go,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[m.jsx(Ue,{header:!0,children:"Visits:"}),m.jsx(Ue,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(Ue,{divider:!0}),m.jsx(Ue,{header:!0,children:"Short URLs:"}),m.jsx(Ue,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),m.jsx(Ue,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),m.jsx(Ue,{divider:!0}),m.jsx(Ue,{disabled:!Zi(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:m.jsx("i",{children:"Clear filters"})})]})};const Ide=(e,t)=>({className:n,shortUrlsAmount:r,order:i,handleOrderBy:o})=>{const[a,s]=Ny(),{search:l,tags:c,startDate:f,endDate:h,excludeBots:p,excludeMaxVisitsReached:g,excludePastValidUntil:v,tagsMode:y="any"}=a,x=wh("filterDisabledUrls"),b=gl("visits"),w=Mt(({startDate:P,endDate:R})=>({startDate:Ka(P)??void 0,endDate:Ka(R)??void 0}),s),S=Mt(P=>Yn(P)?void 0:P,P=>s({search:P})),C=P=>s({tags:P}),T=Mt(()=>y==="any"?"all":"any",P=>s({tagsMode:P}));return m.jsxs("div",{className:Se("short-urls-filtering-bar-container",n),children:[m.jsx(yh,{initialValue:l,onChange:S}),m.jsxs(Cy,{className:"mt-3",children:[m.jsx(t,{allowNew:!1,placeholder:"With tags...",selectedTags:c,onChange:C}),c.length>1&&m.jsxs(m.Fragment,{children:[m.jsx(yt,{outline:!0,color:"secondary",onClick:T,id:"tagsModeBtn","aria-label":"Change tags mode",children:m.jsx(Ie,{className:"short-urls-filtering-bar__tags-icon",icon:y==="all"?cA:MG})}),m.jsx(Pr,{target:"tagsModeBtn",placement:"left",children:y==="all"?"With all the tags.":"With any of the tags."})]})]}),m.jsxs(dr,{className:"flex-lg-row-reverse",children:[m.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-fill",children:m.jsx(kI,{defaultText:"All short URLs",initialDateRange:Z6(f,h),onDatesChange:w})}),m.jsx(Ade,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:p??(b==null?void 0:b.excludeBots),excludeMaxVisitsReached:g,excludePastValidUntil:v},onChange:s,supportsDisabledFiltering:x})]})}),m.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:m.jsx(e,{amount:r})}),m.jsx("div",{className:"col-6 d-lg-none mt-3",children:m.jsx(_h,{prefixed:!1,items:Nde,order:i,onChange:o})})]})]})};function Zf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:m.jsx(Ie,{icon:e.dir==="ASC"?SG:jG,className:n})}const Bl=2,Sx="...",MI=(e,t)=>{const n=gS(VN(Bl,e-Bl),nA(t-1,e+Bl)+1);return e-Bl>Bl&&n.unshift(Sx),e+Bl<t-1&&n.push(Sx),n.unshift(1),n.push(t),n},Gd=e=>e===Sx,DI=e=>Gd(e)?e:wn(e),LI=(e,t)=>Gd(e)?`${e}_${t}`:`${e}`,Fde=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=pl(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return m.jsx("div",{className:"pb-3"});const a=()=>MI(n,r).map((s,l)=>m.jsx(Us,{disabled:Gd(s),active:n===s,children:m.jsx(zs,{tag:Ft,to:o(s),children:DI(s)})},LI(s,l)));return m.jsxs(XS,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[m.jsx(Us,{disabled:n===1,children:m.jsx(zs,{previous:!0,tag:Ft,to:o(n-1)})}),a(),m.jsx(Us,{disabled:n>=r,children:m.jsx(zs,{next:!0,tag:Ft,to:o(n+1)})})]})},$de={field:"dateCreated",dir:"DESC"},Bde=(e,t)=>is(({listShortUrls:n,shortUrlsList:r})=>{var W,ne,q;const{page:i}=ul(),o=gn(),[a,s]=Ny(),l=jO(),{tags:c,search:f,startDate:h,endDate:p,orderBy:g,tagsMode:v,excludeBots:y,excludePastValidUntil:x,excludeMaxVisitsReached:b}=a,[w,S]=H.useState(g??((W=l.shortUrlsList)==null?void 0:W.defaultOrdering)??$de),{pagination:C}=(r==null?void 0:r.shortUrls)??{},T=y??((ne=l.visits)==null?void 0:ne.excludeBots),P=wh("excludeBotsOnShortUrls"),R=(J,oe)=>{s({orderBy:{field:J,dir:oe}}),S({field:J,dir:oe})},j=J=>()=>R(J,Py(J,w.field,w.dir)),z=J=>m.jsx(Zf,{currentOrder:w,field:J}),N=Mt(J=>[...new Set([...c,J])],J=>s({tags:J})),V=({field:J,dir:oe})=>P&&T&&J==="visits"?{field:"nonBotVisits",dir:oe}:{field:J,dir:oe};return H.useEffect(()=>{n({page:i,searchTerm:f,tags:c,startDate:h,endDate:p,orderBy:V(w),tagsMode:v,excludePastValidUntil:x,excludeMaxVisitsReached:b})},[i,f,c,h,p,w.field,w.dir,v,x,b]),m.jsxs(m.Fragment,{children:[m.jsx(t,{shortUrlsAmount:(q=r.shortUrls)==null?void 0:q.pagination.totalItems,order:w,handleOrderBy:R,className:"mb-3"}),m.jsxs(Hr,{body:!0,className:"pb-0",children:[m.jsx(e,{shortUrlsList:r,orderByColumn:j,renderOrderIcon:z,onTagClick:N}),m.jsx(Fde,{paginator:C,currentQueryString:o.search})]})]})},()=>[li.visits]);const Ude=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,className:o})=>{const{error:a,loading:s,shortUrls:l}=r,c=Se({"short-urls-table__header-cell--with-action":!!t}),f=Se("short-urls-table__header-cell",c),h=Se("table table-hover responsive-table short-urls-table",o),p=()=>a?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&Yn(l==null?void 0:l.data)?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(g=>m.jsx(e,{shortUrl:g,onTagClick:i},g.shortUrl));return m.jsxs("table",{className:h,children:[m.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:m.jsxs("tr",{children:[m.jsxs("th",{className:f,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),m.jsxs("th",{className:f,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),m.jsxs("th",{className:"short-urls-table__header-cell",children:[m.jsxs("span",{className:c,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]})," / ",m.jsxs("span",{className:c,onClick:t==null?void 0:t("longUrl"),children:[m.jsx("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),m.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),m.jsx("th",{className:f,onClick:t==null?void 0:t("visits"),children:m.jsxs("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),m.jsx("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),m.jsx("tbody",{children:p()})]})},zde=(e,t)=>{e.serviceFactory("ShortUrlsList",Bde,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",Ude,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",jfe,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.serviceFactory("ShortUrlsRowMenu",Nfe,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",Sfe,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",Lde,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",Uue,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",ife,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>Ofe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",kfe,"ImageDownloader"),e.serviceFactory("ShortUrlsFilteringBar",Ide,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",Cfe,"apiClientFactory","ReportExporter"),e.serviceFactory("shortUrlsListReducerCreator",Eue,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",ct("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Ife,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",ct("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Ufe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",ct("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Sue,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",ct("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",Ffe,"apiClientFactory"),e.serviceFactory("shortUrlDetailReducer",ct("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",Cue,"apiClientFactory"),e.serviceFactory("createShortUrl",Afe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",ct("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",xue,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",ct("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>nI),e.serviceFactory("getShortUrlDetail",ct("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",Bfe,"apiClientFactory")},Hde=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:c}=i,f=async()=>{await r(e),t()};return m.jsxs(Yo,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[m.jsx(qo,{toggle:t,className:"text-danger",children:"Delete tag"}),m.jsxs(so,{children:["Are you sure you want to delete tag ",m.jsx("b",{children:e}),"?",s&&m.jsx($r,{type:"error",small:!0,className:"mt-2",children:m.jsx(Fo,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),m.jsxs(fl,{children:[m.jsx(yt,{color:"link",onClick:t,children:"Cancel"}),m.jsx(yt,{color:"danger",disabled:a,onClick:f,children:a?"Deleting tag...":"Delete tag"})]})]})};function $y(){return($y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function RI(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function Ox(e){var t=H.useRef(e),n=H.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Kd=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Qf=function(e){return"touches"in e},Cx=function(e){return e&&e.ownerDocument.defaultView||self},uD=function(e,t,n){var r=e.getBoundingClientRect(),i=Qf(t)?function(o,a){for(var s=0;s<o.length;s++)if(o[s].identifier===a)return o[s];return o[0]}(t.touches,n):t;return{left:Kd((i.pageX-(r.left+Cx(e).pageXOffset))/r.width),top:Kd((i.pageY-(r.top+Cx(e).pageYOffset))/r.height)}},fD=function(e){!Qf(e)&&e.preventDefault()},jI=Y.memo(function(e){var t=e.onMove,n=e.onKey,r=RI(e,["onMove","onKey"]),i=H.useRef(null),o=Ox(t),a=Ox(n),s=H.useRef(null),l=H.useRef(!1),c=H.useMemo(function(){var g=function(x){fD(x),(Qf(x)?x.touches.length>0:x.buttons>0)&&i.current?o(uD(i.current,x,s.current)):y(!1)},v=function(){return y(!1)};function y(x){var b=l.current,w=Cx(i.current),S=x?w.addEventListener:w.removeEventListener;S(b?"touchmove":"mousemove",g),S(b?"touchend":"mouseup",v)}return[function(x){var b=x.nativeEvent,w=i.current;if(w&&(fD(b),!function(C,T){return T&&!Qf(C)}(b,l.current)&&w)){if(Qf(b)){l.current=!0;var S=b.changedTouches||[];S.length&&(s.current=S[0].identifier)}w.focus(),o(uD(w,b,s.current)),y(!0)}},function(x){var b=x.which||x.keyCode;b<37||b>40||(x.preventDefault(),a({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},y]},[a,o]),f=c[0],h=c[1],p=c[2];return H.useEffect(function(){return p},[p]),Y.createElement("div",$y({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),BO=function(e){return e.filter(Boolean).join(" ")},NI=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=BO(["react-colorful__pointer",e.className]);return Y.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},Y.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Hn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Vde=function(e){return Kde(Ex(e))},Ex=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Hn(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Hn(parseInt(e.substring(6,8),16)/255,2):1}},Wde=function(e){return Gde(qde(e))},Yde=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:Hn(e.h),s:Hn(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Hn(i/2),a:Hn(r,2)}},Tx=function(e){var t=Yde(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},qde=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:Hn(255*[r,s,a,a,l,r][c]),g:Hn(255*[l,r,r,s,a,a][c]),b:Hn(255*[a,a,l,r,r,s][c]),a:Hn(i,2)}},Jp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Gde=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?Jp(Hn(255*i)):"";return"#"+Jp(t)+Jp(n)+Jp(r)+o},Kde=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:Hn(60*(s<0?s+6:s)),s:Hn(o?a/o*100:0),v:Hn(o/255*100),a:i}},Zde=Y.memo(function(e){var t=e.hue,n=e.onChange,r=BO(["react-colorful__hue",e.className]);return Y.createElement("div",{className:r},Y.createElement(jI,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Kd(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Hn(t),"aria-valuemax":"360","aria-valuemin":"0"},Y.createElement(NI,{className:"react-colorful__hue-pointer",left:t/360,color:Tx({h:t,s:100,v:100,a:1})})))}),Qde=Y.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Tx({h:t.h,s:100,v:100,a:1})};return Y.createElement("div",{className:"react-colorful__saturation",style:r},Y.createElement(jI,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Kd(t.s+100*i.left,0,100),v:Kd(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Hn(t.s)+"%, Brightness "+Hn(t.v)+"%"},Y.createElement(NI,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Tx(t)})))}),AI=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Xde=function(e,t){return e.toLowerCase()===t.toLowerCase()||AI(Ex(e),Ex(t))};function Jde(e,t,n){var r=Ox(n),i=H.useState(function(){return e.toHsva(t)}),o=i[0],a=i[1],s=H.useRef({color:t,hsva:o});H.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},a(c)}},[t,e]),H.useEffect(function(){var c;AI(o,s.current.hsva)||e.equal(c=e.fromHsva(o),s.current.color)||(s.current={hsva:o,color:c},r(c))},[o,e,r]);var l=H.useCallback(function(c){a(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var ehe=typeof window<"u"?H.useLayoutEffect:H.useEffect,the=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},dD=new Map,nhe=function(e){ehe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!dD.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,dD.set(t,n);var r=the();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},rhe=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,a=RI(e,["className","colorModel","color","onChange"]),s=H.useRef(null);nhe(s);var l=Jde(n,i,o),c=l[0],f=l[1],h=BO(["react-colorful",t]);return Y.createElement("div",$y({},a,{ref:s,className:h}),Y.createElement(Qde,{hsva:c,onChange:f}),Y.createElement(Zde,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},ihe={defaultColor:"000",toHsva:Vde,fromHsva:function(e){return Wde({h:e.h,s:e.s,v:e.v,a:1})},equal:Xde},ohe=function(e){return Y.createElement(rhe,$y({},e,{colorModel:ihe}))};const ahe=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:a})=>{const[s,l]=H.useState(t),[c,f]=H.useState(e(t)),[h,p,,g]=mn(),{editing:v,error:y,edited:x,errorData:b}=a,w=Ry(async()=>{await n({oldName:t,newName:s,color:c}),r()}),S=Mt(g,()=>x&&i({oldName:t,newName:s,color:c}));return m.jsx(Yo,{isOpen:o,toggle:r,centered:!0,onClosed:S,children:m.jsxs("form",{name:"editTag",onSubmit:w,children:[m.jsx(qo,{toggle:r,children:"Edit tag"}),m.jsxs(so,{children:[m.jsxs(Cy,{children:[m.jsx("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:m.jsx(Ie,{icon:OG,className:"edit-tag-modal__color-icon"})}),m.jsx(QS,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:m.jsx(ohe,{color:c,onChange:f})}),m.jsx(Yc,{value:s,placeholder:"Tag",required:!0,onChange:({target:C})=>l(C.value)})]}),y&&m.jsx($r,{type:"error",small:!0,className:"mt-2",children:m.jsx(Fo,{errorData:b,fallbackMessage:"Something went wrong while editing the tag :("})})]}),m.jsxs(fl,{children:[m.jsx(yt,{type:"button",color:"link",onClick:r,children:"Cancel"}),m.jsx(yt,{color:"primary",disabled:v,children:v?"Saving...":"Save"})]})]})})};function she(e){return Y.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},Y.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const lhe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},che=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class uhe extends Y.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=Y.createRef(),this.sizer=Y.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);che.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:o,classNames:a,inputAttributes:s,inputEventHandlers:l,index:c}=this.props;return Y.createElement("div",{className:a.searchWrapper},Y.createElement("input",Object.assign({},s,l,{ref:this.input,value:n,placeholder:i,className:a.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":c>-1?`${t}-${c}`:null,"aria-expanded":o,style:{width:this.state.inputWidth}})),Y.createElement("div",{ref:this.sizer,style:lhe},n||i))}}function UO(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function fhe(e){return new RegExp(UO(e),"gi")}function dhe(e){return new RegExp(`(?:^|\\s)${UO(e)}`,"i")}function hhe(e){return new RegExp(`^${UO(e)}$`,"i")}function phe(e,t){const n=fhe(t);return e.replace(n,"<mark>$&</mark>")}function mhe({item:e,query:t}){return Y.createElement("span",{dangerouslySetInnerHTML:{__html:phe(e.name,t)}})}function ghe(e){const t=e.suggestionComponent||mhe,n=e.options.map((r,i)=>{const o=`${e.id}-${i}`,a=[];return e.index===i&&a.push(e.classNames.suggestionActive),r.disabled&&a.push(e.classNames.suggestionDisabled),Y.createElement("li",{id:o,key:o,role:"option",className:a.join(" "),"aria-disabled":!!r.disabled,onMouseDown:s=>s.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?Y.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:Y.createElement(t,{item:r,query:e.query}))});return Y.createElement("div",{className:e.classNames.suggestions},Y.createElement("ul",{role:"listbox",id:e.id},n))}function vhe(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,o=>o===t),i=n[r-1]||n[r+1];i&&i.focus()}const Ps={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},II={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function FI(e,t){return e.findIndex(n=>hhe(t).test(n.name))}function X_(){if(this.state.query.length>=this.props.minQueryLength){const e=FI(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function yhe(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function _he(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function bhe(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function whe(e,t){return dhe(t).test(e.name)}function xhe(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&FI(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class zO extends Y.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=Y.createRef(),this.input=Y.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?X_.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),X_.call(this)),t.key===Ps.BACKSPACE&&this.props.allowBackspace&&bhe.call(this,t),(t.key===Ps.UP_ARROW||t.key===Ps.UP_ARROW_COMPAT)&&yhe.call(this,t),(t.key===Ps.DOWN_ARROW||t.key===Ps.DOWN_ARROW_COMPAT)&&_he.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&X_.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&vhe(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||she,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},II,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),Y.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},Y.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,a)=>Y.createElement(t,{key:a,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,a)}))),Y.createElement("div",{className:r.search},Y.createElement(uhe,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?Y.createElement(ghe,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:xhe(t,n)}:null}}zO.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:whe,suggestionsTransform:null,autoresize:!0,classNames:II,delimiters:[Ps.TAB,Ps.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};zO.propTypes={id:D.string,tags:D.arrayOf(D.object),placeholderText:D.string,ariaLabelText:D.string,removeButtonText:D.string,noSuggestionsText:D.string,newTagText:D.string,suggestions:D.arrayOf(D.object),suggestionsFilter:D.func,suggestionsTransform:D.func,autoresize:D.bool,delimiters:D.arrayOf(D.string),onDelete:D.func.isRequired,onAddition:D.func.isRequired,onInput:D.func,onFocus:D.func,onBlur:D.func,onValidate:D.func,minQueryLength:D.number,maxSuggestionsLength:D.number,classNames:D.object,allowNew:D.bool,allowBackspace:D.bool,addOnBlur:D.bool,tagComponent:D.oneOfType([D.func,D.element]),suggestionComponent:D.oneOfType([D.func,D.element]),inputAttributes:D.object};const $I=({tag:e,colorGenerator:t})=>m.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),hD=e=>({id:e,name:e}),She=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,allowNew:a=!0})=>{const s=gl("shortUrlCreation");H.useEffect(()=>{i()},[]);const l=(s==null?void 0:s.tagFilteringMode)??"startsWith",c=({tag:h,onDelete:p})=>m.jsx(AO,{colorGenerator:e,text:h.name,clearable:!0,className:"react-tags__tag",onClose:p}),f=({item:h})=>m.jsxs(m.Fragment,{children:[m.jsx($I,{tag:`${h.name}`,colorGenerator:e}),h.name]});return m.jsx(zO,{tags:t.map(hD),tagComponent:c,suggestions:o.tags.filter(h=>!t.includes(h)).map(hD),suggestionComponent:f,allowNew:a,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(h,p)=>p.filter(({name:g})=>g.includes(h)):void 0,onDelete:h=>{const p=[...t];p.splice(h,1),n(p)},onAddition:({name:h})=>n([...new Set([...t,...h.toLowerCase().split(",")])])})},Px="shlink/tagDelete",Ohe={deleting:!1,deleted:!1,error:!1},BI=Mn(`${Px}/tagDeleted`),Che=e=>{const t=Tr(`${Px}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=ir({name:Px,initialState:Ohe,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Ko(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},HO="shlink/tagEdit",Ehe={editing:!1,edited:!1,error:!1},UI=Mn(`${HO}/tagEdited`),The=(e,t)=>Tr(`${HO}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Phe=e=>ir({name:HO,initialState:Ehe,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:Ko(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...mS(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),VO="shlink/tagsList",J_={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},pD=(e,t)=>n=>n===e?t:n,mD=(e,t)=>sh(n=>n===t,e),khe=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:s.visitsCount+o+a}}},{...t}),Mhe=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),Dhe=(e,t=!0)=>Tr(`${VO}/listTags`,async(n,{getState:r})=>{const{tagsList:i}=r();if(!t&&!Yn(i.tags))return i;const{tags:o,stats:a}=await e().tagsStats(),s=a.reduce((l,{tag:c,...f})=>(l[c]=f,l),{});return{tags:o,stats:s}}),zI=Mn(`${VO}/filterTags`),Lhe=(e,t)=>ir({name:VO,initialState:J_,reducers:{},extraReducers:n=>{n.addCase(zI,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...J_,error:!0,errorData:Ko(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...J_,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(BI,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:mD(r,a),filteredTags:mD(i,a)})),n.addCase(UI,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(pD(s.oldName,s.newName)).sort(),filteredTags:i.map(pD(s.oldName,s.newName)).sort()})),n.addCase(Oh,(r,{payload:i})=>({...r,stats:khe(Mhe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),Rhe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},jhe=e=>is(({filterTags:t,forceListTags:n,tagsList:r})=>{var f;const i=jO(),[o,a]=H.useState(((f=i.tags)==null?void 0:f.defaultOrdering)??{}),s=Mt(()=>r.filteredTags.map(h=>{var v,y,x;const p=r.stats[h],g=((v=i.visits)!=null&&v.excludeBots?(y=p==null?void 0:p.visitsSummary)==null?void 0:y.nonBots:(x=p==null?void 0:p.visitsSummary)==null?void 0:x.total)??(p==null?void 0:p.visitsCount)??0;return{tag:h,visits:g,shortUrls:(p==null?void 0:p.shortUrlsCount)??0}}),h=>U4(h,o));if(H.useEffect(()=>{n()},[]),r.loading)return m.jsx(Po,{loading:!0});if(r.error)return m.jsx($r,{type:"error",children:m.jsx(Fo,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const l=h=>()=>{const p=Py(h,o.field,o.dir);a({field:p?h:void 0,dir:p})},c=()=>{if(r.filteredTags.length<1)return m.jsx(Po,{children:"No tags found"});const h=s();return m.jsx(e,{sortedTags:h,currentOrder:o,orderByColumn:l})};return m.jsxs(m.Fragment,{children:[m.jsx(yh,{className:"mb-3",onChange:t}),m.jsx(dr,{className:"mb-3",children:m.jsx("div",{className:"col-lg-6 offset-lg-6",children:m.jsx(_h,{items:Rhe,order:o,onChange:(h,p)=>a({field:h,dir:p})})})}),c()]})},()=>[li.visits]);const WO=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Gd(o)&&n(o);return m.jsxs(XS,{listClassName:Se("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[m.jsx(Us,{disabled:t<=1,children:m.jsx(zs,{previous:!0,tag:"span",onClick:i(t-1)})}),MI(t,e).map((o,a)=>m.jsx(Us,{disabled:Gd(o),active:t===o,children:m.jsx(zs,{role:"link",tag:"span",onClick:i(o),children:DI(o)})},LI(o,a))),m.jsx(Us,{disabled:t>=e,children:m.jsx(zs,{next:!0,tag:"span",onClick:i(t+1)})})]})};const Nhe=20,Ahe=e=>({sortedTags:t,orderByColumn:n,currentOrder:r})=>{const i=H.useRef(!0),{search:o}=gn(),{page:a=1}=hl(o),[s,l]=nfe("page",Number(a)),c=Td(Nhe,t),f=c.length>1,h=c[s-1]??[];return H.useEffect(()=>{!i.current&&l(1),i.current=!1},[t]),H.useEffect(()=>{scrollTo(0,0)},[s]),m.jsxs(hn,{bodyClassName:f?"pb-1":"",children:[m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsxs("thead",{className:"responsive-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:"tags-table__header-cell",onClick:n("tag"),children:["Tag ",m.jsx(Zf,{currentOrder:r,field:"tag"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("shortUrls"),children:["Short URLs ",m.jsx(Zf,{currentOrder:r,field:"shortUrls"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("visits"),children:["Visits ",m.jsx(Zf,{currentOrder:r,field:"visits"})]}),m.jsx("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),m.jsx("tr",{children:m.jsx("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),m.jsxs("tbody",{children:[h.length===0&&m.jsx("tr",{children:m.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),h.map(p=>m.jsx(e,{tag:p},p.tag))]})]}),f&&m.jsx("div",{className:"sticky-card-paginator",children:m.jsx(WO,{pagesCount:c.length,currentPage:s,setCurrentPage:l})})]},s)},Ihe=(e,t,n)=>({tag:r})=>{const[i,o]=mn(),[a,s]=mn(),l=pl();return m.jsxs("tr",{className:"responsive-table__row",children:[m.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[m.jsx($I,{tag:r.tag,colorGenerator:n})," ",r.tag]}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:m.jsx(Ft,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:wn(r.shortUrls)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:m.jsx(Ft,{to:`${l}/tag/${r.tag}/visits`,children:wn(r.visits)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end",children:m.jsxs(Ty,{children:[m.jsxs(Ue,{onClick:s,children:[m.jsx(Ie,{icon:dG,fixedWidth:!0,className:"me-1"})," Edit"]}),m.jsxs(Ue,{onClick:o,children:[m.jsx(Ie,{icon:TG,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),m.jsx(t,{tag:r.tag,toggle:s,isOpen:a}),m.jsx(e,{tag:r.tag,toggle:o,isOpen:i})]})},Fhe=(e,t)=>{e.serviceFactory("TagsSelector",She,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>Hde),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",ahe,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",Ihe,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",Ahe,"TagsTableRow"),e.serviceFactory("TagsList",jhe,"TagsTable"),e.decorator("TagsList",t(["tagsList","mercureInfo"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Phe,"editTag"),e.serviceFactory("tagEditReducer",ct("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Che,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",ct("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Lhe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",ct("reducer"),"tagsListReducerCreator");const n=r=>({apiClientFactory:i})=>Dhe(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>zI),e.serviceFactory("deleteTag",ct("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>BI),e.serviceFactory("editTag",The,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>UI)};var $he="Expected a function",HI="__lodash_hash_undefined__",VI=1/0,Bhe="[object Function]",Uhe="[object GeneratorFunction]",zhe="[object Symbol]",Hhe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vhe=/^\w*$/,Whe=/^\./,Yhe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qhe=/[\\^$.*+?()[\]{}|]/g,Ghe=/\\(\\)?/g,Khe=/^\[object .+?Constructor\]$/,Zhe=typeof Wl=="object"&&Wl&&Wl.Object===Object&&Wl,Qhe=typeof self=="object"&&self&&self.Object===Object&&self,YO=Zhe||Qhe||Function("return this")();function Xhe(e,t){return e==null?void 0:e[t]}function Jhe(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var epe=Array.prototype,tpe=Function.prototype,WI=Object.prototype,eb=YO["__core-js_shared__"],gD=function(){var e=/[^.]+$/.exec(eb&&eb.keys&&eb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),YI=tpe.toString,qO=WI.hasOwnProperty,qI=WI.toString,npe=RegExp("^"+YI.call(qO).replace(qhe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vD=YO.Symbol,rpe=epe.splice,ipe=GI(YO,"Map"),Zd=GI(Object,"create"),yD=vD?vD.prototype:void 0,_D=yD?yD.toString:void 0;function il(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ope(){this.__data__=Zd?Zd(null):{}}function ape(e){return this.has(e)&&delete this.__data__[e]}function spe(e){var t=this.__data__;if(Zd){var n=t[e];return n===HI?void 0:n}return qO.call(t,e)?t[e]:void 0}function lpe(e){var t=this.__data__;return Zd?t[e]!==void 0:qO.call(t,e)}function cpe(e,t){var n=this.__data__;return n[e]=Zd&&t===void 0?HI:t,this}il.prototype.clear=ope;il.prototype.delete=ape;il.prototype.get=spe;il.prototype.has=lpe;il.prototype.set=cpe;function yu(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function upe(){this.__data__=[]}function fpe(e){var t=this.__data__,n=By(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():rpe.call(t,n,1),!0}function dpe(e){var t=this.__data__,n=By(t,e);return n<0?void 0:t[n][1]}function hpe(e){return By(this.__data__,e)>-1}function ppe(e,t){var n=this.__data__,r=By(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}yu.prototype.clear=upe;yu.prototype.delete=fpe;yu.prototype.get=dpe;yu.prototype.has=hpe;yu.prototype.set=ppe;function vl(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mpe(){this.__data__={hash:new il,map:new(ipe||yu),string:new il}}function gpe(e){return Uy(this,e).delete(e)}function vpe(e){return Uy(this,e).get(e)}function ype(e){return Uy(this,e).has(e)}function _pe(e,t){return Uy(this,e).set(e,t),this}vl.prototype.clear=mpe;vl.prototype.delete=gpe;vl.prototype.get=vpe;vl.prototype.has=ype;vl.prototype.set=_pe;function By(e,t){for(var n=e.length;n--;)if(Mpe(e[n][0],t))return n;return-1}function bpe(e,t){t=Ope(t,e)?[t]:Spe(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ppe(t[n++])];return n&&n==r?e:void 0}function wpe(e){if(!ZI(e)||Epe(e))return!1;var t=Dpe(e)||Jhe(e)?npe:Khe;return t.test(kpe(e))}function xpe(e){if(typeof e=="string")return e;if(KO(e))return _D?_D.call(e):"";var t=e+"";return t=="0"&&1/e==-VI?"-0":t}function Spe(e){return KI(e)?e:Tpe(e)}function Uy(e,t){var n=e.__data__;return Cpe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function GI(e,t){var n=Xhe(e,t);return wpe(n)?n:void 0}function Ope(e,t){if(KI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||KO(e)?!0:Vhe.test(e)||!Hhe.test(e)||t!=null&&e in Object(t)}function Cpe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Epe(e){return!!gD&&gD in e}var Tpe=GO(function(e){e=Rpe(e);var t=[];return Whe.test(e)&&t.push(""),e.replace(Yhe,function(n,r,i,o){t.push(i?o.replace(Ghe,"$1"):r||n)}),t});function Ppe(e){if(typeof e=="string"||KO(e))return e;var t=e+"";return t=="0"&&1/e==-VI?"-0":t}function kpe(e){if(e!=null){try{return YI.call(e)}catch{}try{return e+""}catch{}}return""}function GO(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError($he);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(GO.Cache||vl),n}GO.Cache=vl;function Mpe(e,t){return e===t||e!==e&&t!==t}var KI=Array.isArray;function Dpe(e){var t=ZI(e)?qI.call(e):"";return t==Bhe||t==Uhe}function ZI(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Lpe(e){return!!e&&typeof e=="object"}function KO(e){return typeof e=="symbol"||Lpe(e)&&qI.call(e)==zhe}function Rpe(e){return e==null?"":xpe(e)}function jpe(e,t,n){var r=e==null?void 0:bpe(e,t);return r===void 0?n:r}var Npe=jpe;const bD=pi(Npe);function tb(e){return e==null?"":`${e}`}function Ape(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 ZO(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function Ipe(e={stringFormatter:ZO()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Fpe(e={stringFormatter:ZO()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}function wD(e,t,n){const r=e[t];return r===void 0?n:r}function QI(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function kx(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var xD;(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"})(xD||(xD={}));class $pe{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||ZO(),i=Fpe({stringFormatter:r}),o={header:r,undefined:tb,boolean:tb,number:Ape(),bigint:tb,string:r,symbol:Ipe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
||
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>bD(i,r,n):i=>wD(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?a=>bD(a,o,i):a=>wD(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const c=s(l,a);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return kx(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(QI,[]),[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 kx(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 XI extends $pe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(QI,[])}processData(t){return kx(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Cn;(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"})(Cn||(Cn={}));Cn.QUOTATION_MARK+"",Cn.QUOTATION_MARK,Cn.REVERSE_SOLIDUS+"",Cn.REVERSE_SOLIDUS,Cn.SOLIDUS+"",Cn.SOLIDUS,Cn.LATIN_SMALL_LETTER_B+"",Cn.BACKSPACE,Cn.LATIN_SMALL_LETTER_F+"",Cn.FORM_FEED,Cn.LATIN_SMALL_LETTER_N+"",Cn.NEWLINE,Cn.LATIN_SMALL_LETTER_R+"",Cn.CARRIAGE_RETURN,Cn.LATIN_SMALL_LETTER_T+"",Cn.TAB;var SD;(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"})(SD||(SD={}));var OD;(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"})(OD||(OD={}));var CD;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(CD||(CD={}));var ED;(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"})(ED||(ED={}));const Bpe=new XI,Upe=e=>Bpe.parse(e),zpe=6,TD="0123456789ABCDEF",Hpe=128,{floor:Vpe,random:Wpe,sqrt:Ype,round:qpe}=Math,Gpe=()=>`#${LO(zpe,()=>TD[Vpe(Wpe()*TD.length)]).join("")}`,PD=e=>e.toLowerCase().trim(),Kpe=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),Zpe=(e=0,t=0,n=0)=>qpe(Ype(.299*e**2+.587*t**2+.114*n**2));class Qpe{constructor(t){me(this,"colors");me(this,"lights");me(this,"getColorForKey",t=>{const n=PD(t),r=this.colors[n];return r||this.setColorForKey(n,Gpe())});me(this,"setColorForKey",(t,n)=>{var i;const r=PD(t);return this.colors[r]=n,(i=this.storage)==null||i.storeTagColors(this.colors),n});me(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if(Ho(this.lights[n])){const r=Kpe(n);this.lights[n]=Zpe(...r)>=Hpe}return this.lights[n]});var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}}const JI=({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)},Xpe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);JI(e,i,n)};class Jpe{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);JI(this.window,i,n)}}class eme{constructor(t,n){me(this,"exportVisits",(t,n)=>{n.length&&this.exportCsv(t,n)});me(this,"exportShortUrls",t=>{t.length&&this.exportCsv("short_urls.csv",t)});me(this,"exportCsv",(t,n)=>{const r=this.jsonToCsv(n);Xpe(this.window,r,t)});this.window=t,this.jsonToCsv=n}}function tme(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",Jpe,"fetch","window"),e.service("ColorGenerator",Qpe,"TagColorsStorage"),e.constant("jsonToCsv",Upe),e.service("ReportExporter",eme,"window","jsonToCsv"),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",efe,"setTimeout","clearTimeout")}const QO=e=>e.visitedUrl!==void 0,nme=e=>e.visitedUrl!==void 0,rme=Mt(Pq(e=>QO(e.visit)?"orphanVisits":"nonOrphanVisits"),e=>({orphanVisits:[],nonOrphanVisits:[],...e})),em=(e,t)=>JN(ct(t),e),Ph=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Ka(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Ka(r==null?void 0:r.endDate))??void 0,a=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:a}},kh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>m.jsx("header",{children:m.jsxs(Hr,{body:!0,children:[m.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[m.jsx(yt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:m.jsx(Ie,{icon:uA})}),m.jsx("span",{className:"text-center d-none d-sm-block",children:m.jsx("small",{children:i})}),m.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",m.jsx(pI,{visitsCount:e.length,shortUrl:n})]})]}),m.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:m.jsx("small",{children:i})}),r&&m.jsx("div",{className:"mt-md-2",children:r})]})});const e5=({title:e,footer:t,children:n})=>m.jsxs(Hr,{role:"document",children:[m.jsx(Wc,{className:"chart-card__header",children:typeof e=="function"?e():e}),m.jsx(Vc,{children:n}),t&&m.jsx(S4,{className:"chart-card__footer--sticky",children:t})]}),t5="label";function kD(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ime(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function n5(e,t){e.labels=t}function r5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t5;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function ome(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t5;const n={labels:[],datasets:[]};return n5(n,e.labels),r5(n,e.datasets,t),n}function i5(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function ame(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e,g=H.useRef(null),v=H.useRef(),y=()=>{g.current&&(v.current=new Tv(g.current,{type:a,data:ome(s,o),options:l&&{...l},plugins:c}),kD(t,v.current))},x=()=>{kD(t,null),v.current&&(v.current.destroy(),v.current=null)};return H.useEffect(()=>{!i&&v.current&&l&&ime(v.current,l)},[i,l]),H.useEffect(()=>{!i&&v.current&&n5(v.current.config.data,s.labels)},[i,s.labels]),H.useEffect(()=>{!i&&v.current&&s.datasets&&r5(v.current.config.data,s.datasets,o)},[i,s.datasets]),H.useEffect(()=>{v.current&&(i?(x(),setTimeout(y)):v.current.update(h))},[i,l,s.labels,s.datasets,h]),H.useEffect(()=>{v.current&&(x(),setTimeout(y))},[a]),H.useEffect(()=>(y(),()=>x()),[]),Y.createElement("canvas",Object.assign({ref:g,role:"img",height:n,width:r},p),f)}const sme=H.forwardRef(ame);function XO(e,t){return Tv.register(t),H.forwardRef((n,r)=>Y.createElement(sme,Object.assign({},n,{ref:r,type:e})))}const lme=XO("line",Cf),cme=XO("bar",Of),ume=XO("doughnut",ga),o5=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},a5=({dataset:e,raw:t})=>`${e.label}: ${wn(`${t}`)}`,fme=({label:e,raw:t})=>`${e}: ${wn(`${t}`)}`;const dme=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return m.jsx("ul",{className:"doughnut-chart-legend",children:n.map((a,s)=>m.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[m.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[s]??o}}),m.jsx("small",{className:"doughnut-chart-legend__item-text flex-fill",children:a})]},a))})},hme=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:Vre()?Hre:zre,borderWidth:2}],pme=(e,t)=>({labels:e,datasets:hme(t)}),mme=H.memo(({stats:e})=>{const[t,n]=H.useState(),r=io(e),i=uu(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:fme}}}},a=pme(r,i);return m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-12 col-md-7",children:m.jsx(ume,{height:300,data:a,options:o,ref:s=>{s&&n(s)}})}),m.jsx("div",{className:"col-sm-12 col-md-5",children:t&&m.jsx(dme,{chart:t})})]})}),MD=({title:e,stats:t})=>m.jsx(e5,{title:e,children:m.jsx(mme,{stats:t})}),gme={"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"},s5={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"},rn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},lr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},oa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class we{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=we.getVersionPrecision(t),o=we.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=we.map([t,n],c=>{const f=a-we.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return we.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(l=>{r[l]=a[l]})}return t}static getBrowserAlias(t){return gme[t]}static getBrowserTypeByAlias(t){return s5[t]||""}}const Et=/version\/(\d+(\.?_?\d+)+)/i,vme=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=we.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=we.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=we.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=we.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=we.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=we.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=we.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=we.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=we.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=we.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=we.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=we.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=we.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=we.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=we.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=we.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=we.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=we.getFirstMatch(Et,e)||we.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=we.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=we.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=we.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=we.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=we.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=we.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=we.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=we.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=we.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=we.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:we.getFirstMatch(i,e),version:we.getSecondMatch(i,e)}}}],yme=[{test:[/Roku\/DVP/],describe(e){const t=we.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:lr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=we.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:lr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=we.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=we.getWindowsVersionName(t);return{name:lr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:lr.iOS},n=we.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=we.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=we.getMacOSVersionName(t),r={name:lr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=we.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:lr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=we.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=we.getAndroidVersionName(t),r={name:lr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=we.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:lr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=we.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||we.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||we.getFirstMatch(/\bbb(\d+)/i,e);return{name:lr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=we.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:lr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=we.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:lr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:lr.Linux}}},{test:[/CrOS/],describe(){return{name:lr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=we.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:lr.PlayStation4,version:t}}}],_me=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=we.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:rn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:rn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:rn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:rn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:rn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:rn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:rn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=we.getFirstMatch(/(ipod|iphone)/i,e);return{type:rn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:rn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:rn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:rn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:rn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:rn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:rn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:rn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:rn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:rn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:rn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:rn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:rn.tv}}}],bme=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:oa.Blink};const n=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:oa.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:oa.Trident},n=we.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:oa.Presto},n=we.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:oa.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:oa.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:oa.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class DD{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=we.find(vme,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=we.find(yme,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=we.find(_me,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=we.find(bme,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return we.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=we.find(s,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=we.find(s,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const s=Object.keys(i),l=we.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=we.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(we.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class wme{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new DD(t,n)}static parse(t){return new DD(t).getResult()}static get BROWSER_MAP(){return s5}static get ENGINE_MAP(){return oa}static get OS_MAP(){return lr}static get PLATFORMS_MAP(){return rn}}const tm="Others",xme=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],Sme=e=>{if(!Zi(e))return{browser:tm,os:tm};const{browser:{name:t},os:{name:n}}=wme.parse(e);return{os:n??tm,browser:t&&xme.includes(t)?t:tm}},Ome=e=>{var t;return Zi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},JO=(e,t)=>Object.values({...rA(t,t.map(()=>0)),...e});const LD={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},Cme={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},Eme={hourly:pse,daily:wO,weekly:vse,monthly:uv},eC={hourly:e=>eu(e,"yyyy-MM-dd HH:00"),daily:e=>js(e),weekly(e){const t=js(Hd(e)),n=js(bse(e));return`${t} - ${n}`},monthly:e=>eu(e,"yyyy-MM")},Tme=e=>{const t=new Date,n=$o(e);return pS([[()=>wO(t,n)<=2,n_("hourly")],[()=>uv(t,n)<=1,n_("daily")],[()=>uv(t,n)<=6,n_("weekly")]])()??"monthly"},RD=(e,t)=>JN(n=>eC[e]($o(n.date)),t),Pme=(e,t)=>t.reduce((n,r)=>{const i=eC[e]($o(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),kme=(e,t)=>{const n=Eme[e],r=eC[e],i=$o(t[0].date),o=$o(t[t.length-1].date),a=n(i,o),s=Cme[e];return[r(o),...LO(a,l=>r(rse(o,s(l))))]},Mme=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=kme(n,e);return[i,JO(t,i)]},jD=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let nb=null;const Dme=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;nb===e[i]?(r([]),nb=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),nb=e[i]??null)},Lme=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,a]=H.useState(t.length>0?Tme(t[t.length-1].date):"monthly"),[s,l]=mn(!0),c=H.useRef(null),f=H.useRef(null),h=H.useMemo(()=>Pme(o,t),[o,t]),p=H.useMemo(()=>RD(o,y1(t)),[o,t]),[g,v]=H.useMemo(()=>Mme(t,p,o,s),[t,o,s]),y=H.useMemo(()=>JO(RD(o,y1(n)),g),[n,o,g]),x=()=>{const C=jD(v,"Visits",eO);if(n.length===0)return[C];const T=jD(y,r,H4);return[C,T]},b=()=>({labels:g,datasets:x()}),w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:a5}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:wn}},x:{title:{display:!0,text:LD[o]}}},onHover:o5},S=C=>m.jsx(lme,{ref:C,data:b(),options:w,onClick:T=>Dme(g,h,i5(C.current,T),i)});return m.jsxs(Hr,{children:[m.jsxs(Wc,{role:"heading",children:[e,m.jsx("div",{className:"float-end",children:m.jsxs(vh,{children:[m.jsx(ph,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),m.jsx(du,{end:!0,children:Object.entries(LD).map(([C,T])=>m.jsx(Ue,{active:o===C,onClick:()=>a(C),children:T},C))})]})}),m.jsx("div",{className:"float-end me-2",children:m.jsx(qc,{checked:s,onChange:l,children:m.jsx("small",{children:"Skip dates with no visits"})})})]}),m.jsxs(Vc,{className:"line-chart-card__body",children:[n.length>0&&S(c),n.length===0&&S(f)]})]})},Rme=({toggleClassName:e,ranges:t,value:n,setValue:r})=>m.jsxs(vh,{children:[m.jsx(ph,{caret:!0,color:"link",className:e,children:"Paginate"}),m.jsxs(du,{end:!0,children:[t.map(i=>m.jsxs(Ue,{active:i===n,onClick:()=>r(i),children:[m.jsx("b",{children:i})," items per page"]},i)),m.jsx(Ue,{divider:!0}),m.jsx(Ue,{disabled:n===1/0,onClick:()=>r(1/0),children:m.jsx("i",{children:"Clear pagination"})})]})]}),jme=e=>e.startsWith("hidden")?"":e,Nme=e=>!!e&&Object.keys(e).length>0,Ame=e=>e.length>20?e.length*10:void 0,Ime=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:Bre,borderColor:eO,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:Ure,borderColor:H4,borderWidth:2}]},Fme=(e,t,n,r)=>({labels:e,datasets:Ime(t,n,r)}),$me=(e,[t],n)=>{!n||!t||n(e[t.index])},Bme=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=io(e).map(jme),a=uu(Nme(t)?io(t).reduce((v,y)=>(v[y]&&(v[y]-=t[y]),v),{...e}):e),s=JO(t??{},o),l=H.useRef(null),c=H.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:v})=>v!=="",callbacks:{label:a5}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:wn}},y:{stacked:!0}},onHover:o5,indexAxis:"y"},h=Fme(o,a,s,n),p=Ame(o),g=(v,y)=>m.jsx(cme,{ref:y,data:h,options:f,height:p,onClick:x=>$me(o,i5(y.current,x),r)},`${p}_${v}`);return m.jsxs(m.Fragment,{children:[t!==void 0&&g("with_stats",l),t===void 0&&g("without_stats",c)]})},Ume=e=>xg(e)==="String"?Qq(e):e,ND=([e])=>e,AD=([,e])=>e,nm=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...a})=>{const[s,l]=H.useState({}),[c,f]=H.useState(1),[h,p]=H.useState(50),g=(R,j)=>{const z=Og(R),N=s.field?Gq(Mt(s.field===Object.keys(j)[0]?ND:AD,Ume),z):z;return!s.dir||s.dir==="ASC"?N:y1(N)},v=R=>{const j=R[c-1];if(c<R.length)return j;const z=R[0].length;return[...j,...LO(z-j.length,N=>[`hidden_${N}`,0])]},y=R=>m.jsx(WO,{currentPage:c,pagesCount:R,setCurrentPage:f}),x=(R,j,z)=>{const N=g(R,j),V=N.map(ND),W=z&&Og({...rA(V,V.map(()=>0)),...z});if(N.length<=h)return{currentPageStats:hf(N),currentPageHighlightedStats:W&&hf(W)};const ne=Td(h,N),q=W&&Td(h,W);return{currentPageStats:hf(v(ne)),currentPageHighlightedStats:q&&hf(v(q)),pagination:y(ne.length),max:kue(Math.max(...N.map(AD)))}},{currentPageStats:b,currentPageHighlightedStats:w,pagination:S,max:C}=x(e,r,t&&Object.keys(t).length>0?t:void 0),T=Object.keys(b),P=()=>m.jsxs(m.Fragment,{children:[n,m.jsx("div",{className:"float-end",children:m.jsx(_h,{isButton:!1,right:!0,items:r,order:s,onChange:(R,j)=>{l({field:R,dir:j}),f(1)}})}),o&&Object.keys(e).length>50&&m.jsx("div",{className:"float-end",children:m.jsx(Rme,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:R=>{p(R),f(1)}})}),i&&m.jsx("div",{className:"float-end",children:i(S?T:void 0)})]});return m.jsx(e5,{title:P,footer:S,children:m.jsx(Bme,{stats:b,highlightedStats:w,max:C,...a})})},zme=()=>{const e=ao(),{search:t}=gn(),{filtering:n,domain:r}=H.useMemo(Mt(()=>hl(t),({startDate:o,endDate:a,orphanVisitsType:s,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||a!=null?Z6(o,a):void 0,visitsFilter:{orphanVisitsType:s,excludeBots:Ho(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:a,visitsFilter:s}=tA(n,o),{excludeBots:l,orphanVisitsType:c}=s,f={startDate:(a==null?void 0:a.startDate)&&Ka(a.startDate)||"",endDate:(a==null?void 0:a.endDate)&&Ka(a.endDate)||"",excludeBots:l===void 0?void 0:tI(l),orphanVisitsType:c,domain:r},h=bh(f),p=Yn(h)?"":`?${h}`;e(p,{replace:!0,relative:"route"})}]};function l5(e,t){const n=H.useRef(t);H.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 Hme=1;function Vme(e){return Object.freeze({__version:Hme,map:e})}function Wme(e,t){return Object.freeze({...e,...t})}const c5=H.createContext(null),u5=c5.Provider;function f5(){const e=H.useContext(c5);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Yme(e){function t(n,r){const{instance:i,context:o}=e(n).current;return H.useImperativeHandle(r,()=>i),n.children==null?null:Y.createElement(u5,{value:o},n.children)}return H.forwardRef(t)}function qme(e){function t(n,r){const[i,o]=H.useState(!1),{instance:a}=e(n,o).current;H.useImperativeHandle(r,()=>a),H.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?au.createPortal(n.children,s):null}return H.forwardRef(t)}function Gme(e){function t(n,r){const{instance:i}=e(n).current;return H.useImperativeHandle(r,()=>i),null}return H.forwardRef(t)}function d5(e,t){const n=H.useRef();H.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 tC(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Kme(e,t){return function(r,i){const o=f5(),a=e(tC(r,o),o);return l5(o.map,r.attribution),d5(a.current,r.eventHandlers),t(a.current,o,r,i),a}}var Mx={exports:{}};/* @preserve
|
||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/(function(e,t){(function(n,r){r(t)})(Wl,function(n){var r="1.9.4";function i(u){var d,_,O,k;for(_=1,O=arguments.length;_<O;_++){k=arguments[_];for(d in k)u[d]=k[d]}return u}var o=Object.create||function(){function u(){}return function(d){return u.prototype=d,new u}}();function a(u,d){var _=Array.prototype.slice;if(u.bind)return u.bind.apply(u,_.call(arguments,1));var O=_.call(arguments,2);return function(){return u.apply(d,O.length?O.concat(_.call(arguments)):arguments)}}var s=0;function l(u){return"_leaflet_id"in u||(u._leaflet_id=++s),u._leaflet_id}function c(u,d,_){var O,k,$,te;return te=function(){O=!1,k&&($.apply(_,k),k=!1)},$=function(){O?k=arguments:(u.apply(_,arguments),setTimeout(te,d),O=!0)},$}function f(u,d,_){var O=d[1],k=d[0],$=O-k;return u===O&&_?u:((u-k)%$+$)%$+k}function h(){return!1}function p(u,d){if(d===!1)return u;var _=Math.pow(10,d===void 0?6:d);return Math.round(u*_)/_}function g(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function v(u){return g(u).split(/\s+/)}function y(u,d){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var _ in d)u.options[_]=d[_];return u.options}function x(u,d,_){var O=[];for(var k in u)O.push(encodeURIComponent(_?k.toUpperCase():k)+"="+encodeURIComponent(u[k]));return(!d||d.indexOf("?")===-1?"?":"&")+O.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function w(u,d){return u.replace(b,function(_,O){var k=d[O];if(k===void 0)throw new Error("No value provided for variable "+_);return typeof k=="function"&&(k=k(d)),k})}var S=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function C(u,d){for(var _=0;_<u.length;_++)if(u[_]===d)return _;return-1}var T="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function P(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var R=0;function j(u){var d=+new Date,_=Math.max(0,16-(d-R));return R=d+_,window.setTimeout(u,_)}var z=window.requestAnimationFrame||P("RequestAnimationFrame")||j,N=window.cancelAnimationFrame||P("CancelAnimationFrame")||P("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function V(u,d,_){if(_&&z===j)u.call(d);else return z.call(window,a(u,d))}function W(u){u&&N.call(window,u)}var ne={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:l,throttle:c,wrapNum:f,falseFn:h,formatNum:p,trim:g,splitWords:v,setOptions:y,getParamString:x,template:w,isArray:S,indexOf:C,emptyImageUrl:T,requestFn:z,cancelFn:N,requestAnimFrame:V,cancelAnimFrame:W};function q(){}q.extend=function(u){var d=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},_=d.__super__=this.prototype,O=o(_);O.constructor=d,d.prototype=O;for(var k in this)Object.prototype.hasOwnProperty.call(this,k)&&k!=="prototype"&&k!=="__super__"&&(d[k]=this[k]);return u.statics&&i(d,u.statics),u.includes&&(J(u.includes),i.apply(null,[O].concat(u.includes))),i(O,u),delete O.statics,delete O.includes,O.options&&(O.options=_.options?o(_.options):{},i(O.options,u.options)),O._initHooks=[],O.callInitHooks=function(){if(!this._initHooksCalled){_.callInitHooks&&_.callInitHooks.call(this),this._initHooksCalled=!0;for(var $=0,te=O._initHooks.length;$<te;$++)O._initHooks[$].call(this)}},d},q.include=function(u){var d=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=d,this.mergeOptions(u.options)),this},q.mergeOptions=function(u){return i(this.prototype.options,u),this},q.addInitHook=function(u){var d=Array.prototype.slice.call(arguments,1),_=typeof u=="function"?u:function(){this[u].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(_),this};function J(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=S(u)?u:[u];for(var d=0;d<u.length;d++)u[d]===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 oe={on:function(u,d,_){if(typeof u=="object")for(var O in u)this._on(O,u[O],d);else{u=v(u);for(var k=0,$=u.length;k<$;k++)this._on(u[k],d,_)}return this},off:function(u,d,_){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var O in u)this._off(O,u[O],d);else{u=v(u);for(var k=arguments.length===1,$=0,te=u.length;$<te;$++)k?this._off(u[$]):this._off(u[$],d,_)}return this},_on:function(u,d,_,O){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(u,d,_)===!1){_===this&&(_=void 0);var k={fn:d,ctx:_};O&&(k.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(k)}},_off:function(u,d,_){var O,k,$;if(this._events&&(O=this._events[u],!!O)){if(arguments.length===1){if(this._firingCount)for(k=0,$=O.length;k<$;k++)O[k].fn=h;delete this._events[u];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var te=this._listens(u,d,_);if(te!==!1){var fe=O[te];this._firingCount&&(fe.fn=h,this._events[u]=O=O.slice()),O.splice(te,1)}}},fire:function(u,d,_){if(!this.listens(u,_))return this;var O=i({},d,{type:u,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var k=this._events[u];if(k){this._firingCount=this._firingCount+1||1;for(var $=0,te=k.length;$<te;$++){var fe=k[$],he=fe.fn;fe.once&&this.off(u,he,fe.ctx),he.call(fe.ctx||this,O)}this._firingCount--}}return _&&this._propagateEvent(O),this},listens:function(u,d,_,O){typeof u!="string"&&console.warn('"string" type argument expected');var k=d;typeof d!="function"&&(O=!!d,k=void 0,_=void 0);var $=this._events&&this._events[u];if($&&$.length&&this._listens(u,k,_)!==!1)return!0;if(O){for(var te in this._eventParents)if(this._eventParents[te].listens(u,d,_,O))return!0}return!1},_listens:function(u,d,_){if(!this._events)return!1;var O=this._events[u]||[];if(!d)return!!O.length;_===this&&(_=void 0);for(var k=0,$=O.length;k<$;k++)if(O[k].fn===d&&O[k].ctx===_)return k;return!1},once:function(u,d,_){if(typeof u=="object")for(var O in u)this._on(O,u[O],d,!0);else{u=v(u);for(var k=0,$=u.length;k<$;k++)this._on(u[k],d,_,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[l(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[l(u)],this},_propagateEvent:function(u){for(var d in this._eventParents)this._eventParents[d].fire(u.type,i({layer:u.target,propagatedFrom:u.target},u),!0)}};oe.addEventListener=oe.on,oe.removeEventListener=oe.clearAllEventListeners=oe.off,oe.addOneTimeEventListener=oe.once,oe.fireEvent=oe.fire,oe.hasEventListeners=oe.listens;var le=q.extend(oe);function G(u,d,_){this.x=_?Math.round(u):u,this.y=_?Math.round(d):d}var F=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(u){return this.clone()._add(A(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(A(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new G(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new G(this.x/u.x,this.y/u.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=F(this.x),this.y=F(this.y),this},distanceTo:function(u){u=A(u);var d=u.x-this.x,_=u.y-this.y;return Math.sqrt(d*d+_*_)},equals:function(u){return u=A(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=A(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function A(u,d,_){return u instanceof G?u:S(u)?new G(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new G(u.x,u.y):new G(u,d,_)}function B(u,d){if(u)for(var _=d?[u,d]:u,O=0,k=_.length;O<k;O++)this.extend(_[O])}B.prototype={extend:function(u){var d,_;if(!u)return this;if(u instanceof G||typeof u[0]=="number"||"x"in u)d=_=A(u);else if(u=re(u),d=u.min,_=u.max,!d||!_)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=_.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(_.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(_.y,this.max.y)),this},getCenter:function(u){return A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return A(this.min.x,this.max.y)},getTopRight:function(){return A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(u){var d,_;return typeof u[0]=="number"||u instanceof G?u=A(u):u=re(u),u instanceof B?(d=u.min,_=u.max):d=_=u,d.x>=this.min.x&&_.x<=this.max.x&&d.y>=this.min.y&&_.y<=this.max.y},intersects:function(u){u=re(u);var d=this.min,_=this.max,O=u.min,k=u.max,$=k.x>=d.x&&O.x<=_.x,te=k.y>=d.y&&O.y<=_.y;return $&&te},overlaps:function(u){u=re(u);var d=this.min,_=this.max,O=u.min,k=u.max,$=k.x>d.x&&O.x<_.x,te=k.y>d.y&&O.y<_.y;return $&&te},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,_=this.max,O=Math.abs(d.x-_.x)*u,k=Math.abs(d.y-_.y)*u;return re(A(d.x-O,d.y-k),A(_.x+O,_.y+k))},equals:function(u){return u?(u=re(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function re(u,d){return!u||u instanceof B?u:new B(u,d)}function U(u,d){if(u)for(var _=d?[u,d]:u,O=0,k=_.length;O<k;O++)this.extend(_[O])}U.prototype={extend:function(u){var d=this._southWest,_=this._northEast,O,k;if(u instanceof ie)O=u,k=u;else if(u instanceof U){if(O=u._southWest,k=u._northEast,!O||!k)return this}else return u?this.extend(ae(u)||Z(u)):this;return!d&&!_?(this._southWest=new ie(O.lat,O.lng),this._northEast=new ie(k.lat,k.lng)):(d.lat=Math.min(O.lat,d.lat),d.lng=Math.min(O.lng,d.lng),_.lat=Math.max(k.lat,_.lat),_.lng=Math.max(k.lng,_.lng)),this},pad:function(u){var d=this._southWest,_=this._northEast,O=Math.abs(d.lat-_.lat)*u,k=Math.abs(d.lng-_.lng)*u;return new U(new ie(d.lat-O,d.lng-k),new ie(_.lat+O,_.lng+k))},getCenter:function(){return new ie((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ie(this.getNorth(),this.getWest())},getSouthEast:function(){return new ie(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(u){typeof u[0]=="number"||u instanceof ie||"lat"in u?u=ae(u):u=Z(u);var d=this._southWest,_=this._northEast,O,k;return u instanceof U?(O=u.getSouthWest(),k=u.getNorthEast()):O=k=u,O.lat>=d.lat&&k.lat<=_.lat&&O.lng>=d.lng&&k.lng<=_.lng},intersects:function(u){u=Z(u);var d=this._southWest,_=this._northEast,O=u.getSouthWest(),k=u.getNorthEast(),$=k.lat>=d.lat&&O.lat<=_.lat,te=k.lng>=d.lng&&O.lng<=_.lng;return $&&te},overlaps:function(u){u=Z(u);var d=this._southWest,_=this._northEast,O=u.getSouthWest(),k=u.getNorthEast(),$=k.lat>d.lat&&O.lat<_.lat,te=k.lng>d.lng&&O.lng<_.lng;return $&&te},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=Z(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Z(u,d){return u instanceof U?u:new U(u,d)}function ie(u,d,_){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,_!==void 0&&(this.alt=+_)}ie.prototype={equals:function(u,d){if(!u)return!1;u=ae(u);var _=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return _<=(d===void 0?1e-9:d)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return E.distance(this,ae(u))},wrap:function(){return E.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,_=d/Math.cos(Math.PI/180*this.lat);return Z([this.lat-d,this.lng-_],[this.lat+d,this.lng+_])},clone:function(){return new ie(this.lat,this.lng,this.alt)}};function ae(u,d,_){return u instanceof ie?u:S(u)&&typeof u[0]!="object"?u.length===3?new ie(u[0],u[1],u[2]):u.length===2?new ie(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new ie(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new ie(u,d,_)}var pe={latLngToPoint:function(u,d){var _=this.projection.project(u),O=this.scale(d);return this.transformation._transform(_,O)},pointToLatLng:function(u,d){var _=this.scale(d),O=this.transformation.untransform(u,_);return this.projection.unproject(O)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var d=this.projection.bounds,_=this.scale(u),O=this.transformation.transform(d.min,_),k=this.transformation.transform(d.max,_);return new B(O,k)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,_=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,O=u.alt;return new ie(_,d,O)},wrapLatLngBounds:function(u){var d=u.getCenter(),_=this.wrapLatLng(d),O=d.lat-_.lat,k=d.lng-_.lng;if(O===0&&k===0)return u;var $=u.getSouthWest(),te=u.getNorthEast(),fe=new ie($.lat-O,$.lng-k),he=new ie(te.lat-O,te.lng-k);return new U(fe,he)}},E=i({},pe,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var _=Math.PI/180,O=u.lat*_,k=d.lat*_,$=Math.sin((d.lat-u.lat)*_/2),te=Math.sin((d.lng-u.lng)*_/2),fe=$*$+Math.cos(O)*Math.cos(k)*te*te,he=2*Math.atan2(Math.sqrt(fe),Math.sqrt(1-fe));return this.R*he}}),M=6378137,I={R:M,MAX_LATITUDE:85.0511287798,project:function(u){var d=Math.PI/180,_=this.MAX_LATITUDE,O=Math.max(Math.min(_,u.lat),-_),k=Math.sin(O*d);return new G(this.R*u.lng*d,this.R*Math.log((1+k)/(1-k))/2)},unproject:function(u){var d=180/Math.PI;return new ie((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*d,u.x*d/this.R)},bounds:function(){var u=M*Math.PI;return new B([-u,-u],[u,u])}()};function X(u,d,_,O){if(S(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=d,this._c=_,this._d=O}X.prototype={transform:function(u,d){return this._transform(u.clone(),d)},_transform:function(u,d){return d=d||1,u.x=d*(this._a*u.x+this._b),u.y=d*(this._c*u.y+this._d),u},untransform:function(u,d){return d=d||1,new G((u.x/d-this._b)/this._a,(u.y/d-this._d)/this._c)}};function Q(u,d,_,O){return new X(u,d,_,O)}var se=i({},E,{code:"EPSG:3857",projection:I,transformation:function(){var u=.5/(Math.PI*I.R);return Q(u,.5,-u,.5)}()}),ge=i({},se,{code:"EPSG:900913"});function Le(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function ue(u,d){var _="",O,k,$,te,fe,he;for(O=0,$=u.length;O<$;O++){for(fe=u[O],k=0,te=fe.length;k<te;k++)he=fe[k],_+=(k?"L":"M")+he.x+" "+he.y;_+=d?He.svg?"z":"x":""}return _||"M0 0"}var ve=document.documentElement.style,_e="ActiveXObject"in window,Ee=_e&&!document.addEventListener,Re="msLaunchUri"in navigator&&!("documentMode"in document),Me=$n("webkit"),De=$n("android"),ce=$n("android 2")||$n("android 3"),de=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),be=De&&$n("Google")&&de<537&&!("AudioNode"in window),ye=!!window.opera,Oe=!Re&&$n("chrome"),ke=$n("gecko")&&!Me&&!ye&&!_e,Ne=!Oe&&$n("safari"),Qe=$n("phantom"),et="OTransition"in ve,qe=navigator.platform.indexOf("Win")===0,Gt=_e&&"transition"in ve,zt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ce,Sn="MozPerspective"in ve,or=!window.L_DISABLE_3D&&(Gt||zt||Sn)&&!et&&!Qe,Ni=typeof orientation<"u"||$n("mobile"),An=Ni&&Me,bu=Ni&&zt,Ai=!window.PointerEvent&&window.MSPointerEvent,Rh=!!(window.PointerEvent||Ai),jh="ontouchstart"in window||!!window.TouchEvent,Nh=!window.L_NO_TOUCH&&(jh||Rh),wu=Ni&&ye,os=Ni&&ke,un=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,tn=function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,d),window.removeEventListener("testPassiveEventSupport",h,d)}catch{}return u}(),ar=function(){return!!document.createElement("canvas").getContext}(),In=!!(document.createElementNS&&Le("svg").createSVGRect),Fn=!!In&&function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),vn=!In&&function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),gi=navigator.platform.indexOf("Mac")===0,vi=navigator.platform.indexOf("Linux")===0;function $n(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var He={ie:_e,ielt9:Ee,edge:Re,webkit:Me,android:De,android23:ce,androidStock:be,opera:ye,chrome:Oe,gecko:ke,safari:Ne,phantom:Qe,opera12:et,win:qe,ie3d:Gt,webkit3d:zt,gecko3d:Sn,any3d:or,mobile:Ni,mobileWebkit:An,mobileWebkit3d:bu,msPointer:Ai,pointer:Rh,touch:Nh,touchNative:jh,mobileOpera:wu,mobileGecko:os,retina:un,passiveEvents:tn,canvas:ar,svg:In,vml:vn,inlineSvg:Fn,mac:gi,linux:vi},lC=He.msPointer?"MSPointerDown":"pointerdown",cC=He.msPointer?"MSPointerMove":"pointermove",uC=He.msPointer?"MSPointerUp":"pointerup",fC=He.msPointer?"MSPointerCancel":"pointercancel",Hy={touchstart:lC,touchmove:cC,touchend:uC,touchcancel:fC},dC={touchstart:W5,touchmove:Ah,touchend:Ah,touchcancel:Ah},_l={},hC=!1;function B5(u,d,_){return d==="touchstart"&&V5(),dC[d]?(_=dC[d].bind(this,_),u.addEventListener(Hy[d],_,!1),_):(console.warn("wrong event specified:",d),h)}function U5(u,d,_){if(!Hy[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(Hy[d],_,!1)}function z5(u){_l[u.pointerId]=u}function H5(u){_l[u.pointerId]&&(_l[u.pointerId]=u)}function pC(u){delete _l[u.pointerId]}function V5(){hC||(document.addEventListener(lC,z5,!0),document.addEventListener(cC,H5,!0),document.addEventListener(uC,pC,!0),document.addEventListener(fC,pC,!0),hC=!0)}function Ah(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var _ in _l)d.touches.push(_l[_]);d.changedTouches=[d],u(d)}}function W5(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&Bn(d),Ah(u,d)}function Y5(u){var d={},_,O;for(O in u)_=u[O],d[O]=_&&_.bind?_.bind(u):_;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var q5=200;function G5(u,d){u.addEventListener("dblclick",d);var _=0,O;function k($){if($.detail!==1){O=$.detail;return}if(!($.pointerType==="mouse"||$.sourceCapabilities&&!$.sourceCapabilities.firesTouchEvents)){var te=_C($);if(!(te.some(function(he){return he instanceof HTMLLabelElement&&he.attributes.for})&&!te.some(function(he){return he instanceof HTMLInputElement||he instanceof HTMLSelectElement}))){var fe=Date.now();fe-_<=q5?(O++,O===2&&d(Y5($))):O=1,_=fe}}}return u.addEventListener("click",k),{dblclick:d,simDblclick:k}}function K5(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var Vy=$h(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xu=$h(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),mC=xu==="webkitTransition"||xu==="OTransition"?xu+"End":"transitionend";function gC(u){return typeof u=="string"?document.getElementById(u):u}function Su(u,d){var _=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!_||_==="auto")&&document.defaultView){var O=document.defaultView.getComputedStyle(u,null);_=O?O[d]:null}return _==="auto"?null:_}function mt(u,d,_){var O=document.createElement(u);return O.className=d||"",_&&_.appendChild(O),O}function Ht(u){var d=u.parentNode;d&&d.removeChild(u)}function Ih(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function bl(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function wl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function Wy(u,d){if(u.classList!==void 0)return u.classList.contains(d);var _=Fh(u);return _.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(_)}function Ze(u,d){if(u.classList!==void 0)for(var _=v(d),O=0,k=_.length;O<k;O++)u.classList.add(_[O]);else if(!Wy(u,d)){var $=Fh(u);Yy(u,($?$+" ":"")+d)}}function nn(u,d){u.classList!==void 0?u.classList.remove(d):Yy(u,g((" "+Fh(u)+" ").replace(" "+d+" "," ")))}function Yy(u,d){u.className.baseVal===void 0?u.className=d:u.className.baseVal=d}function Fh(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function Zr(u,d){"opacity"in u.style?u.style.opacity=d:"filter"in u.style&&Z5(u,d)}function Z5(u,d){var _=!1,O="DXImageTransform.Microsoft.Alpha";try{_=u.filters.item(O)}catch{if(d===1)return}d=Math.round(d*100),_?(_.Enabled=d!==100,_.Opacity=d):u.style.filter+=" progid:"+O+"(opacity="+d+")"}function $h(u){for(var d=document.documentElement.style,_=0;_<u.length;_++)if(u[_]in d)return u[_];return!1}function as(u,d,_){var O=d||new G(0,0);u.style[Vy]=(He.ie3d?"translate("+O.x+"px,"+O.y+"px)":"translate3d("+O.x+"px,"+O.y+"px,0)")+(_?" scale("+_+")":"")}function fn(u,d){u._leaflet_pos=d,He.any3d?as(u,d):(u.style.left=d.x+"px",u.style.top=d.y+"px")}function ss(u){return u._leaflet_pos||new G(0,0)}var Ou,Cu,qy;if("onselectstart"in document)Ou=function(){Ge(window,"selectstart",Bn)},Cu=function(){Tt(window,"selectstart",Bn)};else{var Eu=$h(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ou=function(){if(Eu){var u=document.documentElement.style;qy=u[Eu],u[Eu]="none"}},Cu=function(){Eu&&(document.documentElement.style[Eu]=qy,qy=void 0)}}function Gy(){Ge(window,"dragstart",Bn)}function Ky(){Tt(window,"dragstart",Bn)}var Bh,Zy;function Qy(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Uh(),Bh=u,Zy=u.style.outlineStyle,u.style.outlineStyle="none",Ge(window,"keydown",Uh))}function Uh(){Bh&&(Bh.style.outlineStyle=Zy,Bh=void 0,Zy=void 0,Tt(window,"keydown",Uh))}function vC(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Xy(u){var d=u.getBoundingClientRect();return{x:d.width/u.offsetWidth||1,y:d.height/u.offsetHeight||1,boundingClientRect:d}}var Q5={__proto__:null,TRANSFORM:Vy,TRANSITION:xu,TRANSITION_END:mC,get:gC,getStyle:Su,create:mt,remove:Ht,empty:Ih,toFront:bl,toBack:wl,hasClass:Wy,addClass:Ze,removeClass:nn,setClass:Yy,getClass:Fh,setOpacity:Zr,testProp:$h,setTransform:as,setPosition:fn,getPosition:ss,get disableTextSelection(){return Ou},get enableTextSelection(){return Cu},disableImageDrag:Gy,enableImageDrag:Ky,preventOutline:Qy,restoreOutline:Uh,getSizedParentNode:vC,getScale:Xy};function Ge(u,d,_,O){if(d&&typeof d=="object")for(var k in d)e0(u,k,d[k],_);else{d=v(d);for(var $=0,te=d.length;$<te;$++)e0(u,d[$],_,O)}return this}var Ii="_leaflet_events";function Tt(u,d,_,O){if(arguments.length===1)yC(u),delete u[Ii];else if(d&&typeof d=="object")for(var k in d)t0(u,k,d[k],_);else if(d=v(d),arguments.length===2)yC(u,function(fe){return C(d,fe)!==-1});else for(var $=0,te=d.length;$<te;$++)t0(u,d[$],_,O);return this}function yC(u,d){for(var _ in u[Ii]){var O=_.split(/\d/)[0];(!d||d(O))&&t0(u,O,null,null,_)}}var Jy={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function e0(u,d,_,O){var k=d+l(_)+(O?"_"+l(O):"");if(u[Ii]&&u[Ii][k])return this;var $=function(fe){return _.call(O||u,fe||window.event)},te=$;!He.touchNative&&He.pointer&&d.indexOf("touch")===0?$=B5(u,d,$):He.touch&&d==="dblclick"?$=G5(u,$):"addEventListener"in u?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?u.addEventListener(Jy[d]||d,$,He.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?($=function(fe){fe=fe||window.event,r0(u,fe)&&te(fe)},u.addEventListener(Jy[d],$,!1)):u.addEventListener(d,te,!1):u.attachEvent("on"+d,$),u[Ii]=u[Ii]||{},u[Ii][k]=$}function t0(u,d,_,O,k){k=k||d+l(_)+(O?"_"+l(O):"");var $=u[Ii]&&u[Ii][k];if(!$)return this;!He.touchNative&&He.pointer&&d.indexOf("touch")===0?U5(u,d,$):He.touch&&d==="dblclick"?K5(u,$):"removeEventListener"in u?u.removeEventListener(Jy[d]||d,$,!1):u.detachEvent("on"+d,$),u[Ii][k]=null}function ls(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function n0(u){return e0(u,"wheel",ls),this}function Tu(u){return Ge(u,"mousedown touchstart dblclick contextmenu",ls),u._leaflet_disable_click=!0,this}function Bn(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function cs(u){return Bn(u),ls(u),this}function _C(u){if(u.composedPath)return u.composedPath();for(var d=[],_=u.target;_;)d.push(_),_=_.parentNode;return d}function bC(u,d){if(!d)return new G(u.clientX,u.clientY);var _=Xy(d),O=_.boundingClientRect;return new G((u.clientX-O.left)/_.x-d.clientLeft,(u.clientY-O.top)/_.y-d.clientTop)}var X5=He.linux&&He.chrome?window.devicePixelRatio:He.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function wC(u){return He.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/X5:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function r0(u,d){var _=d.relatedTarget;if(!_)return!0;try{for(;_&&_!==u;)_=_.parentNode}catch{return!1}return _!==u}var J5={__proto__:null,on:Ge,off:Tt,stopPropagation:ls,disableScrollPropagation:n0,disableClickPropagation:Tu,preventDefault:Bn,stop:cs,getPropagationPath:_C,getMousePosition:bC,getWheelDelta:wC,isExternalTarget:r0,addListener:Ge,removeListener:Tt},xC=le.extend({run:function(u,d,_,O){this.stop(),this._el=u,this._inProgress=!0,this._duration=_||.25,this._easeOutPower=1/Math.max(O||.5,.2),this._startPos=ss(u),this._offset=d.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=V(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,_=this._duration*1e3;d<_?this._runFrame(this._easeOut(d/_),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var _=this._startPos.add(this._offset.multiplyBy(u));d&&_._round(),fn(this._el,_),this.fire("step")},_complete:function(){W(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),st=le.extend({options:{crs:se,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,d){d=y(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(ae(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=xu&&He.any3d&&!He.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ge(this._proxy,mC,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,_){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(ae(u),d,this.options.maxBounds),_=_||{},this._stop(),this._loaded&&!_.reset&&_!==!0){_.animate!==void 0&&(_.zoom=i({animate:_.animate},_.zoom),_.pan=i({animate:_.animate,duration:_.duration},_.pan));var O=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,_.zoom):this._tryAnimatedPan(u,_.pan);if(O)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,_.pan&&_.pan.noMoveStart),this},setZoom:function(u,d){return this._loaded?this.setView(this.getCenter(),u,{zoom:d}):(this._zoom=u,this)},zoomIn:function(u,d){return u=u||(He.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(He.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,_){var O=this.getZoomScale(d),k=this.getSize().divideBy(2),$=u instanceof G?u:this.latLngToContainerPoint(u),te=$.subtract(k).multiplyBy(1-1/O),fe=this.containerPointToLatLng(k.add(te));return this.setView(fe,d,{zoom:_})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():Z(u);var _=A(d.paddingTopLeft||d.padding||[0,0]),O=A(d.paddingBottomRight||d.padding||[0,0]),k=this.getBoundsZoom(u,!1,_.add(O));if(k=typeof d.maxZoom=="number"?Math.min(d.maxZoom,k):k,k===1/0)return{center:u.getCenter(),zoom:k};var $=O.subtract(_).divideBy(2),te=this.project(u.getSouthWest(),k),fe=this.project(u.getNorthEast(),k),he=this.unproject(te.add(fe).divideBy(2).add($),k);return{center:he,zoom:k}},fitBounds:function(u,d){if(u=Z(u),!u.isValid())throw new Error("Bounds are not valid.");var _=this._getBoundsCenterZoom(u,d);return this.setView(_.center,_.zoom,d)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,d){return this.setView(u,this._zoom,{pan:d})},panBy:function(u,d){if(u=A(u).round(),d=d||{},!u.x&&!u.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new xC,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Ze(this._mapPane,"leaflet-pan-anim");var _=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,_,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,_){if(_=_||{},_.animate===!1||!He.any3d)return this.setView(u,d,_);this._stop();var O=this.project(this.getCenter()),k=this.project(u),$=this.getSize(),te=this._zoom;u=ae(u),d=d===void 0?te:d;var fe=Math.max($.x,$.y),he=fe*this.getZoomScale(te,d),xe=k.distanceTo(O)||1,Ae=1.42,We=Ae*Ae;function Xe(dn){var Jh=dn?-1:1,U8=dn?he:fe,z8=he*he-fe*fe+Jh*We*We*xe*xe,H8=2*U8*We*xe,p0=z8/H8,nE=Math.sqrt(p0*p0+1)-p0,V8=nE<1e-9?-18:Math.log(nE);return V8}function sr(dn){return(Math.exp(dn)-Math.exp(-dn))/2}function On(dn){return(Math.exp(dn)+Math.exp(-dn))/2}function Xr(dn){return sr(dn)/On(dn)}var vr=Xe(0);function Tl(dn){return fe*(On(vr)/On(vr+Ae*dn))}function I8(dn){return fe*(On(vr)*Xr(vr+Ae*dn)-sr(vr))/We}function F8(dn){return 1-Math.pow(1-dn,1.5)}var $8=Date.now(),eE=(Xe(1)-vr)/Ae,B8=_.duration?1e3*_.duration:1e3*eE*.8;function tE(){var dn=(Date.now()-$8)/B8,Jh=F8(dn)*eE;dn<=1?(this._flyToFrame=V(tE,this),this._move(this.unproject(O.add(k.subtract(O).multiplyBy(I8(Jh)/xe)),te),this.getScaleZoom(fe/Tl(Jh),te),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,_.noMoveStart),tE.call(this),this},flyToBounds:function(u,d){var _=this._getBoundsCenterZoom(u,d);return this.flyTo(_.center,_.zoom,d)},setMaxBounds:function(u){return u=Z(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var d=this.options.minZoom;return this.options.minZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var d=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var _=this.getCenter(),O=this._limitCenter(_,this._zoom,Z(u));return _.equals(O)||this.panTo(O,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var _=A(d.paddingTopLeft||d.padding||[0,0]),O=A(d.paddingBottomRight||d.padding||[0,0]),k=this.project(this.getCenter()),$=this.project(u),te=this.getPixelBounds(),fe=re([te.min.add(_),te.max.subtract(O)]),he=fe.getSize();if(!fe.contains($)){this._enforcingBounds=!0;var xe=$.subtract(fe.getCenter()),Ae=fe.extend($).getSize().subtract(he);k.x+=xe.x<0?-Ae.x:Ae.x,k.y+=xe.y<0?-Ae.y:Ae.y,this.panTo(this.unproject(k),d),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var _=this.getSize(),O=d.divideBy(2).round(),k=_.divideBy(2).round(),$=O.subtract(k);return!$.x&&!$.y?this:(u.animate&&u.pan?this.panBy($):(u.pan&&this._rawPanBy($),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:_}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=a(this._handleGeolocationResponse,this),_=a(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,_,u):navigator.geolocation.getCurrentPosition(d,_,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var d=u.code,_=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+_+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,_=u.coords.longitude,O=new ie(d,_),k=O.toBounds(u.coords.accuracy*2),$=this._locateOptions;if($.setView){var te=this.getBoundsZoom(k);this.setView(O,$.maxZoom?Math.min(te,$.maxZoom):te)}var fe={latlng:O,bounds:k,timestamp:u.timestamp};for(var he in u.coords)typeof u.coords[he]=="number"&&(fe[he]=u.coords[he]);this.fire("locationfound",fe)}},addHandler:function(u,d){if(!d)return this;var _=this[u]=new d(this);return this._handlers.push(_),this.options[u]&&_.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(),Ht(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Ht(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var _="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),O=mt("div",_,d||this._mapPane);return u&&(this._panes[u]=O),O},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),_=this.unproject(u.getTopRight());return new U(d,_)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,d,_){u=Z(u),_=A(_||[0,0]);var O=this.getZoom()||0,k=this.getMinZoom(),$=this.getMaxZoom(),te=u.getNorthWest(),fe=u.getSouthEast(),he=this.getSize().subtract(_),xe=re(this.project(fe,O),this.project(te,O)).getSize(),Ae=He.any3d?this.options.zoomSnap:1,We=he.x/xe.x,Xe=he.y/xe.y,sr=d?Math.max(We,Xe):Math.min(We,Xe);return O=this.getScaleZoom(sr,O),Ae&&(O=Math.round(O/(Ae/100))*(Ae/100),O=d?Math.ceil(O/Ae)*Ae:Math.floor(O/Ae)*Ae),Math.max(k,Math.min($,O))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var _=this._getTopLeftPoint(u,d);return new B(_,_.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,d){var _=this.options.crs;return d=d===void 0?this._zoom:d,_.scale(u)/_.scale(d)},getScaleZoom:function(u,d){var _=this.options.crs;d=d===void 0?this._zoom:d;var O=_.zoom(u*_.scale(d));return isNaN(O)?1/0:O},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(ae(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(A(u),d)},layerPointToLatLng:function(u){var d=A(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(ae(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(Z(u))},distance:function(u,d){return this.options.crs.distance(ae(u),ae(d))},containerPointToLayerPoint:function(u){return A(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return A(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(A(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(u)))},mouseEventToContainerPoint:function(u){return bC(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var d=this._container=gC(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ge(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&He.any3d,Ze(u,"leaflet-container"+(He.touch?" leaflet-touch":"")+(He.retina?" leaflet-retina":"")+(He.ielt9?" leaflet-oldie":"")+(He.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Su(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),fn(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ze(u.markerPane,"leaflet-zoom-hide"),Ze(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,_){fn(this._mapPane,new G(0,0));var O=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var k=this._zoom!==d;this._moveStart(k,_)._move(u,d)._moveEnd(k),this.fire("viewreset"),O&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,_,O){d===void 0&&(d=this._zoom);var k=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),O?_&&_.pinch&&this.fire("zoom",_):((k||_&&_.pinch)&&this.fire("zoom",_),this.fire("move",_)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){fn(this._mapPane,this._getMapPanePos().subtract(u))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(u){this._targets={},this._targets[l(this._container)]=this;var d=u?Tt:Ge;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),He.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,d){for(var _=[],O,k=d==="mouseout"||d==="mouseover",$=u.target||u.srcElement,te=!1;$;){if(O=this._targets[l($)],O&&(d==="click"||d==="preclick")&&this._draggableMoved(O)){te=!0;break}if(O&&O.listens(d,!0)&&(k&&!r0($,u)||(_.push(O),k))||$===this._container)break;$=$.parentNode}return!_.length&&!te&&!k&&this.listens(d,!0)&&(_=[this]),_},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var _=u.type;_==="mousedown"&&Qy(d),this._fireDOMEvent(u,_)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,_){if(u.type==="click"){var O=i({},u);O.type="preclick",this._fireDOMEvent(O,O.type,_)}var k=this._findEventTargets(u,d);if(_){for(var $=[],te=0;te<_.length;te++)_[te].listens(d,!0)&&$.push(_[te]);k=$.concat(k)}if(k.length){d==="contextmenu"&&Bn(u);var fe=k[0],he={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var xe=fe.getLatLng&&(!fe._radius||fe._radius<=10);he.containerPoint=xe?this.latLngToContainerPoint(fe.getLatLng()):this.mouseEventToContainerPoint(u),he.layerPoint=this.containerPointToLayerPoint(he.containerPoint),he.latlng=xe?fe.getLatLng():this.layerPointToLatLng(he.layerPoint)}for(te=0;te<k.length;te++)if(k[te].fire(d,he,!0),he.originalEvent._stopped||k[te].options.bubblingMouseEvents===!1&&C(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,d=this._handlers.length;u<d;u++)this._handlers[u].disable()},whenReady:function(u,d){return this._loaded?u.call(d||this,{target:this}):this.on("load",u,d),this},_getMapPanePos:function(){return ss(this._mapPane)||new G(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,d){var _=u&&d!==void 0?this._getNewPixelOrigin(u,d):this.getPixelOrigin();return _.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,d){var _=this.getSize()._divideBy(2);return this.project(u,d)._subtract(_)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,d,_){var O=this._getNewPixelOrigin(_,d);return this.project(u,d)._subtract(O)},_latLngBoundsToNewLayerBounds:function(u,d,_){var O=this._getNewPixelOrigin(_,d);return re([this.project(u.getSouthWest(),d)._subtract(O),this.project(u.getNorthWest(),d)._subtract(O),this.project(u.getSouthEast(),d)._subtract(O),this.project(u.getNorthEast(),d)._subtract(O)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,d,_){if(!_)return u;var O=this.project(u,d),k=this.getSize().divideBy(2),$=new B(O.subtract(k),O.add(k)),te=this._getBoundsOffset($,_,d);return Math.abs(te.x)<=1&&Math.abs(te.y)<=1?u:this.unproject(O.add(te),d)},_limitOffset:function(u,d){if(!d)return u;var _=this.getPixelBounds(),O=new B(_.min.add(u),_.max.add(u));return u.add(this._getBoundsOffset(O,d))},_getBoundsOffset:function(u,d,_){var O=re(this.project(d.getNorthEast(),_),this.project(d.getSouthWest(),_)),k=O.min.subtract(u.min),$=O.max.subtract(u.max),te=this._rebound(k.x,-$.x),fe=this._rebound(k.y,-$.y);return new G(te,fe)},_rebound:function(u,d){return u+d>0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),_=this.getMaxZoom(),O=He.any3d?this.options.zoomSnap:1;return O&&(u=Math.round(u/O)*O),Math.max(d,Math.min(_,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){nn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var _=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(_)?!1:(this.panBy(_,d),!0)},_createAnimProxy:function(){var u=this._proxy=mt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var _=Vy,O=this._proxy.style[_];as(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),O===this._proxy.style[_]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ht(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();as(this._proxy,this.project(u,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,d,_){if(this._animatingZoom)return!0;if(_=_||{},!this._zoomAnimated||_.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var O=this.getZoomScale(d),k=this._getCenterOffset(u)._divideBy(1-1/O);return _.animate!==!0&&!this.getSize().contains(k)?!1:(V(function(){this._moveStart(!0,_.noMoveStart||!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,_,O){this._mapPane&&(_&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,Ze(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:O}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&nn(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 e8(u,d){return new st(u,d)}var yi=q.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),_=this.getPosition(),O=u._controlCorners[_];return Ze(d,"leaflet-control"),_.indexOf("bottom")!==-1?O.insertBefore(d,O.firstChild):O.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ht(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),Pu=function(u){return new yi(u)};st.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",_=this._controlContainer=mt("div",d+"control-container",this._container);function O(k,$){var te=d+k+" "+d+$;u[k+$]=mt("div",te,_)}O("top","left"),O("top","right"),O("bottom","left"),O("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Ht(this._controlCorners[u]);Ht(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var SC=yi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,_,O){return _<O?-1:O<_?1:0}},initialize:function(u,d,_){y(this,_),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var O in u)this._addLayer(u[O],O);for(O in d)this._addLayer(d[O],O,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return yi.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,d){return this._addLayer(u,d),this._map?this._update():this},addOverlay:function(u,d){return this._addLayer(u,d,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var d=this._getLayer(l(u));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){Ze(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(Ze(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):nn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return nn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",d=this._container=mt("div",u),_=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Tu(d),n0(d);var O=this._section=mt("section",u+"-list");_&&(this._map.on("click",this.collapse,this),Ge(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var k=this._layersLink=mt("a",u+"-toggle",d);k.href="#",k.title="Layers",k.setAttribute("role","button"),Ge(k,{keydown:function($){$.keyCode===13&&this._expandSafely()},click:function($){Bn($),this._expandSafely()}},this),_||this.expand(),this._baseLayersList=mt("div",u+"-base",O),this._separator=mt("div",u+"-separator",O),this._overlaysList=mt("div",u+"-overlays",O),d.appendChild(O)},_getLayer:function(u){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&l(this._layers[d].layer)===u)return this._layers[d]},_addLayer:function(u,d,_){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:d,overlay:_}),this.options.sortLayers&&this._layers.sort(a(function(O,k){return this.options.sortFunction(O.layer,k.layer,O.name,k.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ih(this._baseLayersList),Ih(this._overlaysList),this._layerControlInputs=[];var u,d,_,O,k=0;for(_=0;_<this._layers.length;_++)O=this._layers[_],this._addItem(O),d=d||O.overlay,u=u||!O.overlay,k+=O.overlay?0:1;return this.options.hideSingleBase&&(u=u&&k>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(l(u.target)),_=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;_&&this._map.fire(_,d)},_createRadioElement:function(u,d){var _='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(d?' checked="checked"':"")+"/>",O=document.createElement("div");return O.innerHTML=_,O.firstChild},_addItem:function(u){var d=document.createElement("label"),_=this._map.hasLayer(u.layer),O;u.overlay?(O=document.createElement("input"),O.type="checkbox",O.className="leaflet-control-layers-selector",O.defaultChecked=_):O=this._createRadioElement("leaflet-base-layers_"+l(this),_),this._layerControlInputs.push(O),O.layerId=l(u.layer),Ge(O,"click",this._onInputClick,this);var k=document.createElement("span");k.innerHTML=" "+u.name;var $=document.createElement("span");d.appendChild($),$.appendChild(O),$.appendChild(k);var te=u.overlay?this._overlaysList:this._baseLayersList;return te.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,d,_,O=[],k=[];this._handlingClick=!0;for(var $=u.length-1;$>=0;$--)d=u[$],_=this._getLayer(d.layerId).layer,d.checked?O.push(_):d.checked||k.push(_);for($=0;$<k.length;$++)this._map.hasLayer(k[$])&&this._map.removeLayer(k[$]);for($=0;$<O.length;$++)this._map.hasLayer(O[$])||this._map.addLayer(O[$]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,d,_,O=this._map.getZoom(),k=u.length-1;k>=0;k--)d=u[k],_=this._getLayer(d.layerId).layer,d.disabled=_.options.minZoom!==void 0&&O<_.options.minZoom||_.options.maxZoom!==void 0&&O>_.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,Ge(u,"click",Bn),this.expand();var d=this;setTimeout(function(){Tt(u,"click",Bn),d._preventClick=!1})}}),t8=function(u,d,_){return new SC(u,d,_)},i0=yi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",_=mt("div",d+" leaflet-bar"),O=this.options;return this._zoomInButton=this._createButton(O.zoomInText,O.zoomInTitle,d+"-in",_,this._zoomIn),this._zoomOutButton=this._createButton(O.zoomOutText,O.zoomOutTitle,d+"-out",_,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),_},onRemove:function(u){u.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(u){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,d,_,O,k){var $=mt("a",_,O);return $.innerHTML=u,$.href="#",$.title=d,$.setAttribute("role","button"),$.setAttribute("aria-label",d),Tu($),Ge($,"click",cs),Ge($,"click",k,this),Ge($,"click",this._refocusOnMap,this),$},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";nn(this._zoomInButton,d),nn(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Ze(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Ze(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new i0,this.addControl(this.zoomControl))});var n8=function(u){return new i0(u)},OC=yi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",_=mt("div",d),O=this.options;return this._addScales(O,d+"-line",_),u.on(O.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),_},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,_){u.metric&&(this._mScale=mt("div",d,_)),u.imperial&&(this._iScale=mt("div",d,_))},_update:function(){var u=this._map,d=u.getSize().y/2,_=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(_)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),_=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,_,d/u)},_updateImperial:function(u){var d=u*3.2808399,_,O,k;d>5280?(_=d/5280,O=this._getRoundNum(_),this._updateScale(this._iScale,O+" mi",O/_)):(k=this._getRoundNum(d),this._updateScale(this._iScale,k+" ft",k/d))},_updateScale:function(u,d,_){u.style.width=Math.round(this.options.maxWidth*_)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),_=u/d;return _=_>=10?10:_>=5?5:_>=3?3:_>=2?2:1,d*_}}),r8=function(u){return new OC(u)},i8='<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>',o0=yi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(He.inlineSvg?i8+" ":"")+"Leaflet</a>"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=mt("div","leaflet-control-attribution"),Tu(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var d in this._attributions)this._attributions[d]&&u.push(d);var _=[];this.options.prefix&&_.push(this.options.prefix),u.length&&_.push(u.join(", ")),this._container.innerHTML=_.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new o0().addTo(this)});var o8=function(u){return new o0(u)};yi.Layers=SC,yi.Zoom=i0,yi.Scale=OC,yi.Attribution=o0,Pu.layers=t8,Pu.zoom=n8,Pu.scale=r8,Pu.attribution=o8;var Fi=q.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Fi.addTo=function(u,d){return u.addHandler(d,this),this};var a8={Events:oe},CC=He.touch?"touchstart mousedown":"mousedown",Qo=le.extend({options:{clickTolerance:3},initialize:function(u,d,_,O){y(this,O),this._element=u,this._dragStartTarget=d||u,this._preventOutline=_},enable:function(){this._enabled||(Ge(this._dragStartTarget,CC,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Qo._dragging===this&&this.finishDrag(!0),Tt(this._dragStartTarget,CC,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!Wy(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Qo._dragging===this&&this.finishDrag();return}if(!(Qo._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Qo._dragging=this,this._preventOutline&&Qy(this._element),Gy(),Ou(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,_=vC(this._element);this._startPoint=new G(d.clientX,d.clientY),this._startPos=ss(this._element),this._parentScale=Xy(_);var O=u.type==="mousedown";Ge(document,O?"mousemove":"touchmove",this._onMove,this),Ge(document,O?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,_=new G(d.clientX,d.clientY)._subtract(this._startPoint);!_.x&&!_.y||Math.abs(_.x)+Math.abs(_.y)<this.options.clickTolerance||(_.x/=this._parentScale.x,_.y/=this._parentScale.y,Bn(u),this._moved||(this.fire("dragstart"),this._moved=!0,Ze(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Ze(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(_),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),fn(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){nn(document.body,"leaflet-dragging"),this._lastTarget&&(nn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Tt(document,"mousemove touchmove",this._onMove,this),Tt(document,"mouseup touchend touchcancel",this._onUp,this),Ky(),Cu();var d=this._moved&&this._moving;this._moving=!1,Qo._dragging=!1,d&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)})}});function EC(u,d,_){var O,k=[1,4,2,8],$,te,fe,he,xe,Ae,We,Xe;for($=0,Ae=u.length;$<Ae;$++)u[$]._code=us(u[$],d);for(fe=0;fe<4;fe++){for(We=k[fe],O=[],$=0,Ae=u.length,te=Ae-1;$<Ae;te=$++)he=u[$],xe=u[te],he._code&We?xe._code&We||(Xe=zh(xe,he,We,d,_),Xe._code=us(Xe,d),O.push(Xe)):(xe._code&We&&(Xe=zh(xe,he,We,d,_),Xe._code=us(Xe,d),O.push(Xe)),O.push(he));u=O}return u}function TC(u,d){var _,O,k,$,te,fe,he,xe,Ae;if(!u||u.length===0)throw new Error("latlngs not passed");Qr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var We=ae([0,0]),Xe=Z(u),sr=Xe.getNorthWest().distanceTo(Xe.getSouthWest())*Xe.getNorthEast().distanceTo(Xe.getNorthWest());sr<1700&&(We=a0(u));var On=u.length,Xr=[];for(_=0;_<On;_++){var vr=ae(u[_]);Xr.push(d.project(ae([vr.lat-We.lat,vr.lng-We.lng])))}for(fe=he=xe=0,_=0,O=On-1;_<On;O=_++)k=Xr[_],$=Xr[O],te=k.y*$.x-$.y*k.x,he+=(k.x+$.x)*te,xe+=(k.y+$.y)*te,fe+=te*3;fe===0?Ae=Xr[0]:Ae=[he/fe,xe/fe];var Tl=d.unproject(A(Ae));return ae([Tl.lat+We.lat,Tl.lng+We.lng])}function a0(u){for(var d=0,_=0,O=0,k=0;k<u.length;k++){var $=ae(u[k]);d+=$.lat,_+=$.lng,O++}return ae([d/O,_/O])}var s8={__proto__:null,clipPolygon:EC,polygonCenter:TC,centroid:a0};function PC(u,d){if(!d||!u.length)return u.slice();var _=d*d;return u=u8(u,_),u=c8(u,_),u}function kC(u,d,_){return Math.sqrt(ku(u,d,_,!0))}function l8(u,d,_){return ku(u,d,_)}function c8(u,d){var _=u.length,O=typeof Uint8Array!=void 0+""?Uint8Array:Array,k=new O(_);k[0]=k[_-1]=1,s0(u,k,d,0,_-1);var $,te=[];for($=0;$<_;$++)k[$]&&te.push(u[$]);return te}function s0(u,d,_,O,k){var $=0,te,fe,he;for(fe=O+1;fe<=k-1;fe++)he=ku(u[fe],u[O],u[k],!0),he>$&&(te=fe,$=he);$>_&&(d[te]=1,s0(u,d,_,O,te),s0(u,d,_,te,k))}function u8(u,d){for(var _=[u[0]],O=1,k=0,$=u.length;O<$;O++)f8(u[O],u[k])>d&&(_.push(u[O]),k=O);return k<$-1&&_.push(u[$-1]),_}var MC;function DC(u,d,_,O,k){var $=O?MC:us(u,_),te=us(d,_),fe,he,xe;for(MC=te;;){if(!($|te))return[u,d];if($&te)return!1;fe=$||te,he=zh(u,d,fe,_,k),xe=us(he,_),fe===$?(u=he,$=xe):(d=he,te=xe)}}function zh(u,d,_,O,k){var $=d.x-u.x,te=d.y-u.y,fe=O.min,he=O.max,xe,Ae;return _&8?(xe=u.x+$*(he.y-u.y)/te,Ae=he.y):_&4?(xe=u.x+$*(fe.y-u.y)/te,Ae=fe.y):_&2?(xe=he.x,Ae=u.y+te*(he.x-u.x)/$):_&1&&(xe=fe.x,Ae=u.y+te*(fe.x-u.x)/$),new G(xe,Ae,k)}function us(u,d){var _=0;return u.x<d.min.x?_|=1:u.x>d.max.x&&(_|=2),u.y<d.min.y?_|=4:u.y>d.max.y&&(_|=8),_}function f8(u,d){var _=d.x-u.x,O=d.y-u.y;return _*_+O*O}function ku(u,d,_,O){var k=d.x,$=d.y,te=_.x-k,fe=_.y-$,he=te*te+fe*fe,xe;return he>0&&(xe=((u.x-k)*te+(u.y-$)*fe)/he,xe>1?(k=_.x,$=_.y):xe>0&&(k+=te*xe,$+=fe*xe)),te=u.x-k,fe=u.y-$,O?te*te+fe*fe:new G(k,$)}function Qr(u){return!S(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function LC(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Qr(u)}function RC(u,d){var _,O,k,$,te,fe,he,xe;if(!u||u.length===0)throw new Error("latlngs not passed");Qr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ae=ae([0,0]),We=Z(u),Xe=We.getNorthWest().distanceTo(We.getSouthWest())*We.getNorthEast().distanceTo(We.getNorthWest());Xe<1700&&(Ae=a0(u));var sr=u.length,On=[];for(_=0;_<sr;_++){var Xr=ae(u[_]);On.push(d.project(ae([Xr.lat-Ae.lat,Xr.lng-Ae.lng])))}for(_=0,O=0;_<sr-1;_++)O+=On[_].distanceTo(On[_+1])/2;if(O===0)xe=On[0];else for(_=0,$=0;_<sr-1;_++)if(te=On[_],fe=On[_+1],k=te.distanceTo(fe),$+=k,$>O){he=($-O)/k,xe=[fe.x-he*(fe.x-te.x),fe.y-he*(fe.y-te.y)];break}var vr=d.unproject(A(xe));return ae([vr.lat+Ae.lat,vr.lng+Ae.lng])}var d8={__proto__:null,simplify:PC,pointToSegmentDistance:kC,closestPointOnSegment:l8,clipSegment:DC,_getEdgeIntersection:zh,_getBitCode:us,_sqClosestPointOnSegment:ku,isFlat:Qr,_flat:LC,polylineCenter:RC},l0={project:function(u){return new G(u.lng,u.lat)},unproject:function(u){return new ie(u.y,u.x)},bounds:new B([-180,-90],[180,90])},c0={R:6378137,R_MINOR:6356752314245179e-9,bounds:new B([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var d=Math.PI/180,_=this.R,O=u.lat*d,k=this.R_MINOR/_,$=Math.sqrt(1-k*k),te=$*Math.sin(O),fe=Math.tan(Math.PI/4-O/2)/Math.pow((1-te)/(1+te),$/2);return O=-_*Math.log(Math.max(fe,1e-10)),new G(u.lng*d*_,O)},unproject:function(u){for(var d=180/Math.PI,_=this.R,O=this.R_MINOR/_,k=Math.sqrt(1-O*O),$=Math.exp(-u.y/_),te=Math.PI/2-2*Math.atan($),fe=0,he=.1,xe;fe<15&&Math.abs(he)>1e-7;fe++)xe=k*Math.sin(te),xe=Math.pow((1-xe)/(1+xe),k/2),he=Math.PI/2-2*Math.atan($*xe)-te,te+=he;return new ie(te*d,u.x*d/_)}},h8={__proto__:null,LonLat:l0,Mercator:c0,SphericalMercator:I},p8=i({},E,{code:"EPSG:3395",projection:c0,transformation:function(){var u=.5/(Math.PI*c0.R);return Q(u,.5,-u,.5)}()}),jC=i({},E,{code:"EPSG:4326",projection:l0,transformation:Q(1/180,1,-1/180,.5)}),m8=i({},pe,{projection:l0,transformation:Q(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var _=d.lng-u.lng,O=d.lat-u.lat;return Math.sqrt(_*_+O*O)},infinite:!0});pe.Earth=E,pe.EPSG3395=p8,pe.EPSG3857=se,pe.EPSG900913=ge,pe.EPSG4326=jC,pe.Simple=m8;var _i=le.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[l(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[l(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var _=this.getEvents();d.on(_,this),this.once("remove",function(){d.off(_,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});st.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=l(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=l(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return l(u)in this._layers},eachLayer:function(u,d){for(var _ in this._layers)u.call(d,this._layers[_]);return this},_addLayers:function(u){u=u?S(u)?u:[u]:[];for(var d=0,_=u.length;d<_;d++)this.addLayer(u[d])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[l(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var d=l(u);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,d=-1/0,_=this._getZoomSpan();for(var O in this._zoomBoundLayers){var k=this._zoomBoundLayers[O].options;u=k.minZoom===void 0?u:Math.min(u,k.minZoom),d=k.maxZoom===void 0?d:Math.max(d,k.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=u===1/0?void 0:u,_!==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 xl=_i.extend({initialize:function(u,d){y(this,d),this._layers={};var _,O;if(u)for(_=0,O=u.length;_<O;_++)this.addLayer(u[_])},addLayer:function(u){var d=this.getLayerId(u);return this._layers[d]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var d=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(u){var d=typeof u=="number"?u:this.getLayerId(u);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var d=Array.prototype.slice.call(arguments,1),_,O;for(_ in this._layers)O=this._layers[_],O[u]&&O[u].apply(O,d);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,d){for(var _ in this._layers)u.call(d,this._layers[_]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return l(u)}}),g8=function(u,d){return new xl(u,d)},co=xl.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),xl.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),xl.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new U;for(var d in this._layers){var _=this._layers[d];u.extend(_.getBounds?_.getBounds():_.getLatLng())}return u}}),v8=function(u,d){return new co(u,d)},Sl=q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){y(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,d){var _=this._getIconUrl(u);if(!_){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var O=this._createImg(_,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(O,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(O.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),O},_setIconStyles:function(u,d){var _=this.options,O=_[d+"Size"];typeof O=="number"&&(O=[O,O]);var k=A(O),$=A(d==="shadow"&&_.shadowAnchor||_.iconAnchor||k&&k.divideBy(2,!0));u.className="leaflet-marker-"+d+" "+(_.className||""),$&&(u.style.marginLeft=-$.x+"px",u.style.marginTop=-$.y+"px"),k&&(u.style.width=k.x+"px",u.style.height=k.y+"px")},_createImg:function(u,d){return d=d||document.createElement("img"),d.src=u,d},_getIconUrl:function(u){return He.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function y8(u){return new Sl(u)}var Mu=Sl.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(u){return typeof Mu.imagePath!="string"&&(Mu.imagePath=this._detectIconPath()),(this.options.imagePath||Mu.imagePath)+Sl.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var d=function(_,O,k){var $=O.exec(_);return $&&$[k]};return u=d(u,/^url\((['"])?(.+)\1\)$/,2),u&&d(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=mt("div","leaflet-default-icon-path",document.body),d=Su(u,"background-image")||Su(u,"backgroundImage");if(document.body.removeChild(u),d=this._stripUrl(d),d)return d;var _=document.querySelector('link[href$="leaflet.css"]');return _?_.href.substring(0,_.href.length-11-1):""}}),NC=Fi.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new Qo(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Ze(u,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&nn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var d=this._marker,_=d._map,O=this._marker.options.autoPanSpeed,k=this._marker.options.autoPanPadding,$=ss(d._icon),te=_.getPixelBounds(),fe=_.getPixelOrigin(),he=re(te.min._subtract(fe).add(k),te.max._subtract(fe).subtract(k));if(!he.contains($)){var xe=A((Math.max(he.max.x,$.x)-he.max.x)/(te.max.x-he.max.x)-(Math.min(he.min.x,$.x)-he.min.x)/(te.min.x-he.min.x),(Math.max(he.max.y,$.y)-he.max.y)/(te.max.y-he.max.y)-(Math.min(he.min.y,$.y)-he.min.y)/(te.min.y-he.min.y)).multiplyBy(O);_.panBy(xe,{animate:!1}),this._draggable._newPos._add(xe),this._draggable._startPos._add(xe),fn(d._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=V(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(W(this._panRequest),this._panRequest=V(this._adjustPan.bind(this,u)))},_onDrag:function(u){var d=this._marker,_=d._shadow,O=ss(d._icon),k=d._map.layerPointToLatLng(O);_&&fn(_,O),d._latlng=k,u.latlng=k,u.oldLatLng=this._oldLatLng,d.fire("move",u).fire("drag",u)},_onDragEnd:function(u){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Hh=_i.extend({options:{icon:new Mu,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(u,d){y(this,d),this._latlng=ae(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(u){var d=this._latlng;return this._latlng=ae(u),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),_=u.icon.createIcon(this._icon),O=!1;_!==this._icon&&(this._icon&&this._removeIcon(),O=!0,u.title&&(_.title=u.title),_.tagName==="IMG"&&(_.alt=u.alt||"")),Ze(_,d),u.keyboard&&(_.tabIndex="0",_.setAttribute("role","button")),this._icon=_,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ge(_,"focus",this._panOnFocus,this);var k=u.icon.createShadow(this._shadow),$=!1;k!==this._shadow&&(this._removeShadow(),$=!0),k&&(Ze(k,d),k.alt=""),this._shadow=k,u.opacity<1&&this._updateOpacity(),O&&this.getPane().appendChild(this._icon),this._initInteraction(),k&&$&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Tt(this._icon,"focus",this._panOnFocus,this),Ht(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ht(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&fn(this._icon,u),this._shadow&&fn(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(Ze(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),NC)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new NC(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&Zr(this._icon,u),this._shadow&&Zr(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var d=this.options.icon.options,_=d.iconSize?A(d.iconSize):A(0,0),O=d.iconAnchor?A(d.iconAnchor):A(0,0);u.panInside(this._latlng,{paddingTopLeft:O,paddingBottomRight:_.subtract(O)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function _8(u,d){return new Hh(u,d)}var Xo=_i.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(u){this._renderer=u.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(u){return y(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Vh=Xo.extend({options:{fill:!0,radius:10},initialize:function(u,d){y(this,d),this._latlng=ae(u),this._radius=this.options.radius},setLatLng:function(u){var d=this._latlng;return this._latlng=ae(u),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var d=u&&u.radius||this._radius;return Xo.prototype.setStyle.call(this,u),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,d=this._radiusY||u,_=this._clickTolerance(),O=[u+_,d+_];this._pxBounds=new B(this._point.subtract(O),this._point.add(O))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function b8(u,d){return new Vh(u,d)}var u0=Vh.extend({initialize:function(u,d,_){if(typeof d=="number"&&(d=i({},_,{radius:d})),y(this,d),this._latlng=ae(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new U(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:Xo.prototype.setStyle,_project:function(){var u=this._latlng.lng,d=this._latlng.lat,_=this._map,O=_.options.crs;if(O.distance===E.distance){var k=Math.PI/180,$=this._mRadius/E.R/k,te=_.project([d+$,u]),fe=_.project([d-$,u]),he=te.add(fe).divideBy(2),xe=_.unproject(he).lat,Ae=Math.acos((Math.cos($*k)-Math.sin(d*k)*Math.sin(xe*k))/(Math.cos(d*k)*Math.cos(xe*k)))/k;(isNaN(Ae)||Ae===0)&&(Ae=$/Math.cos(Math.PI/180*d)),this._point=he.subtract(_.getPixelOrigin()),this._radius=isNaN(Ae)?0:he.x-_.project([xe,u-Ae]).x,this._radiusY=he.y-te.y}else{var We=O.unproject(O.project(this._latlng).subtract([this._mRadius,0]));this._point=_.latLngToLayerPoint(this._latlng),this._radius=this._point.x-_.latLngToLayerPoint(We).x}this._updateBounds()}});function w8(u,d,_){return new u0(u,d,_)}var uo=Xo.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,d){y(this,d),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var d=1/0,_=null,O=ku,k,$,te=0,fe=this._parts.length;te<fe;te++)for(var he=this._parts[te],xe=1,Ae=he.length;xe<Ae;xe++){k=he[xe-1],$=he[xe];var We=O(u,k,$,!0);We<d&&(d=We,_=O(u,k,$))}return _&&(_.distance=Math.sqrt(d)),_},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return RC(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,d){return d=d||this._defaultShape(),u=ae(u),d.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new U,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return Qr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var d=[],_=Qr(u),O=0,k=u.length;O<k;O++)_?(d[O]=ae(u[O]),this._bounds.extend(d[O])):d[O]=this._convertLatLngs(u[O]);return d},_project:function(){var u=new B;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),d=new G(u,u);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(u,d,_){var O=u[0]instanceof ie,k=u.length,$,te;if(O){for(te=[],$=0;$<k;$++)te[$]=this._map.latLngToLayerPoint(u[$]),_.extend(te[$]);d.push(te)}else for($=0;$<k;$++)this._projectLatlngs(u[$],d,_)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,_,O,k,$,te,fe,he;for(_=0,k=0,$=this._rings.length;_<$;_++)for(he=this._rings[_],O=0,te=he.length;O<te-1;O++)fe=DC(he[O],he[O+1],u,O,!0),fe&&(d[k]=d[k]||[],d[k].push(fe[0]),(fe[1]!==he[O+1]||O===te-2)&&(d[k].push(fe[1]),k++))}},_simplifyPoints:function(){for(var u=this._parts,d=this.options.smoothFactor,_=0,O=u.length;_<O;_++)u[_]=PC(u[_],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,d){var _,O,k,$,te,fe,he=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(_=0,$=this._parts.length;_<$;_++)for(fe=this._parts[_],O=0,te=fe.length,k=te-1;O<te;k=O++)if(!(!d&&O===0)&&kC(u,fe[k],fe[O])<=he)return!0;return!1}});function x8(u,d){return new uo(u,d)}uo._flat=LC;var Ol=uo.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 TC(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var d=uo.prototype._convertLatLngs.call(this,u),_=d.length;return _>=2&&d[0]instanceof ie&&d[0].equals(d[_-1])&&d.pop(),d},_setLatLngs:function(u){uo.prototype._setLatLngs.call(this,u),Qr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Qr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,_=new G(d,d);if(u=new B(u.min.subtract(_),u.max.add(_)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var O=0,k=this._rings.length,$;O<k;O++)$=EC(this._rings[O],u,!0),$.length&&this._parts.push($)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var d=!1,_,O,k,$,te,fe,he,xe;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for($=0,he=this._parts.length;$<he;$++)for(_=this._parts[$],te=0,xe=_.length,fe=xe-1;te<xe;fe=te++)O=_[te],k=_[fe],O.y>u.y!=k.y>u.y&&u.x<(k.x-O.x)*(u.y-O.y)/(k.y-O.y)+O.x&&(d=!d);return d||uo.prototype._containsPoint.call(this,u,!0)}});function S8(u,d){return new Ol(u,d)}var fo=co.extend({initialize:function(u,d){y(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=S(u)?u:u.features,_,O,k;if(d){for(_=0,O=d.length;_<O;_++)k=d[_],(k.geometries||k.geometry||k.features||k.coordinates)&&this.addData(k);return this}var $=this.options;if($.filter&&!$.filter(u))return this;var te=Wh(u,$);return te?(te.feature=Gh(u),te.defaultOptions=te.options,this.resetStyle(te),$.onEachFeature&&$.onEachFeature(u,te),this.addLayer(te)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=i({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(d){this._setLayerStyle(d,u)},this)},_setLayerStyle:function(u,d){u.setStyle&&(typeof d=="function"&&(d=d(u.feature)),u.setStyle(d))}});function Wh(u,d){var _=u.type==="Feature"?u.geometry:u,O=_?_.coordinates:null,k=[],$=d&&d.pointToLayer,te=d&&d.coordsToLatLng||f0,fe,he,xe,Ae;if(!O&&!_)return null;switch(_.type){case"Point":return fe=te(O),AC($,u,fe,d);case"MultiPoint":for(xe=0,Ae=O.length;xe<Ae;xe++)fe=te(O[xe]),k.push(AC($,u,fe,d));return new co(k);case"LineString":case"MultiLineString":return he=Yh(O,_.type==="LineString"?0:1,te),new uo(he,d);case"Polygon":case"MultiPolygon":return he=Yh(O,_.type==="Polygon"?1:2,te),new Ol(he,d);case"GeometryCollection":for(xe=0,Ae=_.geometries.length;xe<Ae;xe++){var We=Wh({geometry:_.geometries[xe],type:"Feature",properties:u.properties},d);We&&k.push(We)}return new co(k);case"FeatureCollection":for(xe=0,Ae=_.features.length;xe<Ae;xe++){var Xe=Wh(_.features[xe],d);Xe&&k.push(Xe)}return new co(k);default:throw new Error("Invalid GeoJSON object.")}}function AC(u,d,_,O){return u?u(d,_):new Hh(_,O&&O.markersInheritOptions&&O)}function f0(u){return new ie(u[1],u[0],u[2])}function Yh(u,d,_){for(var O=[],k=0,$=u.length,te;k<$;k++)te=d?Yh(u[k],d-1,_):(_||f0)(u[k]),O.push(te);return O}function d0(u,d){return u=ae(u),u.alt!==void 0?[p(u.lng,d),p(u.lat,d),p(u.alt,d)]:[p(u.lng,d),p(u.lat,d)]}function qh(u,d,_,O){for(var k=[],$=0,te=u.length;$<te;$++)k.push(d?qh(u[$],Qr(u[$])?0:d-1,_,O):d0(u[$],O));return!d&&_&&k.length>0&&k.push(k[0].slice()),k}function Cl(u,d){return u.feature?i({},u.feature,{geometry:d}):Gh(d)}function Gh(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var h0={toGeoJSON:function(u){return Cl(this,{type:"Point",coordinates:d0(this.getLatLng(),u)})}};Hh.include(h0),u0.include(h0),Vh.include(h0),uo.include({toGeoJSON:function(u){var d=!Qr(this._latlngs),_=qh(this._latlngs,d?1:0,!1,u);return Cl(this,{type:(d?"Multi":"")+"LineString",coordinates:_})}}),Ol.include({toGeoJSON:function(u){var d=!Qr(this._latlngs),_=d&&!Qr(this._latlngs[0]),O=qh(this._latlngs,_?2:d?1:0,!0,u);return d||(O=[O]),Cl(this,{type:(_?"Multi":"")+"Polygon",coordinates:O})}}),xl.include({toMultiPoint:function(u){var d=[];return this.eachLayer(function(_){d.push(_.toGeoJSON(u).geometry.coordinates)}),Cl(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(u){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(u);var _=d==="GeometryCollection",O=[];return this.eachLayer(function(k){if(k.toGeoJSON){var $=k.toGeoJSON(u);if(_)O.push($.geometry);else{var te=Gh($);te.type==="FeatureCollection"?O.push.apply(O,te.features):O.push(te)}}}),_?Cl(this,{geometries:O,type:"GeometryCollection"}):{type:"FeatureCollection",features:O}}});function IC(u,d){return new fo(u,d)}var O8=IC,Kh=_i.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,d,_){this._url=u,this._bounds=Z(d),y(this,_)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ze(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ht(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&bl(this._image),this},bringToBack:function(){return this._map&&wl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=Z(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",d=this._image=u?this._url:mt("img");if(Ze(d,"leaflet-image-layer"),this._zoomAnimated&&Ze(d,"leaflet-zoom-animated"),this.options.className&&Ze(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onload=a(this.fire,this,"load"),d.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(u){var d=this._map.getZoomScale(u.zoom),_=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;as(this._image,_,d)},_reset:function(){var u=this._image,d=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),_=d.getSize();fn(u,d.min),u.style.width=_.x+"px",u.style.height=_.y+"px"},_updateOpacity:function(){Zr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),C8=function(u,d,_){return new Kh(u,d,_)},FC=Kh.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",d=this._image=u?this._url:mt("video");if(Ze(d,"leaflet-image-layer"),this._zoomAnimated&&Ze(d,"leaflet-zoom-animated"),this.options.className&&Ze(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onloadeddata=a(this.fire,this,"load"),u){for(var _=d.getElementsByTagName("source"),O=[],k=0;k<_.length;k++)O.push(_[k].src);this._url=_.length>0?O:[d.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var $=0;$<this._url.length;$++){var te=mt("source");te.src=this._url[$],d.appendChild(te)}}});function E8(u,d,_){return new FC(u,d,_)}var $C=Kh.extend({_initImage:function(){var u=this._image=this._url;Ze(u,"leaflet-image-layer"),this._zoomAnimated&&Ze(u,"leaflet-zoom-animated"),this.options.className&&Ze(u,this.options.className),u.onselectstart=h,u.onmousemove=h}});function T8(u,d,_){return new $C(u,d,_)}var $i=_i.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,d){u&&(u instanceof ie||S(u))?(this._latlng=ae(u),y(this,d)):(y(this,u),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&Zr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&Zr(this._container,1),this.bringToFront(),this.options.interactive&&(Ze(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(Zr(this._container,0),this._removeTimeout=setTimeout(a(Ht,void 0,this._container),200)):Ht(this._container),this.options.interactive&&(nn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=ae(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&bl(this._container),this},bringToBack:function(){return this._map&&wl(this._container),this},_prepareOpen:function(u){var d=this._source;if(!d._map)return!1;if(d instanceof co){d=null;var _=this._source._layers;for(var O in _)if(_[O]._map){d=_[O];break}if(!d)return!1;this._source=d}if(!u)if(d.getCenter)u=d.getCenter();else if(d.getLatLng)u=d.getLatLng();else if(d.getBounds)u=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")u.innerHTML=d;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),d=A(this.options.offset),_=this._getAnchor();this._zoomAnimated?fn(this._container,u.add(_)):d=d.add(u).add(_);var O=this._containerBottom=-d.y,k=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=O+"px",this._container.style.left=k+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(u,d,_,O){var k=d;return k instanceof u||(k=new u(O).setContent(d)),_&&k.setLatLng(_),k}}),_i.include({_initOverlay:function(u,d,_,O){var k=_;return k instanceof u?(y(k,O),k._source=this):(k=d&&!O?d:new u(O,this),k.setContent(_)),k}});var Zh=$i.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,$i.prototype.openOn.call(this,u)},onAdd:function(u){$i.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Xo||this._source.on("preclick",ls))},onRemove:function(u){$i.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Xo||this._source.off("preclick",ls))},getEvents:function(){var u=$i.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",d=this._container=mt("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),_=this._wrapper=mt("div",u+"-content-wrapper",d);if(this._contentNode=mt("div",u+"-content",_),Tu(d),n0(this._contentNode),Ge(d,"contextmenu",ls),this._tipContainer=mt("div",u+"-tip-container",d),this._tip=mt("div",u+"-tip",this._tipContainer),this.options.closeButton){var O=this._closeButton=mt("a",u+"-close-button",d);O.setAttribute("role","button"),O.setAttribute("aria-label","Close popup"),O.href="#close",O.innerHTML='<span aria-hidden="true">×</span>',Ge(O,"click",function(k){Bn(k),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,d=u.style;d.width="",d.whiteSpace="nowrap";var _=u.offsetWidth;_=Math.min(_,this.options.maxWidth),_=Math.max(_,this.options.minWidth),d.width=_+1+"px",d.whiteSpace="",d.height="";var O=u.offsetHeight,k=this.options.maxHeight,$="leaflet-popup-scrolled";k&&O>k?(d.height=k+"px",Ze(u,$)):nn(u,$),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),_=this._getAnchor();fn(this._container,d.add(_))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,d=parseInt(Su(this._container,"marginBottom"),10)||0,_=this._container.offsetHeight+d,O=this._containerWidth,k=new G(this._containerLeft,-_-this._containerBottom);k._add(ss(this._container));var $=u.layerPointToContainerPoint(k),te=A(this.options.autoPanPadding),fe=A(this.options.autoPanPaddingTopLeft||te),he=A(this.options.autoPanPaddingBottomRight||te),xe=u.getSize(),Ae=0,We=0;$.x+O+he.x>xe.x&&(Ae=$.x+O-xe.x+he.x),$.x-Ae-fe.x<0&&(Ae=$.x-fe.x),$.y+_+he.y>xe.y&&(We=$.y+_-xe.y+he.y),$.y-We-fe.y<0&&(We=$.y-fe.y),(Ae||We)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Ae,We]))}},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),P8=function(u,d){return new Zh(u,d)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(u,d,_){return this._initOverlay(Zh,u,d,_).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),_i.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Zh,this._popup,u,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof co||(this._popup._source=this),this._popup._prepareOpen(u||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){cs(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof Xo)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Qh=$i.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){$i.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){$i.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=$i.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=mt("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,_,O=this._map,k=this._container,$=O.latLngToContainerPoint(O.getCenter()),te=O.layerPointToContainerPoint(u),fe=this.options.direction,he=k.offsetWidth,xe=k.offsetHeight,Ae=A(this.options.offset),We=this._getAnchor();fe==="top"?(d=he/2,_=xe):fe==="bottom"?(d=he/2,_=0):fe==="center"?(d=he/2,_=xe/2):fe==="right"?(d=0,_=xe/2):fe==="left"?(d=he,_=xe/2):te.x<$.x?(fe="right",d=0,_=xe/2):(fe="left",d=he+(Ae.x+We.x)*2,_=xe/2),u=u.subtract(A(d,_,!0)).add(Ae).add(We),nn(k,"leaflet-tooltip-right"),nn(k,"leaflet-tooltip-left"),nn(k,"leaflet-tooltip-top"),nn(k,"leaflet-tooltip-bottom"),Ze(k,"leaflet-tooltip-"+fe),fn(k,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&Zr(this._container,u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(d)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),k8=function(u,d){return new Qh(u,d)};st.include({openTooltip:function(u,d,_){return this._initOverlay(Qh,u,d,_).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),_i.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Qh,this._tooltip,u,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(u){if(!(!u&&this._tooltipHandlersAdded)){var d=u?"off":"on",_={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?_.add=this._openTooltip:(_.mouseover=this._openTooltip,_.mouseout=this.closeTooltip,_.click=this._openTooltip,this._map?this._addFocusListeners():_.add=this._addFocusListeners),this._tooltip.options.sticky&&(_.mousemove=this._moveTooltip),this[d](_),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof co||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var d=typeof u.getElement=="function"&&u.getElement();d&&(Ge(d,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ge(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var d=typeof u.getElement=="function"&&u.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(u)});return}this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0)}},_moveTooltip:function(u){var d=u.latlng,_,O;this._tooltip.options.sticky&&u.originalEvent&&(_=this._map.mouseEventToContainerPoint(u.originalEvent),O=this._map.containerPointToLayerPoint(_),d=this._map.layerPointToLatLng(O)),this._tooltip.setLatLng(d)}});var BC=Sl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var d=u&&u.tagName==="DIV"?u:document.createElement("div"),_=this.options;if(_.html instanceof Element?(Ih(d),d.appendChild(_.html)):d.innerHTML=_.html!==!1?_.html:"",_.bgPos){var O=A(_.bgPos);d.style.backgroundPosition=-O.x+"px "+-O.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function M8(u){return new BC(u)}Sl.Default=Mu;var Du=_i.extend({options:{tileSize:256,opacity:1,updateWhenIdle:He.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(u){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Ht(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(bl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(wl(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof G?u:new G(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var d=this.getPane().children,_=-u(-1/0,1/0),O=0,k=d.length,$;O<k;O++)$=d[O].style.zIndex,d[O]!==this._container&&$&&(_=u(_,+$));isFinite(_)&&(this.options.zIndex=_+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!He.ielt9){Zr(this._container,this.options.opacity);var u=+new Date,d=!1,_=!1;for(var O in this._tiles){var k=this._tiles[O];if(!(!k.current||!k.loaded)){var $=Math.min(1,(u-k.loaded)/200);Zr(k.el,$),$<1?d=!0:(k.active?_=!0:this._onOpaqueTile(k),k.active=!0)}}_&&!this._noPrune&&this._pruneTiles(),d&&(W(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=mt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,d=this.options.maxZoom;if(u!==void 0){for(var _ in this._levels)_=Number(_),this._levels[_].el.children.length||_===u?(this._levels[_].el.style.zIndex=d-Math.abs(u-_),this._onUpdateLevel(_)):(Ht(this._levels[_].el),this._removeTilesAtZoom(_),this._onRemoveLevel(_),delete this._levels[_]);var O=this._levels[u],k=this._map;return O||(O=this._levels[u]={},O.el=mt("div","leaflet-tile-container leaflet-zoom-animated",this._container),O.el.style.zIndex=d,O.origin=k.project(k.unproject(k.getPixelOrigin()),u).round(),O.zoom=u,this._setZoomTransform(O,k.getCenter(),k.getZoom()),h(O.el.offsetWidth),this._onCreateLevel(O)),this._level=O,O}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var u,d,_=this._map.getZoom();if(_>this.options.maxZoom||_<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)d=this._tiles[u],d.retain=d.current;for(u in this._tiles)if(d=this._tiles[u],d.current&&!d.active){var O=d.coords;this._retainParent(O.x,O.y,O.z,O.z-5)||this._retainChildren(O.x,O.y,O.z,O.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var d in this._tiles)this._tiles[d].coords.z===u&&this._removeTile(d)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Ht(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,d,_,O){var k=Math.floor(u/2),$=Math.floor(d/2),te=_-1,fe=new G(+k,+$);fe.z=+te;var he=this._tileCoordsToKey(fe),xe=this._tiles[he];return xe&&xe.active?(xe.retain=!0,!0):(xe&&xe.loaded&&(xe.retain=!0),te>O?this._retainParent(k,$,te,O):!1)},_retainChildren:function(u,d,_,O){for(var k=2*u;k<2*u+2;k++)for(var $=2*d;$<2*d+2;$++){var te=new G(k,$);te.z=_+1;var fe=this._tileCoordsToKey(te),he=this._tiles[fe];if(he&&he.active){he.retain=!0;continue}else he&&he.loaded&&(he.retain=!0);_+1<O&&this._retainChildren(k,$,_+1,O)}},_resetView:function(u){var d=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var d=this.options;return d.minNativeZoom!==void 0&&u<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<u?d.maxNativeZoom:u},_setView:function(u,d,_,O){var k=Math.round(d);this.options.maxZoom!==void 0&&k>this.options.maxZoom||this.options.minZoom!==void 0&&k<this.options.minZoom?k=void 0:k=this._clampZoom(k);var $=this.options.updateWhenZooming&&k!==this._tileZoom;(!O||$)&&(this._tileZoom=k,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),k!==void 0&&this._update(u),_||this._pruneTiles(),this._noPrune=!!_),this._setZoomTransforms(u,d)},_setZoomTransforms:function(u,d){for(var _ in this._levels)this._setZoomTransform(this._levels[_],u,d)},_setZoomTransform:function(u,d,_){var O=this._map.getZoomScale(_,u.zoom),k=u.origin.multiplyBy(O).subtract(this._map._getNewPixelOrigin(d,_)).round();He.any3d?as(u.el,k,O):fn(u.el,k)},_resetGrid:function(){var u=this._map,d=u.options.crs,_=this._tileSize=this.getTileSize(),O=this._tileZoom,k=this._map.getPixelWorldBounds(this._tileZoom);k&&(this._globalTileRange=this._pxBoundsToTileRange(k)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,d.wrapLng[0]],O).x/_.x),Math.ceil(u.project([0,d.wrapLng[1]],O).x/_.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([d.wrapLat[0],0],O).y/_.x),Math.ceil(u.project([d.wrapLat[1],0],O).y/_.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var d=this._map,_=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),O=d.getZoomScale(_,this._tileZoom),k=d.project(u,this._tileZoom).floor(),$=d.getSize().divideBy(O*2);return new B(k.subtract($),k.add($))},_update:function(u){var d=this._map;if(d){var _=this._clampZoom(d.getZoom());if(u===void 0&&(u=d.getCenter()),this._tileZoom!==void 0){var O=this._getTiledPixelBounds(u),k=this._pxBoundsToTileRange(O),$=k.getCenter(),te=[],fe=this.options.keepBuffer,he=new B(k.getBottomLeft().subtract([fe,-fe]),k.getTopRight().add([fe,-fe]));if(!(isFinite(k.min.x)&&isFinite(k.min.y)&&isFinite(k.max.x)&&isFinite(k.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var xe in this._tiles){var Ae=this._tiles[xe].coords;(Ae.z!==this._tileZoom||!he.contains(new G(Ae.x,Ae.y)))&&(this._tiles[xe].current=!1)}if(Math.abs(_-this._tileZoom)>1){this._setView(u,_);return}for(var We=k.min.y;We<=k.max.y;We++)for(var Xe=k.min.x;Xe<=k.max.x;Xe++){var sr=new G(Xe,We);if(sr.z=this._tileZoom,!!this._isValidTile(sr)){var On=this._tiles[this._tileCoordsToKey(sr)];On?On.current=!0:te.push(sr)}}if(te.sort(function(vr,Tl){return vr.distanceTo($)-Tl.distanceTo($)}),te.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Xr=document.createDocumentFragment();for(Xe=0;Xe<te.length;Xe++)this._addTile(te[Xe],Xr);this._level.el.appendChild(Xr)}}}},_isValidTile:function(u){var d=this._map.options.crs;if(!d.infinite){var _=this._globalTileRange;if(!d.wrapLng&&(u.x<_.min.x||u.x>_.max.x)||!d.wrapLat&&(u.y<_.min.y||u.y>_.max.y))return!1}if(!this.options.bounds)return!0;var O=this._tileCoordsToBounds(u);return Z(this.options.bounds).overlaps(O)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,_=this.getTileSize(),O=u.scaleBy(_),k=O.add(_),$=d.unproject(O,u.z),te=d.unproject(k,u.z);return[$,te]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),_=new U(d[0],d[1]);return this.options.noWrap||(_=this._map.wrapLatLngBounds(_)),_},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),_=new G(+d[0],+d[1]);return _.z=+d[2],_},_removeTile:function(u){var d=this._tiles[u];d&&(Ht(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Ze(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=h,u.onmousemove=h,He.ielt9&&this.options.opacity<1&&Zr(u,this.options.opacity)},_addTile:function(u,d){var _=this._getTilePos(u),O=this._tileCoordsToKey(u),k=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(k),this.createTile.length<2&&V(a(this._tileReady,this,u,null,k)),fn(k,_),this._tiles[O]={el:k,coords:u,current:!0},d.appendChild(k),this.fire("tileloadstart",{tile:k,coords:u})},_tileReady:function(u,d,_){d&&this.fire("tileerror",{error:d,tile:_,coords:u});var O=this._tileCoordsToKey(u);_=this._tiles[O],_&&(_.loaded=+new Date,this._map._fadeAnimated?(Zr(_.el,0),W(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(_.active=!0,this._pruneTiles()),d||(Ze(_.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:_.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),He.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new G(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new B(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function D8(u){return new Du(u)}var El=Du.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=y(this,d),d.detectRetina&&He.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var _=document.createElement("img");return Ge(_,"load",a(this._tileOnLoad,this,d,_)),Ge(_,"error",a(this._tileOnError,this,d,_)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(_.referrerPolicy=this.options.referrerPolicy),_.alt="",_.src=this.getTileUrl(u),_},getTileUrl:function(u){var d={r:He.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var _=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=_),d["-y"]=_}return w(this._url,i(d,this.options))},_tileOnLoad:function(u,d){He.ielt9?setTimeout(a(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,_){var O=this.options.errorTileUrl;O&&d.getAttribute("src")!==O&&(d.src=O),u(_,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,_=this.options.zoomReverse,O=this.options.zoomOffset;return _&&(u=d-u),u+O},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=h,d.onerror=h,!d.complete)){d.src=T;var _=this._tiles[u].coords;Ht(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:_})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",T),Du.prototype._removeTile.call(this,u)},_tileReady:function(u,d,_){if(!(!this._map||_&&_.getAttribute("src")===T))return Du.prototype._tileReady.call(this,u,d,_)}});function UC(u,d){return new El(u,d)}var zC=El.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,d){this._url=u;var _=i({},this.defaultWmsParams);for(var O in d)O in this.options||(_[O]=d[O]);d=y(this,d);var k=d.detectRetina&&He.retina?2:1,$=this.getTileSize();_.width=$.x*k,_.height=$.y*k,this.wmsParams=_},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,El.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),_=this._crs,O=re(_.project(d[0]),_.project(d[1])),k=O.min,$=O.max,te=(this._wmsVersion>=1.3&&this._crs===jC?[k.y,k.x,$.y,$.x]:[k.x,k.y,$.x,$.y]).join(","),fe=El.prototype.getTileUrl.call(this,u);return fe+x(this.wmsParams,fe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+te},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function L8(u,d){return new zC(u,d)}El.WMS=zC,UC.wms=L8;var ho=_i.extend({options:{padding:.1},initialize:function(u){y(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ze(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,d){var _=this._map.getZoomScale(d,this._zoom),O=this._map.getSize().multiplyBy(.5+this.options.padding),k=this._map.project(this._center,d),$=O.multiplyBy(-_).add(k).subtract(this._map._getNewPixelOrigin(u,d));He.any3d?as(this._container,$,_):fn(this._container,$)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,d=this._map.getSize(),_=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(_,_.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),HC=ho.extend({options:{tolerance:0},getEvents:function(){var u=ho.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ho.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ge(u,"mousemove",this._onMouseMove,this),Ge(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ge(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,Ht(this._container),Tt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ho.prototype._update.call(this);var u=this._bounds,d=this._container,_=u.getSize(),O=He.retina?2:1;fn(d,u.min),d.width=O*_.x,d.height=O*_.y,d.style.width=_.x+"px",d.style.height=_.y+"px",He.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){ho.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,_=d.next,O=d.prev;_?_.prev=O:this._drawLast=O,O?O.next=_:this._drawFirst=_,delete u._order,delete this._layers[l(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var d=u.options.dashArray.split(/[, ]+/),_=[],O,k;for(k=0;k<d.length;k++){if(O=Number(d[k]),isNaN(O))return;_.push(O)}u.options._dashArray=_}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||V(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var d=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new B,this._redrawBounds.extend(u._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(u._pxBounds.max.add([d,d]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var u=this._redrawBounds;if(u){var d=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,d.x,d.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var u,d=this._redrawBounds;if(this._ctx.save(),d){var _=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,_.x,_.y),this._ctx.clip()}this._drawing=!0;for(var O=this._drawFirst;O;O=O.next)u=O.layer,(!d||u._pxBounds&&u._pxBounds.intersects(d))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,d){if(this._drawing){var _,O,k,$,te=u._parts,fe=te.length,he=this._ctx;if(fe){for(he.beginPath(),_=0;_<fe;_++){for(O=0,k=te[_].length;O<k;O++)$=te[_][O],he[O?"lineTo":"moveTo"]($.x,$.y);d&&he.closePath()}this._fillStroke(he,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var d=u._point,_=this._ctx,O=Math.max(Math.round(u._radius),1),k=(Math.max(Math.round(u._radiusY),1)||O)/O;k!==1&&(_.save(),_.scale(1,k)),_.beginPath(),_.arc(d.x,d.y/k,O,0,Math.PI*2,!1),k!==1&&_.restore(),this._fillStroke(_,u)}},_fillStroke:function(u,d){var _=d.options;_.fill&&(u.globalAlpha=_.fillOpacity,u.fillStyle=_.fillColor||_.color,u.fill(_.fillRule||"evenodd")),_.stroke&&_.weight!==0&&(u.setLineDash&&u.setLineDash(d.options&&d.options._dashArray||[]),u.globalAlpha=_.opacity,u.lineWidth=_.weight,u.strokeStyle=_.color,u.lineCap=_.lineCap,u.lineJoin=_.lineJoin,u.stroke())},_onClick:function(u){for(var d=this._map.mouseEventToLayerPoint(u),_,O,k=this._drawFirst;k;k=k.next)_=k.layer,_.options.interactive&&_._containsPoint(d)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(_))&&(O=_);this._fireEvent(O?[O]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,d)}},_handleMouseOut:function(u){var d=this._hoveredLayer;d&&(nn(this._container,"leaflet-interactive"),this._fireEvent([d],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,d){if(!this._mouseHoverThrottled){for(var _,O,k=this._drawFirst;k;k=k.next)_=k.layer,_.options.interactive&&_._containsPoint(d)&&(O=_);O!==this._hoveredLayer&&(this._handleMouseOut(u),O&&(Ze(this._container,"leaflet-interactive"),this._fireEvent([O],u,"mouseover"),this._hoveredLayer=O)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,d,_){this._map._fireDOMEvent(d,_||d.type,u)},_bringToFront:function(u){var d=u._order;if(d){var _=d.next,O=d.prev;if(_)_.prev=O;else return;O?O.next=_:_&&(this._drawFirst=_),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(u)}},_bringToBack:function(u){var d=u._order;if(d){var _=d.next,O=d.prev;if(O)O.next=_;else return;_?_.prev=O:O&&(this._drawLast=O),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(u)}}});function VC(u){return He.canvas?new HC(u):null}var Lu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),R8={_initContainer:function(){this._container=mt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ho.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=Lu("shape");Ze(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=Lu("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;Ht(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,_=u._fill,O=u.options,k=u._container;k.stroked=!!O.stroke,k.filled=!!O.fill,O.stroke?(d||(d=u._stroke=Lu("stroke")),k.appendChild(d),d.weight=O.weight+"px",d.color=O.color,d.opacity=O.opacity,O.dashArray?d.dashStyle=S(O.dashArray)?O.dashArray.join(" "):O.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=O.lineCap.replace("butt","flat"),d.joinstyle=O.lineJoin):d&&(k.removeChild(d),u._stroke=null),O.fill?(_||(_=u._fill=Lu("fill")),k.appendChild(_),_.color=O.fillColor||O.color,_.opacity=O.fillOpacity):_&&(k.removeChild(_),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),_=Math.round(u._radius),O=Math.round(u._radiusY||_);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+_+","+O+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){bl(u._container)},_bringToBack:function(u){wl(u._container)}},Xh=He.vml?Lu:Le,Ru=ho.extend({_initContainer:function(){this._container=Xh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Xh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ht(this._container),Tt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ho.prototype._update.call(this);var u=this._bounds,d=u.getSize(),_=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,_.setAttribute("width",d.x),_.setAttribute("height",d.y)),fn(_,u.min),_.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Xh("path");u.options.className&&Ze(d,u.options.className),u.options.interactive&&Ze(d,"leaflet-interactive"),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Ht(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,_=u.options;d&&(_.stroke?(d.setAttribute("stroke",_.color),d.setAttribute("stroke-opacity",_.opacity),d.setAttribute("stroke-width",_.weight),d.setAttribute("stroke-linecap",_.lineCap),d.setAttribute("stroke-linejoin",_.lineJoin),_.dashArray?d.setAttribute("stroke-dasharray",_.dashArray):d.removeAttribute("stroke-dasharray"),_.dashOffset?d.setAttribute("stroke-dashoffset",_.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),_.fill?(d.setAttribute("fill",_.fillColor||_.color),d.setAttribute("fill-opacity",_.fillOpacity),d.setAttribute("fill-rule",_.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,ue(u._parts,d))},_updateCircle:function(u){var d=u._point,_=Math.max(Math.round(u._radius),1),O=Math.max(Math.round(u._radiusY),1)||_,k="a"+_+","+O+" 0 1,0 ",$=u._empty()?"M0 0":"M"+(d.x-_)+","+d.y+k+_*2+",0 "+k+-_*2+",0 ";this._setPath(u,$)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){bl(u._path)},_bringToBack:function(u){wl(u._path)}});He.vml&&Ru.include(R8);function WC(u){return He.svg||He.vml?new Ru(u):null}st.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&VC(u)||WC(u)}});var YC=Ol.extend({initialize:function(u,d){Ol.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=Z(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function j8(u,d){return new YC(u,d)}Ru.create=Xh,Ru.pointsToPath=ue,fo.geometryToLayer=Wh,fo.coordsToLatLng=f0,fo.coordsToLatLngs=Yh,fo.latLngToCoords=d0,fo.latLngsToCoords=qh,fo.getFeature=Cl,fo.asFeature=Gh,st.mergeOptions({boxZoom:!0});var qC=Fi.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ge(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Tt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ht(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ou(),Gy(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ge(document,{contextmenu:cs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=mt("div","leaflet-zoom-box",this._container),Ze(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),_=d.getSize();fn(this._box,d.min),this._box.style.width=_.x+"px",this._box.style.height=_.y+"px"},_finish:function(){this._moved&&(Ht(this._box),nn(this._container,"leaflet-crosshair")),Cu(),Ky(),Tt(document,{contextmenu:cs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var d=new U(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",qC),st.mergeOptions({doubleClickZoom:!0});var GC=Fi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,_=d.getZoom(),O=d.options.zoomDelta,k=u.originalEvent.shiftKey?_-O:_+O;d.options.doubleClickZoom==="center"?d.setZoom(k):d.setZoomAround(u.containerPoint,k)}});st.addInitHook("addHandler","doubleClickZoom",GC),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var KC=Fi.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Qo(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Ze(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){nn(this._map._container,"leaflet-grab"),nn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=Z(this._map.options.maxBounds);this._offsetLimit=re(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var d=this._lastTime=+new Date,_=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(_),this._times.push(d),this._prunePositions(d)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.x<d.min.x&&(u.x=this._viscousLimit(u.x,d.min.x)),u.y<d.min.y&&(u.y=this._viscousLimit(u.y,d.min.y)),u.x>d.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),_=this._initialWorldOffset,O=this._draggable._newPos.x,k=(O-d+_)%u+d-_,$=(O+d+_)%u-d-_,te=Math.abs(k+_)<Math.abs($+_)?k:$;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=te},_onDragEnd:function(u){var d=this._map,_=d.options,O=!_.inertia||u.noInertia||this._times.length<2;if(d.fire("dragend",u),O)d.fire("moveend");else{this._prunePositions(+new Date);var k=this._lastPos.subtract(this._positions[0]),$=(this._lastTime-this._times[0])/1e3,te=_.easeLinearity,fe=k.multiplyBy(te/$),he=fe.distanceTo([0,0]),xe=Math.min(_.inertiaMaxSpeed,he),Ae=fe.multiplyBy(xe/he),We=xe/(_.inertiaDeceleration*te),Xe=Ae.multiplyBy(-We/2).round();!Xe.x&&!Xe.y?d.fire("moveend"):(Xe=d._limitOffset(Xe,d.options.maxBounds),V(function(){d.panBy(Xe,{duration:We,easeLinearity:te,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",KC),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ZC=Fi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Ge(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Tt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var u=document.body,d=document.documentElement,_=u.scrollTop||d.scrollTop,O=u.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(O,_)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var d=this._panKeys={},_=this.keyCodes,O,k;for(O=0,k=_.left.length;O<k;O++)d[_.left[O]]=[-1*u,0];for(O=0,k=_.right.length;O<k;O++)d[_.right[O]]=[u,0];for(O=0,k=_.down.length;O<k;O++)d[_.down[O]]=[0,u];for(O=0,k=_.up.length;O<k;O++)d[_.up[O]]=[0,-1*u]},_setZoomDelta:function(u){var d=this._zoomKeys={},_=this.keyCodes,O,k;for(O=0,k=_.zoomIn.length;O<k;O++)d[_.zoomIn[O]]=u;for(O=0,k=_.zoomOut.length;O<k;O++)d[_.zoomOut[O]]=-u},_addHooks:function(){Ge(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Tt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var d=u.keyCode,_=this._map,O;if(d in this._panKeys){if(!_._panAnim||!_._panAnim._inProgress)if(O=this._panKeys[d],u.shiftKey&&(O=A(O).multiplyBy(3)),_.options.maxBounds&&(O=_._limitOffset(A(O),_.options.maxBounds)),_.options.worldCopyJump){var k=_.wrapLatLng(_.unproject(_.project(_.getCenter()).add(O)));_.panTo(k)}else _.panBy(O)}else if(d in this._zoomKeys)_.setZoom(_.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&_._popup&&_._popup.options.closeOnEscapeKey)_.closePopup();else return;cs(u)}}});st.addInitHook("addHandler","keyboard",ZC),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var QC=Fi.extend({addHooks:function(){Ge(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Tt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var d=wC(u),_=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var O=Math.max(_-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),O),cs(u)},_performZoom:function(){var u=this._map,d=u.getZoom(),_=this._map.options.zoomSnap||0;u._stop();var O=this._delta/(this._map.options.wheelPxPerZoomLevel*4),k=4*Math.log(2/(1+Math.exp(-Math.abs(O))))/Math.LN2,$=_?Math.ceil(k/_)*_:k,te=u._limitZoom(d+(this._delta>0?$:-$))-d;this._delta=0,this._startTime=null,te&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+te):u.setZoomAround(this._lastMousePos,d+te))}});st.addInitHook("addHandler","scrollWheelZoom",QC);var N8=600;st.mergeOptions({tapHold:He.touchNative&&He.safari&&He.mobile,tapTolerance:15});var XC=Fi.extend({addHooks:function(){Ge(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Tt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new G(d.clientX,d.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Ge(document,"touchend",Bn),Ge(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),N8),Ge(document,"touchend touchcancel contextmenu",this._cancel,this),Ge(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){Tt(document,"touchend",Bn),Tt(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),Tt(document,"touchend touchcancel contextmenu",this._cancel,this),Tt(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new G(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var _=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});_._simulated=!0,d.target.dispatchEvent(_)}});st.addInitHook("addHandler","tapHold",XC),st.mergeOptions({touchZoom:He.touch,bounceAtZoomLimits:!0});var JC=Fi.extend({addHooks:function(){Ze(this._map._container,"leaflet-touch-zoom"),Ge(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){nn(this._map._container,"leaflet-touch-zoom"),Tt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var _=d.mouseEventToContainerPoint(u.touches[0]),O=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(_.add(O)._divideBy(2))),this._startDist=_.distanceTo(O),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Ge(document,"touchmove",this._onTouchMove,this),Ge(document,"touchend touchcancel",this._onTouchEnd,this),Bn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,_=d.mouseEventToContainerPoint(u.touches[0]),O=d.mouseEventToContainerPoint(u.touches[1]),k=_.distanceTo(O)/this._startDist;if(this._zoom=d.getScaleZoom(k,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&k<1||this._zoom>d.getMaxZoom()&&k>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,k===1)return}else{var $=_._add(O)._divideBy(2)._subtract(this._centerPoint);if(k===1&&$.x===0&&$.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract($),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var te=a(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(te,this,!0),Bn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),Tt(document,"touchmove",this._onTouchMove,this),Tt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});st.addInitHook("addHandler","touchZoom",JC),st.BoxZoom=qC,st.DoubleClickZoom=GC,st.Drag=KC,st.Keyboard=ZC,st.ScrollWheelZoom=QC,st.TapHold=XC,st.TouchZoom=JC,n.Bounds=B,n.Browser=He,n.CRS=pe,n.Canvas=HC,n.Circle=u0,n.CircleMarker=Vh,n.Class=q,n.Control=yi,n.DivIcon=BC,n.DivOverlay=$i,n.DomEvent=J5,n.DomUtil=Q5,n.Draggable=Qo,n.Evented=le,n.FeatureGroup=co,n.GeoJSON=fo,n.GridLayer=Du,n.Handler=Fi,n.Icon=Sl,n.ImageOverlay=Kh,n.LatLng=ie,n.LatLngBounds=U,n.Layer=_i,n.LayerGroup=xl,n.LineUtil=d8,n.Map=st,n.Marker=Hh,n.Mixin=a8,n.Path=Xo,n.Point=G,n.PolyUtil=s8,n.Polygon=Ol,n.Polyline=uo,n.Popup=Zh,n.PosAnimation=xC,n.Projection=h8,n.Rectangle=YC,n.Renderer=ho,n.SVG=Ru,n.SVGOverlay=$C,n.TileLayer=El,n.Tooltip=Qh,n.Transformation=X,n.Util=ne,n.VideoOverlay=FC,n.bind=a,n.bounds=re,n.canvas=VC,n.circle=w8,n.circleMarker=b8,n.control=Pu,n.divIcon=M8,n.extend=i,n.featureGroup=v8,n.geoJSON=IC,n.geoJson=O8,n.gridLayer=D8,n.icon=y8,n.imageOverlay=C8,n.latLng=ae,n.latLngBounds=Z,n.layerGroup=g8,n.map=e8,n.marker=_8,n.point=A,n.polygon=S8,n.polyline=x8,n.popup=P8,n.rectangle=j8,n.setOptions=y,n.stamp=l,n.svg=WC,n.svgOverlay=T8,n.tileLayer=UC,n.tooltip=k8,n.transformation=Q,n.version=r,n.videoOverlay=E8;var A8=window.L;n.noConflict=function(){return window.L=A8,this},window.L=n})})(Mx,Mx.exports);var Mh=Mx.exports;const ID=pi(Mh);function nC(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function rC(e,t){return t==null?function(r,i){const o=H.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=H.useRef();o.current||(o.current=e(r,i));const a=H.useRef(r),{instance:s}=o.current;return H.useEffect(function(){a.current!==r&&(t(s,r,a.current),a.current=r)},[s,r,i]),o}}function Zme(e,t){H.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function h5(e){return function(n){const r=f5(),i=e(tC(n,r),r);return l5(r.map,n.attribution),d5(i.current,n.eventHandlers),Zme(i.current,r),i}}function Qme(e,t){const n=rC(e,t),r=h5(n);return Yme(r)}function Xme(e,t){const n=rC(e),r=Kme(n,t);return qme(r)}function Jme(e,t){const n=rC(e,t),r=h5(n);return Gme(r)}function ege(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 Dx(){return Dx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dx.apply(this,arguments)}function tge({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:c,...f},h){const[p]=H.useState({className:i,id:o,style:s}),[g,v]=H.useState(null);H.useImperativeHandle(h,()=>(g==null?void 0:g.map)??null,[g]);const y=H.useCallback(b=>{if(b!==null&&g===null){const w=new Mh.Map(b,f);n!=null&&c!=null?w.setView(n,c):e!=null&&w.fitBounds(e,t),l!=null&&w.whenReady(l),v(Vme(w))}},[]);H.useEffect(()=>()=>{g==null||g.map.remove()},[g]);const x=g?Y.createElement(u5,{value:g},r):a??null;return Y.createElement("div",Dx({},p,{ref:y}),x)}const nge=H.forwardRef(tge),rge=Qme(function({position:t,...n},r){const i=new Mh.Marker(t,n);return nC(i,Wme(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())}),ige=Xme(function(t,n){const r=new Mh.Popup(t,n.overlayContainer);return nC(r,n)},function(t,n,{position:r},i){H.useEffect(function(){const{instance:a}=t;function s(c){c.popup===a&&(a.update(),i(!0))}function l(c){c.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:l}),n.overlayContainer==null?(r!=null&&a.setLatLng(r),a.openOn(n.map)):n.overlayContainer.bindPopup(a),function(){var f;n.map.off({popupopen:s,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(a)}},[t,n,i,r])}),oge=Jme(function({url:t,...n},r){const i=new Mh.TileLayer(t,tC(n,r));return nC(i,r)},function(t,n,r){ege(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});const age=()=>m.jsx(oge,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),sge=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(ct("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},p5=({toggle:e,isOpen:t,title:n,locations:r=[]})=>m.jsx(Yo,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:m.jsxs(so,{className:"map-modal__modal-body",children:[m.jsxs("h3",{className:"map-modal__modal-title",children:[n,m.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),m.jsxs(nge,{...sge(r),children:[m.jsx(age,{}),r.map(({cityName:i,latLong:o,count:a},s)=>m.jsx(rge,{position:o,children:m.jsxs(ige,{children:[m.jsx("b",{children:a})," visit",a>1?"s":""," from ",m.jsx("b",{children:i})]})},s))]})]})});const lge=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=mn(),[a,s,l]=mn(),[c,f]=H.useState([]),h=Ey(),p=y=>t?y.filter(({cityName:x})=>t==null?void 0:t.includes(x)):y,g=()=>{if(!t){f(n),i();return}l()},v=y=>()=>{f(y?p(n):n),i()};return m.jsxs(m.Fragment,{children:[m.jsx(yt,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:g,children:m.jsx(Ie,{icon:lA})}),m.jsx(Pr,{placement:"left",target:h,children:"Show in map"}),m.jsx(hh,{isOpen:a,toggle:s,inNavbar:!0,children:m.jsxs(du,{end:!0,children:[m.jsx(Ue,{onClick:v(!1),children:"Show all locations"}),m.jsx(Ue,{onClick:v(!0),children:"Show locations in current page"})]})}),m.jsx(p5,{toggle:o,isOpen:r,title:e,locations:c})]})},cge=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,a=l=>({active:i===l,onClick:()=>e({...t,orphanVisitsType:l===(t==null?void 0:t.orphanVisitsType)?void 0:l})}),s=()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)});return m.jsxs(Go,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[m.jsx(Ue,{header:!0,children:"Bots:"}),m.jsx(Ue,{active:o,onClick:s,children:"Exclude potential bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(Ue,{divider:!0}),m.jsx(Ue,{header:!0,children:"Orphan visits type:"}),m.jsx(Ue,{...a("base_url"),children:"Base URL"}),m.jsx(Ue,{...a("invalid_short_url"),children:"Invalid short URL"}),m.jsx(Ue,{...a("regular_404"),children:"Regular 404"})]}),m.jsx(Ue,{divider:!0}),m.jsx(Ue,{disabled:!Zi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:m.jsx("i",{children:"Clear filters"})})]})},m5=(e,t)=>!Ho(e)&&Zi(e[t]),FD=e=>typeof e=="number"?e:e?parseFloat(e):0,uge=(e,{os:t})=>{e[t]=(e[t]||0)+1},fge=(e,{browser:t})=>{e[t]=(e[t]||0)+1},dge=(e,{referer:t})=>{e[t]=(e[t]||0)+1},g5=e=>(t,n)=>{const i=m5(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},hge=g5("country"),pge=g5("city"),mge=(e,t)=>{if(!m5(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[FD(r),FD(i)]};o.count+=1,e[n]=o},gge=(e,t)=>{if(!nme(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},v5=e=>e.reduce((t,n)=>(uge(t.os,n),fge(t.browsers,n),dge(t.referrers,n),hge(t.countries,n),pge(t.cities,n),mge(t.citiesForMap,n),gge(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),y5=ah(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,a={date:n,potentialBot:o,...Sme(t),referer:Ome(r),country:(i==null?void 0:i.countryName)||"Unknown",city:(i==null?void 0:i.cityName)||"Unknown",latitude:i==null?void 0:i.latitude,longitude:i==null?void 0:i.longitude};return QO(e)?{...a,type:e.type,visitedUrl:e.visitedUrl}:a}),vge=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:y5,processStatsFromVisits:v5},Symbol.toStringTag,{value:"Module"}));const _f=20,yge=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),_ge=(e,t)=>t.filter(n=>yge(n,e)),bge=(e,t)=>U4(t,e),wge=(e,t,n)=>{const r=t?_ge(t,e):[...e],i=bge(n,r),o=i.length;return{visitsGroups:Td(_f,i),total:o}},xge=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var P,R;const o="visits-table__header-cell visits-table__sticky",a=()=>r("(max-width: 767px)").matches,[s,l]=H.useState(a()),[c,f]=H.useState(void 0),[h,p]=H.useState({}),g=H.useMemo(()=>wge(e,c,h),[c,h]),v=H.useRef(!0),[y,x]=H.useState(1),b=y*_f,w=b-_f,S=8+Number(i),C=j=>()=>p({field:j,dir:Py(j,h.field,h.dir)}),T=j=>m.jsx(Zf,{currentOrder:h,field:j,className:"visits-table__header-icon"});return H.useEffect(()=>{const j=()=>l(a());return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[]),H.useEffect(()=>{x(1),!v.current&&n([]),v.current=!1},[c]),m.jsx("div",{className:"table-responsive-md",children:m.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[m.jsxs("thead",{className:"visits-table__header",children:[m.jsxs("tr",{children:[m.jsx("th",{className:`${o} text-center`,onClick:()=>n(t.length<g.total?g.visitsGroups.flat():[]),children:m.jsx(Ie,{icon:Pd,className:Se({"text-primary":t.length>0})})}),m.jsxs("th",{className:`${o} text-center`,onClick:C("potentialBot"),children:[m.jsx(Ie,{icon:hk}),T("potentialBot")]}),m.jsxs("th",{className:o,onClick:C("date"),children:["Date",T("date")]}),m.jsxs("th",{className:o,onClick:C("country"),children:["Country",T("country")]}),m.jsxs("th",{className:o,onClick:C("city"),children:["City",T("city")]}),m.jsxs("th",{className:o,onClick:C("browser"),children:["Browser",T("browser")]}),m.jsxs("th",{className:o,onClick:C("os"),children:["OS",T("os")]}),m.jsxs("th",{className:o,onClick:C("referer"),children:["Referrer",T("referer")]}),i&&m.jsxs("th",{className:o,onClick:C("visitedUrl"),children:["Visited URL",T("visitedUrl")]})]}),m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"p-0",children:m.jsx(yh,{noBorder:!0,large:!1,onChange:f})})})]}),m.jsxs("tbody",{children:[!((P=g.visitsGroups[y-1])!=null&&P.length)&&m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"text-center",children:"No visits found with current filtering"})}),(R=g.visitsGroups[y-1])==null?void 0:R.map((j,z)=>{const N=t.includes(j);return m.jsxs("tr",{style:{cursor:"pointer"},className:Se({"table-active":N}),onClick:()=>n(N?t.filter(V=>V!==j):[...t,j]),children:[m.jsx("td",{className:"text-center",children:N&&m.jsx(Ie,{icon:Pd,className:"text-primary"})}),m.jsx("td",{className:"text-center",children:j.potentialBot&&m.jsxs(m.Fragment,{children:[m.jsx(Ie,{icon:hk,id:`botIcon${z}`}),m.jsx(Pr,{placement:"right",target:`botIcon${z}`,children:"Potentially a visit from a bot or crawler"})]})}),m.jsx("td",{children:m.jsx(yv,{date:j.date})}),m.jsx("td",{children:j.country}),m.jsx("td",{children:j.city}),m.jsx("td",{children:j.browser}),m.jsx("td",{children:j.os}),m.jsx("td",{children:j.referer}),i&&m.jsx("td",{children:j.visitedUrl})]},z)})]}),g.total>_f&&m.jsx("tfoot",{children:m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"visits-table__footer-cell visits-table__sticky",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(WO,{pagesCount:Math.ceil(g.total/_f),currentPage:y,setCurrentPage:x,centered:s})}),m.jsx("div",{className:Se("col-md-6",{"d-flex align-items-center flex-row-reverse":!s,"text-center mt-3":s}),children:m.jsxs("div",{children:["Visits ",m.jsx("b",{children:wn(w+1)})," to"," ",m.jsx("b",{children:wn(nA(b,g.total))})," of"," ",m.jsx("b",{children:wn(g.total)})]})})]})})})})]})})},Ul={byTime:{title:"By time",subPath:"by-time",icon:lG},byContext:{title:"By context",subPath:"by-context",icon:_S},byLocation:{title:"By location",subPath:"by-location",icon:lA},list:{title:"List",subPath:"list",icon:sA}};let rm;const Dh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,exportCsv:i,isOrphanVisits:o=!1})=>{const{visits:a,loading:s,loadingLarge:l,error:c,errorData:f,progress:h,fallbackInterval:p}=t,[{dateRange:g,visitsFilter:v},y]=zme(),x=gl("visits"),b=Mt(({startDate:U,endDate:Z})=>({dateRange:{startDate:U??void 0,endDate:Z??void 0}}),y),w=H.useRef(g??p??(x==null?void 0:x.defaultInterval)??"last30Days"),[S,C]=H.useState([]),[T,P]=H.useState(),R=H.useRef(!0),{search:j}=gn(),z=U=>U?`${U}${j}`:j,N=H.useMemo(()=>y5(a),[a]),{os:V,browsers:W,referrers:ne,countries:q,cities:J,citiesForMap:oe,visitedUrls:le}=H.useMemo(()=>v5(N),[N]),G=H.useMemo(()=>({...v,excludeBots:v.excludeBots??(x==null?void 0:x.excludeBots)}),[v]),F=uu(oe),A=U=>{rm=void 0,C(U)},B=U=>Z=>{const ie=`${U}_${Z}`;rm===ie?(C([]),P(void 0),rm=void 0):(C(N.filter(Hq(U,Z))),P(Z),rm=ie)};H.useEffect(()=>r,[]),H.useEffect(()=>{const U=R.current?g??tue(w.current):g;n({dateRange:U,filter:G},R.current),R.current=!1},[g,v]),H.useEffect(()=>{p&&w.current===((x==null?void 0:x.defaultInterval)??"last30Days")&&(w.current=p)},[p]);const re=()=>l?m.jsxs(Po,{loading:!0,children:["This is going to take a while... :S",m.jsx(k4,{value:h,striped:h===100,className:"mt-3"})]}):s?m.jsx(Po,{loading:!0}):c?m.jsx($r,{type:"error",children:m.jsx(Fo,{errorData:f,fallbackMessage:"An error occurred while loading visits :("})}):Yn(a)?m.jsx(Po,{children:"There are no visits matching current filter"}):m.jsxs(m.Fragment,{children:[m.jsx(B4,{fill:!0,children:Object.values(Ul).map(({title:U,icon:Z,subPath:ie},ae)=>m.jsxs(zf,{to:z(ie),replace:!0,children:[m.jsx(Ie,{icon:Z}),m.jsx("span",{className:"ms-2 d-none d-sm-inline",children:U})]},ae))}),m.jsx(dr,{children:m.jsxs(dy,{children:[m.jsx(vt,{path:Ul.byTime.subPath,element:m.jsx("div",{className:"col-12 mt-3",children:m.jsx(Lme,{title:"Visits during time",visits:N,highlightedVisits:S,highlightedLabel:T,setSelectedVisits:A})})}),m.jsx(vt,{path:Ul.byContext.subPath,element:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:Se("mt-3 col-lg-6",{"col-xl-4":!o}),children:m.jsx(MD,{title:"Operating systems",stats:V})}),m.jsx("div",{className:Se("mt-3 col-lg-6",{"col-xl-4":!o}),children:m.jsx(MD,{title:"Browsers",stats:W})}),m.jsx("div",{className:Se("mt-3",{"col-xl-4":!o,"col-lg-6":o}),children:m.jsx(nm,{title:"Referrers",stats:ne,withPagination:!1,highlightedStats:em(S,"referer"),highlightedLabel:T,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:B("referer")})}),o&&m.jsx("div",{className:"mt-3 col-lg-6",children:m.jsx(nm,{title:"Visited URLs",stats:le,highlightedLabel:T,highlightedStats:em(S,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:B("visitedUrl")})})]})}),m.jsx(vt,{path:Ul.byLocation.subPath,element:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(nm,{title:"Countries",stats:q,highlightedStats:em(S,"country"),highlightedLabel:T,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:B("country")})}),m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(nm,{title:"Cities",stats:J,highlightedStats:em(S,"city"),highlightedLabel:T,extraHeaderContent:U=>F.length>0&&m.jsx(lge,{modalTitle:"Cities",locations:F,activeCities:U}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:B("city")})})]})}),m.jsx(vt,{path:Ul.list.subPath,element:m.jsx("div",{className:"col-12",children:m.jsx(xge,{visits:N,selectedVisits:S,setSelectedVisits:A,isOrphanVisits:o})})}),m.jsx(vt,{path:"*",element:m.jsx(iS,{replace:!0,to:z(Ul.byTime.subPath)})})]})})]});return m.jsxs(m.Fragment,{children:[e,m.jsx("section",{className:"mt-3",children:m.jsxs("div",{className:"row flex-md-row-reverse",children:[m.jsx("div",{className:"col-lg-7 col-xl-6",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-fill",children:m.jsx(kI,{updatable:!0,disabled:s,initialDateRange:w.current,defaultText:"All visits",onDatesChange:b})}),m.jsx(cge,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:o,selected:G,onChange:U=>y({visitsFilter:U})})]})}),a.length>0&&m.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:m.jsxs("div",{className:"d-flex",children:[m.jsx(dI,{className:"btn-md-block",amount:N.length,onClick:()=>i(N)}),m.jsxs(yt,{outline:!0,disabled:S.length===0,className:"btn-md-block ms-2",onClick:()=>A([]),children:["Clear selection ",S.length>0&&m.jsxs(m.Fragment,{children:["(",wn(S.length),")"]})]})]})})]})}),m.jsx("section",{className:"mt-3",children:re()})]})},Sge=({exportVisits:e})=>is(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r})=>{const i=vu(),{domain:o=""}=ul(),[a,s=a]=o.split("_"),l=(f,h)=>t({domain:s,query:Ph(f),doIntervalFallback:h}),c=f=>e(`domain_${a}_visits.csv`,f);return m.jsx(Dh,{getVisits:l,cancelGetVisits:r,visitsInfo:n,exportCsv:c,children:m.jsx(kh,{goBack:i,visits:n.visits,title:`"${a}" visits`})})},()=>[li.visits]),Oge=({exportVisits:e})=>is(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r})=>{const i=vu(),o=s=>e("non_orphan_visits.csv",s),a=(s,l)=>t({query:Ph(s),doIntervalFallback:l});return m.jsx(Dh,{getVisits:a,cancelGetVisits:r,visitsInfo:n,exportCsv:o,children:m.jsx(kh,{title:"Non-orphan visits",goBack:i,visits:n.visits})})},()=>[li.visits]),Cge=({exportVisits:e})=>is(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r})=>{const i=vu(),o=s=>e("orphan_visits.csv",s),a=(s,l)=>{var c;return t({query:Ph(s),orphanVisitsType:(c=s.filter)==null?void 0:c.orphanVisitsType,doIntervalFallback:l})};return m.jsx(Dh,{getVisits:a,cancelGetVisits:r,visitsInfo:n,exportCsv:o,isOrphanVisits:!0,children:m.jsx(kh,{title:"Orphan visits",goBack:i,visits:n.visits})})},()=>[li.orphanVisits]),_5="shlink/orphanVisits",Ege={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Tge=e=>Ch({typePrefix:`${_5}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1})=>{const{getNonOrphanVisits:r}=e(),i=async(a,s)=>r({...t,page:a,itemsPerPage:s}),o=Eh(n,r);return[i,o]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),Pge=e=>Th({name:_5,initialState:Ege,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>xh(o.date,r,i))}}),b5="shlink/orphanVisits",kge={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Mge=(e,t)=>!t||t===e.type,Dge=e=>Ch({typePrefix:`${b5}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1})=>{const{getOrphanVisits:i}=e(),o=async(s,l)=>i({...n,page:s,itemsPerPage:l}).then(c=>{const f=c.data.filter(h=>QO(h)&&Mge(h,t));return{...c,data:f}}),a=Eh(r,i);return[o,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),Lge=e=>Th({name:b5,initialState:kge,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:a})=>!a&&xh(o.date,r,i))}}),w5="shlink/shortUrlVisits",Rge={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},jge=e=>Ch({typePrefix:`${w5}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1})=>{const{getShortUrlVisits:i}=e(),o=async(s,l)=>i(t,{...n,page:s,itemsPerPage:l}),a=Eh(r,async s=>i(t,{...s,domain:n.domain}));return[o,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),Nge=e=>Th({name:w5,initialState:Rge,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:a}=r;return i.filter(({shortUrl:s,visit:l})=>s&&Yf(s,t,n)&&xh(l.date,o,a))}}),x5="shlink/tagVisits",Age={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Ige=e=>Ch({typePrefix:`${x5}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1})=>{const{getTagVisits:i}=e(),o=async(s,l)=>i(t,{...n,page:s,itemsPerPage:l}),a=Eh(r,async s=>i(t,s));return[o,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),Fge=e=>Th({name:x5,initialState:Age,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>(a==null?void 0:a.tags.includes(t))&&xh(s.date,i,o))}}),S5="shlink/visitsOverview",im={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},$D=e=>e.filter(({visit:t})=>t.potentialBot).length,$ge=e=>Tr(`${S5}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n,orphanVisits:r,orphanVisitsCount:i})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),Bge=e=>ir({name:S5,initialState:im,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...im,loading:!0})),t.addCase(e.rejected,()=>({...im,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...im,...r})),t.addCase(Oh,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=rme(o.createdVisits),l=a.length,c=$D(a),f=l-c,h=s.length,p=$D(s),g=h-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+h,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+g}}})}});const Uge=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,a=(r==null?void 0:r.shortUrl)??"",s=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title,c=()=>r?m.jsxs("span",{children:[m.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:m.jsx(yv,{date:r.dateCreated,relative:!0})}),m.jsx(Pr,{placement:"bottom",target:"created",children:m.jsx(yv,{date:r.dateCreated})})]}):m.jsx("small",{children:"Loading..."}),f=m.jsxs(m.Fragment,{children:["Visits for ",m.jsx(Li,{href:a})]});return m.jsxs(kh,{title:f,goBack:n,visits:o,shortUrl:r,children:[m.jsx("hr",{}),m.jsxs("div",{children:["Created: ",c()]}),m.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&m.jsx("small",{children:"Loading..."}),!i&&m.jsx(Li,{href:s,children:l??s})]})]})},zge=({exportVisits:e})=>is(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o})=>{const{shortCode:a=""}=ul(),{search:s}=gn(),l=vu(),{domain:c}=hl(s),f=(p,g)=>r({shortCode:Rm(a),query:{...Ph(p),domain:c},doIntervalFallback:g}),h=p=>{var g;return e(`short-url_${(g=n.shortUrl)==null?void 0:g.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,p)};return H.useEffect(()=>{i({shortCode:Rm(a),domain:c})},[]),m.jsx(Dh,{getVisits:f,cancelGetVisits:o,visitsInfo:t,exportCsv:h,children:m.jsx(Uge,{shortUrlDetail:n,shortUrlVisits:t,goBack:l})})},(t,n)=>n.shortCode?[li.shortUrlVisits(Rm(n.shortCode))]:[]),Hge=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e,o=m.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[m.jsx("span",{className:"me-2",children:"Visits for"}),m.jsx(AO,{text:i,colorGenerator:n})]});return m.jsx(kh,{title:o,goBack:t,visits:r})},Vge=(e,{exportVisits:t})=>is(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i})=>{const o=vu(),{tag:a=""}=ul(),s=(c,f)=>n({tag:a,query:Ph(c),doIntervalFallback:f}),l=c=>t(`tag_${a}_visits.csv`,c);return m.jsx(Dh,{getVisits:s,cancelGetVisits:i,visitsInfo:r,exportCsv:l,children:m.jsx(Hge,{tagVisits:r,goBack:o,colorGenerator:e})})},()=>[li.visits]),Wge=(e,t)=>{e.serviceFactory("MapModal",()=>p5),e.serviceFactory("ShortUrlVisits",zge,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",Vge,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",Sge,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",Cge,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",Oge,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>vge),e.serviceFactory("getShortUrlVisits",jge,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",ct("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",Ige,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",ct("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",oue,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",ct("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",Dge,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",ct("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",Tge,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",ct("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Oh),e.serviceFactory("loadVisitsOverview",$ge,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",Bge,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",ct("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",aue,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",ct("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",Pge,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",ct("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",Lge,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",ct("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",Nge,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",ct("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",Fge,"getTagVisits"),e.serviceFactory("tagVisitsReducer",ct("reducer"),"tagVisitsReducerCreator")};const tf=({children:e,to:t,className:n,...r})=>m.jsx(DN,{className:({isActive:i})=>Se("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Yge=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=gn(),r=Se("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return m.jsx("aside",{className:r,children:m.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[m.jsxs(tf,{to:i("/overview"),children:[m.jsx(Ie,{fixedWidth:!0,icon:FG}),m.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),m.jsxs(tf,{to:i("/list-short-urls/1"),className:Se({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[m.jsx(Ie,{fixedWidth:!0,icon:sA}),m.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),m.jsxs(tf,{to:i("/create-short-url"),children:[m.jsx(Ie,{fixedWidth:!0,icon:HG,flip:"horizontal"}),m.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),m.jsxs(tf,{to:i("/manage-tags"),children:[m.jsx(Ie,{fixedWidth:!0,icon:cA}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),m.jsxs(tf,{to:i("/manage-domains"),children:[m.jsx(Ie,{fixedWidth:!0,icon:yG}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})};const qge=(e,t,n,r,i,o,a,s,l,c,f)=>({createNotFound:h})=>{const p=gn(),g=pl(),v=cl(),[y,x]=H.useMemo(()=>v?[H.Fragment,{}]:[MN,{basename:g}],[v]),[b,w,S,C]=mn();H.useEffect(()=>C(),[p]);const T=wh("domainVisits"),P=Se("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":b}),R=tfe(S,C);return m.jsxs(y,{...x,children:[m.jsx(Ie,{icon:hG,className:P,onClick:w}),m.jsx("div",{...R,className:"shlink-layout__swipeable",children:m.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[m.jsx(Yge,{routePrefix:g,showOnMobile:b}),m.jsx("div",{className:"shlink-layout__container",onClick:()=>C(),children:m.jsx("div",{className:"container-xl",children:m.jsxs(dy,{children:[m.jsx(vt,{index:!0,element:m.jsx(iS,{replace:!0,to:"overview"})}),m.jsx(vt,{path:"/overview",element:m.jsx(l,{})}),m.jsx(vt,{path:"/list-short-urls/:page",element:m.jsx(t,{})}),m.jsx(vt,{path:"/create-short-url",element:m.jsx(n,{})}),m.jsx(vt,{path:"/short-code/:shortCode/visits/*",element:m.jsx(r,{})}),m.jsx(vt,{path:"/short-code/:shortCode/edit",element:m.jsx(c,{})}),m.jsx(vt,{path:"/tag/:tag/visits/*",element:m.jsx(i,{})}),T&&m.jsx(vt,{path:"/domain/:domain/visits/*",element:m.jsx(o,{})}),m.jsx(vt,{path:"/orphan-visits/*",element:m.jsx(a,{})}),m.jsx(vt,{path:"/non-orphan-visits/*",element:m.jsx(s,{})}),m.jsx(vt,{path:"/manage-tags",element:m.jsx(e,{})}),m.jsx(vt,{path:"/manage-domains",element:m.jsx(f,{})}),h&&m.jsx(vt,{path:"*",element:h("/list-short-urls/1")})]})})})]})})]})},Gge=!0,Kge=e=>y6({devTools:!Gge,reducer:mO({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlDetail:e.shortUrlDetailReducer,shortUrlVisits:e.shortUrlVisitsReducer,tagVisits:e.tagVisitsReducer,domainVisits:e.domainVisitsReducer,orphanVisits:e.orphanVisitsReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),Zge=e=>{e.serviceFactory("Main",qge,"TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains"),e.factory("store",Kge)},lo=new zN,{container:Qge}=lo,Xge=(e,t)=>(...n)=>e[t](...n),Jge=(e,t)=>({...e,[t]:Xge(Qge,t)}),Lh=(e,t=[])=>bN(e?mS(e):null,t.reduce(Jge,{}));Zge(lo);zde(lo,Lh);Fhe(lo,Lh);Wge(lo,Lh);_ue(lo);gue(lo,Lh);$ue(lo,Lh);tme(lo);let BD;const eve=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=Qae(t),l=H.useRef(),[c,f]=H.useState();return H.useEffect(()=>{BD=n,e.value("apiClientFactory",()=>BD),a&&e.value("TagColorsStorage",a);const{container:h}=e,{Main:p,store:g,loadMercureInfo:v}=h;l.current=m.jsx(p,{createNotFound:o}),f(g),g.dispatch(v(r))},[n,a]),c?m.jsx(wN,{store:c,children:m.jsx(Due,{value:r,children:m.jsx(Xae,{value:s,children:m.jsx(Jae,{value:i,children:l.current})})})}):m.jsx(m.Fragment,{})},tve=eve(lo);function wv(e){return t=>{const{resetSelectedServer:n}=t;return H.useEffect(()=>{n()},[]),m.jsx(e,{...t})}}const nve=({location:e},{error:t})=>class extends H.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){t(n)}render(){const{hasError:n}=this.state;if(n)return m.jsx("div",{className:"home",children:m.jsxs(hn,{className:"p-4",children:[m.jsx("h1",{children:"Oops! This is awkward :S"}),m.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),m.jsx("br",{}),m.jsx(yt,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const rve=({id:e,name:t})=>m.jsxs(N4,{tag:Ft,to:`/server/${e}`,className:"servers-list__server-item",children:[t,m.jsx(Ie,{icon:GG,className:"servers-list__server-item-icon"})]}),O5=({servers:e,children:t,embedded:n=!1})=>m.jsxs(m.Fragment,{children:[t&&m.jsx("h5",{className:"mb-md-3",children:t}),e.length>0&&m.jsx(L4,{className:Se("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>m.jsx(rve,{id:r,name:i},r))})]}),C5=({color:e=eO,className:t})=>m.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:m.jsxs("g",{fill:e,children:[m.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),m.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),m.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),m.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const ive=({servers:e})=>{const t=ao(),n=uu(e),r=!Yn(n);return H.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),m.jsx("div",{className:"home",children:m.jsx(Hr,{className:"home__main-card",children:m.jsxs(dr,{className:"g-0",children:[m.jsx("div",{className:"col-md-5 d-none d-md-block",children:m.jsx("div",{className:"home__logo-wrapper",children:m.jsx("div",{className:"home__logo",children:m.jsx(C5,{})})})}),m.jsxs("div",{className:"col-md-7 home__servers-container",children:[m.jsx("div",{className:"home__title-wrapper",children:m.jsx("h1",{className:"home__title",children:"Welcome!"})}),m.jsx(O5,{embedded:!0,servers:n,children:!r&&m.jsxs("div",{className:"p-4 text-center",children:[m.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),m.jsx("p",{children:m.jsxs(Ft,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[m.jsx(Ie,{icon:wS})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]})}),m.jsx("p",{className:"mb-0 mt-5",children:m.jsx(Li,{href:"https://shlink.io/documentation",children:m.jsxs("small",{children:[m.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",m.jsx(Ie,{icon:kG})]})})})]})})]})]})})})};const ove=e=>()=>{const[t,n,,r]=mn(),i=gn(),{pathname:o}=i;H.useEffect(r,[i]);const a="/settings",s=Se("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return m.jsxs(ZA,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[m.jsxs(QA,{tag:Ft,to:"/",children:[m.jsx(C5,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),m.jsx(XA,{onClick:n,children:m.jsx(Ie,{icon:YG,className:s})}),m.jsx(Vee,{navbar:!0,isOpen:t,children:m.jsxs(IS,{navbar:!0,className:"ms-auto",children:[m.jsx(JA,{children:m.jsxs(n4,{tag:Ft,to:a,active:o.startsWith(a),children:[m.jsx(Ie,{icon:XG})," Settings"]})}),m.jsx(e,{})]})})]})},ave=({children:e})=>{const t=gn();return H.useEffect(()=>{scrollTo(0,0)},[t]),m.jsx(m.Fragment,{children:e})},E5=eA(gy,e=>{try{return ax(e,e,"=")}catch{return!1}}),T5=e=>E5(e)?`v${e}`:e,P5=(e="latest")=>t=>E5(t)?t:e,sve="%_VERSION_%",lve=Mt(P5(),T5),UD=({project:e,version:t})=>m.jsx(Li,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:m.jsx("b",{children:t})}),cve=({selectedServer:e,clientVersion:t=sve})=>{const n=lve(t);return m.jsxs("small",{className:"text-muted",children:[oA(e)&&m.jsxs(m.Fragment,{children:["Server: ",m.jsx(UD,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",m.jsx(UD,{project:"shlink-web-client",version:n})]})};const uve=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,fve=({selectedServer:e})=>{const{pathname:t}=gn(),n=H.useMemo(()=>uve.test(t),[t]),r=Se("text-center",{"shlink-versions-container--with-sidebar":n});return m.jsx("div",{className:r,children:m.jsx(cve,{selectedServer:e})})};const _u=({children:e})=>m.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function k5(e,t){return n=>{const r=ul(),{selectServer:i,selectedServer:o}=n;return H.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?iG(o)?m.jsx(t,{}):m.jsx(e,{...n}):m.jsx(_u,{children:m.jsx(Po,{loading:!0})})}}const dve=(e,t,n,r)=>k5(({selectedServer:i,settings:o})=>{const a=oA(i),s=a?`/server/${i.id}`:"";return a?m.jsx(n,{serverVersion:i.version,apiClient:e(i),settings:o,routesPrefix:s,tagColorsStorage:t,createNotFound:l=>m.jsx(s6,{to:`${s}${l}`,children:"List short URLs"})}):m.jsx(r,{})},r),zD={"Content-Type":"application/json"},HD=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...zD}}:{headers:zD}:e;class hve{constructor(t){me(this,"fetchJson",(t,n)=>this.fetch(t,HD(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));me(this,"fetchEmpty",(t,n)=>this.fetch(t,HD(n)).then(async r=>{if(!r.ok)throw await r.json()}));this.fetch=t}}const pve=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",hve,"fetch"),e.serviceFactory("ScrollToTop",()=>ave),e.serviceFactory("MainHeader",ove,"ServersDropdown"),e.serviceFactory("Home",()=>ive),e.decorator("Home",wv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>tve),e.serviceFactory("ShlinkWebComponentContainer",dve,"buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>fve),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",nve,"window","console")},mve=2e3,gve=(e,t)=>(n=!1,r=mve)=>{const[i,o]=H.useState(n),a=H.useRef(void 0);return[i,()=>{o(!n),a.current&&t(a.current),a.current=e(()=>o(n),r)}]},M5=()=>{const e=ao();return()=>e(-1)},vve=()=>{const{search:e}=gn();return hl(e)},D5=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return m.jsxs(Yo,{centered:!0,isOpen:e,children:[m.jsxs(qo,{children:["Duplicated server",i&&"s"]}),m.jsxs(so,{children:[m.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),m.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?m.jsxs("li",{children:[m.jsx("b",{children:o})," - ",m.jsx("b",{children:a})]},s):m.jsxs(H.Fragment,{children:[m.jsxs("li",{children:["URL: ",m.jsx("b",{children:o})]}),m.jsxs("li",{children:["API key: ",m.jsx("b",{children:a})]})]},s))}),m.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),m.jsxs(fl,{children:[m.jsx(yt,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),m.jsx(yt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},yve=e=>Mt(t=>t.preventDefault(),e),L5=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=H.useState(""),[a,s]=H.useState(""),[l,c]=H.useState(""),f=yve(()=>e({name:i,url:a,apiKey:l}));return H.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&c(t.apiKey)},[t]),m.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[m.jsxs(hn,{className:"mb-3",title:r,children:[m.jsx(Dm,{value:i,onChange:o,children:"Name"}),m.jsx(Dm,{type:"url",value:a,onChange:s,children:"URL"}),m.jsx(Dm,{value:l,onChange:c,children:"API key"})]}),m.jsx("div",{className:"text-end",children:n})]})},VD=4e3,WD=({type:e})=>m.jsx("div",{className:"mt-3",children:m.jsxs($r,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),_ve=(e,t)=>({servers:n,createServers:r})=>{const i=ao(),o=M5(),a=!!Object.keys(n).length,[s,l]=t(!1,VD),[c,f]=t(!1,VD),[h,p]=mn(),[g,v]=H.useState(),y=()=>{if(!g)return;const x=JS();r([{...g,id:x}]),i(`/server/${x}`)};return H.useEffect(()=>{Object.values(n).some(({url:b,apiKey:w})=>(g==null?void 0:g.url)===b&&(g==null?void 0:g.apiKey)===w)?p():y()},[g]),m.jsxs(_u,{children:[m.jsxs(L5,{title:m.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!a&&m.jsx(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),a&&m.jsx(yt,{outline:!0,onClick:o,children:"Cancel"}),m.jsx(yt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&m.jsx(WD,{type:"success"}),c&&m.jsx(WD,{type:"error"}),m.jsx(D5,{isOpen:h,duplicatedServers:g?[g]:[],onDiscard:o,onSave:y})]})},bve=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,a,s]=mn();return m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:n,onClick:a,children:[!r&&m.jsx(Ie,{fixedWidth:!0,icon:vS}),m.jsx("span",{className:i,children:r??"Remove this server"})]}),m.jsx(e,{server:t,isOpen:o,toggle:s})]})},wve=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=ao(),a=H.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return m.jsxs(Yo,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[m.jsx(qo,{toggle:t,className:"text-danger",children:"Remove server"}),m.jsxs(so,{children:[m.jsxs("p",{children:["Are you sure you want to remove ",m.jsx("b",{children:e?e.name:""}),"?"]}),m.jsx("p",{children:m.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),m.jsxs(fl,{children:[m.jsx(yt,{color:"link",onClick:t,children:"Cancel"}),m.jsx(yt,{color:"danger",onClick:s,children:"Delete"})]})]})},xve=e=>k5(({editServer:t,selectedServer:n,selectServer:r})=>{const i=M5(),{reconnect:o}=vve();if(!Af(n))return null;const a=s=>{t(n.id,s),o==="true"&&r(n.id),i()};return m.jsx(_u,{children:m.jsxs(L5,{title:m.jsxs("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:a,children:[m.jsx(yt,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),m.jsx(yt,{outline:!0,color:"primary",children:"Save"})]})})},e);const YD=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),Sve=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:a="bottom",className:s=""})=>{const l=dl(),[c,f]=H.useState(),[h,p]=H.useState([]),[g,,v,y]=mn(),x=Mt(t,i),b=Mt(()=>x(c??[]),y),w=Mt(()=>x((c??[]).filter(zY(YD(h)))),y),S=async({target:C})=>{var T;return e((T=C.files)==null?void 0:T[0]).then(f).then(()=>{C.value=null}).catch(o)};return H.useEffect(()=>{if(!c)return;const C=Object.values(n),T=c.filter(YD(C)),P=!!T.length;P?p(T):x(c),P&&v()},[c]),m.jsxs(m.Fragment,{children:[m.jsxs(yt,{outline:!0,id:"importBtn",className:s,onClick:()=>{var C;return(C=l.current)==null?void 0:C.click()},children:[m.jsx(Ie,{icon:wG,fixedWidth:!0})," ",r??"Import from file"]}),m.jsxs(Pr,{placement:a,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",m.jsx("b",{children:"name"}),", ",m.jsx("b",{children:"apiKey"})," and ",m.jsx("b",{children:"url"}),"."]}),m.jsx("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:l,onChange:S}),m.jsx(D5,{isOpen:g,duplicatedServers:h,onDiscard:w,onSave:b})]})};const Ove=e=>({servers:t,selectedServer:n})=>m.jsx(_u,{children:m.jsxs("div",{className:"server-error__container flex-column",children:[m.jsxs(Po,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Af(n)&&"Could not find this Shlink server.",Af(n)&&m.jsxs(m.Fragment,{children:[m.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),m.jsxs(O5,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",m.jsx(Ft,{to:"/server/create",children:"add a new one"}),"."]}),Af(n)&&m.jsx("div",{className:"container mt-3 mt-md-5",children:m.jsxs("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",m.jsx(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",m.jsx(Ft,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),Cve=4e3,Eve=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[a,s]=H.useState(o),l=p=>s(o.filter(({name:g,url:v})=>`${g} ${v}`.toLowerCase().match(p.toLowerCase()))),c=a.some(({autoConnect:p})=>!!p),[f,h]=n(!1,Cve);return H.useEffect(()=>{s(Object.values(i))},[i]),m.jsxs(_u,{children:[m.jsx(yh,{className:"mb-3",onChange:l}),m.jsxs(dr,{className:"mb-3",children:[m.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[m.jsx(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&m.jsxs(yt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[m.jsx(Ie,{icon:fA,fixedWidth:!0})," Export servers"]})]}),m.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:m.jsxs(yt,{outline:!0,color:"primary",className:"flex-fill",tag:Ft,to:"/server/create",children:[m.jsx(Ie,{icon:wS,fixedWidth:!0})," Add a server"]})})]}),m.jsx(hn,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsxs("tr",{children:[c&&m.jsx("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),m.jsx("th",{children:"Name"}),m.jsx("th",{children:"Base URL"}),m.jsx("th",{"aria-label":"Options"})]})}),m.jsxs("tbody",{children:[!a.length&&m.jsx("tr",{className:"text-center",children:m.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>m.jsx(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&m.jsx("div",{className:"mt-3",children:m.jsx($r,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Tve=e=>({server:t,hasAutoConnect:n})=>m.jsxs("tr",{className:"responsive-table__row",children:[n&&m.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&m.jsxs(m.Fragment,{children:[m.jsx(Ie,{icon:Pd,className:"text-primary",id:"autoConnectIcon"}),m.jsx(Pr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:m.jsx(Ft,{to:`/server/${t.id}`,children:t.name})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(e,{server:t})})]}),Pve=e=>({server:t,setAutoConnect:n})=>{const[r,,i,o]=mn(),a=`/server/${t.id}`,{autoConnect:s}=t,l=s?_G:Aue;return m.jsxs(Ty,{minWidth:170,children:[m.jsxs(Ue,{tag:Ft,to:a,children:[m.jsx(Ie,{icon:vG,fixedWidth:!0})," Connect"]}),m.jsxs(Ue,{tag:Ft,to:`${a}/edit`,children:[m.jsx(Ie,{icon:yS,fixedWidth:!0})," Edit server"]}),m.jsxs(Ue,{onClick:()=>n(t,!s),children:[m.jsx(Ie,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),m.jsx(Ue,{divider:!0}),m.jsxs(Ue,{className:"dropdown-item--danger",onClick:i,children:[m.jsx(Ie,{icon:vS,fixedWidth:!0})," Remove server"]}),m.jsx(e,{redirectHome:!1,server:t,isOpen:r,toggle:o})]})},R5=(e,t)=>b6(e,t,{serializeError:gy}),kve={},Mve=e=>e.id?e:Ed("id",JS(),e),Dve=uS((e,t)=>Ed(t.id,t,e),{}),{actions:Lve,reducer:Rve}=ir({name:"shlink/servers",initialState:kve,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?Ed(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>_q(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?hf(Og(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):Ed(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:Mt(ah(Mve),Dve,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:jve,deleteServer:Nve,setAutoConnect:Ave,createServers:j5}=Lve,Ive=Rve,Fve=e=>Array.isArray(e)?e.filter(iA):[],$ve=e=>R5("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${_g.homepage}/servers.json`),i=Fve(r);n(j5(i))}),iC="shlink/selectedServer",Bve="1.0.0",Uve="999.999.999",zve="latest",Hve=Mt(e=>e===zve?Uve:e,P5(Bve)),Vve=eA(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:Hve(n),printableVersion:T5(n)}))),qD=null,oC=Mn(`${iC}/resetSelectedServer`),Wve=e=>R5(`${iC}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(oC());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:a}=e(o),{version:s,printableVersion:l}=await Vve(o,a);return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),Yve=e=>ir({name:iC,initialState:qD,reducers:{},extraReducers:t=>{t.addCase(oC,()=>qD),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),qve=({servers:e,selectedServer:t})=>{const n=uu(e),r=()=>Yn(n)?m.jsxs(Ue,{tag:Ft,to:"/server/create",children:[m.jsx(Ie,{icon:wS})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]}):m.jsxs(m.Fragment,{children:[n.map(({name:i,id:o})=>m.jsx(Ue,{tag:Ft,to:`/server/${o}`,active:oG(t)===o,children:i},o)),m.jsx(Ue,{divider:!0}),m.jsxs(Ue,{tag:Ft,to:"/manage-servers",children:[m.jsx(Ie,{icon:fk})," ",m.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return m.jsxs(vh,{nav:!0,inNavbar:!0,children:[m.jsxs(ph,{nav:!0,caret:!0,children:[m.jsx(Ie,{icon:fk})," ",m.jsx("span",{className:"ms-1",children:"Servers"})]}),m.jsx(du,{end:!0,style:{right:0},children:r()})]})},Gve=({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)},Kve=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);Gve(e,i,n)},Zve="shlink-servers.csv";class Qve{constructor(t,n,r){me(this,"exportServers",async()=>{const t=uu(this.storage.get("servers")??{}).map(aG);try{const n=this.jsonToCsv(t);Kve(this.window,n,Zve)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const Xve=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",Jve=e=>Array.isArray(e)&&e.every(Xve);class eye{constructor(t,n){me(this,"importServersFromFile",async t=>{if(!t)throw new Error("No file provided");const n=this.fileReaderFactory();return new Promise((r,i)=>{n.addEventListener("loadend",async o=>{var a,s;try{const l=((s=(a=o.target)==null?void 0:a.result)==null?void 0:s.toString())??"",c=await this.csvToJson(l);if(!Jve(c))throw new Error("Provided file does not have the right format.");r(c)}catch(l){i(l)}}),n.readAsText(t)})});this.csvToJson=t,this.fileReaderFactory=n}}const tye=(e,t)=>{e.serviceFactory("ManageServers",Eve,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",wv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Tve,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Pve,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",_ve,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",wv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",xve,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>qve),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>wve),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",bve,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",Sve,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",Ove,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",eye,"csvToJson","fileReaderFactory"),e.service("ServersExporter",Qve,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",Wve,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>j5),e.serviceFactory("deleteServer",()=>Nve),e.serviceFactory("editServer",()=>jve),e.serviceFactory("setAutoConnect",()=>Ave),e.serviceFactory("fetchServers",$ve,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>oC),e.serviceFactory("selectedServerReducerCreator",Yve,"selectServer"),e.serviceFactory("selectedServerReducer",ct("reducer"),"selectedServerReducerCreator")},Oc=({children:e})=>m.jsx("small",{className:"form-text text-muted d-block",children:e}),nye=e=>e?`${e}`:"",rye=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=Ey();return m.jsxs(hn,{title:"Real-time updates",className:"h-100",children:[m.jsx(Nr,{children:m.jsxs(qc,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",m.jsxs(Oc,{children:["Real-time updates are currently being ",m.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),m.jsxs(pu,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Se("form-label",{"text-muted":!r.enabled}),id:i,children:[m.jsx(Yc,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:nye(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&m.jsxs(Oc,{children:[r.interval!==void 0&&r.interval>0&&m.jsxs("span",{children:["Updates will be reflected in the UI every ",m.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},N5={field:"dateCreated",dir:"DESC"},iye={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:N5}},oye=(e,{payload:t})=>tA(e,t),vs=e=>({reducer:oye,prepare:e}),ys=e=>({payload:e}),{reducer:aye,actions:sye}=ir({name:"shlink/settings",initialState:iye,reducers:{toggleRealTimeUpdates:vs(e=>ys({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:vs(e=>ys({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:vs(e=>ys({shortUrlCreation:e})),setShortUrlsListSettings:vs(e=>ys({shortUrlsList:e})),setUiSettings:vs(e=>ys({ui:e})),setVisitsSettings:vs(e=>ys({visits:e})),setTagsSettings:vs(e=>ys({tags:e}))}}),{toggleRealTimeUpdates:lye,setRealTimeUpdatesInterval:cye,setShortUrlCreationSettings:uye,setShortUrlsListSettings:fye,setUiSettings:dye,setVisitsSettings:hye,setTagsSettings:pye}=sye,mye=aye,rb=({items:e})=>m.jsx(m.Fragment,{children:e.map((t,n)=>m.jsx("div",{className:"mb-3",children:t},n))}),gye=(e,t,n,r,i,o)=>()=>m.jsxs(_u,{children:[m.jsxs(B4,{className:"mb-3",children:[m.jsx(zf,{to:"general",children:"General"}),m.jsx(zf,{to:"short-urls",children:"Short URLs"}),m.jsx(zf,{to:"other-items",children:"Other items"})]}),m.jsxs(dy,{children:[m.jsx(vt,{path:"general",element:m.jsx(rb,{items:[m.jsx(r,{}),m.jsx(e,{})]})}),m.jsx(vt,{path:"short-urls",element:m.jsx(rb,{items:[m.jsx(t,{}),m.jsx(n,{})]})}),m.jsx(vt,{path:"other-items",element:m.jsx(rb,{items:[m.jsx(o,{}),m.jsx(i,{})]})}),m.jsx(vt,{path:"*",element:m.jsx(iS,{replace:!0,to:"general"})})]})]}),ib=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",vye=e=>e==="includes"?m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"including"})," provided input."]}):m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"starting with"})," provided input."]}),yye=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return m.jsxs(hn,{title:"Short URLs form",className:"h-100",children:[m.jsx(Nr,{children:m.jsxs(qc,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",m.jsxs(Oc,{children:["The initial state of the ",m.jsx("b",{children:"Validate URL"})," checkbox will be ",m.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),m.jsx(Nr,{children:m.jsxs(qc,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",m.jsxs(Oc,{children:["The initial state of the ",m.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",m.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),m.jsxs(pu,{noMargin:!0,label:"Tag suggestions search mode:",children:[m.jsxs(Go,{text:ib(n.tagFilteringMode),children:[m.jsx(Ue,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:ib("startsWith")}),m.jsx(Ue,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:ib("includes")})]}),m.jsx(Oc,{children:vye(n.tagFilteringMode)})]})]})},_ye={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},bye=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>m.jsx(hn,{title:"Short URLs list",className:"h-100",children:m.jsx(pu,{noMargin:!0,label:"Default ordering for short URLs list:",children:m.jsx(_h,{items:_ye,order:(e==null?void 0:e.defaultOrdering)??N5,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),wye={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},xye=({settings:{tags:e},setTagsSettings:t})=>m.jsx(hn,{title:"Tags",className:"h-100",children:m.jsx(pu,{noMargin:!0,label:"Default ordering for tags list:",children:m.jsx(_h,{items:wye,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const Sye=({settings:{ui:e},setUiSettings:t})=>m.jsxs(hn,{title:"User interface",className:"h-100",children:[m.jsx(Ie,{icon:(e==null?void 0:e.theme)==="dark"?eK:zG,className:"user-interface__theme-icon"}),m.jsx(qc,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),V4(r)},children:"Use dark theme."})]}),A5={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Oye=(e,t)=>!e||e==="all"?t:A5[e],Cye=({onChange:e,active:t,allText:n})=>m.jsxs(Go,{text:Oye(t,n),children:[m.jsx(Ue,{active:t==="all",onClick:()=>e("all"),children:n}),m.jsx(Ue,{divider:!0}),Object.entries(A5).map(([r,i])=>m.jsx(Ue,{active:t===r,onClick:()=>e(r),children:i},r))]}),GD=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},Eye=({settings:e,setVisitsSettings:t})=>{var n,r;return m.jsxs(hn,{title:"Visits",className:"h-100",children:[m.jsx(Nr,{children:m.jsxs(qc,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:GD(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",m.jsxs(Oc,{children:["The visits coming from potential bots will be ",m.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),m.jsx(pu,{noMargin:!0,label:"Default interval to load on visits sections:",children:m.jsx(Cye,{allText:"All visits",active:GD(e),onChange:i=>t({defaultInterval:i})})})]})},Tye=(e,t)=>{e.serviceFactory("Settings",gye,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",wv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>rye),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>yye),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>Sye),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>Eye),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>xye),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>bye),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>lye),e.serviceFactory("setRealTimeUpdatesInterval",()=>cye),e.serviceFactory("setShortUrlCreationSettings",()=>uye),e.serviceFactory("setShortUrlsListSettings",()=>fye),e.serviceFactory("setUiSettings",()=>dye),e.serviceFactory("setVisitsSettings",()=>hye),e.serviceFactory("setTagsSettings",()=>pye)};var Pye=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(v){var y=[];for(var x in v)y.push(x);return y};e.exports=h;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(h,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var f=l[c];h.prototype[f]||(h.prototype[f]=s.prototype[f])}function h(v){if(!(this instanceof h))return new h(v);a.call(this,v),s.call(this,v),v&&v.readable===!1&&(this.readable=!1),v&&v.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,v&&v.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(g,this)}function g(v){v.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}}),h.prototype._destroy=function(v,y){this.push(null),this.end(),r.nextTick(y,v)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var i=n(38),o=n(39),a=n(40);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(E,M){if(s()<M)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(E=new Uint8Array(M)).__proto__=c.prototype:(E===null&&(E=new c(M)),E.length=M),E}function c(E,M,I){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(E,M,I);if(typeof E=="number"){if(typeof M=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,E)}return f(this,E,M,I)}function f(E,M,I,X){if(typeof M=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer?function(Q,se,ge,Le){if(se.byteLength,ge<0||se.byteLength<ge)throw new RangeError("'offset' is out of bounds");if(se.byteLength<ge+(Le||0))throw new RangeError("'length' is out of bounds");return se=ge===void 0&&Le===void 0?new Uint8Array(se):Le===void 0?new Uint8Array(se,ge):new Uint8Array(se,ge,Le),c.TYPED_ARRAY_SUPPORT?(Q=se).__proto__=c.prototype:Q=g(Q,se),Q}(E,M,I,X):typeof M=="string"?function(Q,se,ge){if(typeof ge=="string"&&ge!==""||(ge="utf8"),!c.isEncoding(ge))throw new TypeError('"encoding" must be a valid string encoding');var Le=0|y(se,ge),ue=(Q=l(Q,Le)).write(se,ge);return ue!==Le&&(Q=Q.slice(0,ue)),Q}(E,M,I):function(Q,se){if(c.isBuffer(se)){var ge=0|v(se.length);return(Q=l(Q,ge)).length===0||se.copy(Q,0,0,ge),Q}if(se){if(typeof ArrayBuffer<"u"&&se.buffer instanceof ArrayBuffer||"length"in se)return typeof se.length!="number"||function(Le){return Le!=Le}(se.length)?l(Q,0):g(Q,se);if(se.type==="Buffer"&&a(se.data))return g(Q,se.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(E,M)}function h(E){if(typeof E!="number")throw new TypeError('"size" argument must be a number');if(E<0)throw new RangeError('"size" argument must not be negative')}function p(E,M){if(h(M),E=l(E,M<0?0:0|v(M)),!c.TYPED_ARRAY_SUPPORT)for(var I=0;I<M;++I)E[I]=0;return E}function g(E,M){var I=M.length<0?0:0|v(M.length);E=l(E,I);for(var X=0;X<I;X+=1)E[X]=255&M[X];return E}function v(E){if(E>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|E}function y(E,M){if(c.isBuffer(E))return E.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(E)||E instanceof ArrayBuffer))return E.byteLength;typeof E!="string"&&(E=""+E);var I=E.length;if(I===0)return 0;for(var X=!1;;)switch(M){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":case void 0:return ie(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return ae(E).length;default:if(X)return ie(E).length;M=(""+M).toLowerCase(),X=!0}}function x(E,M,I){var X=E[M];E[M]=E[I],E[I]=X}function b(E,M,I,X,Q){if(E.length===0)return-1;if(typeof I=="string"?(X=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,isNaN(I)&&(I=Q?0:E.length-1),I<0&&(I=E.length+I),I>=E.length){if(Q)return-1;I=E.length-1}else if(I<0){if(!Q)return-1;I=0}if(typeof M=="string"&&(M=c.from(M,X)),c.isBuffer(M))return M.length===0?-1:w(E,M,I,X,Q);if(typeof M=="number")return M&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(E,M,I):Uint8Array.prototype.lastIndexOf.call(E,M,I):w(E,[M],I,X,Q);throw new TypeError("val must be string, number or Buffer")}function w(E,M,I,X,Q){var se,ge=1,Le=E.length,ue=M.length;if(X!==void 0&&((X=String(X).toLowerCase())==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(E.length<2||M.length<2)return-1;ge=2,Le/=2,ue/=2,I/=2}function ve(Me,De){return ge===1?Me[De]:Me.readUInt16BE(De*ge)}if(Q){var _e=-1;for(se=I;se<Le;se++)if(ve(E,se)===ve(M,_e===-1?0:se-_e)){if(_e===-1&&(_e=se),se-_e+1===ue)return _e*ge}else _e!==-1&&(se-=se-_e),_e=-1}else for(I+ue>Le&&(I=Le-ue),se=I;se>=0;se--){for(var Ee=!0,Re=0;Re<ue;Re++)if(ve(E,se+Re)!==ve(M,Re)){Ee=!1;break}if(Ee)return se}return-1}function S(E,M,I,X){I=Number(I)||0;var Q=E.length-I;X?(X=Number(X))>Q&&(X=Q):X=Q;var se=M.length;if(se%2!=0)throw new TypeError("Invalid hex string");X>se/2&&(X=se/2);for(var ge=0;ge<X;++ge){var Le=parseInt(M.substr(2*ge,2),16);if(isNaN(Le))return ge;E[I+ge]=Le}return ge}function C(E,M,I,X){return pe(ie(M,E.length-I),E,I,X)}function T(E,M,I,X){return pe(function(Q){for(var se=[],ge=0;ge<Q.length;++ge)se.push(255&Q.charCodeAt(ge));return se}(M),E,I,X)}function P(E,M,I,X){return T(E,M,I,X)}function R(E,M,I,X){return pe(ae(M),E,I,X)}function j(E,M,I,X){return pe(function(Q,se){for(var ge,Le,ue,ve=[],_e=0;_e<Q.length&&!((se-=2)<0);++_e)Le=(ge=Q.charCodeAt(_e))>>8,ue=ge%256,ve.push(ue),ve.push(Le);return ve}(M,E.length-I),E,I,X)}function z(E,M,I){return M===0&&I===E.length?i.fromByteArray(E):i.fromByteArray(E.slice(M,I))}function N(E,M,I){I=Math.min(E.length,I);for(var X=[],Q=M;Q<I;){var se,ge,Le,ue,ve=E[Q],_e=null,Ee=ve>239?4:ve>223?3:ve>191?2:1;if(Q+Ee<=I)switch(Ee){case 1:ve<128&&(_e=ve);break;case 2:(192&(se=E[Q+1]))==128&&(ue=(31&ve)<<6|63&se)>127&&(_e=ue);break;case 3:se=E[Q+1],ge=E[Q+2],(192&se)==128&&(192&ge)==128&&(ue=(15&ve)<<12|(63&se)<<6|63&ge)>2047&&(ue<55296||ue>57343)&&(_e=ue);break;case 4:se=E[Q+1],ge=E[Q+2],Le=E[Q+3],(192&se)==128&&(192&ge)==128&&(192&Le)==128&&(ue=(15&ve)<<18|(63&se)<<12|(63&ge)<<6|63&Le)>65535&&ue<1114112&&(_e=ue)}_e===null?(_e=65533,Ee=1):_e>65535&&(_e-=65536,X.push(_e>>>10&1023|55296),_e=56320|1023&_e),X.push(_e),Q+=Ee}return function(Re){var Me=Re.length;if(Me<=V)return String.fromCharCode.apply(String,Re);for(var De="",ce=0;ce<Me;)De+=String.fromCharCode.apply(String,Re.slice(ce,ce+=V));return De}(X)}t.Buffer=c,t.SlowBuffer=function(E){return+E!=E&&(E=0),c.alloc(+E)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var E=new Uint8Array(1);return E.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},E.foo()===42&&typeof E.subarray=="function"&&E.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(E){return E.__proto__=c.prototype,E},c.from=function(E,M,I){return f(null,E,M,I)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(E,M,I){return function(X,Q,se,ge){return h(Q),Q<=0?l(X,Q):se!==void 0?typeof ge=="string"?l(X,Q).fill(se,ge):l(X,Q).fill(se):l(X,Q)}(null,E,M,I)},c.allocUnsafe=function(E){return p(null,E)},c.allocUnsafeSlow=function(E){return p(null,E)},c.isBuffer=function(E){return!(E==null||!E._isBuffer)},c.compare=function(E,M){if(!c.isBuffer(E)||!c.isBuffer(M))throw new TypeError("Arguments must be Buffers");if(E===M)return 0;for(var I=E.length,X=M.length,Q=0,se=Math.min(I,X);Q<se;++Q)if(E[Q]!==M[Q]){I=E[Q],X=M[Q];break}return I<X?-1:X<I?1:0},c.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(E,M){if(!a(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return c.alloc(0);var I;if(M===void 0)for(M=0,I=0;I<E.length;++I)M+=E[I].length;var X=c.allocUnsafe(M),Q=0;for(I=0;I<E.length;++I){var se=E[I];if(!c.isBuffer(se))throw new TypeError('"list" argument must be an Array of Buffers');se.copy(X,Q),Q+=se.length}return X},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var E=this.length;if(E%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var M=0;M<E;M+=2)x(this,M,M+1);return this},c.prototype.swap32=function(){var E=this.length;if(E%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var M=0;M<E;M+=4)x(this,M,M+3),x(this,M+1,M+2);return this},c.prototype.swap64=function(){var E=this.length;if(E%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var M=0;M<E;M+=8)x(this,M,M+7),x(this,M+1,M+6),x(this,M+2,M+5),x(this,M+3,M+4);return this},c.prototype.toString=function(){var E=0|this.length;return E===0?"":arguments.length===0?N(this,0,E):(function(M,I,X){var Q=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((X===void 0||X>this.length)&&(X=this.length),X<=0)||(X>>>=0)<=(I>>>=0))return"";for(M||(M="utf8");;)switch(M){case"hex":return q(this,I,X);case"utf8":case"utf-8":return N(this,I,X);case"ascii":return W(this,I,X);case"latin1":case"binary":return ne(this,I,X);case"base64":return z(this,I,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,I,X);default:if(Q)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),Q=!0}}).apply(this,arguments)},c.prototype.equals=function(E){if(!c.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E||c.compare(this,E)===0},c.prototype.inspect=function(){var E="",M=t.INSPECT_MAX_BYTES;return this.length>0&&(E=this.toString("hex",0,M).match(/.{2}/g).join(" "),this.length>M&&(E+=" ... ")),"<Buffer "+E+">"},c.prototype.compare=function(E,M,I,X,Q){if(!c.isBuffer(E))throw new TypeError("Argument must be a Buffer");if(M===void 0&&(M=0),I===void 0&&(I=E?E.length:0),X===void 0&&(X=0),Q===void 0&&(Q=this.length),M<0||I>E.length||X<0||Q>this.length)throw new RangeError("out of range index");if(X>=Q&&M>=I)return 0;if(X>=Q)return-1;if(M>=I)return 1;if(M>>>=0,I>>>=0,X>>>=0,Q>>>=0,this===E)return 0;for(var se=Q-X,ge=I-M,Le=Math.min(se,ge),ue=this.slice(X,Q),ve=E.slice(M,I),_e=0;_e<Le;++_e)if(ue[_e]!==ve[_e]){se=ue[_e],ge=ve[_e];break}return se<ge?-1:ge<se?1:0},c.prototype.includes=function(E,M,I){return this.indexOf(E,M,I)!==-1},c.prototype.indexOf=function(E,M,I){return b(this,E,M,I,!0)},c.prototype.lastIndexOf=function(E,M,I){return b(this,E,M,I,!1)},c.prototype.write=function(E,M,I,X){if(M===void 0)X="utf8",I=this.length,M=0;else if(I===void 0&&typeof M=="string")X=M,I=this.length,M=0;else{if(!isFinite(M))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");M|=0,isFinite(I)?(I|=0,X===void 0&&(X="utf8")):(X=I,I=void 0)}var Q=this.length-M;if((I===void 0||I>Q)&&(I=Q),E.length>0&&(I<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");X||(X="utf8");for(var se=!1;;)switch(X){case"hex":return S(this,E,M,I);case"utf8":case"utf-8":return C(this,E,M,I);case"ascii":return T(this,E,M,I);case"latin1":case"binary":return P(this,E,M,I);case"base64":return R(this,E,M,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,E,M,I);default:if(se)throw new TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),se=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function W(E,M,I){var X="";I=Math.min(E.length,I);for(var Q=M;Q<I;++Q)X+=String.fromCharCode(127&E[Q]);return X}function ne(E,M,I){var X="";I=Math.min(E.length,I);for(var Q=M;Q<I;++Q)X+=String.fromCharCode(E[Q]);return X}function q(E,M,I){var X=E.length;(!M||M<0)&&(M=0),(!I||I<0||I>X)&&(I=X);for(var Q="",se=M;se<I;++se)Q+=Z(E[se]);return Q}function J(E,M,I){for(var X=E.slice(M,I),Q="",se=0;se<X.length;se+=2)Q+=String.fromCharCode(X[se]+256*X[se+1]);return Q}function oe(E,M,I){if(E%1!=0||E<0)throw new RangeError("offset is not uint");if(E+M>I)throw new RangeError("Trying to access beyond buffer length")}function le(E,M,I,X,Q,se){if(!c.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>Q||M<se)throw new RangeError('"value" argument is out of bounds');if(I+X>E.length)throw new RangeError("Index out of range")}function G(E,M,I,X){M<0&&(M=65535+M+1);for(var Q=0,se=Math.min(E.length-I,2);Q<se;++Q)E[I+Q]=(M&255<<8*(X?Q:1-Q))>>>8*(X?Q:1-Q)}function F(E,M,I,X){M<0&&(M=4294967295+M+1);for(var Q=0,se=Math.min(E.length-I,4);Q<se;++Q)E[I+Q]=M>>>8*(X?Q:3-Q)&255}function A(E,M,I,X,Q,se){if(I+X>E.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function B(E,M,I,X,Q){return Q||A(E,0,I,4),o.write(E,M,I,X,23,4),I+4}function re(E,M,I,X,Q){return Q||A(E,0,I,8),o.write(E,M,I,X,52,8),I+8}c.prototype.slice=function(E,M){var I,X=this.length;if(E=~~E,M=M===void 0?X:~~M,E<0?(E+=X)<0&&(E=0):E>X&&(E=X),M<0?(M+=X)<0&&(M=0):M>X&&(M=X),M<E&&(M=E),c.TYPED_ARRAY_SUPPORT)(I=this.subarray(E,M)).__proto__=c.prototype;else{var Q=M-E;I=new c(Q,void 0);for(var se=0;se<Q;++se)I[se]=this[se+E]}return I},c.prototype.readUIntLE=function(E,M,I){E|=0,M|=0,I||oe(E,M,this.length);for(var X=this[E],Q=1,se=0;++se<M&&(Q*=256);)X+=this[E+se]*Q;return X},c.prototype.readUIntBE=function(E,M,I){E|=0,M|=0,I||oe(E,M,this.length);for(var X=this[E+--M],Q=1;M>0&&(Q*=256);)X+=this[E+--M]*Q;return X},c.prototype.readUInt8=function(E,M){return M||oe(E,1,this.length),this[E]},c.prototype.readUInt16LE=function(E,M){return M||oe(E,2,this.length),this[E]|this[E+1]<<8},c.prototype.readUInt16BE=function(E,M){return M||oe(E,2,this.length),this[E]<<8|this[E+1]},c.prototype.readUInt32LE=function(E,M){return M||oe(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+16777216*this[E+3]},c.prototype.readUInt32BE=function(E,M){return M||oe(E,4,this.length),16777216*this[E]+(this[E+1]<<16|this[E+2]<<8|this[E+3])},c.prototype.readIntLE=function(E,M,I){E|=0,M|=0,I||oe(E,M,this.length);for(var X=this[E],Q=1,se=0;++se<M&&(Q*=256);)X+=this[E+se]*Q;return X>=(Q*=128)&&(X-=Math.pow(2,8*M)),X},c.prototype.readIntBE=function(E,M,I){E|=0,M|=0,I||oe(E,M,this.length);for(var X=M,Q=1,se=this[E+--X];X>0&&(Q*=256);)se+=this[E+--X]*Q;return se>=(Q*=128)&&(se-=Math.pow(2,8*M)),se},c.prototype.readInt8=function(E,M){return M||oe(E,1,this.length),128&this[E]?-1*(255-this[E]+1):this[E]},c.prototype.readInt16LE=function(E,M){M||oe(E,2,this.length);var I=this[E]|this[E+1]<<8;return 32768&I?4294901760|I:I},c.prototype.readInt16BE=function(E,M){M||oe(E,2,this.length);var I=this[E+1]|this[E]<<8;return 32768&I?4294901760|I:I},c.prototype.readInt32LE=function(E,M){return M||oe(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},c.prototype.readInt32BE=function(E,M){return M||oe(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},c.prototype.readFloatLE=function(E,M){return M||oe(E,4,this.length),o.read(this,E,!0,23,4)},c.prototype.readFloatBE=function(E,M){return M||oe(E,4,this.length),o.read(this,E,!1,23,4)},c.prototype.readDoubleLE=function(E,M){return M||oe(E,8,this.length),o.read(this,E,!0,52,8)},c.prototype.readDoubleBE=function(E,M){return M||oe(E,8,this.length),o.read(this,E,!1,52,8)},c.prototype.writeUIntLE=function(E,M,I,X){E=+E,M|=0,I|=0,X||le(this,E,M,I,Math.pow(2,8*I)-1,0);var Q=1,se=0;for(this[M]=255&E;++se<I&&(Q*=256);)this[M+se]=E/Q&255;return M+I},c.prototype.writeUIntBE=function(E,M,I,X){E=+E,M|=0,I|=0,X||le(this,E,M,I,Math.pow(2,8*I)-1,0);var Q=I-1,se=1;for(this[M+Q]=255&E;--Q>=0&&(se*=256);)this[M+Q]=E/se&255;return M+I},c.prototype.writeUInt8=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,1,255,0),c.TYPED_ARRAY_SUPPORT||(E=Math.floor(E)),this[M]=255&E,M+1},c.prototype.writeUInt16LE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[M]=255&E,this[M+1]=E>>>8):G(this,E,M,!0),M+2},c.prototype.writeUInt16BE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[M]=E>>>8,this[M+1]=255&E):G(this,E,M,!1),M+2},c.prototype.writeUInt32LE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[M+3]=E>>>24,this[M+2]=E>>>16,this[M+1]=E>>>8,this[M]=255&E):F(this,E,M,!0),M+4},c.prototype.writeUInt32BE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[M]=E>>>24,this[M+1]=E>>>16,this[M+2]=E>>>8,this[M+3]=255&E):F(this,E,M,!1),M+4},c.prototype.writeIntLE=function(E,M,I,X){if(E=+E,M|=0,!X){var Q=Math.pow(2,8*I-1);le(this,E,M,I,Q-1,-Q)}var se=0,ge=1,Le=0;for(this[M]=255&E;++se<I&&(ge*=256);)E<0&&Le===0&&this[M+se-1]!==0&&(Le=1),this[M+se]=(E/ge>>0)-Le&255;return M+I},c.prototype.writeIntBE=function(E,M,I,X){if(E=+E,M|=0,!X){var Q=Math.pow(2,8*I-1);le(this,E,M,I,Q-1,-Q)}var se=I-1,ge=1,Le=0;for(this[M+se]=255&E;--se>=0&&(ge*=256);)E<0&&Le===0&&this[M+se+1]!==0&&(Le=1),this[M+se]=(E/ge>>0)-Le&255;return M+I},c.prototype.writeInt8=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,1,127,-128),c.TYPED_ARRAY_SUPPORT||(E=Math.floor(E)),E<0&&(E=255+E+1),this[M]=255&E,M+1},c.prototype.writeInt16LE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[M]=255&E,this[M+1]=E>>>8):G(this,E,M,!0),M+2},c.prototype.writeInt16BE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[M]=E>>>8,this[M+1]=255&E):G(this,E,M,!1),M+2},c.prototype.writeInt32LE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[M]=255&E,this[M+1]=E>>>8,this[M+2]=E>>>16,this[M+3]=E>>>24):F(this,E,M,!0),M+4},c.prototype.writeInt32BE=function(E,M,I){return E=+E,M|=0,I||le(this,E,M,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),c.TYPED_ARRAY_SUPPORT?(this[M]=E>>>24,this[M+1]=E>>>16,this[M+2]=E>>>8,this[M+3]=255&E):F(this,E,M,!1),M+4},c.prototype.writeFloatLE=function(E,M,I){return B(this,E,M,!0,I)},c.prototype.writeFloatBE=function(E,M,I){return B(this,E,M,!1,I)},c.prototype.writeDoubleLE=function(E,M,I){return re(this,E,M,!0,I)},c.prototype.writeDoubleBE=function(E,M,I){return re(this,E,M,!1,I)},c.prototype.copy=function(E,M,I,X){if(I||(I=0),X||X===0||(X=this.length),M>=E.length&&(M=E.length),M||(M=0),X>0&&X<I&&(X=I),X===I||E.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if(I<0||I>=this.length)throw new RangeError("sourceStart out of bounds");if(X<0)throw new RangeError("sourceEnd out of bounds");X>this.length&&(X=this.length),E.length-M<X-I&&(X=E.length-M+I);var Q,se=X-I;if(this===E&&I<M&&M<X)for(Q=se-1;Q>=0;--Q)E[Q+M]=this[Q+I];else if(se<1e3||!c.TYPED_ARRAY_SUPPORT)for(Q=0;Q<se;++Q)E[Q+M]=this[Q+I];else Uint8Array.prototype.set.call(E,this.subarray(I,I+se),M);return se},c.prototype.fill=function(E,M,I,X){if(typeof E=="string"){if(typeof M=="string"?(X=M,M=0,I=this.length):typeof I=="string"&&(X=I,I=this.length),E.length===1){var Q=E.charCodeAt(0);Q<256&&(E=Q)}if(X!==void 0&&typeof X!="string")throw new TypeError("encoding must be a string");if(typeof X=="string"&&!c.isEncoding(X))throw new TypeError("Unknown encoding: "+X)}else typeof E=="number"&&(E&=255);if(M<0||this.length<M||this.length<I)throw new RangeError("Out of range index");if(I<=M)return this;var se;if(M>>>=0,I=I===void 0?this.length:I>>>0,E||(E=0),typeof E=="number")for(se=M;se<I;++se)this[se]=E;else{var ge=c.isBuffer(E)?E:ie(new c(E,X).toString()),Le=ge.length;for(se=0;se<I-M;++se)this[se+M]=ge[se%Le]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function Z(E){return E<16?"0"+E.toString(16):E.toString(16)}function ie(E,M){var I;M=M||1/0;for(var X=E.length,Q=null,se=[],ge=0;ge<X;++ge){if((I=E.charCodeAt(ge))>55295&&I<57344){if(!Q){if(I>56319){(M-=3)>-1&&se.push(239,191,189);continue}if(ge+1===X){(M-=3)>-1&&se.push(239,191,189);continue}Q=I;continue}if(I<56320){(M-=3)>-1&&se.push(239,191,189),Q=I;continue}I=65536+(Q-55296<<10|I-56320)}else Q&&(M-=3)>-1&&se.push(239,191,189);if(Q=null,I<128){if((M-=1)<0)break;se.push(I)}else if(I<2048){if((M-=2)<0)break;se.push(I>>6|192,63&I|128)}else if(I<65536){if((M-=3)<0)break;se.push(I>>12|224,I>>6&63|128,63&I|128)}else{if(!(I<1114112))throw new Error("Invalid code point");if((M-=4)<0)break;se.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return se}function ae(E){return i.toByteArray(function(M){if((M=function(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}(M).replace(U,"")).length<2)return"";for(;M.length%4!=0;)M+="=";return M}(E))}function pe(E,M,I,X){for(var Q=0;Q<X&&!(Q+I>=M.length||Q>=E.length);++Q)M[Q+I]=E[Q];return Q}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&g())}function g(){if(!f){var x=s(p);f=!0;for(var b=c.length;b;){for(l=c,c=[];++h<b;)l&&l[h].run();h=-1,b=c.length}l=null,f=!1,function(w){if(r===clearTimeout)return clearTimeout(w);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{r(w)}catch{try{return r.call(null,w)}catch{return r.call(this,w)}}}(x)}}function v(x,b){this.fun=x,this.array=b}function y(){}i.nextTick=function(x){var b=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)b[w-1]=arguments[w];c.push(new v(x,b)),c.length!==1||f||s(g)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(x){return[]},i.binding=function(x){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(x){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,c,f=arguments.length;switch(f){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(l=new Array(f-1),c=0;c<l.length;)l[c++]=arguments[c];return r.nextTick(function(){i.apply(null,l)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,l){for(var c in s)l[c]=s[c]}function a(s,l,c){return i(s,l,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,l,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,l,c)},a.alloc=function(s,l,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return l!==void 0?typeof c=="string"?f.fill(l,c):f.fill(l):f.fill(0),f},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,c,f,h,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var g=new Error('Uncaught, unspecified "error" event. ('+s+")");throw g.context=s,g}if(o(l=this._events[a]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,h=0;h<c;h++)p[h].apply(this,f);return!0},n.prototype.addListener=function(a,s){var l;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(a,c),l||(l=!0,s.apply(this,arguments))}return c.listener=s,this.on(a,c),this},n.prototype.removeListener=function(a,s){var l,c,f,h;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(l=this._events[a]).length,c=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(h=f;h-- >0;)if(l[h]===s||l[h].listener&&l[h].listener===s){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var a=n(6);function s(N){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(W,ne,q){var J=W.entry;for(W.entry=null;J;){var oe=J.callback;ne.pendingcb--,oe(void 0),J=J.next}ne.corkedRequestsFree?ne.corkedRequestsFree.next=W:ne.corkedRequestsFree=W})(V,N)}}e.exports=S;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;S.WritableState=w;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},g=n(24),v=n(7).Buffer,y=o.Uint8Array||function(){},x=n(25);function b(){}function w(N,V){l=l||n(1),N=N||{};var W=V instanceof l;this.objectMode=!!N.objectMode,W&&(this.objectMode=this.objectMode||!!N.writableObjectMode);var ne=N.highWaterMark,q=N.writableHighWaterMark,J=this.objectMode?16:16384;this.highWaterMark=ne||ne===0?ne:W&&(q||q===0)?q:J,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var oe=N.decodeStrings===!1;this.decodeStrings=!oe,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){(function(G,F){var A=G._writableState,B=A.sync,re=A.writecb;if(function(Z){Z.writing=!1,Z.writecb=null,Z.length-=Z.writelen,Z.writelen=0}(A),F)(function(Z,ie,ae,pe,E){--ie.pendingcb,ae?(a.nextTick(E,pe),a.nextTick(z,Z,ie),Z._writableState.errorEmitted=!0,Z.emit("error",pe)):(E(pe),Z._writableState.errorEmitted=!0,Z.emit("error",pe),z(Z,ie))})(G,A,B,F,re);else{var U=R(A);U||A.corked||A.bufferProcessing||!A.bufferedRequest||P(G,A),B?c(T,G,A,U,re):T(G,A,U,re)}})(V,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function S(N){if(l=l||n(1),!(h.call(S,this)||this instanceof l))return new S(N);this._writableState=new w(N,this),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),g.call(this)}function C(N,V,W,ne,q,J,oe){V.writelen=ne,V.writecb=oe,V.writing=!0,V.sync=!0,W?N._writev(q,V.onwrite):N._write(q,J,V.onwrite),V.sync=!1}function T(N,V,W,ne){W||function(q,J){J.length===0&&J.needDrain&&(J.needDrain=!1,q.emit("drain"))}(N,V),V.pendingcb--,ne(),z(N,V)}function P(N,V){V.bufferProcessing=!0;var W=V.bufferedRequest;if(N._writev&&W&&W.next){var ne=V.bufferedRequestCount,q=new Array(ne),J=V.corkedRequestsFree;J.entry=W;for(var oe=0,le=!0;W;)q[oe]=W,W.isBuf||(le=!1),W=W.next,oe+=1;q.allBuffers=le,C(N,V,!0,V.length,q,"",J.finish),V.pendingcb++,V.lastBufferedRequest=null,J.next?(V.corkedRequestsFree=J.next,J.next=null):V.corkedRequestsFree=new s(V),V.bufferedRequestCount=0}else{for(;W;){var G=W.chunk,F=W.encoding,A=W.callback;if(C(N,V,!1,V.objectMode?1:G.length,G,F,A),W=W.next,V.bufferedRequestCount--,V.writing)break}W===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=W,V.bufferProcessing=!1}function R(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function j(N,V){N._final(function(W){V.pendingcb--,W&&N.emit("error",W),V.prefinished=!0,N.emit("prefinish"),z(N,V)})}function z(N,V){var W=R(V);return W&&(function(ne,q){q.prefinished||q.finalCalled||(typeof ne._final=="function"?(q.pendingcb++,q.finalCalled=!0,a.nextTick(j,ne,q)):(q.prefinished=!0,ne.emit("prefinish")))}(N,V),V.pendingcb===0&&(V.finished=!0,N.emit("finish"))),W}f.inherits(S,g),w.prototype.getBuffer=function(){for(var N=this.bufferedRequest,V=[];N;)V.push(N),N=N.next;return V},function(){try{Object.defineProperty(w.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(N){return!!h.call(this,N)||this===S&&N&&N._writableState instanceof w}})):h=function(N){return N instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(N,V,W){var ne=this._writableState,q=!1,J=!ne.objectMode&&function(oe){return v.isBuffer(oe)||oe instanceof y}(N);return J&&!v.isBuffer(N)&&(N=function(oe){return v.from(oe)}(N)),typeof V=="function"&&(W=V,V=null),J?V="buffer":V||(V=ne.defaultEncoding),typeof W!="function"&&(W=b),ne.ended?function(oe,le){var G=new Error("write after end");oe.emit("error",G),a.nextTick(le,G)}(this,W):(J||function(oe,le,G,F){var A=!0,B=!1;return G===null?B=new TypeError("May not write null values to stream"):typeof G=="string"||G===void 0||le.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(oe.emit("error",B),a.nextTick(F,B),A=!1),A}(this,ne,N,W))&&(ne.pendingcb++,q=function(oe,le,G,F,A,B){if(!G){var re=function(ae,pe,E){return ae.objectMode||ae.decodeStrings===!1||typeof pe!="string"||(pe=v.from(pe,E)),pe}(le,F,A);F!==re&&(G=!0,A="buffer",F=re)}var U=le.objectMode?1:F.length;le.length+=U;var Z=le.length<le.highWaterMark;if(Z||(le.needDrain=!0),le.writing||le.corked){var ie=le.lastBufferedRequest;le.lastBufferedRequest={chunk:F,encoding:A,isBuf:G,callback:B,next:null},ie?ie.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else C(oe,le,!1,U,F,A,B);return Z}(this,ne,J,N,V,W)),q},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.finished||N.bufferProcessing||!N.bufferedRequest||P(this,N))},S.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(N,V,W){W(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(N,V,W){var ne=this._writableState;typeof N=="function"?(W=N,N=null,V=null):typeof V=="function"&&(W=V,V=null),N!=null&&this.write(N,V),ne.corked&&(ne.corked=1,this.uncork()),ne.ending||ne.finished||function(q,J,oe){J.ending=!0,z(q,J),oe&&(J.finished?a.nextTick(oe):q.once("finish",oe)),J.ended=!0,q.writable=!1}(this,ne,W)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),S.prototype.destroy=x.destroy,S.prototype._undestroy=x.undestroy,S.prototype._destroy=function(N,V){this.end(),V(N)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,c){function f(g,v){if(!l[g]){if(!s[g]){var y=typeof _dereq_=="function"&&_dereq_;if(!v&&y)return y(g,!0);if(h)return h(g,!0);var x=new Error("Cannot find module '"+g+"'");throw x.code="MODULE_NOT_FOUND",x}var b=l[g]={exports:{}};s[g][0].call(b.exports,function(w){return f(s[g][1][w]||w)},b,b.exports,a,s,l,c)}return l[g].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p<c.length;p++)f(c[p]);return f}({1:[function(a,s,l){s.exports=function(c){var f=c._SomePromiseArray;function h(p){var g=new f(p),v=g.promise();return g.setHowMany(1),g.setUnwrap(),g.init(),v}c.any=function(p){return h(p)},c.prototype.any=function(){return h(this)}}},{}],2:[function(a,s,l){var c;try{throw new Error}catch(b){c=b}var f=a("./schedule"),h=a("./queue"),p=a("./util");function g(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new h(16),this._normalQueue=new h(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var b=this;this.drainQueues=function(){b._drainQueues()},this._schedule=f}function v(b,w,S){this._lateQueue.push(b,w,S),this._queueTick()}function y(b,w,S){this._normalQueue.push(b,w,S),this._queueTick()}function x(b){this._normalQueue._pushOne(b),this._queueTick()}g.prototype.setScheduler=function(b){var w=this._schedule;return this._schedule=b,this._customScheduler=!0,w},g.prototype.hasCustomScheduler=function(){return this._customScheduler},g.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},g.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},g.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},g.prototype.fatalError=function(b,w){w?(r.stderr.write("Fatal "+(b instanceof Error?b.stack:b)+`
|
||
`),r.exit(2)):this.throwLater(b)},g.prototype.throwLater=function(b,w){if(arguments.length===1&&(w=b,b=function(){throw w}),typeof setTimeout<"u")setTimeout(function(){b(w)},0);else try{this._schedule(function(){b(w)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(g.prototype.invokeLater=function(b,w,S){this._trampolineEnabled?v.call(this,b,w,S):this._schedule(function(){setTimeout(function(){b.call(w,S)},100)})},g.prototype.invoke=function(b,w,S){this._trampolineEnabled?y.call(this,b,w,S):this._schedule(function(){b.call(w,S)})},g.prototype.settlePromises=function(b){this._trampolineEnabled?x.call(this,b):this._schedule(function(){b._settlePromises()})}):(g.prototype.invokeLater=v,g.prototype.invoke=y,g.prototype.settlePromises=x),g.prototype._drainQueue=function(b){for(;b.length()>0;){var w=b.shift();if(typeof w=="function"){var S=b.shift(),C=b.shift();w.call(S,C)}else w._settlePromises()}},g.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},g.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},g.prototype._reset=function(){this._isTickUsed=!1},s.exports=g,s.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(c,f,h,p){var g=!1,v=function(w,S){this._reject(S)},y=function(w,S){S.promiseRejectionQueued=!0,S.bindingPromise._then(v,v,null,this,w)},x=function(w,S){!(50397184&this._bitField)&&this._resolveCallback(S.target)},b=function(w,S){S.promiseRejectionQueued||this._reject(w)};c.prototype.bind=function(w){g||(g=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var S=h(w),C=new c(f);C._propagateFrom(this,1);var T=this._target();if(C._setBoundTo(S),S instanceof c){var P={promiseRejectionQueued:!1,promise:C,target:T,bindingPromise:S};T._then(f,y,void 0,C,P),S._then(x,b,void 0,C,P),C._setOnCancel(S)}else C._resolveCallback(T);return C},c.prototype._setBoundTo=function(w){w!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=w):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(w,S){return c.resolve(S).bind(w)}}},{}],4:[function(a,s,l){var c;typeof Promise<"u"&&(c=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}s.exports=function(p){var g=a("./util"),v=g.canEvaluate;function y(w){return function(S,C){var T;if(S!=null&&(T=S[C]),typeof T!="function"){var P="Object "+g.classString(S)+" has no method '"+g.toString(C)+"'";throw new p.TypeError(P)}return T}(w,this.pop()).apply(w,this)}function x(w){return w[this]}function b(w){var S=+this;return S<0&&(S=Math.max(0,S+w.length)),w[S]}g.isIdentifier,p.prototype.call=function(w){var S=[].slice.call(arguments,1);return S.push(w),this._then(y,void 0,void 0,S,void 0)},p.prototype.get=function(w){var S;if(typeof w=="number")S=b;else if(v){var C=(void 0)(w);S=C!==null?C:x}else S=x;return this._then(S,void 0,void 0,w,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(c,f,h,p){var g=a("./util"),v=g.tryCatch,y=g.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var b=this,w=b;b._isCancellable();){if(!b._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var S=b._cancellationParent;if(S==null||!S._isCancellable()){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}b._isFollowing()&&b._followee().cancel(),b._setWillBeCancelled(),w=b,b=S}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(b){return b===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(b,w){if(g.isArray(b))for(var S=0;S<b.length;++S)this._doInvokeOnCancel(b[S],w);else if(b!==void 0)if(typeof b=="function"){if(!w){var C=v(b).call(this._boundValue());C===y&&(this._attachExtraTrace(C.e),x.throwLater(C.e))}}else b._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var b=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,b)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,l){s.exports=function(c){var f=a("./util"),h=a("./es5").keys,p=f.tryCatch,g=f.errorObj;return function(v,y,x){return function(b){var w=x._boundValue();e:for(var S=0;S<v.length;++S){var C=v[S];if(C===Error||C!=null&&C.prototype instanceof Error){if(b instanceof C)return p(y).call(w,b)}else if(typeof C=="function"){var T=p(C).call(w,b);if(T===g)return T;if(T)return p(y).call(w,b)}else if(f.isObject(b)){for(var P=h(C),R=0;R<P.length;++R){var j=P[R];if(C[j]!=b[j])continue e}return p(y).call(w,b)}}return c}}}},{"./es5":13,"./util":36}],8:[function(a,s,l){s.exports=function(c){var f=!1,h=[];function p(){this._trace=new p.CapturedTrace(g())}function g(){var v=h.length-1;if(v>=0)return h[v]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,h.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=h.pop(),y=v._promiseCreated;return v._promiseCreated=null,y}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=c.prototype._pushContext,y=c.prototype._popContext,x=c._peekContext,b=c.prototype._peekContext,w=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=v,c.prototype._popContext=y,c._peekContext=x,c.prototype._peekContext=b,c.prototype._promiseCreated=w,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=g,c.prototype._promiseCreated=function(){var S=this._peekContext();S&&S._promiseCreated==null&&(S._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(c,f){var h,p,g,v=c._getDomain,y=c._async,x=a("./errors").Warning,b=a("./util"),w=b.canAttachTrace,S=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,C=/\((?:timers\.js):\d+:\d+\)/,T=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,P=null,R=null,j=!1,z=b.env("BLUEBIRD_DEBUG")!=0,N=!(b.env("BLUEBIRD_WARNINGS")==0||!z&&!b.env("BLUEBIRD_WARNINGS")),V=!(b.env("BLUEBIRD_LONG_STACK_TRACES")==0||!z&&!b.env("BLUEBIRD_LONG_STACK_TRACES")),W=b.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(N||!!b.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ce=this._target();ce._bitField=-1048577&ce._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ce=this;setTimeout(function(){ce._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ge("rejectionHandled",h,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ce=this._settledValue();this._setUnhandledRejectionIsNotified(),ge("unhandledRejection",p,ce,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(ce,de,be){return I(ce,de,be||this)},c.onPossiblyUnhandledRejection=function(ce){var de=v();p=typeof ce=="function"?de===null?ce:b.domainBind(de,ce):void 0},c.onUnhandledRejectionHandled=function(ce){var de=v();h=typeof ce=="function"?de===null?ce:b.domainBind(de,ce):void 0};var ne=function(){};c.longStackTraces=function(){if(y.haveItemsQueued()&&!De.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!De.longStackTraces&&ue()){var ce=c.prototype._captureStackTrace,de=c.prototype._attachExtraTrace;De.longStackTraces=!0,ne=function(){if(y.haveItemsQueued()&&!De.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);c.prototype._captureStackTrace=ce,c.prototype._attachExtraTrace=de,f.deactivateLongStackTraces(),y.enableTrampoline(),De.longStackTraces=!1},c.prototype._captureStackTrace=E,c.prototype._attachExtraTrace=M,f.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return De.longStackTraces&&ue()};var q=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return b.global.dispatchEvent(ce),function(de,be){var ye=new CustomEvent(de.toLowerCase(),{detail:be,cancelable:!0});return!b.global.dispatchEvent(ye)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),b.global.dispatchEvent(ce),function(de,be){var ye=new Event(de.toLowerCase(),{cancelable:!0});return ye.detail=be,!b.global.dispatchEvent(ye)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),b.global.dispatchEvent(ce),function(de,be){var ye=document.createEvent("CustomEvent");return ye.initCustomEvent(de.toLowerCase(),!1,!0,be),!b.global.dispatchEvent(ye)})}catch{}return function(){return!1}}(),J=b.isNode?function(){return r.emit.apply(r,arguments)}:b.global?function(ce){var de="on"+ce.toLowerCase(),be=b.global[de];return!!be&&(be.apply(b.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function oe(ce,de){return{promise:de}}var le={promiseCreated:oe,promiseFulfilled:oe,promiseRejected:oe,promiseResolved:oe,promiseCancelled:oe,promiseChained:function(ce,de,be){return{promise:de,child:be}},warning:function(ce,de){return{warning:de}},unhandledRejection:function(ce,de,be){return{reason:de,promise:be}},rejectionHandled:oe},G=function(ce){var de=!1;try{de=J.apply(null,arguments)}catch(ye){y.throwLater(ye),de=!0}var be=!1;try{be=q(ce,le[ce].apply(null,arguments))}catch(ye){y.throwLater(ye),be=!0}return be||de};function F(){return!1}function A(ce,de,be){var ye=this;try{ce(de,be,function(Oe){if(typeof Oe!="function")throw new TypeError("onCancel must be a function, got: "+b.toString(Oe));ye._attachCancellationCallback(Oe)})}catch(Oe){return Oe}}function B(ce){if(!this._isCancellable())return this;var de=this._onCancel();de!==void 0?b.isArray(de)?de.push(ce):this._setOnCancel([de,ce]):this._setOnCancel(ce)}function re(){return this._onCancelField}function U(ce){this._onCancelField=ce}function Z(){this._cancellationParent=void 0,this._onCancelField=void 0}function ie(ce,de){if(1&de){this._cancellationParent=ce;var be=ce._branchesRemainingToCancel;be===void 0&&(be=0),ce._branchesRemainingToCancel=be+1}2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)}c.config=function(ce){if("longStackTraces"in(ce=Object(ce))&&(ce.longStackTraces?c.longStackTraces():!ce.longStackTraces&&c.hasLongStackTraces()&&ne()),"warnings"in ce){var de=ce.warnings;De.warnings=!!de,W=De.warnings,b.isObject(de)&&"wForgottenReturn"in de&&(W=!!de.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!De.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=Z,c.prototype._propagateFrom=ie,c.prototype._onCancel=re,c.prototype._setOnCancel=U,c.prototype._attachCancellationCallback=B,c.prototype._execute=A,ae=ie,De.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!De.monitoring?(De.monitoring=!0,c.prototype._fireEvent=G):!ce.monitoring&&De.monitoring&&(De.monitoring=!1,c.prototype._fireEvent=F)),c},c.prototype._fireEvent=F,c.prototype._execute=function(ce,de,be){try{ce(de,be)}catch(ye){return ye}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ce){},c.prototype._attachCancellationCallback=function(ce){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ce,de){};var ae=function(ce,de){2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)};function pe(){var ce=this._boundTo;return ce!==void 0&&ce instanceof c?ce.isFulfilled()?ce.value():void 0:ce}function E(){this._trace=new Re(this._peekContext())}function M(ce,de){if(w(ce)){var be=this._trace;if(be!==void 0&&de&&(be=be._parent),be!==void 0)be.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var ye=Q(ce);b.notEnumerableProp(ce,"stack",ye.message+`
|
||
`+ye.stack.join(`
|
||
`)),b.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function I(ce,de,be){if(De.warnings){var ye,Oe=new x(ce);if(de)be._attachExtraTrace(Oe);else if(De.longStackTraces&&(ye=c._peekContext()))ye.attachExtraTrace(Oe);else{var ke=Q(Oe);Oe.stack=ke.message+`
|
||
`+ke.stack.join(`
|
||
`)}G("warning",Oe)||se(Oe,"",!0)}}function X(ce){for(var de=[],be=0;be<ce.length;++be){var ye=ce[be],Oe=ye===" (No stack trace)"||P.test(ye),ke=Oe&&ve(ye);Oe&&!ke&&(j&&ye.charAt(0)!==" "&&(ye=" "+ye),de.push(ye))}return de}function Q(ce){var de=ce.stack,be=ce.toString();return de=typeof de=="string"&&de.length>0?function(ye){for(var Oe=ye.stack.replace(/\s+$/g,"").split(`
|
||
`),ke=0;ke<Oe.length;++ke){var Ne=Oe[ke];if(Ne===" (No stack trace)"||P.test(Ne))break}return ke>0&&ye.name!="SyntaxError"&&(Oe=Oe.slice(ke)),Oe}(ce):[" (No stack trace)"],{message:be,stack:ce.name=="SyntaxError"?de:X(de)}}function se(ce,de,be){if(typeof console<"u"){var ye;if(b.isObject(ce)){var Oe=ce.stack;ye=de+R(Oe,ce)}else ye=de+String(ce);typeof g=="function"?g(ye,be):typeof console.log!="function"&&typeof console.log!="object"||console.log(ye)}}function ge(ce,de,be,ye){var Oe=!1;try{typeof de=="function"&&(Oe=!0,ce==="rejectionHandled"?de(ye):de(be,ye))}catch(ke){y.throwLater(ke)}ce==="unhandledRejection"?G(ce,be,ye)||Oe||se(be,"Unhandled rejection "):G(ce,ye)}function Le(ce){var de;if(typeof ce=="function")de="[function "+(ce.name||"anonymous")+"]";else{if(de=ce&&typeof ce.toString=="function"?ce.toString():b.toString(ce),/\[object [a-zA-Z0-9$_]+\]/.test(de))try{de=JSON.stringify(ce)}catch{}de.length===0&&(de="(empty array)")}return"(<"+function(be){return be.length<41?be:be.substr(0,38)+"..."}(de)+">, no stack trace)"}function ue(){return typeof Me=="function"}var ve=function(){return!1},_e=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Ee(ce){var de=ce.match(_e);if(de)return{fileName:de[1],line:parseInt(de[2],10)}}function Re(ce){this._parent=ce,this._promisesCreated=0;var de=this._length=1+(ce===void 0?0:ce._length);Me(this,Re),de>32&&this.uncycle()}b.inherits(Re,Error),f.CapturedTrace=Re,Re.prototype.uncycle=function(){var ce=this._length;if(!(ce<2)){for(var de=[],be={},ye=0,Oe=this;Oe!==void 0;++ye)de.push(Oe),Oe=Oe._parent;for(ye=(ce=this._length=ye)-1;ye>=0;--ye){var ke=de[ye].stack;be[ke]===void 0&&(be[ke]=ye)}for(ye=0;ye<ce;++ye){var Ne=be[de[ye].stack];if(Ne!==void 0&&Ne!==ye){Ne>0&&(de[Ne-1]._parent=void 0,de[Ne-1]._length=1),de[ye]._parent=void 0,de[ye]._length=1;var Qe=ye>0?de[ye-1]:this;Ne<ce-1?(Qe._parent=de[Ne+1],Qe._parent.uncycle(),Qe._length=Qe._parent._length+1):(Qe._parent=void 0,Qe._length=1);for(var et=Qe._length+1,qe=ye-2;qe>=0;--qe)de[qe]._length=et,et++;return}}}},Re.prototype.attachExtraTrace=function(ce){if(!ce.__stackCleaned__){this.uncycle();for(var de=Q(ce),be=de.message,ye=[de.stack],Oe=this;Oe!==void 0;)ye.push(X(Oe.stack.split(`
|
||
`))),Oe=Oe._parent;(function(ke){for(var Ne=ke[0],Qe=1;Qe<ke.length;++Qe){for(var et=ke[Qe],qe=Ne.length-1,Gt=Ne[qe],zt=-1,Sn=et.length-1;Sn>=0;--Sn)if(et[Sn]===Gt){zt=Sn;break}for(Sn=zt;Sn>=0;--Sn){var or=et[Sn];if(Ne[qe]!==or)break;Ne.pop(),qe--}Ne=et}})(ye),function(ke){for(var Ne=0;Ne<ke.length;++Ne)(ke[Ne].length===0||Ne+1<ke.length&&ke[Ne][0]===ke[Ne+1][0])&&(ke.splice(Ne,1),Ne--)}(ye),b.notEnumerableProp(ce,"stack",function(ke,Ne){for(var Qe=0;Qe<Ne.length-1;++Qe)Ne[Qe].push("From previous event:"),Ne[Qe]=Ne[Qe].join(`
|
||
`);return Qe<Ne.length&&(Ne[Qe]=Ne[Qe].join(`
|
||
`)),ke+`
|
||
`+Ne.join(`
|
||
`)}(be,ye)),b.notEnumerableProp(ce,"__stackCleaned__",!0)}};var Me=function(){var ce=/^\s*at\s*/,de=function(ke,Ne){return typeof ke=="string"?ke:Ne.name!==void 0&&Ne.message!==void 0?Ne.toString():Le(Ne)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,P=ce,R=de;var be=Error.captureStackTrace;return ve=function(ke){return S.test(ke)},function(ke,Ne){Error.stackTraceLimit+=6,be(ke,Ne),Error.stackTraceLimit-=6}}var ye,Oe=new Error;if(typeof Oe.stack=="string"&&Oe.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return P=/@/,R=de,j=!0,function(ke){ke.stack=new Error().stack};try{throw new Error}catch(ke){ye="stack"in ke}return"stack"in Oe||!ye||typeof Error.stackTraceLimit!="number"?(R=function(ke,Ne){return typeof ke=="string"?ke:typeof Ne!="object"&&typeof Ne!="function"||Ne.name===void 0||Ne.message===void 0?Le(Ne):Ne.toString()},null):(P=ce,R=de,function(ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Ne){ke.stack=Ne.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(g=function(ce){console.warn(ce)},b.isNode&&r.stderr.isTTY?g=function(ce,de){var be=de?"\x1B[33m":"\x1B[31m";console.warn(be+ce+`\x1B[0m
|
||
`)}:b.isNode||typeof new Error().stack!="string"||(g=function(ce,de){console.warn("%c"+ce,de?"color: darkorange":"color: red")}));var De={warnings:N,longStackTraces:!1,cancellation:!1,monitoring:!1};return V&&c.longStackTraces(),{longStackTraces:function(){return De.longStackTraces},warnings:function(){return De.warnings},cancellation:function(){return De.cancellation},monitoring:function(){return De.monitoring},propagateFromFunction:function(){return ae},boundValueFunction:function(){return pe},checkForgottenReturns:function(ce,de,be,ye,Oe){if(ce===void 0&&de!==null&&W){if(Oe!==void 0&&Oe._returnedNonUndefined()||!(65535&ye._bitField))return;be&&(be+=" ");var ke="",Ne="";if(de._trace){for(var Qe=de._trace.stack.split(`
|
||
`),et=X(Qe),qe=et.length-1;qe>=0;--qe){var Gt=et[qe];if(!C.test(Gt)){var zt=Gt.match(T);zt&&(ke="at "+zt[1]+":"+zt[2]+":"+zt[3]+" ");break}}if(et.length>0){var Sn=et[0];for(qe=0;qe<Qe.length;++qe)if(Qe[qe]===Sn){qe>0&&(Ne=`
|
||
`+Qe[qe-1]);break}}}var or="a promise was created in a "+be+"handler "+ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Ne;ye._warn(or,!0,de)}},setBounds:function(ce,de){if(ue()){for(var be,ye,Oe=ce.stack.split(`
|
||
`),ke=de.stack.split(`
|
||
`),Ne=-1,Qe=-1,et=0;et<Oe.length;++et)if(qe=Ee(Oe[et])){be=qe.fileName,Ne=qe.line;break}for(et=0;et<ke.length;++et){var qe;if(qe=Ee(ke[et])){ye=qe.fileName,Qe=qe.line;break}}Ne<0||Qe<0||!be||!ye||be!==ye||Ne>=Qe||(ve=function(Gt){if(S.test(Gt))return!0;var zt=Ee(Gt);return!!(zt&&zt.fileName===be&&Ne<=zt.line&&zt.line<=Qe)})}},warn:I,deprecated:function(ce,de){var be=ce+" is deprecated and will be removed in a future version.";return de&&(be+=" Use "+de+" instead."),I(be)},CapturedTrace:Re,fireDomEvent:q,fireGlobalEvent:J}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(c){function f(){return this.value}function h(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(h,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,h,void 0,{reason:p},void 0);var g=arguments[1];return this.caught(p,function(){throw g})},c.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof c&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var g=arguments[1];return g instanceof c&&g.suppressUnhandledRejections(),this.caught(p,function(){return g})}}},{}],11:[function(a,s,l){s.exports=function(c,f){var h=c.reduce,p=c.all;function g(){return p(this)}c.prototype.each=function(v){return h(this,v,f,0)._then(g,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(v){return h(this,v,f,f)},c.each=function(v,y){return h(v,y,f,0)._then(g,void 0,void 0,v,void 0)},c.mapSeries=function(v,y){return h(v,y,f,f)}}},{}],12:[function(a,s,l){var c,f,h=a("./es5"),p=h.freeze,g=a("./util"),v=g.inherits,y=g.notEnumerableProp;function x(N,V){function W(ne){if(!(this instanceof W))return new W(ne);y(this,"message",typeof ne=="string"?ne:V),y(this,"name",N),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(W,Error),W}var b=x("Warning","warning"),w=x("CancellationError","cancellation error"),S=x("TimeoutError","timeout error"),C=x("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=x("TypeError","type error"),f=x("RangeError","range error")}for(var T="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),P=0;P<T.length;++P)typeof Array.prototype[T[P]]=="function"&&(C.prototype[T[P]]=Array.prototype[T[P]]);h.defineProperty(C.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),C.prototype.isOperational=!0;var R=0;function j(N){if(!(this instanceof j))return new j(N);y(this,"name","OperationalError"),y(this,"message",N),this.cause=N,this.isOperational=!0,N instanceof Error?(y(this,"message",N.message),y(this,"stack",N.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}C.prototype.toString=function(){var N=Array(4*R+1).join(" "),V=`
|
||
`+N+`AggregateError of:
|
||
`;R++,N=Array(4*R+1).join(" ");for(var W=0;W<this.length;++W){for(var ne=this[W]===this?"[Circular AggregateError]":this[W]+"",q=ne.split(`
|
||
`),J=0;J<q.length;++J)q[J]=N+q[J];V+=(ne=q.join(`
|
||
`))+`
|
||
`}return R--,V},v(j,Error);var z=Error.__BluebirdErrorTypes__;z||(z=p({CancellationError:w,TimeoutError:S,OperationalError:j,RejectionError:j,AggregateError:C}),h.defineProperty(Error,"__BluebirdErrorTypes__",{value:z,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:c,RangeError:f,CancellationError:z.CancellationError,OperationalError:z.OperationalError,TimeoutError:z.TimeoutError,AggregateError:z.AggregateError,Warning:b}},{"./es5":13,"./util":36}],13:[function(a,s,l){var c=function(){return this===void 0}();if(c)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:c,propertyIsWritable:function(v,y){var x=Object.getOwnPropertyDescriptor(v,y);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,h={}.toString,p={}.constructor.prototype,g=function(v){var y=[];for(var x in v)f.call(v,x)&&y.push(x);return y};s.exports={isArray:function(v){try{return h.call(v)==="[object Array]"}catch{return!1}},keys:g,names:g,defineProperty:function(v,y,x){return v[y]=x.value,v},getDescriptor:function(v,y){return{value:v[y]}},freeze:function(v){return v},getPrototypeOf:function(v){try{return Object(v).constructor.prototype}catch{return p}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,l){s.exports=function(c,f){var h=c.map;c.prototype.filter=function(p,g){return h(this,p,g,f)},c.filter=function(p,g,v){return h(p,g,v,f)}}},{}],15:[function(a,s,l){s.exports=function(c,f,h){var p=a("./util"),g=c.CancellationError,v=p.errorObj,y=a("./catch_filter")(h);function x(P,R,j){this.promise=P,this.type=R,this.handler=j,this.called=!1,this.cancelPromise=null}function b(P){this.finallyHandler=P}function w(P,R){return P.cancelPromise!=null&&(arguments.length>1?P.cancelPromise._reject(R):P.cancelPromise._cancel(),P.cancelPromise=null,!0)}function S(){return T.call(this,this.promise._target()._settledValue())}function C(P){if(!w(this,P))return v.e=P,v}function T(P){var R=this.promise,j=this.handler;if(!this.called){this.called=!0;var z=this.isFinallyHandler()?j.call(R._boundValue()):j.call(R._boundValue(),P);if(z===h)return z;if(z!==void 0){R._setReturnedNonUndefined();var N=f(z,R);if(N instanceof c){if(this.cancelPromise!=null){if(N._isCancelled()){var V=new g("late cancellation observer");return R._attachExtraTrace(V),v.e=V,v}N.isPending()&&N._attachCancellationCallback(new b(this))}return N._then(S,C,void 0,this,void 0)}}}return R.isRejected()?(w(this),v.e=P,v):(w(this),P)}return x.prototype.isFinallyHandler=function(){return this.type===0},b.prototype._resultCancelled=function(){w(this.finallyHandler)},c.prototype._passThrough=function(P,R,j,z){return typeof P!="function"?this.then():this._then(j,z,void 0,new x(this,R,P),void 0)},c.prototype.lastly=c.prototype.finally=function(P){return this._passThrough(P,0,T,T)},c.prototype.tap=function(P){return this._passThrough(P,1,T)},c.prototype.tapCatch=function(P){var R=arguments.length;if(R===1)return this._passThrough(P,1,void 0,T);var j,z=new Array(R-1),N=0;for(j=0;j<R-1;++j){var V=arguments[j];if(!p.isObject(V))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(V)));z[N++]=V}z.length=N;var W=arguments[j];return this._passThrough(y(z,W,this),1,void 0,T)},x}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(c,f,h,p,g,v){var y=a("./errors").TypeError,x=a("./util"),b=x.errorObj,w=x.tryCatch,S=[];function C(T,P,R,j){if(v.cancellation()){var z=new c(h),N=this._finallyPromise=new c(h);this._promise=z.lastly(function(){return N}),z._captureStackTrace(),z._setOnCancel(this)}else(this._promise=new c(h))._captureStackTrace();this._stack=j,this._generatorFunction=T,this._receiver=P,this._generator=void 0,this._yieldHandlers=typeof R=="function"?[R].concat(S):S,this._yieldedPromise=null,this._cancellationPhase=!1}x.inherits(C,g),C.prototype._isResolved=function(){return this._promise===null},C.prototype._cleanup=function(){this._promise=this._generator=null,v.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},C.prototype._promiseCancelled=function(){if(!this._isResolved()){var T;if(this._generator.return!==void 0)this._promise._pushContext(),T=w(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var P=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=P,this._promise._attachExtraTrace(P),this._promise._pushContext(),T=w(this._generator.throw).call(this._generator,P),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(T)}},C.prototype._promiseFulfilled=function(T){this._yieldedPromise=null,this._promise._pushContext();var P=w(this._generator.next).call(this._generator,T);this._promise._popContext(),this._continue(P)},C.prototype._promiseRejected=function(T){this._yieldedPromise=null,this._promise._attachExtraTrace(T),this._promise._pushContext();var P=w(this._generator.throw).call(this._generator,T);this._promise._popContext(),this._continue(P)},C.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var T=this._yieldedPromise;this._yieldedPromise=null,T.cancel()}},C.prototype.promise=function(){return this._promise},C.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},C.prototype._continue=function(T){var P=this._promise;if(T===b)return this._cleanup(),this._cancellationPhase?P.cancel():P._rejectCallback(T.e,!1);var R=T.value;if(T.done===!0)return this._cleanup(),this._cancellationPhase?P.cancel():P._resolveCallback(R);var j=p(R,this._promise);if(j instanceof c||(j=function(N,V,W){for(var ne=0;ne<V.length;++ne){W._pushContext();var q=w(V[ne])(N);if(W._popContext(),q===b){W._pushContext();var J=c.reject(b.e);return W._popContext(),J}var oe=p(q,W);if(oe instanceof c)return oe}return null}(j,this._yieldHandlers,this._promise))!==null){var z=(j=j._target())._bitField;50397184&z?33554432&z?c._async.invoke(this._promiseFulfilled,this,j._value()):16777216&z?c._async.invoke(this._promiseRejected,this,j._reason()):this._promiseCancelled():(this._yieldedPromise=j,j._proxy(this,null))}else this._promiseRejected(new y(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(R))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},c.coroutine=function(T,P){if(typeof T!="function")throw new y(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var R=Object(P).yieldHandler,j=C,z=new Error().stack;return function(){var N=T.apply(this,arguments),V=new j(void 0,void 0,R,z),W=V.promise();return V._generator=N,V._promiseFulfilled(void 0),W}},c.coroutine.addYieldHandler=function(T){if(typeof T!="function")throw new y("expecting a function but got "+x.classString(T));S.push(T)},c.spawn=function(T){if(v.deprecated("Promise.spawn()","Promise.coroutine()"),typeof T!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=new C(T,this),R=P.promise();return P._run(c.spawn),R}}},{"./errors":12,"./util":36}],17:[function(a,s,l){s.exports=function(c,f,h,p,g,v){var y=a("./util");y.canEvaluate,y.tryCatch,y.errorObj,c.join=function(){var x,b=arguments.length-1;b>0&&typeof arguments[b]=="function"&&(x=arguments[b]);var w=[].slice.call(arguments);x&&w.pop();var S=new f(w).promise();return x!==void 0?S.spread(x):S}}},{"./util":36}],18:[function(a,s,l){s.exports=function(c,f,h,p,g,v){var y=c._getDomain,x=a("./util"),b=x.tryCatch,w=x.errorObj,S=c._async;function C(P,R,j,z){this.constructor$(P),this._promise._captureStackTrace();var N=y();this._callback=N===null?R:x.domainBind(N,R),this._preservedValues=z===g?new Array(this.length()):null,this._limit=j,this._inFlight=0,this._queue=[],S.invoke(this._asyncInit,this,void 0)}function T(P,R,j,z){if(typeof R!="function")return h("expecting a function but got "+x.classString(R));var N=0;if(j!==void 0){if(typeof j!="object"||j===null)return c.reject(new TypeError("options argument must be an object but it is "+x.classString(j)));if(typeof j.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(j.concurrency)));N=j.concurrency}return new C(P,R,N=typeof N=="number"&&isFinite(N)&&N>=1?N:0,z).promise()}x.inherits(C,f),C.prototype._asyncInit=function(){this._init$(void 0,-2)},C.prototype._init=function(){},C.prototype._promiseFulfilled=function(P,R){var j=this._values,z=this.length(),N=this._preservedValues,V=this._limit;if(R<0){if(j[R=-1*R-1]=P,V>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(V>=1&&this._inFlight>=V)return j[R]=P,this._queue.push(R),!1;N!==null&&(N[R]=P);var W=this._promise,ne=this._callback,q=W._boundValue();W._pushContext();var J=b(ne).call(q,P,R,z),oe=W._popContext();if(v.checkForgottenReturns(J,oe,N!==null?"Promise.filter":"Promise.map",W),J===w)return this._reject(J.e),!0;var le=p(J,this._promise);if(le instanceof c){var G=(le=le._target())._bitField;if(!(50397184&G))return V>=1&&this._inFlight++,j[R]=le,le._proxy(this,-1*(R+1)),!1;if(!(33554432&G))return 16777216&G?(this._reject(le._reason()),!0):(this._cancel(),!0);J=le._value()}j[R]=J}return++this._totalResolved>=z&&(N!==null?this._filter(j,N):this._resolve(j),!0)},C.prototype._drainQueue=function(){for(var P=this._queue,R=this._limit,j=this._values;P.length>0&&this._inFlight<R;){if(this._isResolved())return;var z=P.pop();this._promiseFulfilled(j[z],z)}},C.prototype._filter=function(P,R){for(var j=R.length,z=new Array(j),N=0,V=0;V<j;++V)P[V]&&(z[N++]=R[V]);z.length=N,this._resolve(z)},C.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(P,R){return T(this,P,R,null)},c.map=function(P,R,j,z){return T(P,R,j,z)}}},{"./util":36}],19:[function(a,s,l){s.exports=function(c,f,h,p,g){var v=a("./util"),y=v.tryCatch;c.method=function(x){if(typeof x!="function")throw new c.TypeError("expecting a function but got "+v.classString(x));return function(){var b=new c(f);b._captureStackTrace(),b._pushContext();var w=y(x).apply(this,arguments),S=b._popContext();return g.checkForgottenReturns(w,S,"Promise.method",b),b._resolveFromSyncValue(w),b}},c.attempt=c.try=function(x){if(typeof x!="function")return p("expecting a function but got "+v.classString(x));var b,w=new c(f);if(w._captureStackTrace(),w._pushContext(),arguments.length>1){g.deprecated("calling Promise.try with more than 1 argument");var S=arguments[1],C=arguments[2];b=v.isArray(S)?y(x).apply(C,S):y(x).call(C,S)}else b=y(x)();var T=w._popContext();return g.checkForgottenReturns(b,T,"Promise.try",w),w._resolveFromSyncValue(b),w},c.prototype._resolveFromSyncValue=function(x){x===v.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,l){var c=a("./util"),f=c.maybeWrapAsError,h=a("./errors").OperationalError,p=a("./es5"),g=/^(?:name|message|stack|cause)$/;function v(y){var x;if(function(C){return C instanceof Error&&p.getPrototypeOf(C)===Error.prototype}(y)){(x=new h(y)).name=y.name,x.message=y.message,x.stack=y.stack;for(var b=p.keys(y),w=0;w<b.length;++w){var S=b[w];g.test(S)||(x[S]=y[S])}return x}return c.markAsOriginatingFromRejection(y),y}s.exports=function(y,x){return function(b,w){if(y!==null){if(b){var S=v(f(b));y._attachExtraTrace(S),y._reject(S)}else if(x){var C=[].slice.call(arguments,1);y._fulfill(C)}else y._fulfill(w);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(c){var f=a("./util"),h=c._async,p=f.tryCatch,g=f.errorObj;function v(b,w){if(!f.isArray(b))return y.call(this,b,w);var S=p(w).apply(this._boundValue(),[null].concat(b));S===g&&h.throwLater(S.e)}function y(b,w){var S=this._boundValue(),C=b===void 0?p(w).call(S,null):p(w).call(S,null,b);C===g&&h.throwLater(C.e)}function x(b,w){if(!b){var S=new Error(b+"");S.cause=b,b=S}var C=p(w).call(this._boundValue(),b);C===g&&h.throwLater(C.e)}c.prototype.asCallback=c.prototype.nodeify=function(b,w){if(typeof b=="function"){var S=y;w!==void 0&&Object(w).spread&&(S=v),this._then(S,x,void 0,this,b)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var c=function(){return new C(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},f=function(){return new F.PromiseInspection(this._target())},h=function(U){return F.reject(new C(U))};function p(){}var g,v={},y=a("./util");g=y.isNode?function(){var U=r.domain;return U===void 0&&(U=null),U}:function(){return null},y.notEnumerableProp(F,"_getDomain",g);var x=a("./es5"),b=a("./async"),w=new b;x.defineProperty(F,"_async",{value:w});var S=a("./errors"),C=F.TypeError=S.TypeError;F.RangeError=S.RangeError;var T=F.CancellationError=S.CancellationError;F.TimeoutError=S.TimeoutError,F.OperationalError=S.OperationalError,F.RejectionError=S.OperationalError,F.AggregateError=S.AggregateError;var P=function(){},R={},j={},z=a("./thenables")(F,P),N=a("./promise_array")(F,P,z,h,p),V=a("./context")(F),W=V.create,ne=a("./debuggability")(F,V),q=(ne.CapturedTrace,a("./finally")(F,z,j)),J=a("./catch_filter")(j),oe=a("./nodeback"),le=y.errorObj,G=y.tryCatch;function F(U){U!==P&&function(Z,ie){if(Z==null||Z.constructor!==F)throw new C(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof ie!="function")throw new C("expecting a function but got "+y.classString(ie))}(this,U),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(U),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function A(U){this.promise._resolveCallback(U)}function B(U){this.promise._rejectCallback(U,!1)}function re(U){var Z=new F(P);Z._fulfillmentHandler0=U,Z._rejectionHandler0=U,Z._promise0=U,Z._receiver0=U}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(U){var Z=arguments.length;if(Z>1){var ie,ae=new Array(Z-1),pe=0;for(ie=0;ie<Z-1;++ie){var E=arguments[ie];if(!y.isObject(E))return h("Catch statement predicate: expecting an object but got "+y.classString(E));ae[pe++]=E}return ae.length=pe,U=arguments[ie],this.then(void 0,J(ae,U,this))}return this.then(void 0,U)},F.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},F.prototype.then=function(U,Z){if(ne.warnings()&&arguments.length>0&&typeof U!="function"&&typeof Z!="function"){var ie=".then() only accepts functions but was passed: "+y.classString(U);arguments.length>1&&(ie+=", "+y.classString(Z)),this._warn(ie)}return this._then(U,Z,void 0,void 0,void 0)},F.prototype.done=function(U,Z){this._then(U,Z,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(U){return typeof U!="function"?h("expecting a function but got "+y.classString(U)):this.all()._then(U,void 0,void 0,R,void 0)},F.prototype.toJSON=function(){var U={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(U.fulfillmentValue=this.value(),U.isFulfilled=!0):this.isRejected()&&(U.rejectionReason=this.reason(),U.isRejected=!0),U},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new N(this).promise()},F.prototype.error=function(U){return this.caught(y.originatesFromRejection,U)},F.getNewLibraryCopy=s.exports,F.is=function(U){return U instanceof F},F.fromNode=F.fromCallback=function(U){var Z=new F(P);Z._captureStackTrace();var ie=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=G(U)(oe(Z,ie));return ae===le&&Z._rejectCallback(ae.e,!0),Z._isFateSealed()||Z._setAsyncGuaranteed(),Z},F.all=function(U){return new N(U).promise()},F.cast=function(U){var Z=z(U);return Z instanceof F||((Z=new F(P))._captureStackTrace(),Z._setFulfilled(),Z._rejectionHandler0=U),Z},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(U){var Z=new F(P);return Z._captureStackTrace(),Z._rejectCallback(U,!0),Z},F.setScheduler=function(U){if(typeof U!="function")throw new C("expecting a function but got "+y.classString(U));return w.setScheduler(U)},F.prototype._then=function(U,Z,ie,ae,pe){var E=pe!==void 0,M=E?pe:new F(P),I=this._target(),X=I._bitField;E||(M._propagateFrom(this,3),M._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&X?this._boundValue():I===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,M));var Q=g();if(50397184&X){var se,ge,Le=I._settlePromiseCtx;33554432&X?(ge=I._rejectionHandler0,se=U):16777216&X?(ge=I._fulfillmentHandler0,se=Z,I._unsetRejectionIsUnhandled()):(Le=I._settlePromiseLateCancellationObserver,ge=new T("late cancellation observer"),I._attachExtraTrace(ge),se=Z),w.invoke(Le,I,{handler:Q===null?se:typeof se=="function"&&y.domainBind(Q,se),promise:M,receiver:ae,value:ge})}else I._addCallbacks(U,Z,M,ae,Q);return M},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},F.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},F.prototype._setLength=function(U){this._bitField=-65536&this._bitField|65535&U},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){w.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(U){var Z=U===0?this._receiver0:this[4*U-4+3];if(Z!==v)return Z===void 0&&this._isBound()?this._boundValue():Z},F.prototype._promiseAt=function(U){return this[4*U-4+2]},F.prototype._fulfillmentHandlerAt=function(U){return this[4*U-4+0]},F.prototype._rejectionHandlerAt=function(U){return this[4*U-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(U){U._bitField;var Z=U._fulfillmentHandler0,ie=U._rejectionHandler0,ae=U._promise0,pe=U._receiverAt(0);pe===void 0&&(pe=v),this._addCallbacks(Z,ie,ae,pe,null)},F.prototype._migrateCallbackAt=function(U,Z){var ie=U._fulfillmentHandlerAt(Z),ae=U._rejectionHandlerAt(Z),pe=U._promiseAt(Z),E=U._receiverAt(Z);E===void 0&&(E=v),this._addCallbacks(ie,ae,pe,E,null)},F.prototype._addCallbacks=function(U,Z,ie,ae,pe){var E=this._length();if(E>=65531&&(E=0,this._setLength(0)),E===0)this._promise0=ie,this._receiver0=ae,typeof U=="function"&&(this._fulfillmentHandler0=pe===null?U:y.domainBind(pe,U)),typeof Z=="function"&&(this._rejectionHandler0=pe===null?Z:y.domainBind(pe,Z));else{var M=4*E-4;this[M+2]=ie,this[M+3]=ae,typeof U=="function"&&(this[M+0]=pe===null?U:y.domainBind(pe,U)),typeof Z=="function"&&(this[M+1]=pe===null?Z:y.domainBind(pe,Z))}return this._setLength(E+1),E},F.prototype._proxy=function(U,Z){this._addCallbacks(void 0,void 0,Z,U,null)},F.prototype._resolveCallback=function(U,Z){if(!(117506048&this._bitField)){if(U===this)return this._rejectCallback(c(),!1);var ie=z(U,this);if(!(ie instanceof F))return this._fulfill(U);Z&&this._propagateFrom(ie,2);var ae=ie._target();if(ae!==this){var pe=ae._bitField;if(50397184&pe)if(33554432&pe)this._fulfill(ae._value());else if(16777216&pe)this._reject(ae._reason());else{var I=new T("late cancellation observer");ae._attachExtraTrace(I),this._reject(I)}else{var E=this._length();E>0&&ae._migrateCallback0(this);for(var M=1;M<E;++M)ae._migrateCallbackAt(this,M);this._setFollowing(),this._setLength(0),this._setFollowee(ae)}}else this._reject(c())}},F.prototype._rejectCallback=function(U,Z,ie){var ae=y.ensureErrorObject(U),pe=ae===U;if(!pe&&!ie&&ne.warnings()){var E="a promise was rejected with a non-error: "+y.classString(U);this._warn(E,!0)}this._attachExtraTrace(ae,!!Z&&pe),this._reject(U)},F.prototype._resolveFromExecutor=function(U){if(U!==P){var Z=this;this._captureStackTrace(),this._pushContext();var ie=!0,ae=this._execute(U,function(pe){Z._resolveCallback(pe)},function(pe){Z._rejectCallback(pe,ie)});ie=!1,this._popContext(),ae!==void 0&&Z._rejectCallback(ae,!0)}},F.prototype._settlePromiseFromHandler=function(U,Z,ie,ae){var pe=ae._bitField;if(!(65536&pe)){var E;ae._pushContext(),Z===R?ie&&typeof ie.length=="number"?E=G(U).apply(this._boundValue(),ie):(E=le).e=new C("cannot .spread() a non-array: "+y.classString(ie)):E=G(U).call(Z,ie);var M=ae._popContext();!(65536&(pe=ae._bitField))&&(E===j?ae._reject(ie):E===le?ae._rejectCallback(E.e,!1):(ne.checkForgottenReturns(E,M,"",ae,this),ae._resolveCallback(E)))}},F.prototype._target=function(){for(var U=this;U._isFollowing();)U=U._followee();return U},F.prototype._followee=function(){return this._rejectionHandler0},F.prototype._setFollowee=function(U){this._rejectionHandler0=U},F.prototype._settlePromise=function(U,Z,ie,ae){var pe=U instanceof F,E=this._bitField,M=(134217728&E)!=0;65536&E?(pe&&U._invokeInternalOnCancel(),ie instanceof q&&ie.isFinallyHandler()?(ie.cancelPromise=U,G(Z).call(ie,ae)===le&&U._reject(le.e)):Z===f?U._fulfill(f.call(ie)):ie instanceof p?ie._promiseCancelled(U):pe||U instanceof N?U._cancel():ie.cancel()):typeof Z=="function"?pe?(M&&U._setAsyncGuaranteed(),this._settlePromiseFromHandler(Z,ie,ae,U)):Z.call(ie,ae,U):ie instanceof p?ie._isResolved()||(33554432&E?ie._promiseFulfilled(ae,U):ie._promiseRejected(ae,U)):pe&&(M&&U._setAsyncGuaranteed(),33554432&E?U._fulfill(ae):U._reject(ae))},F.prototype._settlePromiseLateCancellationObserver=function(U){var Z=U.handler,ie=U.promise,ae=U.receiver,pe=U.value;typeof Z=="function"?ie instanceof F?this._settlePromiseFromHandler(Z,ae,pe,ie):Z.call(ae,pe,ie):ie instanceof F&&ie._reject(pe)},F.prototype._settlePromiseCtx=function(U){this._settlePromise(U.promise,U.handler,U.receiver,U.value)},F.prototype._settlePromise0=function(U,Z,ie){var ae=this._promise0,pe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ae,U,pe,Z)},F.prototype._clearCallbackDataAtIndex=function(U){var Z=4*U-4;this[Z+2]=this[Z+3]=this[Z+0]=this[Z+1]=void 0},F.prototype._fulfill=function(U){var Z=this._bitField;if(!((117506048&Z)>>>16)){if(U===this){var ie=c();return this._attachExtraTrace(ie),this._reject(ie)}this._setFulfilled(),this._rejectionHandler0=U,(65535&Z)>0&&(134217728&Z?this._settlePromises():w.settlePromises(this))}},F.prototype._reject=function(U){var Z=this._bitField;if(!((117506048&Z)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=U,this._isFinal())return w.fatalError(U,y.isNode);(65535&Z)>0?w.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(U,Z){for(var ie=1;ie<U;ie++){var ae=this._fulfillmentHandlerAt(ie),pe=this._promiseAt(ie),E=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(pe,ae,E,Z)}},F.prototype._rejectPromises=function(U,Z){for(var ie=1;ie<U;ie++){var ae=this._rejectionHandlerAt(ie),pe=this._promiseAt(ie),E=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(pe,ae,E,Z)}},F.prototype._settlePromises=function(){var U=this._bitField,Z=65535&U;if(Z>0){if(16842752&U){var ie=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ie,U),this._rejectPromises(Z,ie)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,U),this._fulfillPromises(Z,ae)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var U=this._bitField;return 33554432&U?this._rejectionHandler0:16777216&U?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return ne.deprecated("Promise.defer","new Promise"),{promise:new F(P),resolve:A,reject:B}},y.notEnumerableProp(F,"_makeSelfResolutionError",c),a("./method")(F,P,z,h,ne),a("./bind")(F,P,z,ne),a("./cancel")(F,N,h,ne),a("./direct_resolve")(F),a("./synchronous_inspection")(F),a("./join")(F,N,z,P,w,g),F.Promise=F,F.version="3.5.1",a("./map.js")(F,N,h,z,P,ne),a("./call_get.js")(F),a("./using.js")(F,h,z,W,P,ne),a("./timers.js")(F,P,ne),a("./generators.js")(F,h,P,z,p,ne),a("./nodeify.js")(F),a("./promisify.js")(F,P),a("./props.js")(F,N,z,h),a("./race.js")(F,P,z,h),a("./reduce.js")(F,N,h,z,P,ne),a("./settle.js")(F,N,ne),a("./some.js")(F,N,h),a("./filter.js")(F,P),a("./each.js")(F,P),a("./any.js")(F),y.toFastProperties(F),y.toFastProperties(F.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new F(P)),ne.setBounds(b.firstLineError,y.lastLineError),F}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,l){s.exports=function(c,f,h,p,g){var v=a("./util");function y(x){var b=this._promise=new c(f);x instanceof c&&b._propagateFrom(x,3),b._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(y,g),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function x(b,w){var S=h(this._values,this._promise);if(S instanceof c){var C=(S=S._target())._bitField;if(this._values=S,(50397184&C)==0)return this._promise._setAsyncGuaranteed(),S._then(x,this._reject,void 0,this,w);if(!(33554432&C))return 16777216&C?this._reject(S._reason()):this._cancel();S=S._value()}if((S=v.asArray(S))!==null)S.length!==0?this._iterate(S):w===-5?this._resolveEmptyArray():this._resolve(function(P){switch(w){case-2:return[];case-3:return{};case-6:return new Map}}());else{var T=p("expecting an array or an iterable object but got "+v.classString(S)).reason();this._promise._rejectCallback(T,!1)}},y.prototype._iterate=function(x){var b=this.getActualLength(x.length);this._length=b,this._values=this.shouldCopyValues()?new Array(b):this._values;for(var w=this._promise,S=!1,C=null,T=0;T<b;++T){var P=h(x[T],w);C=P instanceof c?(P=P._target())._bitField:null,S?C!==null&&P.suppressUnhandledRejections():C!==null?50397184&C?S=33554432&C?this._promiseFulfilled(P._value(),T):16777216&C?this._promiseRejected(P._reason(),T):this._promiseCancelled(T):(P._proxy(this,T),this._values[T]=P):S=this._promiseFulfilled(P,T)}S||w._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},y.prototype._promiseFulfilled=function(x,b){return this._values[b]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var b=0;b<x.length;++b)x[b]instanceof c&&x[b].cancel()}},y.prototype.shouldCopyValues=function(){return!0},y.prototype.getActualLength=function(x){return x},y}},{"./util":36}],24:[function(a,s,l){s.exports=function(c,f){var h={},p=a("./util"),g=a("./nodeback"),v=p.withAppended,y=p.maybeWrapAsError,x=p.canEvaluate,b=a("./errors").TypeError,w={__isPromisified__:!0},S=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),C=function(W){return p.isIdentifier(W)&&W.charAt(0)!=="_"&&W!=="constructor"};function T(W){return!S.test(W)}function P(W){try{return W.__isPromisified__===!0}catch{return!1}}function R(W,ne,q){var J=p.getDataPropertyOrDefault(W,ne+q,w);return!!J&&P(J)}function j(W,ne,q,J){for(var oe=p.inheritedDataKeys(W),le=[],G=0;G<oe.length;++G){var F=oe[G],A=W[F],B=J===C||C(F);typeof A!="function"||P(A)||R(W,F,ne)||!J(F,A,W,B)||le.push(F,A)}return function(re,U,Z){for(var ie=0;ie<re.length;ie+=2){var ae=re[ie];if(Z.test(ae)){for(var pe=ae.replace(Z,""),E=0;E<re.length;E+=2)if(re[E]===pe)throw new b(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",U))}}}(le,ne,q),le}var z=function(W){return W.replace(/([$])/,"\\$")},N=x?void 0:function(W,ne,q,J,oe,le){var G=function(){return this}(),F=W;function A(){var B=ne;ne===h&&(B=this);var re=new c(f);re._captureStackTrace();var U=typeof F=="string"&&this!==G?this[F]:W,Z=g(re,le);try{U.apply(B,v(arguments,Z))}catch(ie){re._rejectCallback(y(ie),!0,!0)}return re._isFateSealed()||re._setAsyncGuaranteed(),re}return typeof F=="string"&&(W=J),p.notEnumerableProp(A,"__isPromisified__",!0),A};function V(W,ne,q,J,oe){for(var le=new RegExp(z(ne)+"$"),G=j(W,ne,le,q),F=0,A=G.length;F<A;F+=2){var B=G[F],re=G[F+1],U=B+ne;if(J===N)W[U]=N(B,h,B,re,ne,oe);else{var Z=J(re,function(){return N(B,h,B,re,ne,oe)});p.notEnumerableProp(Z,"__isPromisified__",!0),W[U]=Z}}return p.toFastProperties(W),W}c.promisify=function(W,ne){if(typeof W!="function")throw new b("expecting a function but got "+p.classString(W));if(P(W))return W;var q=(ne=Object(ne)).context===void 0?h:ne.context,J=!!ne.multiArgs,oe=function(le,G,F){return N(le,G,void 0,le,null,J)}(W,q);return p.copyDescriptors(W,oe,T),oe},c.promisifyAll=function(W,ne){if(typeof W!="function"&&typeof W!="object")throw new b(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var q=!!(ne=Object(ne)).multiArgs,J=ne.suffix;typeof J!="string"&&(J="Async");var oe=ne.filter;typeof oe!="function"&&(oe=C);var le=ne.promisifier;if(typeof le!="function"&&(le=N),!p.isIdentifier(J))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var G=p.inheritedDataKeys(W),F=0;F<G.length;++F){var A=W[G[F]];G[F]!=="constructor"&&p.isClass(A)&&(V(A.prototype,J,oe,le,q),V(A,J,oe,le,q))}return V(W,J,oe,le,q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,l){s.exports=function(c,f,h,p){var g,v=a("./util"),y=v.isObject,x=a("./es5");typeof Map=="function"&&(g=Map);var b=function(){var C=0,T=0;function P(R,j){this[C]=R,this[C+T]=j,C++}return function(R){T=R.size,C=0;var j=new Array(2*R.size);return R.forEach(P,j),j}}();function w(C){var T,P=!1;if(g!==void 0&&C instanceof g)T=b(C),P=!0;else{var R=x.keys(C),j=R.length;T=new Array(2*j);for(var z=0;z<j;++z){var N=R[z];T[z]=C[N],T[z+j]=N}}this.constructor$(T),this._isMap=P,this._init$(void 0,P?-6:-3)}function S(C){var T,P=h(C);return y(P)?(T=P instanceof c?P._then(c.props,void 0,void 0,void 0,void 0):new w(P).promise(),P instanceof c&&T._propagateFrom(P,2),T):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}v.inherits(w,f),w.prototype._init=function(){},w.prototype._promiseFulfilled=function(C,T){if(this._values[T]=C,++this._totalResolved>=this._length){var P;if(this._isMap)P=function(N){for(var V=new g,W=N.length/2|0,ne=0;ne<W;++ne){var q=N[W+ne],J=N[ne];V.set(q,J)}return V}(this._values);else{P={};for(var R=this.length(),j=0,z=this.length();j<z;++j)P[this._values[j+R]]=this._values[j]}return this._resolve(P),!0}return!1},w.prototype.shouldCopyValues=function(){return!1},w.prototype.getActualLength=function(C){return C>>1},c.prototype.props=function(){return S(this)},c.props=function(C){return S(C)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function c(f){this._capacity=f,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(f){return this._capacity<f},c.prototype._pushOne=function(f){var h=this.length();this._checkCapacity(h+1),this[this._front+h&this._capacity-1]=f,this._length=h+1},c.prototype.push=function(f,h,p){var g=this.length()+3;if(this._willBeOverCapacity(g))return this._pushOne(f),this._pushOne(h),void this._pushOne(p);var v=this._front+g-3;this._checkCapacity(g);var y=this._capacity-1;this[v+0&y]=f,this[v+1&y]=h,this[v+2&y]=p,this._length=g},c.prototype.shift=function(){var f=this._front,h=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,h},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(f){var h=this._capacity;this._capacity=f,function(p,g,v,y,x){for(var b=0;b<x;++b)v[b+y]=p[b+0],p[b+0]=void 0}(this,0,this,h,this._front+this._length&h-1)},s.exports=c},{}],27:[function(a,s,l){s.exports=function(c,f,h,p){var g=a("./util"),v=function(x){return x.then(function(b){return y(b,x)})};function y(x,b){var w=h(x);if(w instanceof c)return v(w);if((x=g.asArray(x))===null)return p("expecting an array or an iterable object but got "+g.classString(x));var S=new c(f);b!==void 0&&S._propagateFrom(b,3);for(var C=S._fulfill,T=S._reject,P=0,R=x.length;P<R;++P){var j=x[P];(j!==void 0||P in x)&&c.cast(j)._then(C,T,void 0,S,null)}return S}c.race=function(x){return y(x,void 0)},c.prototype.race=function(){return y(this,void 0)}}},{"./util":36}],28:[function(a,s,l){s.exports=function(c,f,h,p,g,v){var y=c._getDomain,x=a("./util"),b=x.tryCatch;function w(R,j,z,N){this.constructor$(R);var V=y();this._fn=V===null?j:x.domainBind(V,j),z!==void 0&&(z=c.resolve(z))._attachCancellationCallback(this),this._initialValue=z,this._currentCancellable=null,this._eachValues=N===g?Array(this._length):N===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function S(R,j){this.isFulfilled()?j._resolve(R):j._reject(R)}function C(R,j,z,N){return typeof j!="function"?h("expecting a function but got "+x.classString(j)):new w(R,j,z,N).promise()}function T(R){this.accum=R,this.array._gotAccum(R);var j=p(this.value,this.array._promise);return j instanceof c?(this.array._currentCancellable=j,j._then(P,void 0,void 0,this,void 0)):P.call(this,j)}function P(R){var j,z=this.array,N=z._promise,V=b(z._fn);N._pushContext(),(j=z._eachValues!==void 0?V.call(N._boundValue(),R,this.index,this.length):V.call(N._boundValue(),this.accum,R,this.index,this.length))instanceof c&&(z._currentCancellable=j);var W=N._popContext();return v.checkForgottenReturns(j,W,z._eachValues!==void 0?"Promise.each":"Promise.reduce",N),j}x.inherits(w,f),w.prototype._gotAccum=function(R){this._eachValues!==void 0&&this._eachValues!==null&&R!==g&&this._eachValues.push(R)},w.prototype._eachComplete=function(R){return this._eachValues!==null&&this._eachValues.push(R),this._eachValues},w.prototype._init=function(){},w.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},w.prototype.shouldCopyValues=function(){return!1},w.prototype._resolve=function(R){this._promise._resolveCallback(R),this._values=null},w.prototype._resultCancelled=function(R){if(R===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},w.prototype._iterate=function(R){var j,z;this._values=R;var N=R.length;if(this._initialValue!==void 0?(j=this._initialValue,z=0):(j=c.resolve(R[0]),z=1),this._currentCancellable=j,!j.isRejected())for(;z<N;++z){var V={accum:null,value:R[z],index:z,length:N,array:this};j=j._then(T,void 0,void 0,V,void 0)}this._eachValues!==void 0&&(j=j._then(this._eachComplete,void 0,void 0,this,void 0)),j._then(S,S,void 0,j,this)},c.prototype.reduce=function(R,j){return C(this,R,j,null)},c.reduce=function(R,j,z,N){return C(R,j,z,N)}}},{"./util":36}],29:[function(a,s,l){var c,f=a("./util"),h=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,g=r.nextTick;c=f.isRecentNode?function(y){p.call(i,y)}:function(y){g.call(r,y)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var v=h.resolve();c=function(y){v.then(y)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var y=document.createElement("div"),x={attributes:!0},b=!1,w=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),b=!1}).observe(w,x),function(S){var C=new MutationObserver(function(){C.disconnect(),S()});C.observe(y,x),b||(b=!0,w.classList.toggle("foo"))}}();s.exports=c},{"./util":36}],30:[function(a,s,l){s.exports=function(c,f,h){var p=c.PromiseInspection;function g(v){this.constructor$(v)}a("./util").inherits(g,f),g.prototype._promiseResolved=function(v,y){return this._values[v]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},g.prototype._promiseFulfilled=function(v,y){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(y,x)},g.prototype._promiseRejected=function(v,y){var x=new p;return x._bitField=16777216,x._settledValueField=v,this._promiseResolved(y,x)},c.settle=function(v){return h.deprecated(".settle()",".reflect()"),new g(v).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(c,f,h){var p=a("./util"),g=a("./errors").RangeError,v=a("./errors").AggregateError,y=p.isArray,x={};function b(S){this.constructor$(S),this._howMany=0,this._unwrap=!1,this._initialized=!1}function w(S,C){if((0|C)!==C||C<0)return h(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var T=new b(S),P=T.promise();return T.setHowMany(C),T.init(),P}p.inherits(b,f),b.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var S=y(this._values);!this._isResolved()&&S&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},b.prototype.init=function(){this._initialized=!0,this._init()},b.prototype.setUnwrap=function(){this._unwrap=!0},b.prototype.howMany=function(){return this._howMany},b.prototype.setHowMany=function(S){this._howMany=S},b.prototype._promiseFulfilled=function(S){return this._addFulfilled(S),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},b.prototype._promiseRejected=function(S){return this._addRejected(S),this._checkOutcome()},b.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},b.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var S=new v,C=this.length();C<this._values.length;++C)this._values[C]!==x&&S.push(this._values[C]);return S.length>0?this._reject(S):this._cancel(),!0}return!1},b.prototype._fulfilled=function(){return this._totalResolved},b.prototype._rejected=function(){return this._values.length-this.length()},b.prototype._addRejected=function(S){this._values.push(S)},b.prototype._addFulfilled=function(S){this._values[this._totalResolved++]=S},b.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},b.prototype._getRangeError=function(S){var C="Input array must contain at least "+this._howMany+" items but contains only "+S+" items";return new g(C)},b.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(S,C){return w(S,C)},c.prototype.some=function(S){return w(this,S)},c._SomePromiseArray=b}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(c){function f(b){b!==void 0?(b=b._target(),this._bitField=b._bitField,this._settledValueField=b._isFateSealed()?b._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var h=f.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},p=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},g=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=f.prototype.isPending=function(){return(50397184&this._bitField)==0},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return y.call(this._target())},c.prototype.isRejected=function(){return v.call(this._target())},c.prototype.isFulfilled=function(){return g.call(this._target())},c.prototype.isResolved=function(){return x.call(this._target())},c.prototype.value=function(){return h.call(this._target())},c.prototype.reason=function(){var b=this._target();return b._unsetRejectionIsUnhandled(),p.call(b)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(a,s,l){s.exports=function(c,f){var h=a("./util"),p=h.errorObj,g=h.isObject,v={}.hasOwnProperty;return function(y,x){if(g(y)){if(y instanceof c)return y;var b=function(S){try{return function(C){return C.then}(S)}catch(C){return p.e=C,p}}(y);if(b===p){x&&x._pushContext();var w=c.reject(b.e);return x&&x._popContext(),w}if(typeof b=="function")return function(S){try{return v.call(S,"_promise0")}catch{return!1}}(y)?(w=new c(f),y._then(w._fulfill,w._reject,void 0,w,null),w):function(S,C,T){var P=new c(f),R=P;T&&T._pushContext(),P._captureStackTrace(),T&&T._popContext();var j=!0,z=h.tryCatch(C).call(S,function(N){P&&(P._resolveCallback(N),P=null)},function(N){P&&(P._rejectCallback(N,j,!0),P=null)});return j=!1,P&&z===p&&(P._rejectCallback(z.e,!0,!0),P=null),R}(y,b,x)}return y}}},{"./util":36}],34:[function(a,s,l){s.exports=function(c,f,h){var p=a("./util"),g=c.TimeoutError;function v(S){this.handle=S}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(S){return x(+this).thenReturn(S)},x=c.delay=function(S,C){var T,P;return C!==void 0?(T=c.resolve(C)._then(y,null,null,S,void 0),h.cancellation()&&C instanceof c&&T._setOnCancel(C)):(T=new c(f),P=setTimeout(function(){T._fulfill()},+S),h.cancellation()&&T._setOnCancel(new v(P)),T._captureStackTrace()),T._setAsyncGuaranteed(),T};function b(S){return clearTimeout(this.handle),S}function w(S){throw clearTimeout(this.handle),S}c.prototype.delay=function(S){return x(S,this)},c.prototype.timeout=function(S,C){var T,P;S=+S;var R=new v(setTimeout(function(){T.isPending()&&function(j,z,N){var V;V=typeof z!="string"?z instanceof Error?z:new g("operation timed out"):new g(z),p.markAsOriginatingFromRejection(V),j._attachExtraTrace(V),j._reject(V),N!=null&&N.cancel()}(T,C,P)},S));return h.cancellation()?(P=this.then(),(T=P._then(b,w,void 0,R,void 0))._setOnCancel(R)):T=this._then(b,w,void 0,R,void 0),T}}},{"./util":36}],35:[function(a,s,l){s.exports=function(c,f,h,p,g,v){var y=a("./util"),x=a("./errors").TypeError,b=a("./util").inherits,w=y.errorObj,S=y.tryCatch,C={};function T(V){setTimeout(function(){throw V},0)}function P(V,W){var ne=0,q=V.length,J=new c(g);return function oe(){if(ne>=q)return J._fulfill();var le=function(G){var F=h(G);return F!==G&&typeof G._isDisposable=="function"&&typeof G._getDisposer=="function"&&G._isDisposable()&&F._setDisposable(G._getDisposer()),F}(V[ne++]);if(le instanceof c&&le._isDisposable()){try{le=h(le._getDisposer().tryDispose(W),V.promise)}catch(G){return T(G)}if(le instanceof c)return le._then(oe,T,null,null,null)}oe()}(),J}function R(V,W,ne){this._data=V,this._promise=W,this._context=ne}function j(V,W,ne){this.constructor$(V,W,ne)}function z(V){return R.isDisposer(V)?(this.resources[this.index]._setDisposable(V),V.promise()):V}function N(V){this.length=V,this.promise=null,this[V-1]=null}R.prototype.data=function(){return this._data},R.prototype.promise=function(){return this._promise},R.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():C},R.prototype.tryDispose=function(V){var W=this.resource(),ne=this._context;ne!==void 0&&ne._pushContext();var q=W!==C?this.doDispose(W,V):null;return ne!==void 0&&ne._popContext(),this._promise._unsetDisposable(),this._data=null,q},R.isDisposer=function(V){return V!=null&&typeof V.resource=="function"&&typeof V.tryDispose=="function"},b(j,R),j.prototype.doDispose=function(V,W){return this.data().call(V,V,W)},N.prototype._resultCancelled=function(){for(var V=this.length,W=0;W<V;++W){var ne=this[W];ne instanceof c&&ne.cancel()}},c.using=function(){var V=arguments.length;if(V<2)return f("you must pass at least 2 arguments to Promise.using");var W,ne=arguments[V-1];if(typeof ne!="function")return f("expecting a function but got "+y.classString(ne));var q=!0;V===2&&Array.isArray(arguments[0])?(V=(W=arguments[0]).length,q=!1):(W=arguments,V--);for(var J=new N(V),oe=0;oe<V;++oe){var le=W[oe];if(R.isDisposer(le)){var G=le;(le=le.promise())._setDisposable(G)}else{var F=h(le);F instanceof c&&(le=F._then(z,null,null,{resources:J,index:oe},void 0))}J[oe]=le}var A=new Array(J.length);for(oe=0;oe<A.length;++oe)A[oe]=c.resolve(J[oe]).reflect();var B=c.all(A).then(function(U){for(var Z=0;Z<U.length;++Z){var ie=U[Z];if(ie.isRejected())return w.e=ie.error(),w;if(!ie.isFulfilled())return void B.cancel();U[Z]=ie.value()}re._pushContext(),ne=S(ne);var ae=q?ne.apply(void 0,U):ne(U),pe=re._popContext();return v.checkForgottenReturns(ae,pe,"Promise.using",re),ae}),re=B.lastly(function(){var U=new c.PromiseInspection(B);return P(J,U)});return J.promise=re,re._setOnCancel(J),re},c.prototype._setDisposable=function(V){this._bitField=131072|this._bitField,this._disposer=V},c.prototype._isDisposable=function(){return(131072&this._bitField)>0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(V){if(typeof V=="function")return new j(V,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var c,f=a("./es5"),h=typeof navigator>"u",p={e:{}},g=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var q=c;return c=null,q.apply(this,arguments)}catch(J){return p.e=J,p}}function y(q){return q==null||q===!0||q===!1||typeof q=="string"||typeof q=="number"}function x(q,J,oe){if(y(q))return q;var le={value:oe,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(q,J,le),q}var b=function(){var q=[Array.prototype,Object.prototype,Function.prototype],J=function(G){for(var F=0;F<q.length;++F)if(q[F]===G)return!0;return!1};if(f.isES5){var oe=Object.getOwnPropertyNames;return function(G){for(var F=[],A=Object.create(null);G!=null&&!J(G);){var B;try{B=oe(G)}catch{return F}for(var re=0;re<B.length;++re){var U=B[re];if(!A[U]){A[U]=!0;var Z=Object.getOwnPropertyDescriptor(G,U);Z!=null&&Z.get==null&&Z.set==null&&F.push(U)}}G=f.getPrototypeOf(G)}return F}}var le={}.hasOwnProperty;return function(G){if(J(G))return[];var F=[];e:for(var A in G)if(le.call(G,A))F.push(A);else{for(var B=0;B<q.length;++B)if(le.call(q[B],A))continue e;F.push(A)}return F}}(),w=/this\s*\.\s*\S+\s*=/,S=/^[a-z$_][a-z$_0-9]*$/i;function C(q){try{return q+""}catch{return"[no string representation]"}}function T(q){return q instanceof Error||q!==null&&typeof q=="object"&&typeof q.message=="string"&&typeof q.name=="string"}function P(q){return T(q)&&f.propertyIsWritable(q,"stack")}var R="stack"in new Error?function(q){return P(q)?q:new Error(C(q))}:function(q){if(P(q))return q;try{throw new Error(C(q))}catch(J){return J}};function j(q){return{}.toString.call(q)}var z=function(q){return f.isArray(q)?q:null};if(typeof Symbol<"u"&&Symbol.iterator){var N=typeof Array.from=="function"?function(q){return Array.from(q)}:function(q){for(var J,oe=[],le=q[Symbol.iterator]();!(J=le.next()).done;)oe.push(J.value);return oe};z=function(q){return f.isArray(q)?q:q!=null&&typeof q[Symbol.iterator]=="function"?N(q):null}}var V=r!==void 0&&j(r).toLowerCase()==="[object process]",W=r!==void 0&&r.env!==void 0,ne={isClass:function(q){try{if(typeof q=="function"){var J=f.names(q.prototype),oe=f.isES5&&J.length>1,le=J.length>0&&!(J.length===1&&J[0]==="constructor"),G=w.test(q+"")&&f.names(q).length>0;if(oe||le||G)return!0}return!1}catch{return!1}},isIdentifier:function(q){return S.test(q)},inheritedDataKeys:b,getDataPropertyOrDefault:function(q,J,oe){if(!f.isES5)return{}.hasOwnProperty.call(q,J)?q[J]:void 0;var le=Object.getOwnPropertyDescriptor(q,J);return le!=null?le.get==null&&le.set==null?le.value:oe:void 0},thrower:function(q){throw q},isArray:f.isArray,asArray:z,notEnumerableProp:x,isPrimitive:y,isObject:function(q){return typeof q=="function"||typeof q=="object"&&q!==null},isError:T,canEvaluate:h,errorObj:p,tryCatch:function(q){return c=q,v},inherits:function(q,J){var oe={}.hasOwnProperty;function le(){for(var G in this.constructor=q,this.constructor$=J,J.prototype)oe.call(J.prototype,G)&&G.charAt(G.length-1)!=="$"&&(this[G+"$"]=J.prototype[G])}return le.prototype=J.prototype,q.prototype=new le,q.prototype},withAppended:function(q,J){var oe,le=q.length,G=new Array(le+1);for(oe=0;oe<le;++oe)G[oe]=q[oe];return G[oe]=J,G},maybeWrapAsError:function(q){return y(q)?new Error(C(q)):q},toFastProperties:function(q){return q},filledRange:function(q,J,oe){for(var le=new Array(q),G=0;G<q;++G)le[G]=J+G+oe;return le},toString:C,canAttachTrace:P,ensureErrorObject:R,originatesFromRejection:function(q){return q!=null&&(q instanceof Error.__BluebirdErrorTypes__.OperationalError||q.isOperational===!0)},markAsOriginatingFromRejection:function(q){try{x(q,"isOperational",!0)}catch{}},classString:j,copyDescriptors:function(q,J,oe){for(var le=f.names(q),G=0;G<le.length;++G){var F=le[G];if(oe(F))try{f.defineProperty(J,F,f.getDescriptor(q,F))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:V,hasEnvVariables:W,env:function(q){return W?r.env[q]:void 0},global:g,getNativePromise:function(){if(typeof Promise=="function")try{var q=new Promise(function(){});if({}.toString.call(q)==="[object Promise]")return Promise}catch{}},domainBind:function(q,J){return q.bind(J)}};ne.isRecentNode=ne.isNode&&function(){var q=r.versions.node.split(".").map(Number);return q[0]===0&&q[1]>10||q[0]>0}(),ne.isNode&&ne.toFastProperties(r);try{throw new Error}catch(q){ne.lastLineError=q}s.exports=ne},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,a=r.length;o<a;o++)if(r[o]==="\r"){if(r[o+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,a){var s=i(o,a);return r(s)?s:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=C;var a,s=n(37);C.ReadableState=S,n(12).EventEmitter;var l=function(A,B){return A.listeners(B).length},c=n(24),f=n(7).Buffer,h=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var g=n(41),v=void 0;v=g&&g.debuglog?g.debuglog("stream"):function(){};var y,x=n(42),b=n(25);p.inherits(C,c);var w=["error","close","destroy","pause","resume"];function S(A,B){a=a||n(1),A=A||{};var re=B instanceof a;this.objectMode=!!A.objectMode,re&&(this.objectMode=this.objectMode||!!A.readableObjectMode);var U=A.highWaterMark,Z=A.readableHighWaterMark,ie=this.objectMode?16:16384;this.highWaterMark=U||U===0?U:re&&(Z||Z===0)?Z:ie,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=A.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,A.encoding&&(y||(y=n(26).StringDecoder),this.decoder=new y(A.encoding),this.encoding=A.encoding)}function C(A){if(a=a||n(1),!(this instanceof C))return new C(A);this._readableState=new S(A,this),this.readable=!0,A&&(typeof A.read=="function"&&(this._read=A.read),typeof A.destroy=="function"&&(this._destroy=A.destroy)),c.call(this)}function T(A,B,re,U,Z){var ie,ae=A._readableState;return B===null?(ae.reading=!1,function(pe,E){if(!E.ended){if(E.decoder){var M=E.decoder.end();M&&M.length&&(E.buffer.push(M),E.length+=E.objectMode?1:M.length)}E.ended=!0,z(pe)}}(A,ae)):(Z||(ie=function(pe,E){var M;return function(I){return f.isBuffer(I)||I instanceof h}(E)||typeof E=="string"||E===void 0||pe.objectMode||(M=new TypeError("Invalid non-string/buffer chunk")),M}(ae,B)),ie?A.emit("error",ie):ae.objectMode||B&&B.length>0?(typeof B=="string"||ae.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(pe){return f.from(pe)}(B)),U?ae.endEmitted?A.emit("error",new Error("stream.unshift() after end event")):P(A,ae,B,!0):ae.ended?A.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!re?(B=ae.decoder.write(B),ae.objectMode||B.length!==0?P(A,ae,B,!1):V(A,ae)):P(A,ae,B,!1))):U||(ae.reading=!1)),function(pe){return!pe.ended&&(pe.needReadable||pe.length<pe.highWaterMark||pe.length===0)}(ae)}function P(A,B,re,U){B.flowing&&B.length===0&&!B.sync?(A.emit("data",re),A.read(0)):(B.length+=B.objectMode?1:re.length,U?B.buffer.unshift(re):B.buffer.push(re),B.needReadable&&z(A)),V(A,B)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(A){this._readableState&&(this._readableState.destroyed=A)}}),C.prototype.destroy=b.destroy,C.prototype._undestroy=b.undestroy,C.prototype._destroy=function(A,B){this.push(null),B(A)},C.prototype.push=function(A,B){var re,U=this._readableState;return U.objectMode?re=!0:typeof A=="string"&&((B=B||U.defaultEncoding)!==U.encoding&&(A=f.from(A,B),B=""),re=!0),T(this,A,B,!1,re)},C.prototype.unshift=function(A){return T(this,A,null,!0,!1)},C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(A){return y||(y=n(26).StringDecoder),this._readableState.decoder=new y(A),this._readableState.encoding=A,this};var R=8388608;function j(A,B){return A<=0||B.length===0&&B.ended?0:B.objectMode?1:A!=A?B.flowing&&B.length?B.buffer.head.data.length:B.length:(A>B.highWaterMark&&(B.highWaterMark=function(re){return re>=R?re=R:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}(A)),A<=B.length?A:B.ended?B.length:(B.needReadable=!0,0))}function z(A){var B=A._readableState;B.needReadable=!1,B.emittedReadable||(v("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(N,A):N(A))}function N(A){v("emit readable"),A.emit("readable"),J(A)}function V(A,B){B.readingMore||(B.readingMore=!0,o.nextTick(W,A,B))}function W(A,B){for(var re=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(v("maybeReadMore read 0"),A.read(0),re!==B.length);)re=B.length;B.readingMore=!1}function ne(A){v("readable nexttick read 0"),A.read(0)}function q(A,B){B.reading||(v("resume read 0"),A.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,A.emit("resume"),J(A),B.flowing&&!B.reading&&A.read(0)}function J(A){var B=A._readableState;for(v("flow",B.flowing);B.flowing&&A.read()!==null;);}function oe(A,B){return B.length===0?null:(B.objectMode?re=B.buffer.shift():!A||A>=B.length?(re=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):re=function(U,Z,ie){var ae;return U<Z.head.data.length?(ae=Z.head.data.slice(0,U),Z.head.data=Z.head.data.slice(U)):ae=U===Z.head.data.length?Z.shift():ie?function(pe,E){var M=E.head,I=1,X=M.data;for(pe-=X.length;M=M.next;){var Q=M.data,se=pe>Q.length?Q.length:pe;if(se===Q.length?X+=Q:X+=Q.slice(0,pe),(pe-=se)==0){se===Q.length?(++I,M.next?E.head=M.next:E.head=E.tail=null):(E.head=M,M.data=Q.slice(se));break}++I}return E.length-=I,X}(U,Z):function(pe,E){var M=f.allocUnsafe(pe),I=E.head,X=1;for(I.data.copy(M),pe-=I.data.length;I=I.next;){var Q=I.data,se=pe>Q.length?Q.length:pe;if(Q.copy(M,M.length-pe,0,se),(pe-=se)==0){se===Q.length?(++X,I.next?E.head=I.next:E.head=E.tail=null):(E.head=I,I.data=Q.slice(se));break}++X}return E.length-=X,M}(U,Z),ae}(A,B.buffer,B.decoder),re);var re}function le(A){var B=A._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(G,B,A))}function G(A,B){A.endEmitted||A.length!==0||(A.endEmitted=!0,B.readable=!1,B.emit("end"))}function F(A,B){for(var re=0,U=A.length;re<U;re++)if(A[re]===B)return re;return-1}C.prototype.read=function(A){v("read",A),A=parseInt(A,10);var B=this._readableState,re=A;if(A!==0&&(B.emittedReadable=!1),A===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return v("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?le(this):z(this),null;if((A=j(A,B))===0&&B.ended)return B.length===0&&le(this),null;var U,Z=B.needReadable;return v("need readable",Z),(B.length===0||B.length-A<B.highWaterMark)&&v("length less than watermark",Z=!0),B.ended||B.reading?v("reading or ended",Z=!1):Z&&(v("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(A=j(re,B))),(U=A>0?oe(A,B):null)===null?(B.needReadable=!0,A=0):B.length-=A,B.length===0&&(B.ended||(B.needReadable=!0),re!==A&&B.ended&&le(this)),U!==null&&this.emit("data",U),U},C.prototype._read=function(A){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(A,B){var re=this,U=this._readableState;switch(U.pipesCount){case 0:U.pipes=A;break;case 1:U.pipes=[U.pipes,A];break;default:U.pipes.push(A)}U.pipesCount+=1,v("pipe count=%d opts=%j",U.pipesCount,B);var Z=B&&B.end===!1||A===i.stdout||A===i.stderr?se:ie;function ie(){v("onend"),A.end()}U.endEmitted?o.nextTick(Z):re.once("end",Z),A.on("unpipe",function ge(Le,ue){v("onunpipe"),Le===re&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),A.removeListener("close",X),A.removeListener("finish",Q),A.removeListener("drain",ae),A.removeListener("error",I),A.removeListener("unpipe",ge),re.removeListener("end",ie),re.removeListener("end",se),re.removeListener("data",M),pe=!0,!U.awaitDrain||A._writableState&&!A._writableState.needDrain||ae())});var ae=function(ge){return function(){var Le=ge._readableState;v("pipeOnDrain",Le.awaitDrain),Le.awaitDrain&&Le.awaitDrain--,Le.awaitDrain===0&&l(ge,"data")&&(Le.flowing=!0,J(ge))}}(re);A.on("drain",ae);var pe=!1,E=!1;function M(ge){v("ondata"),E=!1,A.write(ge)!==!1||E||((U.pipesCount===1&&U.pipes===A||U.pipesCount>1&&F(U.pipes,A)!==-1)&&!pe&&(v("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,E=!0),re.pause())}function I(ge){v("onerror",ge),se(),A.removeListener("error",I),l(A,"error")===0&&A.emit("error",ge)}function X(){A.removeListener("finish",Q),se()}function Q(){v("onfinish"),A.removeListener("close",X),se()}function se(){v("unpipe"),re.unpipe(A)}return re.on("data",M),function(ge,Le,ue){if(typeof ge.prependListener=="function")return ge.prependListener(Le,ue);ge._events&&ge._events[Le]?s(ge._events[Le])?ge._events[Le].unshift(ue):ge._events[Le]=[ue,ge._events[Le]]:ge.on(Le,ue)}(A,"error",I),A.once("close",X),A.once("finish",Q),A.emit("pipe",re),U.flowing||(v("pipe resume"),re.resume()),A},C.prototype.unpipe=function(A){var B=this._readableState,re={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return A&&A!==B.pipes?this:(A||(A=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,A&&A.emit("unpipe",this,re),this);if(!A){var U=B.pipes,Z=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var ie=0;ie<Z;ie++)U[ie].emit("unpipe",this,re);return this}var ae=F(B.pipes,A);return ae===-1?this:(B.pipes.splice(ae,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),A.emit("unpipe",this,re),this)},C.prototype.on=function(A,B){var re=c.prototype.on.call(this,A,B);if(A==="data")this._readableState.flowing!==!1&&this.resume();else if(A==="readable"){var U=this._readableState;U.endEmitted||U.readableListening||(U.readableListening=U.needReadable=!0,U.emittedReadable=!1,U.reading?U.length&&z(this):o.nextTick(ne,this))}return re},C.prototype.addListener=C.prototype.on,C.prototype.resume=function(){var A=this._readableState;return A.flowing||(v("resume"),A.flowing=!0,function(B,re){re.resumeScheduled||(re.resumeScheduled=!0,o.nextTick(q,B,re))}(this,A)),this},C.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},C.prototype.wrap=function(A){var B=this,re=this._readableState,U=!1;for(var Z in A.on("end",function(){if(v("wrapped end"),re.decoder&&!re.ended){var ae=re.decoder.end();ae&&ae.length&&B.push(ae)}B.push(null)}),A.on("data",function(ae){v("wrapped data"),re.decoder&&(ae=re.decoder.write(ae)),(!re.objectMode||ae!=null)&&(re.objectMode||ae&&ae.length)&&(B.push(ae)||(U=!0,A.pause()))}),A)this[Z]===void 0&&typeof A[Z]=="function"&&(this[Z]=function(ae){return function(){return A[ae].apply(A,arguments)}}(Z));for(var ie=0;ie<w.length;ie++)A.on(w[ie],this.emit.bind(this,w[ie]));return this._read=function(ae){v("wrapped _read",ae),U&&(U=!1,A.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=oe}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,a){o.emit("error",a)}e.exports={destroy:function(o,a){var s=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(a?a(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!a&&f?(r.nextTick(i,s,f),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(f)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(v){switch((v=""+v)&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(v){var y;switch(this.encoding=function(x){var b=function(w){if(!w)return"utf8";for(var S;;)switch(w){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 w;default:if(S)return;w=(""+w).toLowerCase(),S=!0}}(x);if(typeof b!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return b||x}(v),this.encoding){case"utf16le":this.text=l,this.end=c,y=4;break;case"utf8":this.fillLast=s,y=4;break;case"base64":this.text=f,this.end=h,y=3;break;default:return this.write=p,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}function a(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function s(v){var y=this.lastTotal-this.lastNeed,x=function(b,w,S){if((192&w[0])!=128)return b.lastNeed=0,"<22>";if(b.lastNeed>1&&w.length>1){if((192&w[1])!=128)return b.lastNeed=1,"<22>";if(b.lastNeed>2&&w.length>2&&(192&w[2])!=128)return b.lastNeed=2,"<22>"}}(this,v);return x!==void 0?x:this.lastNeed<=v.length?(v.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,y,0,v.length),void(this.lastNeed-=v.length))}function l(v,y){if((v.length-y)%2==0){var x=v.toString("utf16le",y);if(x){var b=x.charCodeAt(x.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",y,v.length-1)}function c(v){var y=v&&v.length?this.write(v):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,x)}return y}function f(v,y){var x=(v.length-y)%3;return x===0?v.toString("base64",y):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",y,v.length-x))}function h(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(v){return v.toString(this.encoding)}function g(v){return v&&v.length?this.write(v):""}t.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var y,x;if(this.lastNeed){if((y=this.fillLast(v))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<v.length?y?y+this.text(v,x):this.text(v,x):y||""},o.prototype.end=function(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+"<22>":y},o.prototype.text=function(v,y){var x=function(w,S,C){var T=S.length-1;if(T<C)return 0;var P=a(S[T]);return P>=0?(P>0&&(w.lastNeed=P-1),P):--T<C||P===-2?0:(P=a(S[T]))>=0?(P>0&&(w.lastNeed=P-2),P):--T<C||P===-2?0:(P=a(S[T]))>=0?(P>0&&(P===2?P=0:w.lastNeed=P-3),P):0}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=x;var b=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,b),v.toString("utf8",y,b)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:(function(c,f){var h=this._transformState;h.transforming=!1;var p=h.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));h.writechunk=null,h.writecb=null,f!=null&&this.push(f),p(c);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(c,f){s(l,c,f)}):s(this,null,null)}function s(l,c,f){if(c)return l.emit("error",c);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(l,c){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,c)},o.prototype._transform=function(l,c,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,c,f){var h=this._transformState;if(h.writecb=f,h.writechunk=l,h.writeencoding=c,!h.transforming){var p=this._readableState;(h.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(l){var c=this._transformState;c.writechunk!==null&&c.writecb&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},o.prototype._destroy=function(l,c){var f=this;r.prototype._destroy.call(this,l,function(h){c(h),f.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,c){var f=o.call(this,"Error: "+s+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=s,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var x in y)y.hasOwnProperty(x)&&(v[x]=y[x])};return function(v,y){function x(){this.constructor=v}g(v,y),v.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),o=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(g){function v(y,x){x===void 0&&(x={});var b=g.call(this,x)||this;return b.options=x,b.params=s.mergeParams(y),b.runtime=l.initParseRuntime(b),b.result=new h.Result(b),b.processor=new f.ProcessorLocal(b),b.once("error",function(w){r(function(){b.result.processError(w),b.emit("done",w)})}),b.once("done",function(){b.processor.destroy()}),b}return i(v,g),v.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},v.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},v.prototype.subscribe=function(y,x,b){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:b},this},v.prototype.fromFile=function(y,x){var b=this,w=n(!function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}());return w.exists(y,function(S){S?w.createReadStream(y,x).pipe(b):b.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(y){return y.pipe(this),this},v.prototype.fromString=function(y){y.toString();var x=new a.Readable,b=0;return x._read=function(w){if(b>=y.length)this.push(null);else{var S=y.substr(b,w);this.push(S),b+=w}},this.fromStream(x)},v.prototype.then=function(y,x){var b=this;return new c.default(function(w,S){b.parseRuntime.then={onfulfilled:function(C){w(y?y(C):C)},onrejected:function(C){x?w(x(C)):S(C)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(y,x,b){var w=this;this.processor.process(y).then(function(S){if(S.length>0)return w.runtime.started=!0,w.result.processResult(S)}).then(function(){w.emit("drained"),b()},function(S){w.runtime.hasError=!0,w.runtime.error=S,w.emit("error",S),b()})},v.prototype._flush=function(y){var x=this;this.processor.flush().then(function(b){if(b.length>0)return x.result.processResult(b)}).then(function(){x.processEnd(y)},function(b){x.emit("error",b),y()})},v.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,c={},f=!1,h=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(y){i.nextTick(function(){v(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?function(){var y="setImmediate$"+Math.random()+"$",x=function(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(y)===0&&v(+b.data.slice(y.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(b){o.postMessage(y+b,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(x){v(x.data)},s=function(x){y.port2.postMessage(x)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var y=h.documentElement;s=function(x){var b=h.createElement("script");b.onreadystatechange=function(){v(x),b.onreadystatechange=null,y.removeChild(b),b=null},y.appendChild(b)}}():s=function(y){setTimeout(v,0,y)},p.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var x=new Array(arguments.length-1),b=0;b<x.length;b++)x[b]=arguments[b+1];var w={callback:y,args:x};return c[l]=w,s(l),l++},p.clearImmediate=g}function g(y){delete c[y]}function v(y){if(f)setTimeout(v,0,y);else{var x=c[y];if(x){f=!0;try{(function(b){var w=b.callback,S=b.args;switch(S.length){case 0:w();break;case 1:w(S[0]);break;case 2:w(S[0],S[1]);break;case 3:w(S[0],S[1],S[2]);break;default:w.apply(a,S)}})(x)}finally{g(y),f=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function l(y){o.writable&&o.write(y)===!1&&s.pause&&s.pause()}function c(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",c),o._isStdio||a&&a.end===!1||(s.on("end",h),s.on("close",p));var f=!1;function h(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function g(y){if(v(),r.listenerCount(this,"error")===0)throw y}function v(){s.removeListener("data",l),o.removeListener("drain",c),s.removeListener("end",h),s.removeListener("close",p),s.removeListener("error",g),o.removeListener("error",g),s.removeListener("end",v),s.removeListener("close",v),o.removeListener("close",v)}return s.on("error",g),o.on("error",g),s.on("end",v),s.on("close",v),o.on("close",v),o.emit("pipe",s),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var g=c(p),v=g[0],y=g[1];return 3*(v+y)/4-y},t.toByteArray=function(p){for(var g,v=c(p),y=v[0],x=v[1],b=new o(3*(y+x)/4-x),w=0,S=x>0?y-4:y,C=0;C<S;C+=4)g=i[p.charCodeAt(C)]<<18|i[p.charCodeAt(C+1)]<<12|i[p.charCodeAt(C+2)]<<6|i[p.charCodeAt(C+3)],b[w++]=g>>16&255,b[w++]=g>>8&255,b[w++]=255&g;return x===2&&(g=i[p.charCodeAt(C)]<<2|i[p.charCodeAt(C+1)]>>4,b[w++]=255&g),x===1&&(g=i[p.charCodeAt(C)]<<10|i[p.charCodeAt(C+1)]<<4|i[p.charCodeAt(C+2)]>>2,b[w++]=g>>8&255,b[w++]=255&g),b},t.fromByteArray=function(p){for(var g,v=p.length,y=v%3,x=[],b=0,w=v-y;b<w;b+=16383)x.push(h(p,b,b+16383>w?w:b+16383));return y===1?(g=p[v-1],x.push(r[g>>2]+r[g<<4&63]+"==")):y===2&&(g=(p[v-2]<<8)+p[v-1],x.push(r[g>>10]+r[g>>4&63]+r[g<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(p){var g=p.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=g),[v,v===g?0:4-v%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,g,v){for(var y,x=[],b=g;b<v;b+=3)y=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(255&p[b+2]),x.push(f(y));return x.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(n,r,i,o,a){var s,l,c=8*a-o-1,f=(1<<c)-1,h=f>>1,p=-7,g=i?a-1:0,v=i?-1:1,y=n[r+g];for(g+=v,s=y&(1<<-p)-1,y>>=-p,p+=c;p>0;s=256*s+n[r+g],g+=v,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+g],g+=v,p-=8);if(s===0)s=1-h;else{if(s===f)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),s-=h}return(y?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,c,f,h=8*s-a-1,p=(1<<h)-1,g=p>>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:s-1,x=o?1:-1,b=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+g>=1?v/f:v*Math.pow(2,1-g))*f>=2&&(l++,f/=2),l+g>=p?(c=0,l=p):l+g>=1?(c=(r*f-1)*Math.pow(2,a),l+=g):(c=r*Math.pow(2,g-1)*Math.pow(2,a),l=0));a>=8;n[i+y]=255&c,y+=x,c/=256,a-=8);for(l=l<<a|c,h+=a;h>0;n[i+y]=255&l,y+=x,l/=256,h-=8);n[i+y-x]|=128*b}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=s+l.data;return c},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var S in w)w.hasOwnProperty(S)&&(b[S]=w[S])};return function(b,w){function S(){this.constructor=b}x(b,w),b.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),g=o(n(59)),v=o(n(29)),y=function(x){function b(){var w=x!==null&&x.apply(this,arguments)||this;return w.rowSplit=new p.RowSplit(w.converter),w.eolEmitted=!1,w._needEmitEol=void 0,w.headEmitted=!1,w._needEmitHead=void 0,w}return i(b,x),b.prototype.flush=function(){var w=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var S=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(S,!0).then(function(C){return w.runtime.csvLineBuffer&&w.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(w.runtime.parsedLineNumber,w.runtime.csvLineBuffer.toString())):s.default.resolve(C)})}return s.default.resolve([])},b.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(b.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(b.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),b.prototype.process=function(w,S){var C,T=this;return S===void 0&&(S=!1),C=S?w.toString():l.prepareData(w,this.converter.parseRuntime),s.default.resolve().then(function(){return T.runtime.preRawDataHook?T.runtime.preRawDataHook(C):C}).then(function(P){return P&&P.length>0?T.processCSV(P,S):s.default.resolve([])})},b.prototype.processCSV=function(w,S){var C=this,T=this.params,P=this.runtime;P.eol||c.default(w,P),this.needEmitEol&&!this.eolEmitted&&P.eol&&(this.converter.emit("eol",P.eol),this.eolEmitted=!0),T.ignoreEmpty&&!P.started&&(w=h.trimLeft(w));var R=f.stringToLines(w,P);return S?(R.lines.push(R.partial),R.partial=""):this.prependLeftBuf(h.bufFromString(R.partial)),R.lines.length>0?(P.preFileLineHook?this.runPreLineHook(R.lines):s.default.resolve(R.lines)).then(function(j){return P.started||C.runtime.headers?C.processCSVBody(j):C.processDataWithHead(j)}):s.default.resolve([])},b.prototype.processDataWithHead=function(w){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var S="",C=[];w.length;){var T=S+w.shift(),P=this.rowSplit.parse(T);if(P.closed){C=P.cells,S="";break}S=T+c.default(T,this.runtime)}if(this.prependLeftBuf(h.bufFromString(S)),C.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=C}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(w)},b.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var w=this.runtime.headers,S=0;S<w.length;S++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(w[S])){if(!this.params.includeColumns||!this.params.includeColumns.test(w[S]))continue;this.runtime.selectedColumns.push(S)}else this.runtime.selectedColumns.push(S);else this.params.includeColumns?this.params.includeColumns.test(w[S])&&this.runtime.selectedColumns.push(S):this.runtime.selectedColumns.push(S);this.runtime.headers=h.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},b.prototype.processCSVBody=function(w){if(this.params.output==="line")return w;var S=this.rowSplit.parseMultiLines(w);return this.prependLeftBuf(h.bufFromString(S.partial)),this.params.output==="csv"?S.rowsCells:g.default(S.rowsCells,this.converter)},b.prototype.prependLeftBuf=function(w){w&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([w,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=w)},b.prototype.runPreLineHook=function(w){var S=this;return new s.default(function(C,T){(function P(R,j,z,N){if(z>=R.length)N();else if(j.preFileLineHook){var V=R[z],W=j.preFileLineHook(V,j.parsedLineNumber+z);if(z++,W&&W.then)W.then(function(ne){R[z-1]=ne,P(R,j,z,N)});else{for(R[z-1]=W;z<R.length;)R[z]=j.preFileLineHook(R[z],j.parsedLineNumber+z),z++;N()}}else N()})(w,S.runtime,0,function(P){P?T(P):C(w)})})},b}(a.Processor);t.ProcessorLocal=y}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var l=function(f,h){return h.csvLineBuffer&&h.csvLineBuffer.length>0?r.concat([h.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var c=function(f,h){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(h.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,s).toString("utf8");return s.started===!1?o.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,a){var s=i.default(o,a),l=o.split(s);return{lines:l,partial:l.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function l(c){this.conv=c,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=c.parseParam.quote,this.trim=c.parseParam.trim,this.escape=c.parseParam.escape}return Object.defineProperty(l.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var f=this.quote,h=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,g=c.split(p);if(f==="off"){if(h)for(var v=0;v<g.length;v++)g[v]=g[v].trim();return{cells:g,closed:!0}}return this.toCSVRow(g,h,f,p)},l.prototype.toCSVRow=function(c,f,h,p){for(var g=[],v=!1,y="",x=0,b=c.length;x<b;x++){var w=c[x];!v&&f&&(w=o.trimLeft(w));var S=w.length;if(v)this.isQuoteClose(w)?(v=!1,y+=p+(w=w.substr(0,S-1)),y=this.escapeQuote(y),f&&(y=o.trimRight(y)),g.push(y),y=""):y+=p+w;else{if(S===2&&w===this.quote+this.quote){g.push("");continue}if(this.isQuoteOpen(w)){if(w=w.substr(1),this.isQuoteClose(w)){w=w.substring(0,w.lastIndexOf(h)),w=this.escapeQuote(w),g.push(w);continue}if(w.indexOf(h)!==-1){for(var C=0,T="",P=0,R=w;P<R.length;P++){var j=R[P];j===h&&T!==this.escape?(C++,T=""):T=j}if(C%2==1){f&&(w=o.trimRight(w)),g.push(h+w);continue}v=!0,y+=w;continue}v=!0,y+=w;continue}f&&(w=o.trimRight(w)),g.push(w)}}return{cells:g,closed:!v}},l.prototype.getDelimiter=function(c){var f;if(this.conv.parseParam.delimiter==="auto")f=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var h=0,p=",";return f.forEach(function(g){var v=c.split(g).length;v>h&&(p=g,h=v)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,h=this.escape;return c[0]===f&&(c[1]!==f||c[1]===h&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,h=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,g=c.length-1;c[g]===f||c[g]===h;)g--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var h=this.cachedRegExp[f];return c.replace(h,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],h="";c.length;){var p=h+c.shift(),g=this.parse(p);g.cells.length===0&&this.conv.parseParam.ignoreEmpty||(g.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(g.cells,this.conv.parseRuntime.selectedColumns)):f.push(g.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:f,partial:h}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(b,w,S){if(w.parseParam.checkColumn&&w.parseRuntime.headers&&b.length!==w.parseRuntime.headers.length)throw i.default.column_mismatched(w.parseRuntime.parsedLineNumber+S);return function(C,T,P){for(var R=!1,j={},z=0,N=C.length;z<N;z++){var V=C[z];if(!P.parseParam.ignoreEmpty||V!==""){R=!0;var W=T[z];W&&W!==""||(W=T[z]="field"+(z+1));var ne=c(W,z,P);if(ne){var q=ne(V,W,j,C,z);q!==void 0&&f(j,W,q,P,z)}else P.parseParam.checkType&&(V=g(V,W,z,P)(V)),V!==void 0&&f(j,W,V,P,z)}}return R?j:null}(b,w.parseRuntime.headers||[],w)||null}t.default=function(b,w){for(var S=[],C=0,T=b.length;C<T;C++){var P=s(b[C],w,C);P&&S.push(P)}return S};var l={string:y,number:v,omit:function(){}};function c(b,w,S){if(S.parseRuntime.columnConv[w]!==void 0)return S.parseRuntime.columnConv[w];var C=S.parseParam.colParser[b];if(C===void 0)return S.parseRuntime.columnConv[w]=null;if(typeof C=="object"&&(C=C.cellParser||"string"),typeof C=="string"){C=C.trim().toLowerCase();var T=l[C];return S.parseRuntime.columnConv[w]=T||null}return S.parseRuntime.columnConv[w]=typeof C=="function"?C:null}function f(b,w,S,C,T){if(!C.parseRuntime.columnValueSetter[T])if(C.parseParam.flatKeys)C.parseRuntime.columnValueSetter[T]=h;else if(w.indexOf(".")>-1){for(var P=w.split("."),R=!0;P.length>0;)if(P.shift().length===0){R=!1;break}!R||C.parseParam.colParser[w]&&C.parseParam.colParser[w].flat?C.parseRuntime.columnValueSetter[T]=h:C.parseRuntime.columnValueSetter[T]=p}else C.parseRuntime.columnValueSetter[T]=h;C.parseParam.nullObject===!0&&S==="null"&&(S=null),C.parseRuntime.columnValueSetter[T](b,w,S)}function h(b,w,S){b[w]=S}function p(b,w,S){o.default(b,w,S)}function g(b,w,S,C){return C.parseRuntime.headerType[S]?C.parseRuntime.headerType[S]:w.indexOf("number#!")>-1?C.parseRuntime.headerType[S]=v:w.indexOf("string#!")>-1?C.parseRuntime.headerType[S]=y:C.parseParam.checkType?C.parseRuntime.headerType[S]=x:C.parseRuntime.headerType[S]=y}function v(b){var w=parseFloat(b);return isNaN(w)?b:w}function y(b){return b.toString()}function x(b){var w=b.trim();return w===""?y(b):a.test(w)?v(b):w.length===5&&w.toLowerCase()==="false"||w.length===4&&w.toLowerCase()==="true"?function(S){var C=S.trim();return C.length!==5||C.toLowerCase()!=="false"}(b):w[0]==="{"&&w[w.length-1]==="}"||w[0]==="["&&w[w.length-1]==="]"?function(S){try{return JSON.parse(S)}catch{return S}}(b):y(b)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,c,f,h){if(!a(l))return l;for(var p=-1,g=(c=i(c,l)).length,v=g-1,y=l;y!=null&&++p<g;){var x=s(c[p]),b=f;if(p!=v){var w=y[x];(b=h?h(w,x,y):void 0)===void 0&&(b=a(w)?w:o(c[p+1])?[]:{})}r(y,x,b),y=y[x]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,l){var c=a[s];o.call(a,s)&&i(c,l)&&(l!==void 0||s in a)||r(a,s,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,h=c.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(g){return!(!o(g)||i(g))&&(r(g)?p:s).test(a(g))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=o.call(l,s),f=l[s];try{l[s]=void 0;var h=!0}catch{}var p=a.call(l);return h&&(c?l[s]=f:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(s,l){return r(s)?s:i(s,l)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,l){if(r(s))return!1;var c=typeof s;return!(c!="number"&&c!="symbol"&&c!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||l!=null&&s in Object(l)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(l,c,f,h){s.push(f?h.replace(i,"$1"):c||l)}),s});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var l=function(){var c=arguments,f=s?s.apply(this,c):c[0],h=l.cache;if(h.has(f))return h.get(f);var p=a.apply(this,c);return l.cache=h.set(f,p)||h,p};return l.cache=new(o.Cache||r),l}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(a(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function l(c){this.converter=c,this.finalResult=[]}return Object.defineProperty(l.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(c){var f=this,h=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&h===0&&s(this.converter,"["+o.EOL),new i.default(function(p,g){f.needEmitLine?function v(y,x,b,w,S){if(b>=y.length)S();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var C=x.parseRuntime.subscribe.onNext,T=y[b],P=C(T,x.parseRuntime.parsedLineNumber+b);if(b++,P&&P.then)P.then(function(){(function(j,z,N,V,W,ne,q){W&&s(N,q),v(j,N,V,W,ne)})(y,0,x,b,w,S,T)},S);else{for(w&&s(x,T);b<y.length;){var R=y[b];C(R,x.parseRuntime.parsedLineNumber+b),b++,w&&s(x,R)}S()}}else{if(w)for(;b<y.length;)R=y[b++],s(x,R);S()}}(c,f.converter,0,f.needPushDownstream,function(v){v?g(v):(f.appendFinalResult(c),p())}):(f.appendFinalResult(c),p())})},l.prototype.appendFinalResult=function(c){this.needEmitAll&&(this.finalResult=this.finalResult.concat(c)),this.converter.parseRuntime.parsedLineNumber+=c.length},l.prototype.processError=function(c){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(c),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(c)},l.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},l}();function s(l,c){if(typeof c!="object"||l.options.objectMode)l.push(c);else{var f=JSON.stringify(c);l.push(f+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
||
`,t.homedir=function(){return"/"}}]);const kye=pi(Pye),Mye=e=>new Promise(t=>{kye().fromString(e).then(t)}),Dye=new XI,Lye=e=>Dye.parse(e),Rye="shlink",KD=e=>`${Rye}.${e}`;class jye{constructor(t){me(this,"get",t=>{const n=this.localStorage.getItem(KD(t));return n?JSON.parse(n):void 0});me(this,"set",(t,n)=>this.localStorage.setItem(KD(t),JSON.stringify(n)));this.localStorage=t}}class Nye{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const Aye=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",jye,"localStorage"),e.service("TagColorsStorage",Nye,"Storage"),e.constant("csvToJson",Mye),e.constant("jsonToCsv",Lye),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",gve,"setTimeout","clearTimeout")},yl=new zN,{container:aC}=yl,Iye=(e,t)=>(...n)=>e[t](...n),Fye=(e,t)=>({...e,[t]:Iye(aC,t)}),zy=(e,t=[])=>bN(e?mS(e):null,t.reduce(Fye,{}));Bae(yl,zy);pve(yl,zy);qoe(yl);tye(yl,zy);Aye(yl);Tye(yl,zy);var sC={},Lx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return r.apply(void 0,c)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!1,c)}t.merge=r;function i(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!0,c)}t.recursive=i;function o(c){if(Array.isArray(c)){for(var f=[],h=0;h<c.length;++h)f.push(o(c[h]));return f}else if(a(c)){var f={};for(var h in c)f[h]=o(c[h]);return f}else return c}t.clone=o;function a(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=a;function s(c,f){if(!a(c))return f;for(var h in f)h==="__proto__"||h==="constructor"||h==="prototype"||(c[h]=a(c[h])&&a(f[h])?s(c[h],f[h]):f[h]);return c}function l(c,f,h){var p;(c||!a(p=h.shift()))&&(p={});for(var g=0;g<h.length;++g){var v=h[g];if(a(v)){for(var y in v)if(!(y==="__proto__"||y==="constructor"||y==="prototype")){var x=c?o(v[y]):v[y];p[y]=f?s(p[y],x):x}}}return p}})(Lx,Lx.exports);var $ye=Lx.exports;(function(e){var t=n($ye);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=ne,e.combineLoads=W,e.load=V,e.save=N;function n(F){return F&&F.__esModule?F:{default:F}}function r(F,A){return l(F)||s(F,A)||o(F,A)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(F,A){if(F){if(typeof F=="string")return a(F,A);var B=Object.prototype.toString.call(F).slice(8,-1);return B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set"?Array.from(F):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?a(F,A):void 0}}function a(F,A){(A==null||A>F.length)&&(A=F.length);for(var B=0,re=Array(A);B<A;B++)re[B]=F[B];return re}function s(F,A){var B=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(B!=null){var re,U,Z=[],ie=!0,ae=!1;try{for(B=B.call(F);!(ie=(re=B.next()).done)&&(Z.push(re.value),!(A&&Z.length===A));ie=!0);}catch(pe){ae=!0,U=pe}finally{try{ie||B.return==null||B.return()}finally{if(ae)throw U}}return Z}}function l(F){if(Array.isArray(F))return F}function c(F){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},c(F)}function f(F,A,B){return A in F?Object.defineProperty(F,A,{value:B,enumerable:!0,configurable:!0,writable:!0}):F[A]=B,F}var h="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",g="_",v=[],y=[],x=0,b=!1,w=!1,S=new Map;function C(F){console.warn(h,F)}function T(){}var P=function(F){return F?T:C};function R(F,A){return A===void 0?null:F.length===1?A[F[0]]:R(F.slice(1),A[F[0]])}function j(F){function A(re,U){return re.length===0?U:A(re.slice(1),f({},re[0],U))}var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return A(F.split(".").reverse(),B)}function z(F){this.warnFn=F||C}Object.defineProperty(z.prototype,"length",{get:function(){try{return localStorage.length}catch(F){this.warnFn(F)}return 0},configurable:!0,enumerable:!0}),z.prototype.key=function(F){try{return localStorage.key(F)}catch(A){this.warnFn(A)}return null},z.prototype.setItem=function(F,A){try{localStorage.setItem(F,JSON.stringify(A))}catch(B){this.warnFn(B)}},z.prototype.getItem=function(F){try{return JSON.parse(localStorage.getItem(F))}catch(A){this.warnFn(A)}return null},z.prototype.removeItem=function(F){try{localStorage.removeItem(F)}catch(A){this.warnFn(A)}};function N(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=F.states,B=A===void 0?v:A,re=F.ignoreStates,U=re===void 0?y:re,Z=F.namespace,ie=Z===void 0?p:Z,ae=F.namespaceSeparator,pe=ae===void 0?g:ae,E=F.debounce,M=E===void 0?x:E,I=F.disableWarnings,X=I===void 0?w:I;return function(Q){return function(se){return function(ge){function Le(Me,De){return 1<Me.split(".").length?R(Me.split("."),De):R([Me],De)}function ue(){B.length===0?Re.setItem(ie,ve):B.forEach(function(Me){var De=ie+pe+Me,ce=Le(Me,ve);ce?Re.setItem(De,ce):Re.removeItem(De)})}var ve,_e=P(X),Ee=se(ge);q(B)||(console.error(h,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),B=v),q(U)||(console.error(h,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),U=y),0<U.length&&(U=U.filter(function(Me){return J(Me)?Me:void console.error(h,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),J(ie)||(console.error(h,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ie=p),J(pe)||(console.error(h,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),pe=g),oe(M)||(console.error(h,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),M=x),ve=0<U.length?G(U,Q.getState()):Q.getState();var Re=new z(_e);return M?(S.get(B+ie)&&clearTimeout(S.get(B+ie)),S.set(B+ie,setTimeout(function(){ue()},M))):ue(),Ee}}}}function V(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=F.states,B=A===void 0?v:A,re=F.immutablejs,U=re===void 0?b:re,Z=F.namespace,ie=Z===void 0?p:Z,ae=F.namespaceSeparator,pe=ae===void 0?g:ae,E=F.preloadedState,M=E===void 0?{}:E,I=F.disableWarnings,X=I===void 0?w:I,Q=P(X);q(B)||(console.error(h,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),B=v),J(ie)||(console.error(h,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ie=p),J(pe)||(console.error(h,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),pe=g),U===!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 se=new z(Q),ge=M;if(B.length===0){var Le=se.getItem(ie);Le&&(ge=Le)}else B.forEach(function(ue){var ve=ie+pe+ue,_e=se.getItem(ve);_e?ge=t.default.recursive(ge,j(ue,_e)):Q("Invalid load '"+ve+"' 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 ge}function W(){for(var F={},A=arguments.length,B=Array(A),re=0;re<A;re++)B[re]=arguments[re];return B.forEach(function(U){for(var Z in le(U)||(console.error(h,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),U={}),U)F[Z]=U[Z]}),F}function ne(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=F.namespace,B=A===void 0?p:A,re=F.disableWarnings,U=re===void 0?w:re,Z=P(U);J(B)||(console.error(h,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),B=p);for(var ie,ae=new z(Z),pe=ae.length,E=0;E<pe;E++)ie=ae.key(E),ie&&ie.slice(0,B.length)===B&&ae.removeItem(ie)}function q(F){return Object.prototype.toString.call(F)==="[object Array]"}function J(F){return typeof F=="string"}function oe(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function le(F){return F!==null&&c(F)==="object"}function G(F,A){var B=Object.entries(A).reduce(function(re,U){var Z=r(U,2),ie=Z[0];return Z[1],F.indexOf(ie)===-1&&(re[ie]=A[ie]),re},{});return B}})(sC);const Bye=e=>mO({appUpdated:$ae,servers:Ive,selectedServer:e.selectedServerReducer,settings:mye}),Uye=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},zye=!0,I5={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Hye=Uye(sC.load(I5)),Vye=e=>y6({devTools:!zye,reducer:Bye(e),preloadedState:Hye,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(sC.save(I5))}),Wye=!!(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 Yye(e){if("serviceWorker"in navigator){if(new URL(_g.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${_g.homepage}/service-worker.js`;Wye?(qye(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")})):F5(n,e)})}}function F5(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 qye(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()})}):F5(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const Gye="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=",Kye="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==",Zye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Qye=()=>{delete ID.Icon.Default.prototype._getIconUrl,ID.Icon.Default.mergeOptions({iconRetinaUrl:Kye,iconUrl:Gye,shadowUrl:Zye})};Qye();const $5=Vye(aC),{App:Xye,ScrollToTop:Jye,ErrorHandler:e0e,appUpdateAvailable:t0e}=aC;aN(document.getElementById("root")).render(m.jsx(wN,{store:$5,children:m.jsx(MN,{basename:_g.homepage,children:m.jsx(e0e,{children:m.jsx(Jye,{children:m.jsx(Xye,{})})})})}));Yye({onUpdate(){$5.dispatch(t0e())}});
|