mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 02:18:20 +03:00
1009 lines
1.4 MiB
1009 lines
1.4 MiB
var d7=Object.defineProperty;var h7=(e,t,n)=>t in e?d7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Se=(e,t,n)=>(h7(e,typeof t!="symbol"?t+"":t,n),n);function p7(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return 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 Lf={},g7={get exports(){return Lf},set exports(e){Lf=e}},cy={},H={},v7={get exports(){return H},set exports(e){H=e}},st={};/**
|
||
* @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 Rd=Symbol.for("react.element"),y7=Symbol.for("react.portal"),_7=Symbol.for("react.fragment"),b7=Symbol.for("react.strict_mode"),w7=Symbol.for("react.profiler"),x7=Symbol.for("react.provider"),S7=Symbol.for("react.context"),C7=Symbol.for("react.forward_ref"),E7=Symbol.for("react.suspense"),T7=Symbol.for("react.memo"),O7=Symbol.for("react.lazy"),fO=Symbol.iterator;function P7(e){return e===null||typeof e!="object"?null:(e=fO&&e[fO]||e["@@iterator"],typeof e=="function"?e:null)}var DL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},AL=Object.assign,IL={};function Vc(e,t,n){this.props=e,this.context=t,this.refs=IL,this.updater=n||DL}Vc.prototype.isReactComponent={};Vc.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")};Vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function FL(){}FL.prototype=Vc.prototype;function kx(e,t,n){this.props=e,this.context=t,this.refs=IL,this.updater=n||DL}var Mx=kx.prototype=new FL;Mx.constructor=kx;AL(Mx,Vc.prototype);Mx.isPureReactComponent=!0;var dO=Array.isArray,$L=Object.prototype.hasOwnProperty,Rx={current:null},jL={key:!0,ref:!0,__self:!0,__source:!0};function BL(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)$L.call(t,r)&&!jL.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Rd,type:e,key:o,ref:s,props:i,_owner:Rx.current}}function k7(e,t){return{$$typeof:Rd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nx(e){return typeof e=="object"&&e!==null&&e.$$typeof===Rd}function M7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hO=/\/+/g;function c0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?M7(""+e.key):t.toString(36)}function Hp(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Rd:case y7:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+c0(s,0):r,dO(i)?(n="",e!=null&&(n=e.replace(hO,"$&/")+"/"),Hp(i,t,n,"",function(c){return c})):i!=null&&(Nx(i)&&(i=k7(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(hO,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",dO(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+c0(o,a);s+=Hp(o,t,n,l,i)}else if(l=P7(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+c0(o,a++),s+=Hp(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 s}function jh(e,t,n){if(e==null)return e;var r=[],i=0;return Hp(e,r,"","",function(o){return t.call(n,o,i++)}),r}function R7(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 dr={current:null},Wp={transition:null},N7={ReactCurrentDispatcher:dr,ReactCurrentBatchConfig:Wp,ReactCurrentOwner:Rx};st.Children={map:jh,forEach:function(e,t,n){jh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jh(e,function(){t++}),t},toArray:function(e){return jh(e,function(t){return t})||[]},only:function(e){if(!Nx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};st.Component=Vc;st.Fragment=_7;st.Profiler=w7;st.PureComponent=kx;st.StrictMode=b7;st.Suspense=E7;st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N7;st.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=AL({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Rx.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)$L.call(t,l)&&!jL.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Rd,type:e.type,key:i,ref:o,props:r,_owner:s}};st.createContext=function(e){return e={$$typeof:S7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:x7,_context:e},e.Consumer=e};st.createElement=BL;st.createFactory=function(e){var t=BL.bind(null,e);return t.type=e,t};st.createRef=function(){return{current:null}};st.forwardRef=function(e){return{$$typeof:C7,render:e}};st.isValidElement=Nx;st.lazy=function(e){return{$$typeof:O7,_payload:{_status:-1,_result:e},_init:R7}};st.memo=function(e,t){return{$$typeof:T7,type:e,compare:t===void 0?null:t}};st.startTransition=function(e){var t=Wp.transition;Wp.transition={};try{e()}finally{Wp.transition=t}};st.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};st.useCallback=function(e,t){return dr.current.useCallback(e,t)};st.useContext=function(e){return dr.current.useContext(e)};st.useDebugValue=function(){};st.useDeferredValue=function(e){return dr.current.useDeferredValue(e)};st.useEffect=function(e,t){return dr.current.useEffect(e,t)};st.useId=function(){return dr.current.useId()};st.useImperativeHandle=function(e,t,n){return dr.current.useImperativeHandle(e,t,n)};st.useInsertionEffect=function(e,t){return dr.current.useInsertionEffect(e,t)};st.useLayoutEffect=function(e,t){return dr.current.useLayoutEffect(e,t)};st.useMemo=function(e,t){return dr.current.useMemo(e,t)};st.useReducer=function(e,t,n){return dr.current.useReducer(e,t,n)};st.useRef=function(e){return dr.current.useRef(e)};st.useState=function(e){return dr.current.useState(e)};st.useSyncExternalStore=function(e,t,n){return dr.current.useSyncExternalStore(e,t,n)};st.useTransition=function(){return dr.current.useTransition()};st.version="18.2.0";(function(e){e.exports=st})(v7);const z=LL(H),Qb=p7({__proto__:null,default:z},[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 L7=H,D7=Symbol.for("react.element"),A7=Symbol.for("react.fragment"),I7=Object.prototype.hasOwnProperty,F7=L7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$7={key:!0,ref:!0,__self:!0,__source:!0};function zL(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)I7.call(t,r)&&!$7.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:D7,type:e,key:o,ref:s,props:i,_owner:F7.current}}cy.Fragment=A7;cy.jsx=zL;cy.jsxs=zL;(function(e){e.exports=cy})(g7);const Ye=Lf.Fragment,C=Lf.jsx,V=Lf.jsxs;/*!
|
||
* @kurkle/color v0.3.1
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2022 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/function Nd(e){return e+.5|0}const ss=(e,t,n)=>Math.max(Math.min(e,n),t);function ju(e){return ss(Nd(e*2.55),0,255)}function ys(e){return ss(Nd(e*255),0,255)}function ho(e){return ss(Nd(e/2.55)/100,0,1)}function pO(e){return ss(Nd(e*100),0,100)}const Hr={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},Jb=[..."0123456789ABCDEF"],j7=e=>Jb[e&15],B7=e=>Jb[(e&240)>>4]+Jb[e&15],Bh=e=>(e&240)>>4===(e&15),z7=e=>Bh(e.r)&&Bh(e.g)&&Bh(e.b)&&Bh(e.a);function U7(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Hr[e[1]]*17,g:255&Hr[e[2]]*17,b:255&Hr[e[3]]*17,a:t===5?Hr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Hr[e[1]]<<4|Hr[e[2]],g:Hr[e[3]]<<4|Hr[e[4]],b:Hr[e[5]]<<4|Hr[e[6]],a:t===9?Hr[e[7]]<<4|Hr[e[8]]:255})),n}const V7=(e,t)=>e<255?t(e):"";function H7(e){var t=z7(e)?j7:B7;return e?"#"+t(e.r)+t(e.g)+t(e.b)+V7(e.a,t):void 0}const W7=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function UL(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function Y7(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 q7(e,t,n){const r=UL(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 G7(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 Lx(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2;let l,c,f;return o!==s&&(f=o-s,c=a>.5?f/(2-o-s):f/(o+s),l=G7(n,r,i,f,o),l=l*60+.5),[l|0,c||0,a]}function Dx(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ys)}function Ax(e,t,n){return Dx(UL,e,t,n)}function Z7(e,t,n){return Dx(q7,e,t,n)}function K7(e,t,n){return Dx(Y7,e,t,n)}function VL(e){return(e%360+360)%360}function X7(e){const t=W7.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ju(+t[5]):ys(+t[5]));const i=VL(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=Z7(i,o,s):t[1]==="hsv"?r=K7(i,o,s):r=Ax(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function Q7(e,t){var n=Lx(e);n[0]=VL(n[0]+t),n=Ax(n),e.r=n[0],e.g=n[1],e.b=n[2]}function J7(e){if(!e)return;const t=Lx(e),n=t[0],r=pO(t[1]),i=pO(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${ho(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const mO={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"},gO={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 ej(){const e={},t=Object.keys(gO),n=Object.keys(mO);let r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,mO[o]);o=parseInt(gO[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let zh;function tj(e){zh||(zh=ej(),zh.transparent=[0,0,0,0]);const t=zh[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const nj=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rj(e){const t=nj.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?ju(s):ss(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?ju(r):ss(r,0,255)),i=255&(t[4]?ju(i):ss(i,0,255)),o=255&(t[6]?ju(o):ss(o,0,255)),{r,g:i,b:o,a:n}}}function ij(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ho(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const u0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Cl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function oj(e,t,n){const r=Cl(ho(e.r)),i=Cl(ho(e.g)),o=Cl(ho(e.b));return{r:ys(u0(r+n*(Cl(ho(t.r))-r))),g:ys(u0(i+n*(Cl(ho(t.g))-i))),b:ys(u0(o+n*(Cl(ho(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Uh(e,t,n){if(e){let r=Lx(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Ax(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function HL(e,t){return e&&Object.assign(t||{},e)}function vO(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=ys(e[3]))):(t=HL(e,{r:0,g:0,b:0,a:1}),t.a=ys(t.a)),t}function sj(e){return e.charAt(0)==="r"?rj(e):X7(e)}class Df{constructor(t){if(t instanceof Df)return t;const n=typeof t;let r;n==="object"?r=vO(t):n==="string"&&(r=U7(t)||tj(t)||sj(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=HL(this._rgb);return t&&(t.a=ho(t.a)),t}set rgb(t){this._rgb=vO(t)}rgbString(){return this._valid?ij(this._rgb):void 0}hexString(){return this._valid?H7(this._rgb):void 0}hslString(){return this._valid?J7(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*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=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=oj(this._rgb,t._rgb,n)),this}clone(){return new Df(this.rgb)}alpha(t){return this._rgb.a=ys(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Nd(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 Uh(this._rgb,2,t),this}darken(t){return Uh(this._rgb,2,-t),this}saturate(t){return Uh(this._rgb,1,t),this}desaturate(t){return Uh(this._rgb,1,-t),this}rotate(t){return Q7(this._rgb,t),this}}/*!
|
||
* Chart.js v4.1.1
|
||
* https://www.chartjs.org
|
||
* (c) 2022 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/function lo(){}const aj=(()=>{let e=0;return()=>e++})();function ft(e){return e===null||typeof e>"u"}function Rt(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 ot(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Kt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Tr(e,t){return Kt(e)?e:t}function Qe(e,t){return typeof e>"u"?t:e}const lj=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,WL=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Tt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function _t(e,t,n,r){let i,o,s;if(Rt(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(ot(e))for(s=Object.keys(e),o=s.length,i=0;i<o;i++)t.call(n,e[s[i]],s[i])}function ag(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 lg(e){if(Rt(e))return e.map(lg);if(ot(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=lg(e[n[i]]);return t}return e}function YL(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function cj(e,t,n,r){if(!YL(e))return;const i=t[e],o=n[e];ot(i)&&ot(o)?Af(i,o,r):t[e]=lg(o)}function Af(e,t,n){const r=Rt(t)?t:[t],i=r.length;if(!ot(e))return e;n=n||{};const o=n.merger||cj;let s;for(let a=0;a<i;++a){if(s=r[a],!ot(s))continue;const l=Object.keys(s);for(let c=0,f=l.length;c<f;++c)o(l[c],e,s,n)}return e}function tf(e,t){return Af(e,t,{merger:uj})}function uj(e,t,n){if(!YL(e))return;const r=t[e],i=n[e];ot(r)&&ot(i)?tf(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=lg(i))}const yO={"":e=>e,x:e=>e.x,y:e=>e.y};function fj(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 dj(e){const t=fj(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ls(e,t){return(yO[t]||(yO[t]=dj(t)))(e)}function Ix(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ei=e=>typeof e<"u",Ds=e=>typeof e=="function",_O=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function hj(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Bt=Math.PI,Nt=2*Bt,pj=Nt+Bt,cg=Number.POSITIVE_INFINITY,mj=Bt/180,Xt=Bt/2,da=Bt/4,bO=Bt*2/3,as=Math.log10,qi=Math.sign;function nf(e,t,n){return Math.abs(e-t)<n}function wO(e){const t=Math.round(e);e=nf(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(as(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function gj(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 _c(e){return!isNaN(parseFloat(e))&&isFinite(e)}function vj(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function qL(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 _i(e){return e*(Bt/180)}function Fx(e){return e*(180/Bt)}function xO(e){if(!Kt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function GL(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*Bt&&(o+=Nt),{angle:o,distance:i}}function e1(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function yj(e,t){return(e-t+pj)%Nt-Bt}function Pr(e){return(e%Nt+Nt)%Nt}function If(e,t,n,r){const i=Pr(e),o=Pr(t),s=Pr(n),a=Pr(o-i),l=Pr(s-i),c=Pr(i-o),f=Pr(i-s);return i===o||i===s||r&&o===s||a>l&&c<f}function On(e,t,n){return Math.max(t,Math.min(n,e))}function _j(e){return On(e,-32768,32767)}function yo(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function $x(e,t,n){n=n||(s=>e[s]<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 _o=(e,t,n,r)=>$x(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),bj=(e,t,n)=>$x(e,n,r=>e[r][t]>=n);function wj(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 ZL=["push","pop","shift","splice","unshift"];function xj(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ZL.forEach(n=>{const r="_onData"+Ix(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function SO(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)&&(ZL.forEach(o=>{delete e[o]}),delete e._chartjs)}function KL(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const XL=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function QL(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,XL.call(window,()=>{r=!1,e.apply(t,n)}))}}function Sj(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const jx=e=>e==="start"?"left":e==="end"?"right":"center",Qn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Cj=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function JL(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:f,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(i=On(Math.min(_o(a,s.axis,c).lo,n?r:_o(t,l,s.getPixelForValue(c)).lo),0,r-1)),p?o=On(Math.max(_o(a,s.axis,f,!0).hi+1,n?0:_o(t,l,s.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function eD(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 Vh=e=>e===0||e===1,CO=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Nt/n)),EO=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Nt/n)+1,rf={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(Bt*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=>Vh(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=>Vh(e)?e:CO(e,.075,.3),easeOutElastic:e=>Vh(e)?e:EO(e,.075,.3),easeInOutElastic(e){return Vh(e)?e:e<.5?.5*CO(e*2,.1125,.45):.5+.5*EO(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-rf.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?rf.easeInBounce(e*2)*.5:rf.easeOutBounce(e*2-1)*.5+.5};function tD(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function TO(e){return tD(e)?e:new Df(e)}function f0(e){return tD(e)?e:new Df(e).saturate(.5).darken(.1).hexString()}const Ej=["x","y","borderWidth","radius","tension"],Tj=["color","borderColor","backgroundColor"];function Oj(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:Tj},numbers:{type:"number",properties:Ej}}),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 Pj(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const OO=new Map;function kj(e,t){t=t||{};const n=e+JSON.stringify(t);let r=OO.get(n);return r||(r=new Intl.NumberFormat(e,t),OO.set(n,r)),r}function Ld(e,t,n){return kj(t,n).format(e)}const nD={values(e){return Rt(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=Mj(e,n)}const s=as(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ld(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(as(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?nD.numeric.call(this,e,t,n):""}};function Mj(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 uy={formatters:nD};function Rj(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:uy.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 Ha=Object.create(null),t1=Object.create(null);function of(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 d0(e,t,n){return typeof t=="string"?Af(of(e,t),n):Af(of(e,""),t)}class Nj{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)=>f0(i.backgroundColor),this.hoverBorderColor=(r,i)=>f0(i.borderColor),this.hoverColor=(r,i)=>f0(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 d0(this,t,n)}get(t){return of(this,t)}describe(t,n){return d0(t1,t,n)}override(t,n){return d0(Ha,t,n)}route(t,n,r,i){const o=of(this,t),s=of(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return ot(l)?Object.assign({},c,l):Qe(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var on=new Nj({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Oj,Pj,Rj]);function Lj(e){return!e||ft(e.size)||ft(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ug(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 Dj(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 s=0;const a=n.length;let l,c,f,h,p;for(l=0;l<a;l++)if(h=n[l],h!=null&&Rt(h)!==!0)s=ug(e,i,o,s,h);else if(Rt(h))for(c=0,f=h.length;c<f;c++)p=h[c],p!=null&&!Rt(p)&&(s=ug(e,i,o,s,p));e.restore();const m=o.length/2;if(m>n.length){for(l=0;l<m;l++)delete i[o[l]];o.splice(0,m)}return s}function ha(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 PO(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function n1(e,t,n,r){rD(e,t,n,r,null)}function rD(e,t,n,r,i){let o,s,a,l,c,f,h,p;const m=t.pointStyle,g=t.rotation,v=t.radius;let w=(g||0)*mj;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(w),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(v)||v<=0)){switch(e.beginPath(),m){default:i?e.ellipse(n,r,i/2,v,0,0,Nt):e.arc(n,r,v,0,Nt),e.closePath();break;case"triangle":f=i?i/2:v,e.moveTo(n+Math.sin(w)*f,r-Math.cos(w)*v),w+=bO,e.lineTo(n+Math.sin(w)*f,r-Math.cos(w)*v),w+=bO,e.lineTo(n+Math.sin(w)*f,r-Math.cos(w)*v),e.closePath();break;case"rectRounded":c=v*.516,l=v-c,s=Math.cos(w+da)*l,h=Math.cos(w+da)*(i?i/2-c:l),a=Math.sin(w+da)*l,p=Math.sin(w+da)*(i?i/2-c:l),e.arc(n-h,r-a,c,w-Bt,w-Xt),e.arc(n+p,r-s,c,w-Xt,w),e.arc(n+h,r+a,c,w,w+Xt),e.arc(n-p,r+s,c,w+Xt,w+Bt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*v,f=i?i/2:l,e.rect(n-f,r-l,2*f,2*l);break}w+=da;case"rectRot":h=Math.cos(w)*(i?i/2:v),s=Math.cos(w)*v,a=Math.sin(w)*v,p=Math.sin(w)*(i?i/2:v),e.moveTo(n-h,r-a),e.lineTo(n+p,r-s),e.lineTo(n+h,r+a),e.lineTo(n-p,r+s),e.closePath();break;case"crossRot":w+=da;case"cross":h=Math.cos(w)*(i?i/2:v),s=Math.cos(w)*v,a=Math.sin(w)*v,p=Math.sin(w)*(i?i/2:v),e.moveTo(n-h,r-a),e.lineTo(n+h,r+a),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"star":h=Math.cos(w)*(i?i/2:v),s=Math.cos(w)*v,a=Math.sin(w)*v,p=Math.sin(w)*(i?i/2:v),e.moveTo(n-h,r-a),e.lineTo(n+h,r+a),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s),w+=da,h=Math.cos(w)*(i?i/2:v),s=Math.cos(w)*v,a=Math.sin(w)*v,p=Math.sin(w)*(i?i/2:v),e.moveTo(n-h,r-a),e.lineTo(n+h,r+a),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"line":s=i?i/2:Math.cos(w)*v,a=Math.sin(w)*v,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(w)*(i?i/2:v),r+Math.sin(w)*v);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Ff(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 fy(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function dy(e){e.restore()}function Aj(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 Ij(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 Wa(e,t,n,r,i,o={}){const s=Rt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,Fj(e,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&jj(e,o.backdrop),a&&(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),$j(e,n,r,c,o),r+=i.lineHeight;e.restore()}function Fj(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 $j(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=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(s,f),e.lineTo(a,f),e.stroke()}}function jj(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function $f(e,t){const{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-Xt,Bt,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,Bt,Xt,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,Xt,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-Xt,!0),e.lineTo(n+s.topLeft,r)}const Bj=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,zj=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Uj(e,t){const n=(""+e).match(Bj);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 Vj=e=>+e||0;function Bx(e,t){const n={},r=ot(t),i=r?Object.keys(t):t,o=ot(e)?r?s=>Qe(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=Vj(o(s));return n}function iD(e){return Bx(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Aa(e){return Bx(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tr(e){const t=iD(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function yn(e,t){e=e||{},t=t||on.font;let n=Qe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Qe(e.style,t.style);r&&!(""+r).match(zj)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Qe(e.family,t.family),lineHeight:Uj(Qe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Qe(e.weight,t.weight),string:""};return i.string=Lj(i),i}function Bu(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;o<s;++o)if(a=e[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&Rt(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function Hj(e,t,n){const{min:r,max:i}=e,o=WL(t,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function Ys(e,t){return Object.assign(Object.create(e),t)}function zx(e,t=[""],n=e,r,i=()=>e[0]){ei(r)||(r=lD("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>zx([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return sD(s,a,()=>Qj(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return MO(s).includes(a)},ownKeys(s){return MO(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function bc(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:oD(e,r),setContext:o=>bc(e,o,n,r),override:o=>bc(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return sD(o,s,()=>Yj(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function oD(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:Ds(n)?n:()=>n,isIndexable:Ds(r)?r:()=>r}}const Wj=(e,t)=>e?e+Ix(t):t,Ux=(e,t)=>ot(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sD(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Yj(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return Ds(a)&&s.isScriptable(t)&&(a=qj(t,a,e,n)),Rt(a)&&a.length&&(a=Gj(t,a,e,s.isIndexable)),Ux(t,a)&&(a=bc(a,i,o&&o[t],s)),a}function qj(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),Ux(e,t)&&(t=Vx(i._scopes,i,e,t)),t}function Gj(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(ei(o.index)&&r(e))t=t[o.index%t.length];else if(ot(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=Vx(c,i,e,f);t.push(bc(h,o,s&&s[e],a))}}return t}function aD(e,t,n){return Ds(e)?e(t,n):e}const Zj=(e,t)=>e===!0?t:typeof e=="string"?Ls(t,e):void 0;function Kj(e,t,n,r,i){for(const o of t){const s=Zj(n,o);if(s){e.add(s);const a=aD(s._fallback,n,i);if(ei(a)&&a!==n&&a!==r)return a}else if(s===!1&&ei(r)&&n!==r)return null}return!1}function Vx(e,t,n,r){const i=t._rootScopes,o=aD(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=kO(a,s,n,o||n,r);return l===null||ei(o)&&o!==n&&(l=kO(a,s,o,l,r),l===null)?!1:zx(Array.from(a),[""],i,o,()=>Xj(t,n,r))}function kO(e,t,n,r,i){for(;n;)n=Kj(e,t,n,r,i);return n}function Xj(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Rt(i)&&ot(n)?n:i||{}}function Qj(e,t,n,r){let i;for(const o of t)if(i=lD(Wj(o,e),n),ei(i))return Ux(e,i)?Vx(n,r,e,i):i}function lD(e,t){for(const n of t){if(!n)continue;const r=n[e];if(ei(r))return r}}function MO(e){let t=e._keys;return t||(t=e._keys=Jj(e._scopes)),t}function Jj(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 cD(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,f;for(a=0,l=r;a<l;++a)c=a+n,f=t[c],s[a]={r:i.parse(Ls(f,o),c)};return s}const eB=Number.EPSILON||1e-14,wc=(e,t)=>t<e.length&&!e[t].skip&&e[t],uD=e=>e==="x"?"y":"x";function tB(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=e1(o,i),l=e1(s,o);let c=a/(a+l),f=l/(a+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(s.x-i.x),y:o.y-h*(s.y-i.y)},next:{x:o.x+p*(s.x-i.x),y:o.y+p*(s.y-i.y)}}}function nB(e,t,n){const r=e.length;let i,o,s,a,l,c=wc(e,0);for(let f=0;f<r-1;++f)if(l=c,c=wc(e,f+1),!(!l||!c)){if(nf(t[f],0,eB)){n[f]=n[f+1]=0;continue}i=n[f]/t[f],o=n[f+1]/t[f],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[f]=i*s*t[f],n[f+1]=o*s*t[f])}}function rB(e,t,n="x"){const r=uD(n),i=e.length;let o,s,a,l=wc(e,0);for(let c=0;c<i;++c){if(s=a,a=l,l=wc(e,c+1),!a)continue;const f=a[n],h=a[r];s&&(o=(f-s[n])/3,a[`cp1${n}`]=f-o,a[`cp1${r}`]=h-o*t[c]),l&&(o=(l[n]-f)/3,a[`cp2${n}`]=f+o,a[`cp2${r}`]=h+o*t[c])}}function iB(e,t="x"){const n=uD(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,l,c=wc(e,0);for(s=0;s<r;++s)if(a=l,l=c,c=wc(e,s+1),!!l){if(c){const f=c[t]-l[t];i[s]=f!==0?(c[n]-l[n])/f:0}o[s]=a?c?qi(i[s-1])!==qi(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}nB(e,i,o),rB(e,o,t)}function Hh(e,t,n){return Math.max(Math.min(e,n),t)}function oB(e,t){let n,r,i,o,s,a=Ff(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&Ff(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=Hh(i.cp1x,t.left,t.right),i.cp1y=Hh(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=Hh(i.cp2x,t.left,t.right),i.cp2y=Hh(i.cp2y,t.top,t.bottom)))}function sB(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")iB(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=tB(c,a,e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&oB(e,n)}function fD(){return typeof window<"u"&&typeof document<"u"}function Hx(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function fg(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 hy=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function aB(e,t){return hy(e).getPropertyValue(t)}const lB=["top","right","bottom","left"];function Ia(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=lB[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const cB=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function uB(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(cB(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function ba(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=hy(n),o=i.boxSizing==="border-box",s=Ia(i,"padding"),a=Ia(i,"border","width"),{x:l,y:c,box:f}=uB(e,n),h=s.left+(f&&a.left),p=s.top+(f&&a.top);let{width:m,height:g}=t;return o&&(m-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-h)/m*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function fB(e,t,n){let r,i;if(t===void 0||n===void 0){const o=Hx(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=hy(o),l=Ia(a,"border","width"),c=Ia(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=fg(a.maxWidth,o,"clientWidth"),i=fg(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||cg,maxHeight:i||cg}}const Wh=e=>Math.round(e*10)/10;function dB(e,t,n,r){const i=hy(e),o=Ia(i,"margin"),s=fg(i.maxWidth,e,"clientWidth")||cg,a=fg(i.maxHeight,e,"clientHeight")||cg,l=fB(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=Ia(i,"border","width"),m=Ia(i,"padding");c-=m.width+p.width,f-=m.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=Wh(Math.min(c,s,l.maxWidth)),f=Wh(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Wh(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=Wh(Math.floor(f*r))),{width:c,height:f}}function RO(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 s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const hB=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 NO(e,t){const n=aB(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function wa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function pB(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 mB(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=wa(e,i,n),a=wa(i,o,n),l=wa(o,t,n),c=wa(s,a,n),f=wa(a,l,n);return wa(c,f,n)}const gB=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}}},vB=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function rc(e,t,n){return e?gB(t,n):vB()}function dD(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 hD(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function pD(e){return e==="angle"?{between:If,compare:yj,normalize:Pr}:{between:yo,compare:(t,n)=>t-n,normalize:t=>t}}function LO({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 yB(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=pD(r),l=t.length;let{start:c,end:f,loop:h}=e,p,m;if(h){for(c+=l,f+=l,p=0,m=l;p<m&&s(a(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 mD(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:c}=pD(r),{start:f,end:h,loop:p,style:m}=yB(e,t,n),g=[];let v=!1,w=null,_,b,x;const E=()=>l(i,x,_)&&a(i,x)!==0,P=()=>a(o,_)===0||l(o,x,_),k=()=>v||E(),N=()=>!v||P();for(let D=f,U=f;D<=h;++D)b=t[D%s],!b.skip&&(_=c(b[r]),_!==x&&(v=l(_,i,o),w===null&&k()&&(w=a(_,i)===0?D:U),w!==null&&N()&&(g.push(LO({start:w,end:D,loop:p,count:s,style:m})),w=null),U=D,x=_));return w!==null&&g.push(LO({start:w,end:h,loop:p,count:s,style:m})),g}function gD(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=mD(r[i],e.points,t);o.length&&n.push(...o)}return n}function _B(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 bB(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function wB(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=_B(n,i,o,r);if(r===!0)return DO(e,[{start:s,end:a,loop:o}],n,t);const l=a<s?a+i:a,c=!!e._fullLoop&&s===0&&a===i-1;return DO(e,bB(n,s,l,c),n,t)}function DO(e,t,n,r){return!r||!r.setContext||!n?t:xB(e,t,n,r)}function xB(e,t,n,r){const i=e._chart.getContext(),o=AO(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,c=[];let f=o,h=t[0].start,p=h;function m(g,v,w,_){const b=a?-1:1;if(g!==v){for(g+=l;n[g%l].skip;)g-=b;for(;n[v%l].skip;)v+=b;g%l!==v%l&&(c.push({start:g%l,end:v%l,loop:w,style:_}),f=_,h=v%l)}}for(const g of t){h=a?h:g.start;let v=n[h%l],w;for(p=h+1;p<=g.end;p++){const _=n[p%l];w=AO(r.setContext(Ys(i,{type:"segment",p0:v,p1:_,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:s}))),SB(w,f)&&m(h,p-1,g.loop,f),v=_,f=w}h<p-1&&m(h,p-1,g.loop,f)}return c}function AO(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function SB(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*!
|
||
* Chart.js v4.1.1
|
||
* https://www.chartjs.org
|
||
* (c) 2022 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/class CB{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],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=XL.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 s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(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 co=new CB;const IO="transparent",EB={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=TO(e||IO),i=r.valid&&TO(t||IO);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class TB{constructor(t,n,r,i){const o=n[r];i=Bu([t.to,i,o,t.from]);const s=Bu([t.from,o,i]);this._active=!0,this._fn=t.fn||EB[t.type||typeof s],this._easing=rf[t.easing]||rf.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=s,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,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Bu([t.to,n,i,t.from]),this._from=Bu([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,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,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 vD{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ot(t))return;const n=Object.keys(on.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!ot(o))return;const s={};for(const a of n)s[a]=o[a];(Rt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=PB(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&OB(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[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,a);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}o[c]=h=new TB(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 co.add(this._chart,r),!0}}function OB(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 PB(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 FO(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 kB(e,t,n){if(n===!1)return!1;const r=FO(e,n),i=FO(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function MB(e){let t,n,r,i;return ot(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 yD(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 $O(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let s,a,l,c;if(t!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}c=e.values[l],Kt(c)&&(o||t===0||qi(t)===qi(c))&&(t+=c)}return t}}function RB(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 jO(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function NB(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function LB(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 DB(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function BO(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 zO(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,f=NB(o,s,r),h=t.length;let p;for(let m=0;m<h;++m){const g=t[m],{[l]:v,[c]:w}=g,_=g._stacks||(g._stacks={});p=_[c]=DB(i,f,v),p[a]=w,p._top=BO(p,s,!0,r.type),p._bottom=BO(p,s,!1,r.type);const b=p._visualValues||(p._visualValues={});b[a]=w}}function h0(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function AB(e,t){return Ys(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function IB(e,t,n){return Ys(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function _u(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 p0=e=>e==="reset"||e==="none",UO=(e,t)=>t?e:Object.assign({},e),FB=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:yD(n,!0),values:null};class xi{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=jO(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&&_u(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,m,g)=>h==="x"?p:h==="r"?g:m,o=n.xAxisID=Qe(r.xAxisID,h0(t,"x")),s=n.yAxisID=Qe(r.yAxisID,h0(t,"y")),a=n.rAxisID=Qe(r.rAxisID,h0(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),f=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),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&&SO(this._data,this),t._stacked&&_u(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ot(n))this._data=RB(n);else if(r!==n){if(r){SO(r,this);const i=this._cachedMeta;_u(i),i._parsed=[]}n&&Object.isExtensible(n)&&xj(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=jO(n.vScale,n),n.stack!==r.stack&&(i=!0,_u(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&zO(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:s}=r,a=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{Rt(i[t])?p=this.parseArrayData(r,i,t,n):ot(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]<c[a];for(f=0;f<n;++f)r._parsed[f+t]=h=p[f],l&&(m()&&(l=!1),c=h);r._sorted=l}s&&zO(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,c=o.getLabels(),f=o===s,h=new Array(i);let p,m,g;for(p=0,m=i;p<m;++p)g=p+r,h[p]={[a]:f||o.parse(c[g],g),[l]:s.parse(n[g],g)};return h}parseArrayData(t,n,r,i){const{xScale:o,yScale:s}=t,a=new Array(i);let l,c,f,h;for(l=0,c=i;l<c;++l)f=l+r,h=n[f],a[l]={x:o.parse(h[0],f),y:s.parse(h[1],f)};return a}parseObjectData(t,n,r,i){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let f,h,p,m;for(f=0,h=i;f<h;++f)p=f+r,m=n[p],c[f]={x:o.parse(Ls(m,a),p),y:s.parse(Ls(m,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,s=n[t.axis],a={keys:yD(i,!0),values:n._stacks[t.axis]._visualValues};return $O(a,s,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=$O(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),l=FB(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=LB(a);let p,m;function g(){m=i[p];const v=m[a.axis];return!Kt(m[t.axis])||f>v||h<v}for(p=0;p<s&&!(!g()&&(this.updateRangeFromParsed(c,t,m,l),o));++p);if(o){for(p=s-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][t.axis],Kt(s)&&r.push(s);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=MB(Qe(this.options.clip,kB(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,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(t,o,a,l),f=a;f<a+l;++f){const h=i[f];h.hidden||(h.active&&c?s.push(h):h.draw(t,o))}for(f=0;f<s.length;++f)s[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 s=this._cachedMeta.data[t];o=s.$context||(s.$context=IB(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=AB(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,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&ei(r);if(a)return UO(a,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),m=Object.keys(on.elements[t]),g=()=>this.getContext(r,i,n),v=c.resolveNamedOptions(p,m,g,h);return v.$shared&&(v.$shared=l,o[s]=Object.freeze(UO(v,l))),v}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;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 vD(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||p0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){p0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!p0(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[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),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,s=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;a<s;++a)o[a]=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&&_u(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])}}Se(xi,"defaults",{}),Se(xi,"datasetElementType",null),Se(xi,"dataElementType",null);function $B(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=KL(r.sort((i,o)=>i-o))}return e._cache.$bar}function jB(e){const t=e.iScale,n=$B(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(ei(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function BB(e,t,n,r){const i=n.barThickness;let o,s;return ft(i)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[e]-o/2}}function zB(e,t,n,r){const i=t.pixels,o=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function UB(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function _D(e,t,n,r){return Rt(e)?UB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function VO(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c<f;++c)p=t[c],h={},h[i.axis]=a||i.parse(s[c],c),l.push(_D(p,h,o,c));return l}function m0(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function VB(e,t,n){return e!==0?qi(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function HB(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 WB(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:s,end:a,reverse:l,top:c,bottom:f}=HB(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[HO(f,s,a,l)]=!0,i=c)),o[HO(i,s,a,l)]=!0,e.borderSkipped=o}function HO(e,t,n,r){return r?(e=YB(e,t,n),e=WO(e,n,t)):e=WO(e,t,n),e}function YB(e,t,n){return e===t?n:e===n?t:e}function WO(e,t,n){return e==="start"?t:e==="end"?n:e}function qB(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class sf extends xi{parsePrimitiveData(t,n,r,i){return VO(t,n,r,i)}parseArrayData(t,n,r,i){return VO(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,f=s.axis==="x"?a:l,h=[];let p,m,g,v;for(p=r,m=r+i;p<m;++p)v=n[p],g={},g[o.axis]=o.parse(Ls(v,c),p),h.push(_D(Ls(v,f),g,s,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),s=o._custom,a=m0(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}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:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(n,i);for(let m=n;m<n+r;m++){const g=this.getParsed(m),v=o||ft(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(m),w=this._calculateBarIndexPixels(m,f),_=(g._stacks||{})[a.axis],b={horizontal:c,base:v.base,enableBorderRadius:!_||m0(g._custom)||s===_._top||s===_._bottom,x:c?v.head:w.center,y:c?w.center:v.head,height:c?w.size:Math.abs(v.size),width:c?Math.abs(v.size):w.size};p&&(b.options=h||this.resolveDataElementOptions(m,t[m].active?"active":i));const x=b.options||t[m].options;WB(b,x,_,s),qB(b,x,f.ratio),this.updateElement(t[m],m,b,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=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&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_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,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||jB(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),c=l._custom,f=m0(c);let h=l[n.axis],p=0,m=r?this.applyStack(n,l,r):h,g,v;m!==h&&(p=m-h,m=h),f&&(h=c.barStart,m=c.barEnd-c.barStart,h!==0&&qi(h)!==qi(c.barEnd)&&(p=0),p+=h);const w=!ft(o)&&!f?o:p;let _=n.getPixelForValue(w);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(p+m):g=_,v=g-_,Math.abs(v)<s){v=VB(v,n,a)*s,h===a&&(_-=v/2);const b=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),E=Math.min(b,x),P=Math.max(b,x);_=Math.max(Math.min(_,P),E),g=_+v,r&&!f&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(g)-n.getValueForPixel(_))}if(_===n.getPixelForValue(a)){const b=qi(v)*n.getLineWidthForValue(a)/2;_+=b,v-=b}return{size:v,base:_,head:g,center:g+v/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,s=Qe(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,f=i.barThickness==="flex"?zB(t,n,i,c):BB(t,n,i,c),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=f.start+f.chunk*h+f.chunk/2,l=Math.min(s,f.chunk*f.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,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)}}Se(sf,"id","bar"),Se(sf,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Se(sf,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Yp extends xi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const o=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<o.length;s++)o[s]._custom=this.resolveDataElementOptions(s+r).radius;return o}parseArrayData(t,n,r,i){const o=super.parseArrayData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=Qe(a[2],this.resolveDataElementOptions(s+r).radius)}return o}parseObjectData(t,n,r,i){const o=super.parseObjectData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=Qe(a&&a.r&&+a.r,this.resolveDataElementOptions(s+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,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+a+", "+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:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=s.axis,h=a.axis;for(let p=n;p<n+r;p++){const m=t[p],g=!o&&this.getParsed(p),v={},w=v[f]=o?s.getPixelForDecimal(.5):s.getPixelForValue(g[f]),_=v[h]=o?a.getBasePixel():a.getPixelForValue(g[h]);v.skip=isNaN(w)||isNaN(_),c&&(v.options=l||this.resolveDataElementOptions(p,m.active?"active":i),o&&(v.options.radius=0)),this.updateElement(m,p,v,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+=Qe(r&&r._custom,o),i}}Se(Yp,"id","bubble"),Se(Yp,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),Se(Yp,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function GB(e,t,n){let r=1,i=1,o=0,s=0;if(t<Nt){const a=e,l=a+t,c=Math.cos(a),f=Math.sin(a),h=Math.cos(l),p=Math.sin(l),m=(x,E,P)=>If(x,a,l,!0)?1:Math.max(E,E*n,P,P*n),g=(x,E,P)=>If(x,a,l,!0)?-1:Math.min(E,E*n,P,P*n),v=m(0,c,h),w=m(Xt,f,p),_=g(Bt,c,h),b=g(Bt+Xt,f,p);r=(v-_)/2,i=(w-b)/2,o=-(v+_)/2,s=-(w+b)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class ls extends xi{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(ot(r[t])){const{key:l="value"}=this._parsing;o=c=>+Ls(r[c],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return _i(this.options.rotation-90)}_getCircumference(){return _i(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(),s=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(lj(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:g,offsetY:v}=GB(h,f,l),w=(r.width-s)/p,_=(r.height-s)/m,b=Math.max(Math.min(w,_)/2,0),x=WL(this.options.radius,b),E=Math.max(x*l,0),P=(x-E)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=v*x,i.total=this.calculateTotal(),this.outerRadius=x-P*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-P*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",s=this.chart,a=s.chartArea,c=s.options.animation,f=(a.left+a.right)/2,h=(a.top+a.bottom)/2,p=o&&c.animateScale,m=p?0:this.innerRadius,g=p?0:this.outerRadius,{sharedOptions:v,includeOptions:w}=this._getSharedOptions(n,i);let _=this._getRotation(),b;for(b=0;b<n;++b)_+=this._circumference(b,o);for(b=n;b<n+r;++b){const x=this._circumference(b,o),E=t[b],P={x:f+this.offsetX,y:h+this.offsetY,startAngle:_,endAngle:_+x,circumference:x,outerRadius:g,innerRadius:m};w&&(P.options=v||this.resolveDataElementOptions(b,E.active?"active":i)),_+=x,this.updateElement(E,b,P,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=Ld(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.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(Qe(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Se(ls,"id","doughnut"),Se(ls,"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"}),Se(ls,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"}),Se(ls,"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,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class af extends xi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=JL(n,i,s);this._drawStart=a,this._drawCount=l,eD(n)&&(a=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:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=s.axis,m=a.axis,{spanGaps:g,segment:v}=this.options,w=_c(g)?g:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||i==="none",b=n+r,x=t.length;let E=n>0&&this.getParsed(n-1);for(let P=0;P<x;++P){const k=t[P],N=_?k:{};if(P<n||P>=b){N.skip=!0;continue}const D=this.getParsed(P),U=ft(D[m]),A=N[p]=s.getPixelForValue(D[p],P),Y=N[m]=o||U?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,D,l):D[m],P);N.skip=isNaN(A)||isNaN(Y)||U,N.stop=P>0&&Math.abs(D[p]-E[p])>w,v&&(N.parsed=D,N.raw=c.data[P]),h&&(N.options=f||this.resolveDataElementOptions(P,k.active?"active":i)),_||this.updateElement(k,P,N,i),E=D}}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)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Se(af,"id","line"),Se(af,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Se(af,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class lf extends xi{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=Ld(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return cD.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),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*Bt;let m=p,g;const v=360/this.countVisibleElements();for(g=0;g<n;++g)m+=this._computeAngle(g,i,v);for(g=n;g<n+r;g++){const w=t[g];let _=m,b=m+this._computeAngle(g,i,v),x=s.getDataVisibility(g)?c.getDistanceFromCenterForValue(this.getParsed(g).r):0;m=b,o&&(l.animateScale&&(x=0),l.animateRotate&&(_=b=p));const E={x:f,y:h,innerRadius:0,outerRadius:x,startAngle:_,endAngle:b,options:this.resolveDataElementOptions(g,w.active?"active":i)};this.updateElement(w,g,E,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)?_i(this.resolveDataElementOptions(t,n).angle||r):0}}Se(lf,"id","polarArea"),Se(lf,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Se(lf,"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,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}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 r1 extends ls{}Se(r1,"id","pie"),Se(r1,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class qp extends xi{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 cD.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 s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a<n+r;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":i),f=o.getPointPositionForValue(a,this.getParsed(a).r),h=s?o.xCenter:f.x,p=s?o.yCenter:f.y,m={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:c};this.updateElement(l,a,m,i)}}}Se(qp,"id","radar"),Se(qp,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),Se(qp,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Gp extends xi{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y);return{label:r[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:s}=JL(n,r,i);if(this._drawStart=o,this._drawCount=s,eD(n)&&(o=0,s=r.length),this.options.showLine){const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:c},t)}this.updateElements(r,o,s,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:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,f=this.resolveDataElementOptions(n,i),h=this.getSharedOptions(f),p=this.includeOptions(i,h),m=s.axis,g=a.axis,{spanGaps:v,segment:w}=this.options,_=_c(v)?v:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||i==="none";let x=n>0&&this.getParsed(n-1);for(let E=n;E<n+r;++E){const P=t[E],k=this.getParsed(E),N=b?P:{},D=ft(k[g]),U=N[m]=s.getPixelForValue(k[m],E),A=N[g]=o||D?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[g],E);N.skip=isNaN(U)||isNaN(A)||D,N.stop=E>0&&Math.abs(k[m]-x[m])>_,w&&(N.parsed=k,N.raw=c.data[E]),p&&(N.options=h||this.resolveDataElementOptions(E,P.active?"active":i)),b||this.updateElement(P,E,N,i),x=k}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}Se(Gp,"id","scatter"),Se(Gp,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Se(Gp,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var ZB=Object.freeze({__proto__:null,BarController:sf,BubbleController:Yp,DoughnutController:ls,LineController:af,PolarAreaController:lf,PieController:r1,RadarController:qp,ScatterController:Gp});function pa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wx{static override(t){Object.assign(Wx.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return pa()}parse(){return pa()}format(){return pa()}add(){return pa()}diff(){return pa()}startOf(){return pa()}endOf(){return pa()}}var KB={_date:Wx};function XB(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?bj:_o;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 Dd(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:f}=o[a],{lo:h,hi:p}=XB(o[a],t,s,i);for(let m=h;m<=p;++m){const g=f[m];g.skip||r(g,c,m)}}}function QB(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,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function g0(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Dd(e,n,t,function(a,l,c){!i&&!Ff(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function JB(e,t,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:f}=s.getProps(["startAngle","endAngle"],r),{angle:h}=GL(s,{x:t.x,y:t.y});If(h,c,f)&&i.push({element:s,datasetIndex:a,index:l})}return Dd(e,n,t,o),i}function e9(e,t,n,r,i,o){let s=[];const a=QB(n);let l=Number.POSITIVE_INFINITY;function c(f,h,p){const m=f.inRange(t.x,t.y,i);if(r&&!m)return;const g=f.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!m)return;const w=a(t,g);w<l?(s=[{element:f,datasetIndex:h,index:p}],l=w):w===l&&s.push({element:f,datasetIndex:h,index:p})}return Dd(e,n,t,c),s}function v0(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?JB(e,t,n,i):e9(e,t,n,r,i,o)}function YO(e,t,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return Dd(e,n,t,(l,c,f)=>{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var t9={evaluateInteractionItems:Dd,modes:{index(e,t,n,r){const i=ba(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?g0(e,i,o,r,s):v0(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=a[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=ba(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?g0(e,i,o,r,s):v0(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let f=0;f<c.length;++f)a.push({element:c[f],datasetIndex:l,index:f})}return a},point(e,t,n,r){const i=ba(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return g0(e,i,o,r,s)},nearest(e,t,n,r){const i=ba(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return v0(e,i,o,n.intersect,r,s)},x(e,t,n,r){const i=ba(t,e);return YO(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ba(t,e);return YO(e,i,"y",n.intersect,r)}}};const bD=["left","top","right","bottom"];function bu(e,t){return e.filter(n=>n.pos===t)}function qO(e,t){return e.filter(n=>bD.indexOf(n.pos)===-1&&n.box.axis===t)}function wu(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 n9(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}function r9(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!bD.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function i9(e,t){const n=r9(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],f=c&&a.stackWeight/c.weight;a.horizontal?(a.width=f?f*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=f?f*i:l&&t.availableHeight)}return n}function o9(e){const t=n9(e),n=wu(t.filter(c=>c.box.fullSize),!0),r=wu(bu(t,"left"),!0),i=wu(bu(t,"right")),o=wu(bu(t,"top"),!0),s=wu(bu(t,"bottom")),a=qO(t,"x"),l=qO(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:bu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function GO(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function wD(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 s9(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!ot(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&&wD(s,o.getPadding());const a=Math.max(0,t.outerWidth-GO(s,e,"left","right")),l=Math.max(0,t.outerHeight-GO(s,e,"top","bottom")),c=a!==e.w,f=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function a9(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 l9(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function zu(e,t,n,r){const i=[];let o,s,a,l,c,f;for(o=0,s=e.length,c=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,l9(a.horizontal,t));const{same:h,other:p}=s9(t,n,a,r);c|=h&&i.length,f=f||p,l.fullSize||i.push(a)}return c&&zu(i,t,n,r)||f}function Yh(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 ZO(e,t,n,r){const i=n.padding;let{x:o,y:s}=t;for(const a of e){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},f=a.stackWeight/c.weight||1;if(a.horizontal){const h=t.w*f,p=c.size||l.height;ei(c.start)&&(s=c.start),l.fullSize?Yh(l,i.left,s,n.outerWidth-i.right-i.left,p):Yh(l,t.left+c.placed,s,h,p),c.start=s,c.placed+=h,s=l.bottom}else{const h=t.h*f,p=c.size||l.width;ei(c.start)&&(o=c.start),l.fullSize?Yh(l,o,i.top,p,n.outerHeight-i.bottom-i.top):Yh(l,o,t.top+c.placed,p,h),c.start=o,c.placed+=h,o=l.right}}t.x=o,t.y=s}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),s=Math.max(n-i.height,0),a=o9(e.boxes),l=a.vertical,c=a.horizontal;_t(e.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const f=l.reduce((v,w)=>w.box.options&&w.box.options.display===!1?v:v+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},i);wD(p,tr(r));const m=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),g=i9(l.concat(c),h);zu(a.fullSize,m,h,g),zu(l,m,h,g),zu(c,m,h,g)&&zu(l,m,h,g),a9(m),ZO(a.leftAndTop,m,h,g),m.x+=m.w,m.y+=m.h,ZO(a.rightAndBottom,m,h,g),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},_t(a.chartArea,v=>{const w=v.box;Object.assign(w,e.chartArea),w.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class xD{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 c9 extends xD{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Zp="$chartjs",u9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},KO=e=>e===null||e==="";function f9(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Zp]={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",KO(i)){const o=NO(e,"width");o!==void 0&&(e.width=o)}if(KO(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=NO(e,"height");o!==void 0&&(e.height=o)}return e}const SD=hB?{passive:!0}:!1;function d9(e,t,n){e.addEventListener(t,n,SD)}function h9(e,t,n){e.canvas.removeEventListener(t,n,SD)}function p9(e,t){const n=u9[e.type]||e.type,{x:r,y:i}=ba(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function dg(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function m9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||dg(a.addedNodes,r),s=s&&!dg(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function g9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||dg(a.removedNodes,r),s=s&&!dg(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const jf=new Map;let XO=0;function CD(){const e=window.devicePixelRatio;e!==XO&&(XO=e,jf.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function v9(e,t){jf.size||window.addEventListener("resize",CD),jf.set(e,t)}function y9(e){jf.delete(e),jf.size||window.removeEventListener("resize",CD)}function _9(e,t,n){const r=e.canvas,i=r&&Hx(r);if(!i)return;const o=QL((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return s.observe(i),v9(e,o),s}function y0(e,t,n){n&&n.disconnect(),t==="resize"&&y9(e)}function b9(e,t,n){const r=e.canvas,i=QL(o=>{e.ctx!==null&&n(p9(o,e))},e);return d9(r,t,i),i}class w9 extends xD{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(f9(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Zp])return!1;const r=n[Zp].initial;["height","width"].forEach(o=>{const s=r[o];ft(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Zp],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:m9,detach:g9,resize:_9}[n]||b9;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:y0,detach:y0,resize:y0}[n]||h9)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return dB(t,n,r,i)}isAttached(t){const n=Hx(t);return!!(n&&n.isConnected)}}function x9(e){return!fD()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?c9:w9}var Vp;let Ao=(Vp=class{constructor(){Se(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return _c(this.x)&&_c(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}},Se(Vp,"defaults",{}),Se(Vp,"defaultRoutes"),Vp);function S9(e,t){const n=e.options.ticks,r=C9(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?T9(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return O9(t,c,o,s/i),c;const f=E9(o,t,i);if(s>0){let h,p;const m=s>1?Math.round((l-a)/(s-1)):null;for(qh(t,c,f,ft(m)?0:a-m,a),h=0,p=s-1;h<p;h++)qh(t,c,f,o[h],o[h+1]);return qh(t,c,f,l,ft(m)?t.length:l+m),c}return qh(t,c,f),c}function C9(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 E9(e,t,n){const r=P9(e),i=t.length/n;if(!r)return Math.max(i,1);const o=gj(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function T9(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function O9(e,t,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===o&&(t.push(e[s]),i++,o=n[i*r])}function qh(e,t,n,r,i){const o=Qe(r,0),s=Math.min(Qe(i,e.length),e.length);let a=0,l,c,f;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),f=o;f<0;)a++,f=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===f&&(t.push(e[c]),a++,f=Math.round(o+a*n))}function P9(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 k9=e=>e==="left"?"right":e==="right"?"left":e,QO=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function JO(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 M9(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-a||l>s+a)))return l}function R9(e,t){_t(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 xu(e){return e.drawTicks?e.tickLength:0}function eP(e,t){if(!e.display)return 0;const n=yn(e.font,t),r=tr(e.padding);return(Rt(e.text)?e.text.length:1)*n.lineHeight+r.height}function N9(e,t){return Ys(e,{scale:t,type:"scale"})}function L9(e,t,n){return Ys(e,{tick:n,index:t,type:"tick"})}function D9(e,t,n){let r=jx(e);return(n&&t!=="right"||!n&&t==="right")&&(r=k9(r)),r}function A9(e,t,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:f}=l;let h=0,p,m,g;const v=s-i,w=a-o;if(e.isHorizontal()){if(m=Qn(r,o,a),ot(n)){const _=Object.keys(n)[0],b=n[_];g=f[_].getPixelForValue(b)+v-t}else n==="center"?g=(c.bottom+c.top)/2+v-t:g=QO(e,n,t);p=a-o}else{if(ot(n)){const _=Object.keys(n)[0],b=n[_];m=f[_].getPixelForValue(b)-w+t}else n==="center"?m=(c.left+c.right)/2-w+t:m=QO(e,n,t);g=Qn(r,s,i),h=n==="left"?-Xt:Xt}return{titleX:m,titleY:g,maxWidth:p,rotation:h}}class ll extends Ao{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=Tr(t,Number.POSITIVE_INFINITY),n=Tr(n,Number.NEGATIVE_INFINITY),r=Tr(r,Number.POSITIVE_INFINITY),i=Tr(i,Number.NEGATIVE_INFINITY),{min:Tr(t,r),max:Tr(n,i),minDefined:Kt(t),maxDefined:Kt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Tr(n,Tr(r,n)),max:Tr(r,Tr(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(){Tt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.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=Hj(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?JO(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=S9(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(){Tt(this.options.afterUpdate,[this])}beforeSetDimensions(){Tt(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(){Tt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Tt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Tt(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=Tt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Tt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Tt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let s=i,a,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,m=On(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-xu(t.grid)-n.padding-eP(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=Fx(Math.min(Math.asin(On((f.highest.height+6)/a,-1,1)),Math.asin(On(l/c,-1,1))-Math.asin(On(p/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Tt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Tt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=eP(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=xu(o)+l):(t.height=this.maxHeight,t.width=xu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),m=r.padding*2,g=_i(this.labelRotation),v=Math.cos(g),w=Math.sin(g);if(a){const _=r.mirror?0:w*h.width+v*p.height;t.height=Math.min(this.maxHeight,t.height+_+m)}else{const _=r.mirror?0:v*h.width+w*p.height;t.width=Math.min(this.maxWidth,t.width+_+m)}this._calculatePadding(c,f,w,v)}}this._handleMargins(),a?(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:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="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,m=0;l?c?(p=i*t.width,m=r*n.height):(p=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,m=n.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*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+s,this.paddingBottom=h+s}}_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(){Tt(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=JO(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,n){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let a=0,l=0,c,f,h,p,m,g,v,w,_,b,x;for(c=0;c<n;++c){if(p=t[c].label,m=this._resolveTickFontOptions(c),r.font=g=m.string,v=i[g]=i[g]||{data:{},gc:[]},w=m.lineHeight,_=b=0,!ft(p)&&!Rt(p))_=ug(r,v.data,v.gc,_,p),b=w;else if(Rt(p))for(f=0,h=p.length;f<h;++f)x=p[f],!ft(x)&&!Rt(x)&&(_=ug(r,v.data,v.gc,_,x),b+=w);o.push(_),s.push(b),a=Math.max(_,a),l=Math.max(b,l)}R9(i,n);const E=o.indexOf(a),P=s.indexOf(l),k=N=>({width:o[N]||0,height:s[N]||0});return{first:k(0),last:k(n-1),widest:k(E),highest:k(P),widths:o,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 _j(this._alignToPixels?ha(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=L9(this.getContext(),t,r))}return this.$context||(this.$context=N9(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=_i(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/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:s,border:a}=i,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=xu(o),m=[],g=a.setContext(this.getContext()),v=g.display?g.width:0,w=v/2,_=function(ne){return ha(r,ne,v)};let b,x,E,P,k,N,D,U,A,Y,q,ee;if(s==="top")b=_(this.bottom),N=this.bottom-p,U=b-w,Y=_(t.top)+w,ee=t.bottom;else if(s==="bottom")b=_(this.top),Y=t.top,ee=_(t.bottom)-w,N=b+w,U=this.top+p;else if(s==="left")b=_(this.right),k=this.right-p,D=b-w,A=_(t.left)+w,q=t.right;else if(s==="right")b=_(this.left),A=t.left,q=_(t.right)-w,k=b+w,D=this.left+p;else if(n==="x"){if(s==="center")b=_((t.top+t.bottom)/2+.5);else if(ot(s)){const ne=Object.keys(s)[0],le=s[ne];b=_(this.chart.scales[ne].getPixelForValue(le))}Y=t.top,ee=t.bottom,N=b+w,U=N+p}else if(n==="y"){if(s==="center")b=_((t.left+t.right)/2);else if(ot(s)){const ne=Object.keys(s)[0],le=s[ne];b=_(this.chart.scales[ne].getPixelForValue(le))}k=b-w,D=k-p,A=t.left,q=t.right}const Z=Qe(i.ticks.maxTicksLimit,h),te=Math.max(1,Math.ceil(h/Z));for(x=0;x<h;x+=te){const ne=this.getContext(x),le=o.setContext(ne),K=a.setContext(ne),$=le.lineWidth,I=le.color,B=K.dash||[],ie=K.dashOffset,W=le.tickWidth,G=le.tickColor,re=le.tickBorderDash||[],se=le.tickBorderDashOffset;E=M9(this,x,l),E!==void 0&&(P=ha(r,E,$),c?k=D=A=q=P:N=U=Y=ee=P,m.push({tx1:k,ty1:N,tx2:D,ty2:U,x1:A,y1:Y,x2:q,y2:ee,width:$,color:I,borderDash:B,borderDashOffset:ie,tickWidth:W,tickColor:G,tickBorderDash:re,tickBorderDashOffset:se}))}return this._ticksLength=h,this._borderValue=b,m}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:f,mirror:h}=o,p=xu(r.grid),m=p+f,g=h?-f:m,v=-_i(this.labelRotation),w=[];let _,b,x,E,P,k,N,D,U,A,Y,q,ee="middle";if(i==="top")k=this.bottom-g,N=this._getXAxisLabelAlignment();else if(i==="bottom")k=this.top+g,N=this._getXAxisLabelAlignment();else if(i==="left"){const te=this._getYAxisLabelAlignment(p);N=te.textAlign,P=te.x}else if(i==="right"){const te=this._getYAxisLabelAlignment(p);N=te.textAlign,P=te.x}else if(n==="x"){if(i==="center")k=(t.top+t.bottom)/2+m;else if(ot(i)){const te=Object.keys(i)[0],ne=i[te];k=this.chart.scales[te].getPixelForValue(ne)+m}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")P=(t.left+t.right)/2-m;else if(ot(i)){const te=Object.keys(i)[0],ne=i[te];P=this.chart.scales[te].getPixelForValue(ne)}N=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?ee="top":l==="end"&&(ee="bottom"));const Z=this._getLabelSizes();for(_=0,b=a.length;_<b;++_){x=a[_],E=x.label;const te=o.setContext(this.getContext(_));D=this.getPixelForTick(_)+o.labelOffset,U=this._resolveTickFontOptions(_),A=U.lineHeight,Y=Rt(E)?E.length:1;const ne=Y/2,le=te.color,K=te.textStrokeColor,$=te.textStrokeWidth;let I=N;s?(P=D,N==="inner"&&(_===b-1?I=this.options.reverse?"left":"right":_===0?I=this.options.reverse?"right":"left":I="center"),i==="top"?c==="near"||v!==0?q=-Y*A+A/2:c==="center"?q=-Z.highest.height/2-ne*A+A:q=-Z.highest.height+A/2:c==="near"||v!==0?q=A/2:c==="center"?q=Z.highest.height/2-ne*A:q=Z.highest.height-Y*A,h&&(q*=-1),v!==0&&!te.showLabelBackdrop&&(P+=A/2*Math.sin(v))):(k=D,q=(1-Y)*A/2);let B;if(te.showLabelBackdrop){const ie=tr(te.backdropPadding),W=Z.heights[_],G=Z.widths[_];let re=q-ie.top,se=0-ie.left;switch(ee){case"middle":re-=W/2;break;case"bottom":re-=W;break}switch(N){case"center":se-=G/2;break;case"right":se-=G;break}B={left:se,top:re,width:G+ie.width,height:W+ie.height,color:te.backdropColor}}w.push({label:E,font:U,textOffset:q,options:{rotation:v,color:le,strokeColor:K,strokeWidth:$,textAlign:I,textBaseline:ee,translation:[P,k],backdrop:B}})}return w}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-_i(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,s=this._getLabelSizes(),a=t+o,l=s.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-a,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+a,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:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,s),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,s;const a=(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,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({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()),s=r.display?o.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,f,h,p;this.isHorizontal()?(c=ha(t,this.left,s)-s/2,f=ha(t,this.right,a)+a/2,h=p=l):(h=ha(t,this.top,s)-s/2,p=ha(t,this.bottom,a)+a/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&&fy(r,i);const o=this.getLabelItems(t);for(const s of o){const a=s.options,l=s.font,c=s.label,f=s.textOffset;Wa(r,c,0,f,l,a)}i&&dy(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=yn(r.font),s=tr(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||ot(n)?(l+=s.bottom,Rt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:f,maxWidth:h,rotation:p}=A9(this,l,n,a);Wa(t,r.text,0,0,o,{color:r.color,maxWidth:h,rotation:p,textAlign:D9(a,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=Qe(t.grid&&t.grid.z,-1),i=Qe(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ll.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,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return yn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Gh{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;$9(n)&&(r=this.register(n));const i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,I9(t,s,r),this.override&&on.override(t.id,t.overrides)),s}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 on[i]&&(delete on[i][r],this.override&&delete Ha[r])}}function I9(e,t,n){const r=Af(Object.create(null),[n?on.get(n):{},on.get(t),e.defaults]);on.set(t,r),e.defaultRoutes&&F9(t,e.defaultRoutes),e.descriptors&&on.describe(t,e.descriptors)}function F9(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");on.route(o,i,l,a)})}function $9(e){return"id"in e&&"defaults"in e}class j9{constructor(){this.controllers=new Gh(xi,"datasets",!0),this.elements=new Gh(Ao,"elements"),this.plugins=new Gh(Object,"plugins"),this.scales=new Gh(ll,"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):_t(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=Ix(t);Tt(r["before"+i],[],r),n[t](r),Tt(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 ji=new j9;class B9{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),s=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const o of t){const s=o.plugin,a=s[r],l=[n,i,o.options];if(Tt(a,l,s)===!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=Qe(r.options&&r.options.plugins,{}),o=z9(r);return i===!1&&!n?[]:V9(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function z9(e){const t={},n=[],r=Object.keys(ji.plugins.items);for(let o=0;o<r.length;o++)n.push(ji.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function U9(e,t){return!t&&e===!1?null:e===!0?{}:e}function V9(e,{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const l=a.id,c=U9(r[l],i);c!==null&&o.push({plugin:a,options:H9(e.config,{plugin:a,local:n[l]},c,s)})}return o}function H9(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function i1(e,t){const n=on.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function W9(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function Y9(e,t){return e===t?"_index_":"_value_"}function q9(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function hg(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||q9(t.position)||e.length>1&&hg(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function G9(e,t){const n=Ha[e.type]||{scales:{}},r=t.scales||{},i=i1(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!ot(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=hg(s,a),c=Y9(l,i),f=n.scales||{};o[s]=tf(Object.create(null),[{axis:l},a,f[l],f[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||i1(a,t),f=(Ha[a]||{}).scales||{};Object.keys(f).forEach(h=>{const p=W9(h,l),m=s[p+"AxisID"]||p;o[m]=o[m]||Object.create(null),tf(o[m],[{axis:p},r[m],f[h]])})}),Object.keys(o).forEach(s=>{const a=o[s];tf(a,[on.scales[a.type],on.scale])}),o}function ED(e){const t=e.options||(e.options={});t.plugins=Qe(t.plugins,{}),t.scales=G9(e,t)}function TD(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Z9(e){return e=e||{},e.data=TD(e.data),ED(e),e}const tP=new Map,OD=new Set;function Zh(e,t){let n=tP.get(e);return n||(n=t(),tP.set(e,n),OD.add(n)),n}const Su=(e,t,n)=>{const r=Ls(t,n);r!==void 0&&e.add(r)};class K9{constructor(t){this._config=Z9(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=TD(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(),ED(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Zh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Zh(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Zh(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Zh(`${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,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(f=>{t&&(l.add(t),f.forEach(h=>Su(l,t,h))),f.forEach(h=>Su(l,i,h)),f.forEach(h=>Su(l,Ha[o]||{},h)),f.forEach(h=>Su(l,on,h)),f.forEach(h=>Su(l,t1,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),OD.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ha[n]||{},on.datasets[n]||{},{type:n},on,t1]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=nP(this._resolverCache,t,i);let l=s;if(Q9(s,n)){o.$shared=!1,r=Ds(r)?r():r;const c=this.createResolver(t,r,a);l=bc(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=nP(this._resolverCache,t,r);return ot(n)?bc(o,n,void 0,i):o}}function nP(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:zx(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const X9=e=>ot(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Ds(e[n]),!1);function Q9(e,t){const{isScriptable:n,isIndexable:r}=oD(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(Ds(a)||X9(a))||s&&Rt(a))return!0}return!1}var J9="4.1.1";const ez=["top","bottom","left","right","chartArea"];function rP(e,t){return e==="top"||e==="bottom"||ez.indexOf(e)===-1&&t==="x"}function iP(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function oP(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Tt(n&&n.onComplete,[e],t)}function tz(e){const t=e.chart,n=t.options.animation;Tt(n&&n.onProgress,[e],t)}function PD(e){return fD()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Kp={},sP=e=>{const t=PD(e);return Object.values(Kp).filter(n=>n.canvas===t).pop()};function nz(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function rz(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function iz(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var Ko;let py=(Ko=class{static register(...t){ji.add(...t),aP()}static unregister(...t){ji.remove(...t),aP()}constructor(t,n){const r=this.config=new K9(n),i=PD(t),o=sP(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 s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||x9(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,f=l&&l.width;if(this.id=aj(),this.ctx=a,this.canvas=l,this.width=f,this.height=c,this._options=s,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 B9,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Sj(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],Kp[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}co.listen(this,"complete",oP),co.listen(this,"progress",tz),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 ji}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():RO(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return PO(this.canvas,this.ctx),this}stop(){return co.stop(this),this}resize(t,n){co.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,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,RO(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Tt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};_t(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=hg(s,a),c=l==="r",f=l==="x";return{options:a,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),_t(o,s=>{const a=s.options,l=a.id,c=hg(l,a),f=Qe(a.type,s.dtype);(a.position===void 0||rP(a.position,c)!==rP(s.dposition))&&(a.position=s.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=ji.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),_t(i,(s,a)=>{s||delete r[a]}),_t(r,s=>{er.configure(this,s,s.options),er.addBox(this,s)})}_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(iP("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 s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||i1(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=ji.getController(a),{datasetElementType:c,dataElementType:f}=on.datasets[a];Object.assign(l,{dataElementType:ji.getElement(f),datasetElementType:c&&ji.getElement(c)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){_t(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 s=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),s=Math.max(+h.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||_t(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(iP("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_t(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);(!_O(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 s=r==="_removeElements"?-o:o;nz(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!_O(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=[],_t(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,Ds(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&&(co.has(this)?this.attached&&!co.running(this)&&co.start(this):(this.draw(),oP({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 s=n[i];(!t||s.visible)&&r.push(s)}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=iz(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&fy(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&&dy(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Ff(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=t9.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=Ys(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),s=o.controller._resolveAnimations(void 0,i);ei(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.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(),co.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(),PO(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Kp[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,s)=>{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};_t(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 s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){_t(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},_t(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,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:s})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!ag(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)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.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,s=n,a=this._getActiveElements(t,i,r,s),l=hj(t),c=rz(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Tt(o.onHover,[t,a,this],this),l&&Tt(o.onClick,[t,a,this],this));const f=!ag(a,i);return(f||n)&&(this._active=a,this._updateHoverStyles(a,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)}},Se(Ko,"defaults",on),Se(Ko,"instances",Kp),Se(Ko,"overrides",Ha),Se(Ko,"registry",ji),Se(Ko,"version",J9),Se(Ko,"getChart",sP),Ko);function aP(){return _t(py.instances,e=>e._plugins.invalidate())}function oz(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+Xt,r-Xt),e.closePath(),e.clip()}function sz(e){return Bx(e,["outerStart","outerEnd","innerStart","innerEnd"])}function az(e,t,n,r){const i=sz(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return On(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:On(i.innerStart,0,s),innerEnd:On(i.innerEnd,0,s)}}function El(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function pg(e,t,n,r,i,o){const{x:s,y:a,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 m=0;const g=i-l;if(r){const te=f>0?f-r:0,ne=h>0?h-r:0,le=(te+ne)/2,K=le!==0?g*le/(le+r):g;m=(g-K)/2}const v=Math.max(.001,g*h-n/Bt)/h,w=(g-v)/2,_=l+w+m,b=i-w-m,{outerStart:x,outerEnd:E,innerStart:P,innerEnd:k}=az(t,p,h,b-_),N=h-x,D=h-E,U=_+x/N,A=b-E/D,Y=p+P,q=p+k,ee=_+P/Y,Z=b-k/q;if(e.beginPath(),o){const te=(U+A)/2;if(e.arc(s,a,h,U,te),e.arc(s,a,h,te,A),E>0){const $=El(D,A,s,a);e.arc($.x,$.y,E,A,b+Xt)}const ne=El(q,b,s,a);if(e.lineTo(ne.x,ne.y),k>0){const $=El(q,Z,s,a);e.arc($.x,$.y,k,b+Xt,Z+Math.PI)}const le=(b-k/p+(_+P/p))/2;if(e.arc(s,a,p,b-k/p,le,!0),e.arc(s,a,p,le,_+P/p,!0),P>0){const $=El(Y,ee,s,a);e.arc($.x,$.y,P,ee+Math.PI,_-Xt)}const K=El(N,_,s,a);if(e.lineTo(K.x,K.y),x>0){const $=El(N,U,s,a);e.arc($.x,$.y,x,_-Xt,U)}}else{e.moveTo(s,a);const te=Math.cos(U)*h+s,ne=Math.sin(U)*h+a;e.lineTo(te,ne);const le=Math.cos(A)*h+s,K=Math.sin(A)*h+a;e.lineTo(le,K)}e.closePath()}function lz(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){pg(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=s+(a%Nt||Nt))}return pg(e,t,n,r,l,i),e.fill(),l}function cz(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:f}=l,h=l.borderAlign==="inner";if(!c)return;h?(e.lineWidth=c*2,e.lineJoin=f||"round"):(e.lineWidth=c,e.lineJoin=f||"bevel");let p=t.endAngle;if(o){pg(e,t,n,r,p,i);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(p=s+(a%Nt||Nt))}h&&oz(e,t,p),o||(pg(e,t,n,r,p,i),e.stroke())}class Xp extends Ao{constructor(t){super(),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,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=GL(i,{x:t,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=this.options.spacing/2,g=Qe(h,l-a)>=Nt||If(o,a,l),v=yo(s,c+p,f+p);return g&&v}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,f=(i+o)/2,h=(s+a+c+l)/2;return{x:n+Math.cos(f)*h,y:r+Math.sin(f)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Nt?Math.floor(r/Nt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(Bt,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,lz(t,this,c,o,s),cz(t,this,c,o,s),t.restore()}}Se(Xp,"id","arc"),Se(Xp,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Se(Xp,"defaultRoutes",{backgroundColor:"backgroundColor"});function kD(e,t,n=t){e.lineCap=Qe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Qe(n.borderDash,t.borderDash)),e.lineDashOffset=Qe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Qe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Qe(n.borderWidth,t.borderWidth),e.strokeStyle=Qe(n.borderColor,t.borderColor)}function uz(e,t,n){e.lineTo(n.x,n.y)}function fz(e){return e.stepped?Aj:e.tension||e.cubicInterpolationMode==="monotone"?Ij:uz}function MD(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),f=i<s&&o<s||i>a&&o>a;return{count:r,start:l,loop:t.loop,ilen:c<l&&!f?r+c-l:c-l}}function dz(e,t,n,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:c}=MD(i,n,r),f=fz(o);let{move:h=!0,reverse:p}=r||{},m,g,v;for(m=0;m<=c;++m)g=i[(a+(p?c-m:m))%s],!g.skip&&(h?(e.moveTo(g.x,g.y),h=!1):f(e,v,g,p,o.stepped),v=g);return l&&(g=i[(a+(p?c:0))%s],f(e,v,g,p,o.stepped)),!!l}function hz(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=MD(i,n,r),{move:l=!0,reverse:c}=r||{};let f=0,h=0,p,m,g,v,w,_;const b=E=>(s+(c?a-E:E))%o,x=()=>{v!==w&&(e.lineTo(f,w),e.lineTo(f,v),e.lineTo(f,_))};for(l&&(m=i[b(0)],e.moveTo(m.x,m.y)),p=0;p<=a;++p){if(m=i[b(p)],m.skip)continue;const E=m.x,P=m.y,k=E|0;k===g?(P<v?v=P:P>w&&(w=P),f=(h*f+E)/++h):(x(),e.lineTo(E,P),g=k,h=0,v=w=P),_=P}x()}function o1(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?hz:dz}function pz(e){return e.stepped?pB:e.tension||e.cubicInterpolationMode==="monotone"?mB:wa}function mz(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),kD(e,t.options),e.stroke(i)}function gz(e,t,n,r){const{segments:i,options:o}=t,s=o1(t);for(const a of i)kD(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const vz=typeof Path2D=="function";function yz(e,t,n,r){vz&&!t.options.segment?mz(e,t,n,r):gz(e,t,n,r)}class cs extends Ao{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;sB(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=wB(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,s=gD(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=pz(r);let c,f;for(c=0,f=s.length;c<f;++c){const{start:h,end:p}=s[c],m=o[h],g=o[p];if(m===g){a.push(m);continue}const v=Math.abs((i-m[n])/(g[n]-m[n])),w=l(m,g,v,r.stepped);w[n]=t[n],a.push(w)}return a.length===1?a[0]:a}pathSegment(t,n,r){return o1(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=o1(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)s&=o(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),yz(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Se(cs,"id","line"),Se(cs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Se(cs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Se(cs,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function lP(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class Qp extends Ao{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return lP(this,t,"x",n)}inYRange(t,n){return lP(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!Ff(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,n1(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}Se(Qp,"id","point"),Se(Qp,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Se(Qp,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function RD(e,t){const{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,c,f,h;return e.horizontal?(h=s/2,a=Math.min(n,i),l=Math.max(n,i),c=r-h,f=r+h):(h=o/2,a=n-h,l=n+h,c=Math.min(r,i),f=Math.max(r,i)),{left:a,top:c,right:l,bottom:f}}function us(e,t,n,r){return e?0:On(t,n,r)}function _z(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=iD(r);return{t:us(i.top,o.top,0,n),r:us(i.right,o.right,0,t),b:us(i.bottom,o.bottom,0,n),l:us(i.left,o.left,0,t)}}function bz(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=Aa(i),s=Math.min(t,n),a=e.borderSkipped,l=r||ot(i);return{topLeft:us(!l||a.top||a.left,o.topLeft,0,s),topRight:us(!l||a.top||a.right,o.topRight,0,s),bottomLeft:us(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:us(!l||a.bottom||a.right,o.bottomRight,0,s)}}function wz(e){const t=RD(e),n=t.right-t.left,r=t.bottom-t.top,i=_z(e,n/2,r/2),o=bz(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 _0(e,t,n,r){const i=t===null,o=n===null,a=e&&!(i&&o)&&RD(e,r);return a&&(i||yo(t,a.left,a.right))&&(o||yo(n,a.top,a.bottom))}function xz(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Sz(e,t){e.rect(t.x,t.y,t.w,t.h)}function b0(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,s=(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+s,radius:e.radius}}class Jp extends Ao{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:s}=wz(this),a=xz(s.radius)?$f:Sz;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,b0(s,n,o)),t.clip(),a(t,b0(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,b0(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return _0(this,t,n,r)}inXRange(t,n){return _0(this,t,null,n)}inYRange(t,n){return _0(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}}Se(Jp,"id","bar"),Se(Jp,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Se(Jp,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Cz=Object.freeze({__proto__:null,ArcElement:Xp,LineElement:cs,PointElement:Qp,BarElement:Jp});const s1=["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)"],cP=s1.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function ND(e){return s1[e%s1.length]}function LD(e){return cP[e%cP.length]}function Ez(e,t){return e.borderColor=ND(t),e.backgroundColor=LD(t),++t}function Tz(e,t){return e.backgroundColor=e.data.map(()=>ND(t++)),t}function Oz(e,t){return e.backgroundColor=e.data.map(()=>LD(t++)),t}function Pz(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof ls?t=Tz(n,t):i instanceof lf?t=Oz(n,t):i&&(t=Ez(n,t))}}function uP(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var kz={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{options:{elements:r},data:{datasets:i}}=e.config;if(!n.forceOverride&&(uP(i)||r&&uP(r)))return;const o=Pz(e);i.forEach(o)}};function Mz(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let f=t,h,p,m,g,v;for(s[l++]=e[f],h=0;h<o-2;h++){let w=0,_=0,b;const x=Math.floor((h+1)*a)+1+t,E=Math.min(Math.floor((h+2)*a)+1,n)+t,P=E-x;for(b=x;b<E;b++)w+=e[b].x,_+=e[b].y;w/=P,_/=P;const k=Math.floor(h*a)+1+t,N=Math.min(Math.floor((h+1)*a)+1,n)+t,{x:D,y:U}=e[f];for(m=g=-1,b=k;b<N;b++)g=.5*Math.abs((D-w)*(e[b].y-U)-(D-e[b].x)*(_-U)),g>m&&(m=g,p=e[b],v=b);s[l++]=p,f=v}return s[l++]=e[c],s}function Rz(e,t,n,r){let i=0,o=0,s,a,l,c,f,h,p,m,g,v;const w=[],_=t+n-1,b=e[t].x,E=e[_].x-b;for(s=t;s<t+n;++s){a=e[s],l=(a.x-b)/E*r,c=a.y;const P=l|0;if(P===f)c<g?(g=c,h=s):c>v&&(v=c,p=s),i=(o*i+a.x)/++o;else{const k=s-1;if(!ft(h)&&!ft(p)){const N=Math.min(h,p),D=Math.max(h,p);N!==m&&N!==k&&w.push({...e[N],x:i}),D!==m&&D!==k&&w.push({...e[D],x:i})}s>0&&k!==m&&w.push(e[k]),w.push(a),f=P,o=0,g=v=c,h=p=m=s}}return w}function DD(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function fP(e){e.data.datasets.forEach(t=>{DD(t)})}function Nz(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=On(_o(t,o.axis,s).lo,0,n-1)),c?i=On(_o(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var Lz={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){fP(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(Bu([a,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}=Nz(l,c);const m=n.threshold||4*r;if(p<=m){DD(i);return}ft(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let g;switch(n.algorithm){case"lttb":g=Mz(c,h,p,r,n);break;case"min-max":g=Rz(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=g})},destroy(e){fP(e)}};function Dz(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=Yx(l,c,i);const f=a1(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:f,start:i[l],end:i[c]});continue}const h=gD(t,f);for(const p of h){const m=a1(n,o[p.start],o[p.end],p.loop),g=mD(a,i,m);for(const v of g)s.push({source:v,target:p,start:{[n]:dP(f,m,"start",Math.max)},end:{[n]:dP(f,m,"end",Math.min)}})}}return s}function a1(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Pr(i),o=Pr(o)),{property:e,start:i,end:o}}function Az(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=Yx(s,a,i);const l=i[s],c=i[a];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 Yx(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function dP(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function AD(e,t){let n=[],r=!1;return Rt(e)?(r=!0,n=e):n=Az(e,t),n.length?new cs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function hP(e){return e&&e.fill!==!1}function Iz(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Kt(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function Fz(e,t,n){const r=zz(e);if(ot(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Kt(i)&&Math.floor(i)===i?$z(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function $z(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function jz(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ot(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Bz(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ot(e)?r=e.value:r=t.getBaseValue(),r}function zz(e){const t=e.options,n=t.fill;let r=Qe(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Uz(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=Vz(t,n);a.push(AD({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++)Hz(i,s[f],a)}return new cs({points:i,options:{}})}function Vz(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 Hz(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:s,last:a,point:l}=Wz(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function Wz(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,s=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const f=o[c],h=s[f.start][n],p=s[f.end][n];if(yo(i,h,p)){a=i===h,l=i===p;break}}return{first:a,last:l,point:r}}class ID{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:s}=this;return n=n||{start:0,end:Nt},t.arc(i,o,s,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 Yz(e){const{chart:t,fill:n,line:r}=e;if(Kt(n))return qz(t,n);if(n==="stack")return Uz(e);if(n==="shape")return!0;const i=Gz(e);return i instanceof ID?i:AD(i,r)}function qz(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function Gz(e){return(e.scale||{}).getPointPositionForValue?Kz(e):Zz(e)}function Zz(e){const{scale:t={},fill:n}=e,r=jz(n,t);if(Kt(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function Kz(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=Bz(n,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new ID({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}function w0(e,t,n){const r=Yz(t),{line:i,scale:o,axis:s}=t,a=i.options,l=a.fill,c=a.backgroundColor,{above:f=c,below:h=c}=l||{};r&&i.points.length&&(fy(e,n),Xz(e,{line:i,target:r,above:f,below:h,area:n,scale:o,axis:s}),dy(e))}function Xz(e,t){const{line:n,target:r,above:i,below:o,area:s,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(pP(e,r,s.top),mP(e,{line:n,target:r,color:i,scale:a,property:l}),e.restore(),e.save(),pP(e,r,s.bottom)),mP(e,{line:n,target:r,color:o,scale:a,property:l}),e.restore()}function pP(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of r){const{start:l,end:c}=a,f=i[l],h=i[Yx(l,c,i)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(f.x,n),e.lineTo(f.x,f.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(h.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function mP(e,t){const{line:n,target:r,property:i,color:o,scale:s}=t,a=Dz(n,r,i);for(const{source:l,target:c,start:f,end:h}of a){const{style:{backgroundColor:p=o}={}}=l,m=r!==!0;e.save(),e.fillStyle=p,Qz(e,s,m&&a1(i,f,h)),e.beginPath();const g=!!n.pathSegment(e,l);let v;if(m){g?e.closePath():gP(e,r,h,i);const w=!!r.pathSegment(e,c,{move:g,reverse:!0});v=g&&w,v||gP(e,r,f,i)}e.closePath(),e.fill(v?"evenodd":"nonzero"),e.restore()}}function Qz(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=n||{};o==="x"&&(e.beginPath(),e.rect(s,r,a-s,i-r),e.clip())}function gP(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var Jz={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,s,a,l;for(s=0;s<r;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof cs&&(l={visible:e.isDatasetVisible(s),index:s,fill:Fz(a,s,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=Iz(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=i.length-1;s>=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),r&&a.fill&&w0(e.ctx,a,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;hP(o)&&w0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!hP(r)||n.drawTime!=="beforeDatasetDraw"||w0(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const vP=(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)}},eU=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class yP extends Ao{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=Tt(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=yn(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=vP(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(s,o,a,l)+10):(f=this.maxHeight,c=this._fitCols(s,i,a,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:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+a;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((g,v)=>{const w=r+n/2+o.measureText(g.text).width;(v===0||c[c.length-1]+w+2*a>s)&&(h+=f,c[c.length-(v>0?0:1)]=0,m+=f,p++),l[v]={left:0,top:m,row:p,width:w,height:i},c[c.length-1]+=w+a}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=s-t;let h=a,p=0,m=0,g=0,v=0;return this.legendItems.forEach((w,_)=>{const{itemWidth:b,itemHeight:x}=tU(r,n,o,w,i);_>0&&m+x+2*a>f&&(h+=p+a,c.push({width:p,height:m}),g+=p+a,v++,p=m=0),l[_]={left:g,top:m,col:v,width:b,height:x},p=Math.max(p,b),m+=x+a}),h+=p,c.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=rc(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Qn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Qn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.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;fy(t,this),this._draw(),dy(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=on.color,l=rc(t.rtl,this.left,this.width),c=yn(s.font),{padding:f}=s,h=c.size,p=h/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:v,itemHeight:w}=vP(s,h),_=function(k,N,D){if(isNaN(g)||g<=0||isNaN(v)||v<0)return;i.save();const U=Qe(D.lineWidth,1);if(i.fillStyle=Qe(D.fillStyle,a),i.lineCap=Qe(D.lineCap,"butt"),i.lineDashOffset=Qe(D.lineDashOffset,0),i.lineJoin=Qe(D.lineJoin,"miter"),i.lineWidth=U,i.strokeStyle=Qe(D.strokeStyle,a),i.setLineDash(Qe(D.lineDash,[])),s.usePointStyle){const A={radius:v*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:U},Y=l.xPlus(k,g/2),q=N+p;rD(i,A,Y,q,s.pointStyleWidth&&g)}else{const A=N+Math.max((h-v)/2,0),Y=l.leftForLtr(k,g),q=Aa(D.borderRadius);i.beginPath(),Object.values(q).some(ee=>ee!==0)?$f(i,{x:Y,y:A,w:g,h:v,radius:q}):i.rect(Y,A,g,v),i.fill(),U!==0&&i.stroke()}i.restore()},b=function(k,N,D){Wa(i,D.text,k,N+w/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},x=this.isHorizontal(),E=this._computeTitleHeight();x?m={x:Qn(o,this.left+f,this.right-r[0]),y:this.top+f+E,line:0}:m={x:this.left+f,y:Qn(o,this.top+E+f,this.bottom-n[0].height),line:0},dD(this.ctx,t.textDirection);const P=w+f;this.legendItems.forEach((k,N)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const D=i.measureText(k.text).width,U=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),A=g+p+D;let Y=m.x,q=m.y;l.setWidth(this.width),x?N>0&&Y+A+f>this.right&&(q=m.y+=P,m.line++,Y=m.x=Qn(o,this.left+f,this.right-r[m.line])):N>0&&q+P>this.bottom&&(Y=m.x=Y+n[m.line].width+f,m.line++,q=m.y=Qn(o,this.top+E+f,this.bottom-n[m.line].height));const ee=l.x(Y);if(_(ee,q,k),Y=Cj(U,Y+g+p,x?Y+A:this.right,t.rtl),b(l.x(Y),q,k),x)m.x+=A+f;else if(typeof k.text!="string"){const Z=c.lineHeight;m.y+=FD(k,Z)}else m.y+=P}),hD(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=yn(n.font),i=tr(n.padding);if(!n.display)return;const o=rc(t.rtl,this.left,this.width),s=this.ctx,a=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 g=this.columnSizes.reduce((v,w)=>Math.max(v,w.height),0);f=c+Qn(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const m=Qn(a,h,h+p);s.textAlign=o.textAlign(jx(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Wa(s,n.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,n=yn(t.font),r=tr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(yo(t,this.left,this.right)&&yo(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],yo(t,i.left,i.left+i.width)&&yo(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!iU(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=eU(i,r);i&&!o&&Tt(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Tt(n.onHover,[t,r,this],this)}else r&&Tt(n.onClick,[t,r,this],this)}}function tU(e,t,n,r,i){const o=nU(r,e,t,n),s=rU(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}function nU(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function rU(e,t,n){let r=e;return typeof t.text!="string"&&(r=FD(t,n)),r}function FD(e,t){const n=e.text?e.text.length+.5:0;return t*n}function iU(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oU={id:"legend",_element:yP,start(e,t,n){const r=e.legend=new yP({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:s,borderRadius:a}}=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:s&&(a||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 qx extends Ao{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=Rt(r.text)?r.text.length:1;this._padding=tr(r.padding);const o=i*yn(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:s}=this,a=s.align;let l=0,c,f,h;return this.isHorizontal()?(f=Qn(a,r,o),h=n+t,c=o-r):(s.position==="left"?(f=r+t,h=Qn(a,i,n),l=Bt*-.5):(f=o-t,h=Qn(a,n,i),l=Bt*.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=yn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Wa(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:jx(n.align),textBaseline:"middle",translation:[s,a]})}}function sU(e,t){const n=new qx({ctx:e.ctx,options:t,chart:e});er.configure(e,n,t),er.addBox(e,n),e.titleBlock=n}var aU={id:"title",_element:qx,start(e,t,n){sU(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 Kh=new WeakMap;var lU={id:"subtitle",start(e,t,n){const r=new qx({ctx:e.ctx,options:n,chart:e});er.configure(e,r,n),er.addBox(e,r),Kh.set(e,r)},stop(e){er.removeBox(e,Kh.get(e)),Kh.delete(e)},beforeUpdate(e,t,n){const r=Kh.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 Uu={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 s=e[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.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,s,a;for(o=0,s=e.length;o<s;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),f=e1(t,c);f<i&&(i=f,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function $i(e,t){return t&&(Rt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function uo(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
||
`)>-1?e.split(`
|
||
`):e}function cU(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function _P(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=yn(t.bodyFont),c=yn(t.titleFont),f=yn(t.footerFont),h=o.length,p=i.length,m=r.length,g=tr(t.padding);let v=g.height,w=0,_=r.reduce((E,P)=>E+P.before.length+P.lines.length+P.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),_){const E=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;v+=m*E+(_-m)*l.lineHeight+(_-1)*t.bodySpacing}p&&(v+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let b=0;const x=function(E){w=Math.max(w,n.measureText(E).width+b)};return n.save(),n.font=c.string,_t(e.title,x),n.font=l.string,_t(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?s+2+t.boxPadding:0,_t(r,E=>{_t(E.before,x),_t(E.lines,x),_t(E.after,x)}),b=0,n.font=f.string,_t(e.footer,x),n.restore(),w+=g.width,{width:w,height:v}}function uU(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function fU(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function dU(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),fU(c,e,t,n)&&(c="center"),c}function bP(e,t,n){const r=n.yAlign||t.yAlign||uU(e,n);return{xAlign:n.xAlign||t.xAlign||dU(e,t,n,r),yAlign:r}}function hU(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function pU(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function wP(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Aa(s);let g=hU(t,a);const v=pU(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(f,p)+i:a==="right"&&(g+=Math.max(h,m)+i),{x:On(g,0,r.width-t.width),y:On(v,0,r.height-t.height)}}function Xh(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 xP(e){return $i([],uo(e))}function mU(e,t,n){return Ys(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function SP(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const $D={beforeTitle:lo,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:lo,beforeBody:lo,beforeLabel:lo,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:lo,afterBody:lo,beforeFooter:lo,footer:lo,afterFooter:lo};function pr(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?$D[t].call(n,r):i}var Xb;let CP=(Xb=class extends Ao{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 vD(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=mU(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=pr(r,"beforeTitle",this,t),o=pr(r,"title",this,t),s=pr(r,"afterTitle",this,t);let a=[];return a=$i(a,uo(i)),a=$i(a,uo(o)),a=$i(a,uo(s)),a}getBeforeBody(t,n){return xP(pr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return _t(t,o=>{const s={before:[],lines:[],after:[]},a=SP(r,o);$i(s.before,uo(pr(a,"beforeLabel",this,o))),$i(s.lines,pr(a,"label",this,o)),$i(s.after,uo(pr(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return xP(pr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=pr(r,"beforeFooter",this,t),o=pr(r,"footer",this,t),s=pr(r,"afterFooter",this,t);let a=[];return a=$i(a,uo(i)),a=$i(a,uo(o)),a=$i(a,uo(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(cU(this.chart,n[l]));return t.filter&&(a=a.filter((f,h,p)=>t.filter(f,h,p,r))),t.itemSort&&(a=a.sort((f,h)=>t.itemSort(f,h,r))),_t(a,f=>{const h=SP(t.callbacks,f);i.push(pr(h,"labelColor",this,f)),o.push(pr(h,"labelPointStyle",this,f)),s.push(pr(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Uu[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=_P(this,r),c=Object.assign({},a,l),f=bP(this.chart,r,c),h=wP(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:a.x,caretY:a.y}}this._tooltipItems=s,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:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Aa(a),{x:p,y:m}=t,{width:g,height:v}=n;let w,_,b,x,E,P;return o==="center"?(E=m+v/2,i==="left"?(w=p,_=w-s,x=E+s,P=E-s):(w=p+g,_=w+s,x=E-s,P=E+s),b=w):(i==="left"?_=p+Math.max(l,f)+s:i==="right"?_=p+g-Math.max(c,h)-s:_=this.caretX,o==="top"?(x=m,E=x-s,w=_-s,b=_+s):(x=m+v,E=x+s,w=_+s,b=_-s),P=x),{x1:w,x2:_,x3:b,y1:x,y2:E,y3:P}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=rc(r.rtl,this.x,this.width);for(t.x=Xh(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=yn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:f}=o,h=yn(o.bodyFont),p=Xh(this,"left",o),m=i.x(p),g=l<h.lineHeight?(h.lineHeight-l)/2:0,v=n.y+g;if(o.usePointStyle){const w={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},_=i.leftForLtr(m,c)+c/2,b=v+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,n1(t,w,_,b),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,n1(t,w,_,b)}else{t.lineWidth=ot(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const w=i.leftForLtr(m,c-f),_=i.leftForLtr(i.xPlus(m,1),c-f-2),b=Aa(s.borderRadius);Object.values(b).some(x=>x!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,$f(t,{x:w,y:v,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),$f(t,{x:_,y:v+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(w,v,c,l),t.strokeRect(w,v,c,l),t.fillStyle=s.backgroundColor,t.fillRect(_,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=yn(r.bodyFont);let p=h.lineHeight,m=0;const g=rc(r.rtl,this.x,this.width),v=function(D){n.fillText(D,g.x(t.x+m),t.y+p/2),t.y+=p+o},w=g.textAlign(s);let _,b,x,E,P,k,N;for(n.textAlign=s,n.textBaseline="middle",n.font=h.string,t.x=Xh(this,w,r),n.fillStyle=r.bodyColor,_t(this.beforeBody,v),m=a&&w!=="right"?s==="center"?c/2+f:c+2+f:0,E=0,k=i.length;E<k;++E){for(_=i[E],b=this.labelTextColors[E],n.fillStyle=b,_t(_.before,v),x=_.lines,a&&x.length&&(this._drawColorBox(n,t,E,g,r),p=Math.max(h.lineHeight,l)),P=0,N=x.length;P<N;++P)v(x[P]),p=h.lineHeight;_t(_.after,v)}m=0,p=h.lineHeight,_t(this.afterBody,v),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=rc(r.rtl,this.x,this.width);for(t.x=Xh(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=yn(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:f}=r,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:g}=Aa(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+h,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+c-p,l),n.quadraticCurveTo(a+c,l,a+c,l+p),s==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+c,l+f-g),n.quadraticCurveTo(a+c,l+f,a+c-g,l+f),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+m,l+f),n.quadraticCurveTo(a,l+f,a,l+f-m),s==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l+h),n.quadraticCurveTo(a,l,a+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 s=Uu[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=_P(this,t),l=Object.assign({},s,this._size),c=bP(n,t,l),f=wP(t,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.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 s=tr(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),dD(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),hD(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!ag(r,i),s=this._positionChanged(i,n);(o||s)&&(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||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!ag(s,o)||a;return l&&(this._active=s,(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 s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=Uu[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}},Se(Xb,"positioners",Uu),Xb);var gU={id:"tooltip",_element:CP,positioners:Uu,afterInit(e,t,n){n&&(e.tooltip=new CP({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:$D},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"]},vU=Object.freeze({__proto__:null,Colors:kz,Decimation:Lz,Filler:Jz,Legend:oU,SubTitle:lU,Title:aU,Tooltip:gU});const yU=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function _U(e,t,n,r){const i=e.indexOf(t);if(i===-1)return yU(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const bU=(e,t)=>e===null?null:On(Math.round(e),0,t);function EP(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class l1 extends ll{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:_U(r,t,Qe(n,t),this._addedLabels),bU(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 s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return EP.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}}Se(l1,"id","category"),Se(l1,"defaults",{ticks:{callback:EP}});function wU(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,m=o||1,g=f-1,{min:v,max:w}=t,_=!ft(s),b=!ft(a),x=!ft(c),E=(w-v)/(h+1);let P=wO((w-v)/g/m)*m,k,N,D,U;if(P<1e-14&&!_&&!b)return[{value:v},{value:w}];U=Math.ceil(w/P)-Math.floor(v/P),U>g&&(P=wO(U*P/g/m)*m),ft(l)||(k=Math.pow(10,l),P=Math.ceil(P*k)/k),i==="ticks"?(N=Math.floor(v/P)*P,D=Math.ceil(w/P)*P):(N=v,D=w),_&&b&&o&&vj((a-s)/o,P/1e3)?(U=Math.round(Math.min((a-s)/P,f)),P=(a-s)/U,N=s,D=a):x?(N=_?s:N,D=b?a:D,U=c-1,P=(D-N)/U):(U=(D-N)/P,nf(U,Math.round(U),P/1e3)?U=Math.round(U):U=Math.ceil(U));const A=Math.max(xO(P),xO(N));k=Math.pow(10,ft(l)?A:l),N=Math.round(N*k)/k,D=Math.round(D*k)/k;let Y=0;for(_&&(p&&N!==s?(n.push({value:s}),N<s&&Y++,nf(Math.round((N+Y*P)*k)/k,s,TP(s,E,e))&&Y++):N<s&&Y++);Y<U;++Y)n.push({value:Math.round((N+Y*P)*k)/k});return b&&p&&D!==a?n.length&&nf(n[n.length-1].value,a,TP(a,E,e))?n[n.length-1].value=a:n.push({value:a}):(!b||D===a)&&n.push({value:D}),n}function TP(e,t,{horizontal:n,minRotation:r}){const i=_i(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class mg extends ll{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 s=l=>i=n?i:l,a=l=>o=r?o:l;if(t){const l=qi(i),c=qi(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(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,s=wU(i,o);return t.bounds==="ticks"&&qL(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}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 Ld(t,this.chart.options.locale,this.options.ticks.format)}}class c1 extends mg{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Kt(t)?t:0,this.max=Kt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=_i(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}}Se(c1,"id","linear"),Se(c1,"defaults",{ticks:{callback:uy.formatters.numeric}});const Bf=e=>Math.floor(as(e)),ma=(e,t)=>Math.pow(10,Bf(e)+t);function OP(e){return e/Math.pow(10,Bf(e))===1}function PP(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function xU(e,t){const n=t-e;let r=Bf(n);for(;PP(e,t,r)>10;)r++;for(;PP(e,t,r)<10;)r--;return Math.min(r,Bf(e))}function SU(e,{min:t,max:n}){t=Tr(e.min,t);const r=[],i=Bf(t);let o=xU(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*s)/s,f=Math.floor((t-l)/a/10)*a*10;let h=Math.floor((c-f)/Math.pow(10,o)),p=Tr(e.min,Math.round((l+f+h*Math.pow(10,o))*s)/s);for(;p<n;)r.push({value:p,major:OP(p),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,s=o>=0?1:s),p=Math.round((l+f+h*Math.pow(10,o))*s)/s;const m=Tr(e.max,p);return r.push({value:m,major:OP(m),significand:h}),r}class u1 extends ll{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=mg.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Kt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Kt(t)?Math.max(0,t):null,this.max=Kt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Kt(this._userMin)&&(this.min=t===ma(this.min,0)?ma(this.min,-1):ma(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(ma(r,-1)),s(ma(i,1)))),r<=0&&o(ma(i,-1)),i<=0&&s(ma(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=SU(n,this);return t.bounds==="ticks"&&qL(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":Ld(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=as(t),this._valueRange=as(this.max)-as(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(as(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Se(u1,"id","logarithmic"),Se(u1,"defaults",{ticks:{callback:uy.formatters.logarithmic,major:{enabled:!0}}});function f1(e){const t=e.ticks;if(t.display&&e.display){const n=tr(t.backdropPadding);return Qe(t.font&&t.font.size,on.font.size)+n.height}return 0}function CU(e,t,n){return n=Rt(n)?n:[n],{w:Dj(e,t.string,n),h:n.length*t.lineHeight}}function kP(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 EU(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,s=e.options.pointLabels,a=s.centerPointLabels?Bt/o:0;for(let l=0;l<o;l++){const c=s.setContext(e.getPointLabelContext(l));i[l]=c.padding;const f=e.getPointPosition(l,e.drawingArea+i[l],a),h=yn(c.font),p=CU(e.ctx,h,e._pointLabels[l]);r[l]=p;const m=Pr(e.getIndexAngle(l)+a),g=Math.round(Fx(m)),v=kP(g,f.x,p.w,0,180),w=kP(g,f.y,p.h,90,270);TU(n,t,m,v,w)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=OU(e,r,i)}function TU(e,t,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.start<t.l?(a=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function OU(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=f1(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?Bt/i:0;for(let c=0;c<i;c++){const f=e.getPointPosition(c,a+s+n[c],l),h=Math.round(Fx(Pr(f.angle+Xt))),p=t[c],m=MU(f.y,p.h,h),g=PU(h),v=kU(f.x,p.w,g);r.push({x:f.x,y:m,textAlign:g,left:v,top:m,right:v+p.w,bottom:m+p.h})}return r}function PU(e){return e===0||e===180?"center":e<180?"left":"right"}function kU(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function MU(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function RU(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=yn(o.font),{x:a,y:l,textAlign:c,left:f,top:h,right:p,bottom:m}=e._pointLabelItems[i],{backdropColor:g}=o;if(!ft(g)){const v=Aa(o.borderRadius),w=tr(o.backdropPadding);n.fillStyle=g;const _=f-w.left,b=h-w.top,x=p-f+w.width,E=m-h+w.height;Object.values(v).some(P=>P!==0)?(n.beginPath(),$f(n,{x:_,y:b,w:x,h:E,radius:v}),n.fill()):n.fillRect(_,b,x,E)}Wa(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function jD(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 s=1;s<r;s++)o=e.getPointPosition(s,t),i.lineTo(o.x,o.y)}}function NU(e,t,n,r,i){const o=e.ctx,s=t.circular,{color:a,lineWidth:l}=t;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),jD(e,n,s,r),o.closePath(),o.stroke(),o.restore())}function LU(e,t,n){return Ys(e,{label:n,index:t,type:"pointLabel"})}class Vu extends mg{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(f1(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=Kt(t)&&!isNaN(t)?t:0,this.max=Kt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/f1(this.options))}generateTickLabels(t){mg.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Tt(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?EU(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 Pr(t*n+_i(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 LU(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(),jD(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,s=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&RU(this,s),i.display&&this.ticks.forEach((f,h)=>{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),m=i.setContext(p),g=o.setContext(p);NU(this,m,l,s,g)}}),r.display){for(t.save(),a=s-1;a>=0;a--){const f=r.setContext(this.getPointLabelContext(a)),{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(a,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,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=yn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=f.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=tr(c.backdropPadding);t.fillRect(-s/2-h.left,-o-f.size/2-h.top,s+h.width,f.size+h.height)}Wa(t,a.label,0,-o,f,{color:c.color})}),t.restore()}drawTitle(){}}Se(Vu,"id","radialLinear"),Se(Vu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:uy.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Se(Vu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Se(Vu,"descriptors",{angleLines:{_fallback:"grid"}});const my={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}},vr=Object.keys(my);function DU(e,t){return e-t}function MP(e,t){if(ft(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Kt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(_c(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function RP(e,t,n,r){const i=vr.length;for(let o=vr.indexOf(e);o<i-1;++o){const s=my[vr[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return vr[o]}return vr[i-1]}function AU(e,t,n,r,i){for(let o=vr.length-1;o>=vr.indexOf(n);o--){const s=vr[o];if(my[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return vr[n?vr.indexOf(n):0]}function IU(e){for(let t=vr.indexOf(e)+1,n=vr.length;t<n;++t)if(my[vr[t]].common)return vr[t]}function NP(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=$x(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function FU(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function LP(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:FU(e,r,i,n)}class zf extends ll{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 KB._date(t.adapters.date);i.init(n),tf(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:MP(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:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Kt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Kt(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,s=this.max,a=wj(i,o,s);return this._unit=n.unit||(r.autoSkip?RP(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):AU(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:IU(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),LP(this,a,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 s=t.length<3?.5:.25;n=On(n,0,s),r=On(r,0,s),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,s=o.unit||RP(o.minUnit,n,r,this._getLabelCapacity(n)),a=Qe(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=_c(l)||l===!0,f={};let h=n,p,m;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;p<r;p=+t.add(p,a,s),m++)NP(f,p,g);return(p===r||i.bounds==="ticks"||m===1)&&NP(f,p,g),Object.keys(f).sort((v,w)=>v-w).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Tt(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&a[l],h=c&&a[c],p=r[n],m=c&&h&&p&&p.major;return this._adapter.format(t,i||(m?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=_i(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,LP(this,[t],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a: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(MP(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return KL(t.sort(DU))}}Se(zf,"id","time"),Se(zf,"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 Qh(e,t,n){let r=0,i=e.length-1,o,s,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=_o(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=_o(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class d1 extends zf{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=Qh(n,this.min),this._tableRange=Qh(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,f;for(s=0,a=t.length;s<a;++s)c=t[s],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)f=i[s+1],l=i[s-1],c=i[s],Math.round((f+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return 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(Qh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Qh(this._table,r*this._tableRange+this._minPos,!0)}}Se(d1,"id","timeseries"),Se(d1,"defaults",zf.defaults);var $U=Object.freeze({__proto__:null,CategoryScale:l1,LinearScale:c1,LogarithmicScale:u1,RadialLinearScale:Vu,TimeScale:zf,TimeSeriesScale:d1});const jU=[ZB,Cz,vU,$U];py.register(...jU);var Ya={},BU={get exports(){return Ya},set exports(e){Ya=e}},Ir={},h1={},zU={get exports(){return h1},set exports(e){h1=e}},BD={};/**
|
||
* @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(K,$){var I=K.length;K.push($);e:for(;0<I;){var B=I-1>>>1,ie=K[B];if(0<i(ie,$))K[B]=$,K[I]=ie,I=B;else break e}}function n(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var $=K[0],I=K.pop();if(I!==$){K[0]=I;e:for(var B=0,ie=K.length,W=ie>>>1;B<W;){var G=2*(B+1)-1,re=K[G],se=G+1,me=K[se];if(0>i(re,I))se<ie&&0>i(me,re)?(K[B]=me,K[se]=I,B=se):(K[B]=re,K[G]=I,B=G);else if(se<ie&&0>i(me,I))K[B]=me,K[se]=I,B=se;else break e}}return $}function i(K,$){var I=K.sortIndex-$.sortIndex;return I!==0?I:K.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,p=3,m=!1,g=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(K){for(var $=n(c);$!==null;){if($.callback===null)r(c);else if($.startTime<=K)r(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(c)}}function E(K){if(v=!1,x(K),!g)if(n(l)!==null)g=!0,ne(P);else{var $=n(c);$!==null&&le(E,$.startTime-K)}}function P(K,$){g=!1,v&&(v=!1,_(D),D=-1),m=!0;var I=p;try{for(x($),h=n(l);h!==null&&(!(h.expirationTime>$)||K&&!Y());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var ie=B(h.expirationTime<=$);$=e.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(l)&&r(l),x($)}else r(l);h=n(l)}if(h!==null)var W=!0;else{var G=n(c);G!==null&&le(E,G.startTime-$),W=!1}return W}finally{h=null,p=I,m=!1}}var k=!1,N=null,D=-1,U=5,A=-1;function Y(){return!(e.unstable_now()-A<U)}function q(){if(N!==null){var K=e.unstable_now();A=K;var $=!0;try{$=N(!0,K)}finally{$?ee():(k=!1,N=null)}}else k=!1}var ee;if(typeof b=="function")ee=function(){b(q)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,te=Z.port2;Z.port1.onmessage=q,ee=function(){te.postMessage(null)}}else ee=function(){w(q,0)};function ne(K){N=K,k||(k=!0,ee())}function le(K,$){D=w(function(){K(e.unstable_now())},$)}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(K){K.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,ne(P))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(K){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var I=p;p=$;try{return K()}finally{p=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,$){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var I=p;p=K;try{return $()}finally{p=I}},e.unstable_scheduleCallback=function(K,$,I){var B=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?B+I:B):I=B,K){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=I+ie,K={id:f++,callback:$,priorityLevel:K,startTime:I,expirationTime:ie,sortIndex:-1},I>B?(K.sortIndex=I,t(c,K),n(l)===null&&K===n(c)&&(v?(_(D),D=-1):v=!0,le(E,I-B))):(K.sortIndex=ie,t(l,K),g||m||(g=!0,ne(P))),K},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(K){var $=p;return function(){var I=p;p=$;try{return K.apply(this,arguments)}finally{p=I}}}})(BD);(function(e){e.exports=BD})(zU);/**
|
||
* @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 zD=H,Dr=h1;function Te(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 UD=new Set,Uf={};function cl(e,t){xc(e,t),xc(e+"Capture",t)}function xc(e,t){for(Uf[e]=t,e=0;e<t.length;e++)UD.add(t[e])}var Co=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p1=Object.prototype.hasOwnProperty,UU=/^[: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]*$/,DP={},AP={};function VU(e){return p1.call(AP,e)?!0:p1.call(DP,e)?!1:UU.test(e)?AP[e]=!0:(DP[e]=!0,!1)}function HU(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 WU(e,t,n,r){if(t===null||typeof t>"u"||HU(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 hr(e,t,n,r,i,o,s){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=s}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new hr(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){Yn[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gx=/[\-:]([a-z])/g;function Zx(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(Gx,Zx);Yn[t]=new hr(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(Gx,Zx);Yn[t]=new hr(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(Gx,Zx);Yn[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kx(e,t,n,r){var i=Yn.hasOwnProperty(t)?Yn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(WU(t,n,i,r)&&(n=null),r||i===null?VU(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 Io=zD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jh=Symbol.for("react.element"),zl=Symbol.for("react.portal"),Ul=Symbol.for("react.fragment"),Xx=Symbol.for("react.strict_mode"),m1=Symbol.for("react.profiler"),VD=Symbol.for("react.provider"),HD=Symbol.for("react.context"),Qx=Symbol.for("react.forward_ref"),g1=Symbol.for("react.suspense"),v1=Symbol.for("react.suspense_list"),Jx=Symbol.for("react.memo"),Qo=Symbol.for("react.lazy"),WD=Symbol.for("react.offscreen"),IP=Symbol.iterator;function Cu(e){return e===null||typeof e!="object"?null:(e=IP&&e[IP]||e["@@iterator"],typeof e=="function"?e:null)}var Yt=Object.assign,x0;function Hu(e){if(x0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);x0=t&&t[1]||""}return`
|
||
`+x0+e}var S0=!1;function C0(e,t){if(!e||S0)return"";S0=!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(`
|
||
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
|
||
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{S0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hu(e):""}function YU(e){switch(e.tag){case 5:return Hu(e.type);case 16:return Hu("Lazy");case 13:return Hu("Suspense");case 19:return Hu("SuspenseList");case 0:case 2:case 15:return e=C0(e.type,!1),e;case 11:return e=C0(e.type.render,!1),e;case 1:return e=C0(e.type,!0),e;default:return""}}function y1(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 Ul:return"Fragment";case zl:return"Portal";case m1:return"Profiler";case Xx:return"StrictMode";case g1:return"Suspense";case v1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case HD:return(e.displayName||"Context")+".Consumer";case VD:return(e._context.displayName||"Context")+".Provider";case Qx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jx:return t=e.displayName||null,t!==null?t:y1(e.type)||"Memo";case Qo:t=e._payload,e=e._init;try{return y1(e(t))}catch{}}return null}function qU(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 y1(t);case 8:return t===Xx?"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 As(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function YD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GU(e){var t=YD(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ep(e){e._valueTracker||(e._valueTracker=GU(e))}function qD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=YD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gg(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 _1(e,t){var n=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function FP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=As(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 GD(e,t){t=t.checked,t!=null&&Kx(e,"checked",t,!1)}function b1(e,t){GD(e,t);var n=As(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")?w1(e,t.type,n):t.hasOwnProperty("defaultValue")&&w1(e,t.type,As(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $P(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 w1(e,t,n){(t!=="number"||gg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wu=Array.isArray;function ic(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=""+As(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 x1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Te(91));return Yt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jP(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Te(92));if(Wu(n)){if(1<n.length)throw Error(Te(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:As(n)}}function ZD(e,t){var n=As(t.value),r=As(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 BP(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function KD(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 S1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?KD(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var tp,XD=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(tp=tp||document.createElement("div"),tp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cf={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},ZU=["Webkit","ms","Moz","O"];Object.keys(cf).forEach(function(e){ZU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cf[t]=cf[e]})});function QD(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cf.hasOwnProperty(e)&&cf[e]?(""+t).trim():t+"px"}function JD(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=QD(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var KU=Yt({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 C1(e,t){if(t){if(KU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function E1(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 T1=null;function eS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var O1=null,oc=null,sc=null;function zP(e){if(e=Fd(e)){if(typeof O1!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=by(t),O1(e.stateNode,e.type,t))}}function e4(e){oc?sc?sc.push(e):sc=[e]:oc=e}function t4(){if(oc){var e=oc,t=sc;if(sc=oc=null,zP(e),t)for(e=0;e<t.length;e++)zP(t[e])}}function n4(e,t){return e(t)}function r4(){}var E0=!1;function i4(e,t,n){if(E0)return e(t,n);E0=!0;try{return n4(e,t,n)}finally{E0=!1,(oc!==null||sc!==null)&&(r4(),t4())}}function Hf(e,t){var n=e.stateNode;if(n===null)return null;var r=by(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(Te(231,t,typeof n));return n}var P1=!1;if(Co)try{var Eu={};Object.defineProperty(Eu,"passive",{get:function(){P1=!0}}),window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{P1=!1}function XU(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var uf=!1,vg=null,yg=!1,k1=null,QU={onError:function(e){uf=!0,vg=e}};function JU(e,t,n,r,i,o,s,a,l){uf=!1,vg=null,XU.apply(QU,arguments)}function eV(e,t,n,r,i,o,s,a,l){if(JU.apply(this,arguments),uf){if(uf){var c=vg;uf=!1,vg=null}else throw Error(Te(198));yg||(yg=!0,k1=c)}}function ul(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 o4(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 UP(e){if(ul(e)!==e)throw Error(Te(188))}function tV(e){var t=e.alternate;if(!t){if(t=ul(e),t===null)throw Error(Te(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 UP(i),e;if(o===r)return UP(i),t;o=o.sibling}throw Error(Te(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(Te(189))}}if(n.alternate!==r)throw Error(Te(190))}if(n.tag!==3)throw Error(Te(188));return n.stateNode.current===n?e:t}function s4(e){return e=tV(e),e!==null?a4(e):null}function a4(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=a4(e);if(t!==null)return t;e=e.sibling}return null}var l4=Dr.unstable_scheduleCallback,VP=Dr.unstable_cancelCallback,nV=Dr.unstable_shouldYield,rV=Dr.unstable_requestPaint,rn=Dr.unstable_now,iV=Dr.unstable_getCurrentPriorityLevel,tS=Dr.unstable_ImmediatePriority,c4=Dr.unstable_UserBlockingPriority,_g=Dr.unstable_NormalPriority,oV=Dr.unstable_LowPriority,u4=Dr.unstable_IdlePriority,gy=null,Gi=null;function sV(e){if(Gi&&typeof Gi.onCommitFiberRoot=="function")try{Gi.onCommitFiberRoot(gy,e,void 0,(e.current.flags&128)===128)}catch{}}var Si=Math.clz32?Math.clz32:cV,aV=Math.log,lV=Math.LN2;function cV(e){return e>>>=0,e===0?32:31-(aV(e)/lV|0)|0}var np=64,rp=4194304;function Yu(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 bg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Yu(a):(o&=s,o!==0&&(r=Yu(o)))}else s=n&~i,s!==0?r=Yu(s):o!==0&&(r=Yu(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-Si(t),i=1<<n,r|=e[n],t&=~i;return r}function uV(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 fV(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Si(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=uV(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function M1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function f4(){var e=np;return np<<=1,!(np&4194240)&&(np=64),e}function T0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ad(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Si(t),e[t]=n}function dV(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-Si(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function nS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Si(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var wt=0;function d4(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h4,rS,p4,m4,g4,R1=!1,ip=[],_s=null,bs=null,ws=null,Wf=new Map,Yf=new Map,rs=[],hV="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 HP(e,t){switch(e){case"focusin":case"focusout":_s=null;break;case"dragenter":case"dragleave":bs=null;break;case"mouseover":case"mouseout":ws=null;break;case"pointerover":case"pointerout":Wf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yf.delete(t.pointerId)}}function Tu(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=Fd(t),t!==null&&rS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pV(e,t,n,r,i){switch(t){case"focusin":return _s=Tu(_s,e,t,n,r,i),!0;case"dragenter":return bs=Tu(bs,e,t,n,r,i),!0;case"mouseover":return ws=Tu(ws,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Wf.set(o,Tu(Wf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Yf.set(o,Tu(Yf.get(o)||null,e,t,n,r,i)),!0}return!1}function v4(e){var t=Ma(e.target);if(t!==null){var n=ul(t);if(n!==null){if(t=n.tag,t===13){if(t=o4(n),t!==null){e.blockedOn=t,g4(e.priority,function(){p4(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 em(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=N1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);T1=r,n.target.dispatchEvent(r),T1=null}else return t=Fd(n),t!==null&&rS(t),e.blockedOn=n,!1;t.shift()}return!0}function WP(e,t,n){em(e)&&n.delete(t)}function mV(){R1=!1,_s!==null&&em(_s)&&(_s=null),bs!==null&&em(bs)&&(bs=null),ws!==null&&em(ws)&&(ws=null),Wf.forEach(WP),Yf.forEach(WP)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,R1||(R1=!0,Dr.unstable_scheduleCallback(Dr.unstable_NormalPriority,mV)))}function qf(e){function t(i){return Ou(i,e)}if(0<ip.length){Ou(ip[0],e);for(var n=1;n<ip.length;n++){var r=ip[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_s!==null&&Ou(_s,e),bs!==null&&Ou(bs,e),ws!==null&&Ou(ws,e),Wf.forEach(t),Yf.forEach(t),n=0;n<rs.length;n++)r=rs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rs.length&&(n=rs[0],n.blockedOn===null);)v4(n),n.blockedOn===null&&rs.shift()}var ac=Io.ReactCurrentBatchConfig,wg=!0;function gV(e,t,n,r){var i=wt,o=ac.transition;ac.transition=null;try{wt=1,iS(e,t,n,r)}finally{wt=i,ac.transition=o}}function vV(e,t,n,r){var i=wt,o=ac.transition;ac.transition=null;try{wt=4,iS(e,t,n,r)}finally{wt=i,ac.transition=o}}function iS(e,t,n,r){if(wg){var i=N1(e,t,n,r);if(i===null)I0(e,t,r,xg,n),HP(e,r);else if(pV(i,e,t,n,r))r.stopPropagation();else if(HP(e,r),t&4&&-1<hV.indexOf(e)){for(;i!==null;){var o=Fd(i);if(o!==null&&h4(o),o=N1(e,t,n,r),o===null&&I0(e,t,r,xg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else I0(e,t,r,null,n)}}var xg=null;function N1(e,t,n,r){if(xg=null,e=eS(r),e=Ma(e),e!==null)if(t=ul(e),t===null)e=null;else if(n=t.tag,n===13){if(e=o4(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 xg=e,null}function y4(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(iV()){case tS:return 1;case c4:return 4;case _g:case oV:return 16;case u4:return 536870912;default:return 16}default:return 16}}var fs=null,oS=null,tm=null;function _4(){if(tm)return tm;var e,t=oS,n=t.length,r,i="value"in fs?fs.value:fs.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return tm=i.slice(e,1<r?1-r:void 0)}function nm(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 op(){return!0}function YP(){return!1}function Fr(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?op:YP,this.isPropagationStopped=YP,this}return Yt(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=op)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=op)},persist:function(){},isPersistent:op}),t}var Hc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sS=Fr(Hc),Id=Yt({},Hc,{view:0,detail:0}),yV=Fr(Id),O0,P0,Pu,vy=Yt({},Id,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aS,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!==Pu&&(Pu&&e.type==="mousemove"?(O0=e.screenX-Pu.screenX,P0=e.screenY-Pu.screenY):P0=O0=0,Pu=e),O0)},movementY:function(e){return"movementY"in e?e.movementY:P0}}),qP=Fr(vy),_V=Yt({},vy,{dataTransfer:0}),bV=Fr(_V),wV=Yt({},Id,{relatedTarget:0}),k0=Fr(wV),xV=Yt({},Hc,{animationName:0,elapsedTime:0,pseudoElement:0}),SV=Fr(xV),CV=Yt({},Hc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),EV=Fr(CV),TV=Yt({},Hc,{data:0}),GP=Fr(TV),OV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PV={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"},kV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kV[e])?!!t[e]:!1}function aS(){return MV}var RV=Yt({},Id,{key:function(e){if(e.key){var t=OV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?PV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aS,charCode:function(e){return e.type==="keypress"?nm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NV=Fr(RV),LV=Yt({},vy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ZP=Fr(LV),DV=Yt({},Id,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aS}),AV=Fr(DV),IV=Yt({},Hc,{propertyName:0,elapsedTime:0,pseudoElement:0}),FV=Fr(IV),$V=Yt({},vy,{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}),jV=Fr($V),BV=[9,13,27,32],lS=Co&&"CompositionEvent"in window,ff=null;Co&&"documentMode"in document&&(ff=document.documentMode);var zV=Co&&"TextEvent"in window&&!ff,b4=Co&&(!lS||ff&&8<ff&&11>=ff),KP=String.fromCharCode(32),XP=!1;function w4(e,t){switch(e){case"keyup":return BV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function UV(e,t){switch(e){case"compositionend":return x4(t);case"keypress":return t.which!==32?null:(XP=!0,KP);case"textInput":return e=t.data,e===KP&&XP?null:e;default:return null}}function VV(e,t){if(Vl)return e==="compositionend"||!lS&&w4(e,t)?(e=_4(),tm=oS=fs=null,Vl=!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 b4&&t.locale!=="ko"?null:t.data;default:return null}}var HV={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 QP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HV[e.type]:t==="textarea"}function S4(e,t,n,r){e4(r),t=Sg(t,"onChange"),0<t.length&&(n=new sS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var df=null,Gf=null;function WV(e){D4(e,0)}function yy(e){var t=Yl(e);if(qD(t))return e}function YV(e,t){if(e==="change")return t}var C4=!1;if(Co){var M0;if(Co){var R0="oninput"in document;if(!R0){var JP=document.createElement("div");JP.setAttribute("oninput","return;"),R0=typeof JP.oninput=="function"}M0=R0}else M0=!1;C4=M0&&(!document.documentMode||9<document.documentMode)}function ek(){df&&(df.detachEvent("onpropertychange",E4),Gf=df=null)}function E4(e){if(e.propertyName==="value"&&yy(Gf)){var t=[];S4(t,Gf,e,eS(e)),i4(WV,t)}}function qV(e,t,n){e==="focusin"?(ek(),df=t,Gf=n,df.attachEvent("onpropertychange",E4)):e==="focusout"&&ek()}function GV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yy(Gf)}function ZV(e,t){if(e==="click")return yy(t)}function KV(e,t){if(e==="input"||e==="change")return yy(t)}function XV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pi=typeof Object.is=="function"?Object.is:XV;function Zf(e,t){if(Pi(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(!p1.call(t,i)||!Pi(e[i],t[i]))return!1}return!0}function tk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nk(e,t){var n=tk(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=tk(n)}}function T4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?T4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O4(){for(var e=window,t=gg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gg(e.document)}return t}function cS(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 QV(e){var t=O4(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&T4(n.ownerDocument.documentElement,n)){if(r!==null&&cS(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=nk(n,o);var s=nk(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 JV=Co&&"documentMode"in document&&11>=document.documentMode,Hl=null,L1=null,hf=null,D1=!1;function rk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;D1||Hl==null||Hl!==gg(r)||(r=Hl,"selectionStart"in r&&cS(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}),hf&&Zf(hf,r)||(hf=r,r=Sg(L1,"onSelect"),0<r.length&&(t=new sS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hl)))}function sp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wl={animationend:sp("Animation","AnimationEnd"),animationiteration:sp("Animation","AnimationIteration"),animationstart:sp("Animation","AnimationStart"),transitionend:sp("Transition","TransitionEnd")},N0={},P4={};Co&&(P4=document.createElement("div").style,"AnimationEvent"in window||(delete Wl.animationend.animation,delete Wl.animationiteration.animation,delete Wl.animationstart.animation),"TransitionEvent"in window||delete Wl.transitionend.transition);function _y(e){if(N0[e])return N0[e];if(!Wl[e])return e;var t=Wl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in P4)return N0[e]=t[n];return e}var k4=_y("animationend"),M4=_y("animationiteration"),R4=_y("animationstart"),N4=_y("transitionend"),L4=new Map,ik="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 qs(e,t){L4.set(e,t),cl(t,[e])}for(var L0=0;L0<ik.length;L0++){var D0=ik[L0],eH=D0.toLowerCase(),tH=D0[0].toUpperCase()+D0.slice(1);qs(eH,"on"+tH)}qs(k4,"onAnimationEnd");qs(M4,"onAnimationIteration");qs(R4,"onAnimationStart");qs("dblclick","onDoubleClick");qs("focusin","onFocus");qs("focusout","onBlur");qs(N4,"onTransitionEnd");xc("onMouseEnter",["mouseout","mouseover"]);xc("onMouseLeave",["mouseout","mouseover"]);xc("onPointerEnter",["pointerout","pointerover"]);xc("onPointerLeave",["pointerout","pointerover"]);cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cl("onBeforeInput",["compositionend","keypress","textInput","paste"]);cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qu="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(" "),nH=new Set("cancel close invalid load scroll toggle".split(" ").concat(qu));function ok(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,eV(r,t,void 0,e),e.currentTarget=null}function D4(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 s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;ok(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;ok(i,a,c),o=l}}}if(yg)throw e=k1,yg=!1,k1=null,e}function Pt(e,t){var n=t[j1];n===void 0&&(n=t[j1]=new Set);var r=e+"__bubble";n.has(r)||(A4(t,e,2,!1),n.add(r))}function A0(e,t,n){var r=0;t&&(r|=4),A4(n,e,r,t)}var ap="_reactListening"+Math.random().toString(36).slice(2);function Kf(e){if(!e[ap]){e[ap]=!0,UD.forEach(function(n){n!=="selectionchange"&&(nH.has(n)||A0(n,!1,e),A0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ap]||(t[ap]=!0,A0("selectionchange",!1,t))}}function A4(e,t,n,r){switch(y4(t)){case 1:var i=gV;break;case 4:i=vV;break;default:i=iS}n=i.bind(null,t,n,e),i=void 0,!P1||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 I0(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Ma(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}i4(function(){var c=o,f=eS(n),h=[];e:{var p=L4.get(e);if(p!==void 0){var m=sS,g=e;switch(e){case"keypress":if(nm(n)===0)break e;case"keydown":case"keyup":m=NV;break;case"focusin":g="focus",m=k0;break;case"focusout":g="blur",m=k0;break;case"beforeblur":case"afterblur":m=k0;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":m=qP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=bV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=AV;break;case k4:case M4:case R4:m=SV;break;case N4:m=FV;break;case"scroll":m=yV;break;case"wheel":m=jV;break;case"copy":case"cut":case"paste":m=EV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=ZP}var v=(t&4)!==0,w=!v&&e==="scroll",_=v?p!==null?p+"Capture":null:p;v=[];for(var b=c,x;b!==null;){x=b;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,_!==null&&(E=Hf(b,_),E!=null&&v.push(Xf(b,E,x)))),w)break;b=b.return}0<v.length&&(p=new m(p,g,null,n,f),h.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==T1&&(g=n.relatedTarget||n.fromElement)&&(Ma(g)||g[Eo]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(g=n.relatedTarget||n.toElement,m=c,g=g?Ma(g):null,g!==null&&(w=ul(g),g!==w||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=c),m!==g)){if(v=qP,E="onMouseLeave",_="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(v=ZP,E="onPointerLeave",_="onPointerEnter",b="pointer"),w=m==null?p:Yl(m),x=g==null?p:Yl(g),p=new v(E,b+"leave",m,n,f),p.target=w,p.relatedTarget=x,E=null,Ma(f)===c&&(v=new v(_,b+"enter",g,n,f),v.target=x,v.relatedTarget=w,E=v),w=E,m&&g)t:{for(v=m,_=g,b=0,x=v;x;x=Tl(x))b++;for(x=0,E=_;E;E=Tl(E))x++;for(;0<b-x;)v=Tl(v),b--;for(;0<x-b;)_=Tl(_),x--;for(;b--;){if(v===_||_!==null&&v===_.alternate)break t;v=Tl(v),_=Tl(_)}v=null}else v=null;m!==null&&sk(h,p,m,v,!1),g!==null&&w!==null&&sk(h,w,g,v,!0)}}e:{if(p=c?Yl(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var P=YV;else if(QP(p))if(C4)P=KV;else{P=GV;var k=qV}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=ZV);if(P&&(P=P(e,c))){S4(h,P,n,f);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&w1(p,"number",p.value)}switch(k=c?Yl(c):window,e){case"focusin":(QP(k)||k.contentEditable==="true")&&(Hl=k,L1=c,hf=null);break;case"focusout":hf=L1=Hl=null;break;case"mousedown":D1=!0;break;case"contextmenu":case"mouseup":case"dragend":D1=!1,rk(h,n,f);break;case"selectionchange":if(JV)break;case"keydown":case"keyup":rk(h,n,f)}var N;if(lS)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Vl?w4(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(b4&&n.locale!=="ko"&&(Vl||D!=="onCompositionStart"?D==="onCompositionEnd"&&Vl&&(N=_4()):(fs=f,oS="value"in fs?fs.value:fs.textContent,Vl=!0)),k=Sg(c,D),0<k.length&&(D=new GP(D,e,null,n,f),h.push({event:D,listeners:k}),N?D.data=N:(N=x4(n),N!==null&&(D.data=N)))),(N=zV?UV(e,n):VV(e,n))&&(c=Sg(c,"onBeforeInput"),0<c.length&&(f=new GP("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=N))}D4(h,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Sg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Hf(e,n),o!=null&&r.unshift(Xf(e,o,i)),o=Hf(e,t),o!=null&&r.push(Xf(e,o,i))),e=e.return}return r}function Tl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sk(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Hf(n,o),l!=null&&s.unshift(Xf(n,l,a))):i||(l=Hf(n,o),l!=null&&s.push(Xf(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var rH=/\r\n?/g,iH=/\u0000|\uFFFD/g;function ak(e){return(typeof e=="string"?e:""+e).replace(rH,`
|
||
`).replace(iH,"")}function lp(e,t,n){if(t=ak(t),ak(e)!==t&&n)throw Error(Te(425))}function Cg(){}var A1=null,I1=null;function F1(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 $1=typeof setTimeout=="function"?setTimeout:void 0,oH=typeof clearTimeout=="function"?clearTimeout:void 0,lk=typeof Promise=="function"?Promise:void 0,sH=typeof queueMicrotask=="function"?queueMicrotask:typeof lk<"u"?function(e){return lk.resolve(null).then(e).catch(aH)}:$1;function aH(e){setTimeout(function(){throw e})}function F0(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),qf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);qf(t)}function xs(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 ck(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Wc=Math.random().toString(36).slice(2),Ui="__reactFiber$"+Wc,Qf="__reactProps$"+Wc,Eo="__reactContainer$"+Wc,j1="__reactEvents$"+Wc,lH="__reactListeners$"+Wc,cH="__reactHandles$"+Wc;function Ma(e){var t=e[Ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Eo]||n[Ui]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ck(e);e!==null;){if(n=e[Ui])return n;e=ck(e)}return t}e=n,n=e.parentNode}return null}function Fd(e){return e=e[Ui]||e[Eo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Te(33))}function by(e){return e[Qf]||null}var B1=[],ql=-1;function Gs(e){return{current:e}}function Lt(e){0>ql||(e.current=B1[ql],B1[ql]=null,ql--)}function Ot(e,t){ql++,B1[ql]=e.current,e.current=t}var Is={},nr=Gs(Is),_r=Gs(!1),qa=Is;function Sc(e,t){var n=e.type.contextTypes;if(!n)return Is;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function br(e){return e=e.childContextTypes,e!=null}function Eg(){Lt(_r),Lt(nr)}function uk(e,t,n){if(nr.current!==Is)throw Error(Te(168));Ot(nr,t),Ot(_r,n)}function I4(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(Te(108,qU(e)||"Unknown",i));return Yt({},n,r)}function Tg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Is,qa=nr.current,Ot(nr,e),Ot(_r,_r.current),!0}function fk(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=I4(e,t,qa),r.__reactInternalMemoizedMergedChildContext=e,Lt(_r),Lt(nr),Ot(nr,e)):Lt(_r),Ot(_r,n)}var po=null,wy=!1,$0=!1;function F4(e){po===null?po=[e]:po.push(e)}function uH(e){wy=!0,F4(e)}function Zs(){if(!$0&&po!==null){$0=!0;var e=0,t=wt;try{var n=po;for(wt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}po=null,wy=!1}catch(i){throw po!==null&&(po=po.slice(e+1)),l4(tS,Zs),i}finally{wt=t,$0=!1}}return null}var Gl=[],Zl=0,Og=null,Pg=0,Wr=[],Yr=0,Ga=null,bo=1,wo="";function xa(e,t){Gl[Zl++]=Pg,Gl[Zl++]=Og,Og=e,Pg=t}function $4(e,t,n){Wr[Yr++]=bo,Wr[Yr++]=wo,Wr[Yr++]=Ga,Ga=e;var r=bo;e=wo;var i=32-Si(r)-1;r&=~(1<<i),n+=1;var o=32-Si(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,bo=1<<32-Si(t)+i|n<<i|r,wo=o+e}else bo=1<<o|n<<i|r,wo=e}function uS(e){e.return!==null&&(xa(e,1),$4(e,1,0))}function fS(e){for(;e===Og;)Og=Gl[--Zl],Gl[Zl]=null,Pg=Gl[--Zl],Gl[Zl]=null;for(;e===Ga;)Ga=Wr[--Yr],Wr[Yr]=null,wo=Wr[--Yr],Wr[Yr]=null,bo=Wr[--Yr],Wr[Yr]=null}var Rr=null,kr=null,$t=!1,gi=null;function j4(e,t){var n=Gr(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 dk(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,Rr=e,kr=xs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rr=e,kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ga!==null?{id:bo,overflow:wo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rr=e,kr=null,!0):!1;default:return!1}}function z1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function U1(e){if($t){var t=kr;if(t){var n=t;if(!dk(e,t)){if(z1(e))throw Error(Te(418));t=xs(n.nextSibling);var r=Rr;t&&dk(e,t)?j4(r,n):(e.flags=e.flags&-4097|2,$t=!1,Rr=e)}}else{if(z1(e))throw Error(Te(418));e.flags=e.flags&-4097|2,$t=!1,Rr=e}}}function hk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rr=e}function cp(e){if(e!==Rr)return!1;if(!$t)return hk(e),$t=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!F1(e.type,e.memoizedProps)),t&&(t=kr)){if(z1(e))throw B4(),Error(Te(418));for(;t;)j4(e,t),t=xs(t.nextSibling)}if(hk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Te(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){kr=xs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}kr=null}}else kr=Rr?xs(e.stateNode.nextSibling):null;return!0}function B4(){for(var e=kr;e;)e=xs(e.nextSibling)}function Cc(){kr=Rr=null,$t=!1}function dS(e){gi===null?gi=[e]:gi.push(e)}var fH=Io.ReactCurrentBatchConfig;function hi(e,t){if(e&&e.defaultProps){t=Yt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var kg=Gs(null),Mg=null,Kl=null,hS=null;function pS(){hS=Kl=Mg=null}function mS(e){var t=kg.current;Lt(kg),e._currentValue=t}function V1(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 lc(e,t){Mg=e,hS=Kl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yr=!0),e.firstContext=null)}function ti(e){var t=e._currentValue;if(hS!==e)if(e={context:e,memoizedValue:t,next:null},Kl===null){if(Mg===null)throw Error(Te(308));Kl=e,Mg.dependencies={lanes:0,firstContext:e}}else Kl=Kl.next=e;return t}var Ra=null;function gS(e){Ra===null?Ra=[e]:Ra.push(e)}function z4(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,gS(t)):(n.next=i.next,i.next=n),t.interleaved=n,To(e,r)}function To(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 Jo=!1;function vS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function U4(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 xo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ss(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,To(e,n)}return i=r.interleaved,i===null?(t.next=t,gS(r)):(t.next=i.next,i.next=t),r.interleaved=t,To(e,n)}function rm(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,nS(e,n)}}function pk(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,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 Rg(e,t,n,r){var i=e.updateQueue;Jo=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;s=0,f=c=l=null,a=o;do{var p=a.lane,m=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(p=t,m=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){h=g.call(m,h,p);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,p=typeof g=="function"?g.call(m,h,p):g,p==null)break e;h=Yt({},h,p);break e;case 2:Jo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=m,l=h):f=f.next=m,s|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=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 s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ka|=s,e.lanes=s,e.memoizedState=h}}function mk(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(Te(191,i));i.call(r)}}}var V4=new zD.Component().refs;function H1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Yt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xy={isMounted:function(e){return(e=e._reactInternals)?ul(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fr(),i=Es(e),o=xo(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ss(e,o,i),t!==null&&(Ci(t,e,i,r),rm(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fr(),i=Es(e),o=xo(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ss(e,o,i),t!==null&&(Ci(t,e,i,r),rm(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fr(),r=Es(e),i=xo(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ss(e,i,r),t!==null&&(Ci(t,e,r,n),rm(t,e,r))}};function gk(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Zf(n,r)||!Zf(i,o):!0}function H4(e,t,n){var r=!1,i=Is,o=t.contextType;return typeof o=="object"&&o!==null?o=ti(o):(i=br(t)?qa:nr.current,r=t.contextTypes,o=(r=r!=null)?Sc(e,i):Is),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vk(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&&xy.enqueueReplaceState(t,t.state,null)}function W1(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=V4,vS(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ti(o):(o=br(t)?qa:nr.current,i.context=Sc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(H1(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&&xy.enqueueReplaceState(i,i.state,null),Rg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ku(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(Te(309));var r=n.stateNode}if(!r)throw Error(Te(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(s){var a=i.refs;a===V4&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(Te(284));if(!n._owner)throw Error(Te(290,e))}return e}function up(e,t){throw e=Object.prototype.toString.call(t),Error(Te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yk(e){var t=e._init;return t(e._payload)}function W4(e){function t(_,b){if(e){var x=_.deletions;x===null?(_.deletions=[b],_.flags|=16):x.push(b)}}function n(_,b){if(!e)return null;for(;b!==null;)t(_,b),b=b.sibling;return null}function r(_,b){for(_=new Map;b!==null;)b.key!==null?_.set(b.key,b):_.set(b.index,b),b=b.sibling;return _}function i(_,b){return _=Ts(_,b),_.index=0,_.sibling=null,_}function o(_,b,x){return _.index=x,e?(x=_.alternate,x!==null?(x=x.index,x<b?(_.flags|=2,b):x):(_.flags|=2,b)):(_.flags|=1048576,b)}function s(_){return e&&_.alternate===null&&(_.flags|=2),_}function a(_,b,x,E){return b===null||b.tag!==6?(b=W0(x,_.mode,E),b.return=_,b):(b=i(b,x),b.return=_,b)}function l(_,b,x,E){var P=x.type;return P===Ul?f(_,b,x.props.children,E,x.key):b!==null&&(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qo&&yk(P)===b.type)?(E=i(b,x.props),E.ref=ku(_,b,x),E.return=_,E):(E=cm(x.type,x.key,x.props,null,_.mode,E),E.ref=ku(_,b,x),E.return=_,E)}function c(_,b,x,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=Y0(x,_.mode,E),b.return=_,b):(b=i(b,x.children||[]),b.return=_,b)}function f(_,b,x,E,P){return b===null||b.tag!==7?(b=$a(x,_.mode,E,P),b.return=_,b):(b=i(b,x),b.return=_,b)}function h(_,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=W0(""+b,_.mode,x),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Jh:return x=cm(b.type,b.key,b.props,null,_.mode,x),x.ref=ku(_,null,b),x.return=_,x;case zl:return b=Y0(b,_.mode,x),b.return=_,b;case Qo:var E=b._init;return h(_,E(b._payload),x)}if(Wu(b)||Cu(b))return b=$a(b,_.mode,x,null),b.return=_,b;up(_,b)}return null}function p(_,b,x,E){var P=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return P!==null?null:a(_,b,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Jh:return x.key===P?l(_,b,x,E):null;case zl:return x.key===P?c(_,b,x,E):null;case Qo:return P=x._init,p(_,b,P(x._payload),E)}if(Wu(x)||Cu(x))return P!==null?null:f(_,b,x,E,null);up(_,x)}return null}function m(_,b,x,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return _=_.get(x)||null,a(b,_,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Jh:return _=_.get(E.key===null?x:E.key)||null,l(b,_,E,P);case zl:return _=_.get(E.key===null?x:E.key)||null,c(b,_,E,P);case Qo:var k=E._init;return m(_,b,x,k(E._payload),P)}if(Wu(E)||Cu(E))return _=_.get(x)||null,f(b,_,E,P,null);up(b,E)}return null}function g(_,b,x,E){for(var P=null,k=null,N=b,D=b=0,U=null;N!==null&&D<x.length;D++){N.index>D?(U=N,N=null):U=N.sibling;var A=p(_,N,x[D],E);if(A===null){N===null&&(N=U);break}e&&N&&A.alternate===null&&t(_,N),b=o(A,b,D),k===null?P=A:k.sibling=A,k=A,N=U}if(D===x.length)return n(_,N),$t&&xa(_,D),P;if(N===null){for(;D<x.length;D++)N=h(_,x[D],E),N!==null&&(b=o(N,b,D),k===null?P=N:k.sibling=N,k=N);return $t&&xa(_,D),P}for(N=r(_,N);D<x.length;D++)U=m(N,_,D,x[D],E),U!==null&&(e&&U.alternate!==null&&N.delete(U.key===null?D:U.key),b=o(U,b,D),k===null?P=U:k.sibling=U,k=U);return e&&N.forEach(function(Y){return t(_,Y)}),$t&&xa(_,D),P}function v(_,b,x,E){var P=Cu(x);if(typeof P!="function")throw Error(Te(150));if(x=P.call(x),x==null)throw Error(Te(151));for(var k=P=null,N=b,D=b=0,U=null,A=x.next();N!==null&&!A.done;D++,A=x.next()){N.index>D?(U=N,N=null):U=N.sibling;var Y=p(_,N,A.value,E);if(Y===null){N===null&&(N=U);break}e&&N&&Y.alternate===null&&t(_,N),b=o(Y,b,D),k===null?P=Y:k.sibling=Y,k=Y,N=U}if(A.done)return n(_,N),$t&&xa(_,D),P;if(N===null){for(;!A.done;D++,A=x.next())A=h(_,A.value,E),A!==null&&(b=o(A,b,D),k===null?P=A:k.sibling=A,k=A);return $t&&xa(_,D),P}for(N=r(_,N);!A.done;D++,A=x.next())A=m(N,_,D,A.value,E),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?D:A.key),b=o(A,b,D),k===null?P=A:k.sibling=A,k=A);return e&&N.forEach(function(q){return t(_,q)}),$t&&xa(_,D),P}function w(_,b,x,E){if(typeof x=="object"&&x!==null&&x.type===Ul&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Jh:e:{for(var P=x.key,k=b;k!==null;){if(k.key===P){if(P=x.type,P===Ul){if(k.tag===7){n(_,k.sibling),b=i(k,x.props.children),b.return=_,_=b;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qo&&yk(P)===k.type){n(_,k.sibling),b=i(k,x.props),b.ref=ku(_,k,x),b.return=_,_=b;break e}n(_,k);break}else t(_,k);k=k.sibling}x.type===Ul?(b=$a(x.props.children,_.mode,E,x.key),b.return=_,_=b):(E=cm(x.type,x.key,x.props,null,_.mode,E),E.ref=ku(_,b,x),E.return=_,_=E)}return s(_);case zl:e:{for(k=x.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(_,b.sibling),b=i(b,x.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=Y0(x,_.mode,E),b.return=_,_=b}return s(_);case Qo:return k=x._init,w(_,b,k(x._payload),E)}if(Wu(x))return g(_,b,x,E);if(Cu(x))return v(_,b,x,E);up(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,x),b.return=_,_=b):(n(_,b),b=W0(x,_.mode,E),b.return=_,_=b),s(_)):n(_,b)}return w}var Ec=W4(!0),Y4=W4(!1),$d={},Zi=Gs($d),Jf=Gs($d),ed=Gs($d);function Na(e){if(e===$d)throw Error(Te(174));return e}function yS(e,t){switch(Ot(ed,t),Ot(Jf,e),Ot(Zi,$d),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:S1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=S1(t,e)}Lt(Zi),Ot(Zi,t)}function Tc(){Lt(Zi),Lt(Jf),Lt(ed)}function q4(e){Na(ed.current);var t=Na(Zi.current),n=S1(t,e.type);t!==n&&(Ot(Jf,e),Ot(Zi,n))}function _S(e){Jf.current===e&&(Lt(Zi),Lt(Jf))}var Vt=Gs(0);function Ng(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 j0=[];function bS(){for(var e=0;e<j0.length;e++)j0[e]._workInProgressVersionPrimary=null;j0.length=0}var im=Io.ReactCurrentDispatcher,B0=Io.ReactCurrentBatchConfig,Za=0,Wt=null,gn=null,Tn=null,Lg=!1,pf=!1,td=0,dH=0;function Zn(){throw Error(Te(321))}function wS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pi(e[n],t[n]))return!1;return!0}function xS(e,t,n,r,i,o){if(Za=o,Wt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,im.current=e===null||e.memoizedState===null?gH:vH,e=n(r,i),pf){o=0;do{if(pf=!1,td=0,25<=o)throw Error(Te(301));o+=1,Tn=gn=null,t.updateQueue=null,im.current=yH,e=n(r,i)}while(pf)}if(im.current=Dg,t=gn!==null&&gn.next!==null,Za=0,Tn=gn=Wt=null,Lg=!1,t)throw Error(Te(300));return e}function SS(){var e=td!==0;return td=0,e}function Bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tn===null?Wt.memoizedState=Tn=e:Tn=Tn.next=e,Tn}function ni(){if(gn===null){var e=Wt.alternate;e=e!==null?e.memoizedState:null}else e=gn.next;var t=Tn===null?Wt.memoizedState:Tn.next;if(t!==null)Tn=t,gn=e;else{if(e===null)throw Error(Te(310));gn=e,e={memoizedState:gn.memoizedState,baseState:gn.baseState,baseQueue:gn.baseQueue,queue:gn.queue,next:null},Tn===null?Wt.memoizedState=Tn=e:Tn=Tn.next=e}return Tn}function nd(e,t){return typeof t=="function"?t(e):t}function z0(e){var t=ni(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=gn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var f=c.lane;if((Za&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?(a=l=h,s=r):l=l.next=h,Wt.lanes|=f,Ka|=f}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Pi(r,t.memoizedState)||(yr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Wt.lanes|=o,Ka|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function U0(e){var t=ni(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Pi(o,t.memoizedState)||(yr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function G4(){}function Z4(e,t){var n=Wt,r=ni(),i=t(),o=!Pi(r.memoizedState,i);if(o&&(r.memoizedState=i,yr=!0),r=r.queue,CS(Q4.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Tn!==null&&Tn.memoizedState.tag&1){if(n.flags|=2048,rd(9,X4.bind(null,n,r,i,t),void 0,null),Pn===null)throw Error(Te(349));Za&30||K4(n,t,i)}return i}function K4(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Wt.updateQueue,t===null?(t={lastEffect:null,stores:null},Wt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function X4(e,t,n,r){t.value=n,t.getSnapshot=r,J4(t)&&eA(e)}function Q4(e,t,n){return n(function(){J4(t)&&eA(e)})}function J4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pi(e,n)}catch{return!0}}function eA(e){var t=To(e,1);t!==null&&Ci(t,e,1,-1)}function _k(e){var t=Bi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nd,lastRenderedState:e},t.queue=e,e=e.dispatch=mH.bind(null,Wt,e),[t.memoizedState,e]}function rd(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Wt.updateQueue,t===null?(t={lastEffect:null,stores:null},Wt.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 tA(){return ni().memoizedState}function om(e,t,n,r){var i=Bi();Wt.flags|=e,i.memoizedState=rd(1|t,n,void 0,r===void 0?null:r)}function Sy(e,t,n,r){var i=ni();r=r===void 0?null:r;var o=void 0;if(gn!==null){var s=gn.memoizedState;if(o=s.destroy,r!==null&&wS(r,s.deps)){i.memoizedState=rd(t,n,o,r);return}}Wt.flags|=e,i.memoizedState=rd(1|t,n,o,r)}function bk(e,t){return om(8390656,8,e,t)}function CS(e,t){return Sy(2048,8,e,t)}function nA(e,t){return Sy(4,2,e,t)}function rA(e,t){return Sy(4,4,e,t)}function iA(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 oA(e,t,n){return n=n!=null?n.concat([e]):null,Sy(4,4,iA.bind(null,t,e),n)}function ES(){}function sA(e,t){var n=ni();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function aA(e,t){var n=ni();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lA(e,t,n){return Za&21?(Pi(n,t)||(n=f4(),Wt.lanes|=n,Ka|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yr=!0),e.memoizedState=n)}function hH(e,t){var n=wt;wt=n!==0&&4>n?n:4,e(!0);var r=B0.transition;B0.transition={};try{e(!1),t()}finally{wt=n,B0.transition=r}}function cA(){return ni().memoizedState}function pH(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uA(e))fA(t,n);else if(n=z4(e,t,n,r),n!==null){var i=fr();Ci(n,e,r,i),dA(n,t,r)}}function mH(e,t,n){var r=Es(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uA(e))fA(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Pi(a,s)){var l=t.interleaved;l===null?(i.next=i,gS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=z4(e,t,i,r),n!==null&&(i=fr(),Ci(n,e,r,i),dA(n,t,r))}}function uA(e){var t=e.alternate;return e===Wt||t!==null&&t===Wt}function fA(e,t){pf=Lg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nS(e,n)}}var Dg={readContext:ti,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useInsertionEffect:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useSyncExternalStore:Zn,useId:Zn,unstable_isNewReconciler:!1},gH={readContext:ti,useCallback:function(e,t){return Bi().memoizedState=[e,t===void 0?null:t],e},useContext:ti,useEffect:bk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,om(4194308,4,iA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return om(4194308,4,e,t)},useInsertionEffect:function(e,t){return om(4,2,e,t)},useMemo:function(e,t){var n=Bi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bi();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=pH.bind(null,Wt,e),[r.memoizedState,e]},useRef:function(e){var t=Bi();return e={current:e},t.memoizedState=e},useState:_k,useDebugValue:ES,useDeferredValue:function(e){return Bi().memoizedState=e},useTransition:function(){var e=_k(!1),t=e[0];return e=hH.bind(null,e[1]),Bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Wt,i=Bi();if($t){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),Pn===null)throw Error(Te(349));Za&30||K4(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,bk(Q4.bind(null,r,o,e),[e]),r.flags|=2048,rd(9,X4.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Bi(),t=Pn.identifierPrefix;if($t){var n=wo,r=bo;n=(r&~(1<<32-Si(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=td++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dH++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vH={readContext:ti,useCallback:sA,useContext:ti,useEffect:CS,useImperativeHandle:oA,useInsertionEffect:nA,useLayoutEffect:rA,useMemo:aA,useReducer:z0,useRef:tA,useState:function(){return z0(nd)},useDebugValue:ES,useDeferredValue:function(e){var t=ni();return lA(t,gn.memoizedState,e)},useTransition:function(){var e=z0(nd)[0],t=ni().memoizedState;return[e,t]},useMutableSource:G4,useSyncExternalStore:Z4,useId:cA,unstable_isNewReconciler:!1},yH={readContext:ti,useCallback:sA,useContext:ti,useEffect:CS,useImperativeHandle:oA,useInsertionEffect:nA,useLayoutEffect:rA,useMemo:aA,useReducer:U0,useRef:tA,useState:function(){return U0(nd)},useDebugValue:ES,useDeferredValue:function(e){var t=ni();return gn===null?t.memoizedState=e:lA(t,gn.memoizedState,e)},useTransition:function(){var e=U0(nd)[0],t=ni().memoizedState;return[e,t]},useMutableSource:G4,useSyncExternalStore:Z4,useId:cA,unstable_isNewReconciler:!1};function Oc(e,t){try{var n="",r=t;do n+=YU(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 V0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Y1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _H=typeof WeakMap=="function"?WeakMap:Map;function hA(e,t,n){n=xo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ig||(Ig=!0,nw=r),Y1(e,t)},n}function pA(e,t,n){n=xo(-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(){Y1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Y1(e,t),typeof r!="function"&&(Cs===null?Cs=new Set([this]):Cs.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function wk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _H;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=LH.bind(null,e,t,n),t.then(e,e))}function xk(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 Sk(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=xo(-1,1),t.tag=2,Ss(n,t,1))),n.lanes|=1),e)}var bH=Io.ReactCurrentOwner,yr=!1;function lr(e,t,n,r){t.child=e===null?Y4(t,null,n,r):Ec(t,e.child,n,r)}function Ck(e,t,n,r,i){n=n.render;var o=t.ref;return lc(t,i),r=xS(e,t,n,r,o,i),n=SS(),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Oo(e,t,i)):($t&&n&&uS(t),t.flags|=1,lr(e,t,r,i),t.child)}function Ek(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!LS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,mA(e,t,o,r,i)):(e=cm(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Zf,n(s,r)&&e.ref===t.ref)return Oo(e,t,i)}return t.flags|=1,e=Ts(o,r),e.ref=t.ref,e.return=t,t.child=e}function mA(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Zf(o,r)&&e.ref===t.ref)if(yr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(yr=!0);else return t.lanes=e.lanes,Oo(e,t,i)}return q1(e,t,n,r,i)}function gA(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},Ot(Ql,Or),Or|=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,Ot(Ql,Or),Or|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ot(Ql,Or),Or|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ot(Ql,Or),Or|=r;return lr(e,t,i,n),t.child}function vA(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function q1(e,t,n,r,i){var o=br(n)?qa:nr.current;return o=Sc(t,o),lc(t,i),n=xS(e,t,n,r,o,i),r=SS(),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Oo(e,t,i)):($t&&r&&uS(t),t.flags|=1,lr(e,t,n,i),t.child)}function Tk(e,t,n,r,i){if(br(n)){var o=!0;Tg(t)}else o=!1;if(lc(t,i),t.stateNode===null)sm(e,t),H4(t,n,r),W1(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ti(c):(c=br(n)?qa:nr.current,c=Sc(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&vk(t,s,r,c),Jo=!1;var p=t.memoizedState;s.state=p,Rg(t,r,s,i),l=t.memoizedState,a!==r||p!==l||_r.current||Jo?(typeof f=="function"&&(H1(t,n,f,r),l=t.memoizedState),(a=Jo||gk(t,n,a,r,p,l,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,U4(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:hi(t.type,a),s.props=c,h=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ti(l):(l=br(n)?qa:nr.current,l=Sc(t,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||p!==l)&&vk(t,s,r,l),Jo=!1,p=t.memoizedState,s.state=p,Rg(t,r,s,i);var g=t.memoizedState;a!==h||p!==g||_r.current||Jo?(typeof m=="function"&&(H1(t,n,m,r),g=t.memoizedState),(c=Jo||gk(t,n,c,r,p,g,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return G1(e,t,n,r,o,i)}function G1(e,t,n,r,i,o){vA(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&fk(t,n,!1),Oo(e,t,o);r=t.stateNode,bH.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ec(t,e.child,null,o),t.child=Ec(t,null,a,o)):lr(e,t,a,o),t.memoizedState=r.state,i&&fk(t,n,!0),t.child}function yA(e){var t=e.stateNode;t.pendingContext?uk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uk(e,t.context,!1),yS(e,t.containerInfo)}function Ok(e,t,n,r,i){return Cc(),dS(i),t.flags|=256,lr(e,t,n,r),t.child}var Z1={dehydrated:null,treeContext:null,retryLane:0};function K1(e){return{baseLanes:e,cachePool:null,transitions:null}}function _A(e,t,n){var r=t.pendingProps,i=Vt.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ot(Vt,i&1),e===null)return U1(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ty(s,r,0,null),e=$a(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=K1(n),t.memoizedState=Z1,e):TS(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return wH(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ts(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Ts(a,o):(o=$a(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?K1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Z1,r}return o=e.child,e=o.sibling,r=Ts(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 TS(e,t){return t=Ty({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fp(e,t,n,r){return r!==null&&dS(r),Ec(t,e.child,null,n),e=TS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wH(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=V0(Error(Te(422))),fp(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ty({mode:"visible",children:r.children},i,0,null),o=$a(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ec(t,e.child,null,s),t.child.memoizedState=K1(s),t.memoizedState=Z1,o);if(!(t.mode&1))return fp(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Te(419)),r=V0(o,r,void 0),fp(e,t,s,r)}if(a=(s&e.childLanes)!==0,yr||a){if(r=Pn,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,To(e,i),Ci(r,e,i,-1))}return NS(),r=V0(Error(Te(421))),fp(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=DH.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,kr=xs(i.nextSibling),Rr=t,$t=!0,gi=null,e!==null&&(Wr[Yr++]=bo,Wr[Yr++]=wo,Wr[Yr++]=Ga,bo=e.id,wo=e.overflow,Ga=t),t=TS(t,r.children),t.flags|=4096,t)}function Pk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),V1(e.return,t,n)}function H0(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 bA(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(lr(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&&Pk(e,n,t);else if(e.tag===19)Pk(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(Ot(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&&Ng(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),H0(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&&Ng(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}H0(t,!0,n,null,o);break;case"together":H0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Te(153));if(t.child!==null){for(e=t.child,n=Ts(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ts(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xH(e,t,n){switch(t.tag){case 3:yA(t),Cc();break;case 5:q4(t);break;case 1:br(t.type)&&Tg(t);break;case 4:yS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ot(kg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ot(Vt,Vt.current&1),t.flags|=128,null):n&t.child.childLanes?_A(e,t,n):(Ot(Vt,Vt.current&1),e=Oo(e,t,n),e!==null?e.sibling:null);Ot(Vt,Vt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bA(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(Vt,Vt.current),r)break;return null;case 22:case 23:return t.lanes=0,gA(e,t,n)}return Oo(e,t,n)}var wA,X1,xA,SA;wA=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}};X1=function(){};xA=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Na(Zi.current);var o=null;switch(n){case"input":i=_1(e,i),r=_1(e,r),o=[];break;case"select":i=Yt({},i,{value:void 0}),r=Yt({},r,{value:void 0}),o=[];break;case"textarea":i=x1(e,i),r=x1(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cg)}C1(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Uf.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Uf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Pt("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};SA=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mu(e,t){if(!$t)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 Kn(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 SH(e,t,n){var r=t.pendingProps;switch(fS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kn(t),null;case 1:return br(t.type)&&Eg(),Kn(t),null;case 3:return r=t.stateNode,Tc(),Lt(_r),Lt(nr),bS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(cp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gi!==null&&(ow(gi),gi=null))),X1(e,t),Kn(t),null;case 5:_S(t);var i=Na(ed.current);if(n=t.type,e!==null&&t.stateNode!=null)xA(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Te(166));return Kn(t),null}if(e=Na(Zi.current),cp(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ui]=t,r[Qf]=o,e=(t.mode&1)!==0,n){case"dialog":Pt("cancel",r),Pt("close",r);break;case"iframe":case"object":case"embed":Pt("load",r);break;case"video":case"audio":for(i=0;i<qu.length;i++)Pt(qu[i],r);break;case"source":Pt("error",r);break;case"img":case"image":case"link":Pt("error",r),Pt("load",r);break;case"details":Pt("toggle",r);break;case"input":FP(r,o),Pt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pt("invalid",r);break;case"textarea":jP(r,o),Pt("invalid",r)}C1(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&lp(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&lp(r.textContent,a,e),i=["children",""+a]):Uf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Pt("scroll",r)}switch(n){case"input":ep(r),$P(r,o,!0);break;case"textarea":ep(r),BP(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Cg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=KD(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ui]=t,e[Qf]=r,wA(e,t,!1,!1),t.stateNode=e;e:{switch(s=E1(n,r),n){case"dialog":Pt("cancel",e),Pt("close",e),i=r;break;case"iframe":case"object":case"embed":Pt("load",e),i=r;break;case"video":case"audio":for(i=0;i<qu.length;i++)Pt(qu[i],e);i=r;break;case"source":Pt("error",e),i=r;break;case"img":case"image":case"link":Pt("error",e),Pt("load",e),i=r;break;case"details":Pt("toggle",e),i=r;break;case"input":FP(e,r),i=_1(e,r),Pt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Yt({},r,{value:void 0}),Pt("invalid",e);break;case"textarea":jP(e,r),i=x1(e,r),Pt("invalid",e);break;default:i=r}C1(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?JD(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&XD(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Vf(e,l):typeof l=="number"&&Vf(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Uf.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Pt("scroll",e):l!=null&&Kx(e,o,l,s))}switch(n){case"input":ep(e),$P(e,r,!1);break;case"textarea":ep(e),BP(e);break;case"option":r.value!=null&&e.setAttribute("value",""+As(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ic(e,!!r.multiple,o,!1):r.defaultValue!=null&&ic(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Cg)}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 Kn(t),null;case 6:if(e&&t.stateNode!=null)SA(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Te(166));if(n=Na(ed.current),Na(Zi.current),cp(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ui]=t,(o=r.nodeValue!==n)&&(e=Rr,e!==null))switch(e.tag){case 3:lp(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lp(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ui]=t,t.stateNode=r}return Kn(t),null;case 13:if(Lt(Vt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($t&&kr!==null&&t.mode&1&&!(t.flags&128))B4(),Cc(),t.flags|=98560,o=!1;else if(o=cp(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Te(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Te(317));o[Ui]=t}else Cc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Kn(t),o=!1}else gi!==null&&(ow(gi),gi=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?_n===0&&(_n=3):NS())),t.updateQueue!==null&&(t.flags|=4),Kn(t),null);case 4:return Tc(),X1(e,t),e===null&&Kf(t.stateNode.containerInfo),Kn(t),null;case 10:return mS(t.type._context),Kn(t),null;case 17:return br(t.type)&&Eg(),Kn(t),null;case 19:if(Lt(Vt),o=t.memoizedState,o===null)return Kn(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Mu(o,!1);else{if(_n!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ng(e),s!==null){for(t.flags|=128,Mu(o,!1),r=s.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,s=o.alternate,s===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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ot(Vt,Vt.current&1|2),t.child}e=e.sibling}o.tail!==null&&rn()>Pc&&(t.flags|=128,r=!0,Mu(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ng(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!$t)return Kn(t),null}else 2*rn()-o.renderingStartTime>Pc&&n!==1073741824&&(t.flags|=128,r=!0,Mu(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=rn(),t.sibling=null,n=Vt.current,Ot(Vt,r?n&1|2:n&1),t):(Kn(t),null);case 22:case 23:return RS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(Kn(t),t.subtreeFlags&6&&(t.flags|=8192)):Kn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function CH(e,t){switch(fS(t),t.tag){case 1:return br(t.type)&&Eg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tc(),Lt(_r),Lt(nr),bS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _S(t),null;case 13:if(Lt(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Cc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lt(Vt),null;case 4:return Tc(),null;case 10:return mS(t.type._context),null;case 22:case 23:return RS(),null;case 24:return null;default:return null}}var dp=!1,Jn=!1,EH=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function Xl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function Q1(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var kk=!1;function TH(e,t){if(A1=wg,e=O4(),cS(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 s=0,a=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++c===i&&(a=s),p===o&&++f===r&&(l=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(I1={focusedElem:e,selectionRange:n},wg=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){t=Ue;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,w=g.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?v:hi(t.type,v),w);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(E){Gt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Ue=e;break}Ue=t.return}return g=kk,kk=!1,g}function mf(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&&Q1(t,n,o)}i=i.next}while(i!==r)}}function Cy(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 J1(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 CA(e){var t=e.alternate;t!==null&&(e.alternate=null,CA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[Qf],delete t[j1],delete t[lH],delete t[cH])),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 EA(e){return e.tag===5||e.tag===3||e.tag===4}function Mk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||EA(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 ew(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=Cg));else if(r!==4&&(e=e.child,e!==null))for(ew(e,t,n),e=e.sibling;e!==null;)ew(e,t,n),e=e.sibling}function tw(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(tw(e,t,n),e=e.sibling;e!==null;)tw(e,t,n),e=e.sibling}var Un=null,pi=!1;function qo(e,t,n){for(n=n.child;n!==null;)TA(e,t,n),n=n.sibling}function TA(e,t,n){if(Gi&&typeof Gi.onCommitFiberUnmount=="function")try{Gi.onCommitFiberUnmount(gy,n)}catch{}switch(n.tag){case 5:Jn||Xl(n,t);case 6:var r=Un,i=pi;Un=null,qo(e,t,n),Un=r,pi=i,Un!==null&&(pi?(e=Un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Un.removeChild(n.stateNode));break;case 18:Un!==null&&(pi?(e=Un,n=n.stateNode,e.nodeType===8?F0(e.parentNode,n):e.nodeType===1&&F0(e,n),qf(e)):F0(Un,n.stateNode));break;case 4:r=Un,i=pi,Un=n.stateNode.containerInfo,pi=!0,qo(e,t,n),Un=r,pi=i;break;case 0:case 11:case 14:case 15:if(!Jn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Q1(n,t,s),i=i.next}while(i!==r)}qo(e,t,n);break;case 1:if(!Jn&&(Xl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Gt(n,t,a)}qo(e,t,n);break;case 21:qo(e,t,n);break;case 22:n.mode&1?(Jn=(r=Jn)||n.memoizedState!==null,qo(e,t,n),Jn=r):qo(e,t,n);break;default:qo(e,t,n)}}function Rk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new EH),t.forEach(function(r){var i=AH.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function di(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,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Un=a.stateNode,pi=!1;break e;case 3:Un=a.stateNode.containerInfo,pi=!0;break e;case 4:Un=a.stateNode.containerInfo,pi=!0;break e}a=a.return}if(Un===null)throw Error(Te(160));TA(o,s,i),Un=null,pi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Gt(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)OA(t,e),t=t.sibling}function OA(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(di(t,e),Ii(e),r&4){try{mf(3,e,e.return),Cy(3,e)}catch(v){Gt(e,e.return,v)}try{mf(5,e,e.return)}catch(v){Gt(e,e.return,v)}}break;case 1:di(t,e),Ii(e),r&512&&n!==null&&Xl(n,n.return);break;case 5:if(di(t,e),Ii(e),r&512&&n!==null&&Xl(n,n.return),e.flags&32){var i=e.stateNode;try{Vf(i,"")}catch(v){Gt(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&GD(i,o),E1(a,s);var c=E1(a,o);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];f==="style"?JD(i,h):f==="dangerouslySetInnerHTML"?XD(i,h):f==="children"?Vf(i,h):Kx(i,f,h,c)}switch(a){case"input":b1(i,o);break;case"textarea":ZD(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?ic(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?ic(i,!!o.multiple,o.defaultValue,!0):ic(i,!!o.multiple,o.multiple?[]:"",!1))}i[Qf]=o}catch(v){Gt(e,e.return,v)}}break;case 6:if(di(t,e),Ii(e),r&4){if(e.stateNode===null)throw Error(Te(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Gt(e,e.return,v)}}break;case 3:if(di(t,e),Ii(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qf(t.containerInfo)}catch(v){Gt(e,e.return,v)}break;case 4:di(t,e),Ii(e);break;case 13:di(t,e),Ii(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(kS=rn())),r&4&&Rk(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Jn=(c=Jn)||f,di(t,e),Jn=c):di(t,e),Ii(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(Ue=e,f=e.child;f!==null;){for(h=Ue=f;Ue!==null;){switch(p=Ue,m=p.child,p.tag){case 0:case 11:case 14:case 15:mf(4,p,p.return);break;case 1:Xl(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){Gt(r,n,v)}}break;case 5:Xl(p,p.return);break;case 22:if(p.memoizedState!==null){Lk(h);continue}}m!==null?(m.return=p,Ue=m):Lk(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"):(a=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=QD("display",s))}catch(v){Gt(e,e.return,v)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){Gt(e,e.return,v)}}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:di(t,e),Ii(e),r&4&&Rk(e);break;case 21:break;default:di(t,e),Ii(e)}}function Ii(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(EA(n)){var r=n;break e}n=n.return}throw Error(Te(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Vf(i,""),r.flags&=-33);var o=Mk(e);tw(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Mk(e);ew(e,a,s);break;default:throw Error(Te(161))}}catch(l){Gt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function OH(e,t,n){Ue=e,PA(e)}function PA(e,t,n){for(var r=(e.mode&1)!==0;Ue!==null;){var i=Ue,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||dp;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Jn;a=dp;var c=Jn;if(dp=s,(Jn=l)&&!c)for(Ue=i;Ue!==null;)s=Ue,l=s.child,s.tag===22&&s.memoizedState!==null?Dk(i):l!==null?(l.return=s,Ue=l):Dk(i);for(;o!==null;)Ue=o,PA(o),o=o.sibling;Ue=i,dp=a,Jn=c}Nk(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Ue=o):Nk(e)}}function Nk(e){for(;Ue!==null;){var t=Ue;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Jn||Cy(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Jn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:hi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&mk(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mk(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;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&&qf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Te(163))}Jn||t.flags&512&&J1(t)}catch(p){Gt(t,t.return,p)}}if(t===e){Ue=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ue=n;break}Ue=t.return}}function Lk(e){for(;Ue!==null;){var t=Ue;if(t===e){Ue=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ue=n;break}Ue=t.return}}function Dk(e){for(;Ue!==null;){var t=Ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Cy(4,t)}catch(l){Gt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Gt(t,i,l)}}var o=t.return;try{J1(t)}catch(l){Gt(t,o,l)}break;case 5:var s=t.return;try{J1(t)}catch(l){Gt(t,s,l)}}}catch(l){Gt(t,t.return,l)}if(t===e){Ue=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Ue=a;break}Ue=t.return}}var PH=Math.ceil,Ag=Io.ReactCurrentDispatcher,OS=Io.ReactCurrentOwner,Xr=Io.ReactCurrentBatchConfig,dt=0,Pn=null,dn=null,Wn=0,Or=0,Ql=Gs(0),_n=0,id=null,Ka=0,Ey=0,PS=0,gf=null,mr=null,kS=0,Pc=1/0,fo=null,Ig=!1,nw=null,Cs=null,hp=!1,ds=null,Fg=0,vf=0,rw=null,am=-1,lm=0;function fr(){return dt&6?rn():am!==-1?am:am=rn()}function Es(e){return e.mode&1?dt&2&&Wn!==0?Wn&-Wn:fH.transition!==null?(lm===0&&(lm=f4()),lm):(e=wt,e!==0||(e=window.event,e=e===void 0?16:y4(e.type)),e):1}function Ci(e,t,n,r){if(50<vf)throw vf=0,rw=null,Error(Te(185));Ad(e,n,r),(!(dt&2)||e!==Pn)&&(e===Pn&&(!(dt&2)&&(Ey|=n),_n===4&&is(e,Wn)),wr(e,r),n===1&&dt===0&&!(t.mode&1)&&(Pc=rn()+500,wy&&Zs()))}function wr(e,t){var n=e.callbackNode;fV(e,t);var r=bg(e,e===Pn?Wn:0);if(r===0)n!==null&&VP(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&VP(n),t===1)e.tag===0?uH(Ak.bind(null,e)):F4(Ak.bind(null,e)),sH(function(){!(dt&6)&&Zs()}),n=null;else{switch(d4(r)){case 1:n=tS;break;case 4:n=c4;break;case 16:n=_g;break;case 536870912:n=u4;break;default:n=_g}n=IA(n,kA.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kA(e,t){if(am=-1,lm=0,dt&6)throw Error(Te(327));var n=e.callbackNode;if(cc()&&e.callbackNode!==n)return null;var r=bg(e,e===Pn?Wn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=$g(e,r);else{t=r;var i=dt;dt|=2;var o=RA();(Pn!==e||Wn!==t)&&(fo=null,Pc=rn()+500,Fa(e,t));do try{RH();break}catch(a){MA(e,a)}while(1);pS(),Ag.current=o,dt=i,dn!==null?t=0:(Pn=null,Wn=0,t=_n)}if(t!==0){if(t===2&&(i=M1(e),i!==0&&(r=i,t=iw(e,i))),t===1)throw n=id,Fa(e,0),is(e,r),wr(e,rn()),n;if(t===6)is(e,r);else{if(i=e.current.alternate,!(r&30)&&!kH(i)&&(t=$g(e,r),t===2&&(o=M1(e),o!==0&&(r=o,t=iw(e,o))),t===1))throw n=id,Fa(e,0),is(e,r),wr(e,rn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Te(345));case 2:Sa(e,mr,fo);break;case 3:if(is(e,r),(r&130023424)===r&&(t=kS+500-rn(),10<t)){if(bg(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$1(Sa.bind(null,e,mr,fo),t);break}Sa(e,mr,fo);break;case 4:if(is(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Si(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*PH(r/1960))-r,10<r){e.timeoutHandle=$1(Sa.bind(null,e,mr,fo),r);break}Sa(e,mr,fo);break;case 5:Sa(e,mr,fo);break;default:throw Error(Te(329))}}}return wr(e,rn()),e.callbackNode===n?kA.bind(null,e):null}function iw(e,t){var n=gf;return e.current.memoizedState.isDehydrated&&(Fa(e,t).flags|=256),e=$g(e,t),e!==2&&(t=mr,mr=n,t!==null&&ow(t)),e}function ow(e){mr===null?mr=e:mr.push.apply(mr,e)}function kH(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(!Pi(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 is(e,t){for(t&=~PS,t&=~Ey,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Si(t),r=1<<n;e[n]=-1,t&=~r}}function Ak(e){if(dt&6)throw Error(Te(327));cc();var t=bg(e,0);if(!(t&1))return wr(e,rn()),null;var n=$g(e,t);if(e.tag!==0&&n===2){var r=M1(e);r!==0&&(t=r,n=iw(e,r))}if(n===1)throw n=id,Fa(e,0),is(e,t),wr(e,rn()),n;if(n===6)throw Error(Te(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sa(e,mr,fo),wr(e,rn()),null}function MS(e,t){var n=dt;dt|=1;try{return e(t)}finally{dt=n,dt===0&&(Pc=rn()+500,wy&&Zs())}}function Xa(e){ds!==null&&ds.tag===0&&!(dt&6)&&cc();var t=dt;dt|=1;var n=Xr.transition,r=wt;try{if(Xr.transition=null,wt=1,e)return e()}finally{wt=r,Xr.transition=n,dt=t,!(dt&6)&&Zs()}}function RS(){Or=Ql.current,Lt(Ql)}function Fa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,oH(n)),dn!==null)for(n=dn.return;n!==null;){var r=n;switch(fS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Eg();break;case 3:Tc(),Lt(_r),Lt(nr),bS();break;case 5:_S(r);break;case 4:Tc();break;case 13:Lt(Vt);break;case 19:Lt(Vt);break;case 10:mS(r.type._context);break;case 22:case 23:RS()}n=n.return}if(Pn=e,dn=e=Ts(e.current,null),Wn=Or=t,_n=0,id=null,PS=Ey=Ka=0,mr=gf=null,Ra!==null){for(t=0;t<Ra.length;t++)if(n=Ra[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Ra=null}return e}function MA(e,t){do{var n=dn;try{if(pS(),im.current=Dg,Lg){for(var r=Wt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Lg=!1}if(Za=0,Tn=gn=Wt=null,pf=!1,td=0,OS.current=null,n===null||n.return===null){_n=1,id=t,dn=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Wn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=a,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 m=xk(s);if(m!==null){m.flags&=-257,Sk(m,s,a,o,t),m.mode&1&&wk(o,c,t),t=m,l=c;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){wk(o,c,t),NS();break e}l=Error(Te(426))}}else if($t&&a.mode&1){var w=xk(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Sk(w,s,a,o,t),dS(Oc(l,a));break e}}o=l=Oc(l,a),_n!==4&&(_n=2),gf===null?gf=[o]:gf.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=hA(o,l,t);pk(o,_);break e;case 1:a=l;var b=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Cs===null||!Cs.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=pA(o,a,t);pk(o,E);break e}}o=o.return}while(o!==null)}LA(n)}catch(P){t=P,dn===n&&n!==null&&(dn=n=n.return);continue}break}while(1)}function RA(){var e=Ag.current;return Ag.current=Dg,e===null?Dg:e}function NS(){(_n===0||_n===3||_n===2)&&(_n=4),Pn===null||!(Ka&268435455)&&!(Ey&268435455)||is(Pn,Wn)}function $g(e,t){var n=dt;dt|=2;var r=RA();(Pn!==e||Wn!==t)&&(fo=null,Fa(e,t));do try{MH();break}catch(i){MA(e,i)}while(1);if(pS(),dt=n,Ag.current=r,dn!==null)throw Error(Te(261));return Pn=null,Wn=0,_n}function MH(){for(;dn!==null;)NA(dn)}function RH(){for(;dn!==null&&!nV();)NA(dn)}function NA(e){var t=AA(e.alternate,e,Or);e.memoizedProps=e.pendingProps,t===null?LA(e):dn=t,OS.current=null}function LA(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=CH(n,t),n!==null){n.flags&=32767,dn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_n=6,dn=null;return}}else if(n=SH(n,t,Or),n!==null){dn=n;return}if(t=t.sibling,t!==null){dn=t;return}dn=t=e}while(t!==null);_n===0&&(_n=5)}function Sa(e,t,n){var r=wt,i=Xr.transition;try{Xr.transition=null,wt=1,NH(e,t,n,r)}finally{Xr.transition=i,wt=r}return null}function NH(e,t,n,r){do cc();while(ds!==null);if(dt&6)throw Error(Te(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(Te(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(dV(e,o),e===Pn&&(dn=Pn=null,Wn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hp||(hp=!0,IA(_g,function(){return cc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Xr.transition,Xr.transition=null;var s=wt;wt=1;var a=dt;dt|=4,OS.current=null,TH(e,n),OA(n,e),QV(I1),wg=!!A1,I1=A1=null,e.current=n,OH(n),rV(),dt=a,wt=s,Xr.transition=o}else e.current=n;if(hp&&(hp=!1,ds=e,Fg=i),o=e.pendingLanes,o===0&&(Cs=null),sV(n.stateNode),wr(e,rn()),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(Ig)throw Ig=!1,e=nw,nw=null,e;return Fg&1&&e.tag!==0&&cc(),o=e.pendingLanes,o&1?e===rw?vf++:(vf=0,rw=e):vf=0,Zs(),null}function cc(){if(ds!==null){var e=d4(Fg),t=Xr.transition,n=wt;try{if(Xr.transition=null,wt=16>e?16:e,ds===null)var r=!1;else{if(e=ds,ds=null,Fg=0,dt&6)throw Error(Te(331));var i=dt;for(dt|=4,Ue=e.current;Ue!==null;){var o=Ue,s=o.child;if(Ue.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(Ue=c;Ue!==null;){var f=Ue;switch(f.tag){case 0:case 11:case 15:mf(8,f,o)}var h=f.child;if(h!==null)h.return=f,Ue=h;else for(;Ue!==null;){f=Ue;var p=f.sibling,m=f.return;if(CA(f),f===c){Ue=null;break}if(p!==null){p.return=m,Ue=p;break}Ue=m}}}var g=o.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}Ue=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Ue=s;else e:for(;Ue!==null;){if(o=Ue,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mf(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,Ue=_;break e}Ue=o.return}}var b=e.current;for(Ue=b;Ue!==null;){s=Ue;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Ue=x;else e:for(s=b;Ue!==null;){if(a=Ue,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Cy(9,a)}}catch(P){Gt(a,a.return,P)}if(a===s){Ue=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,Ue=E;break e}Ue=a.return}}if(dt=i,Zs(),Gi&&typeof Gi.onPostCommitFiberRoot=="function")try{Gi.onPostCommitFiberRoot(gy,e)}catch{}r=!0}return r}finally{wt=n,Xr.transition=t}}return!1}function Ik(e,t,n){t=Oc(n,t),t=hA(e,t,1),e=Ss(e,t,1),t=fr(),e!==null&&(Ad(e,1,t),wr(e,t))}function Gt(e,t,n){if(e.tag===3)Ik(e,e,n);else for(;t!==null;){if(t.tag===3){Ik(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Cs===null||!Cs.has(r))){e=Oc(n,e),e=pA(t,e,1),t=Ss(t,e,1),e=fr(),t!==null&&(Ad(t,1,e),wr(t,e));break}}t=t.return}}function LH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fr(),e.pingedLanes|=e.suspendedLanes&n,Pn===e&&(Wn&n)===n&&(_n===4||_n===3&&(Wn&130023424)===Wn&&500>rn()-kS?Fa(e,0):PS|=n),wr(e,t)}function DA(e,t){t===0&&(e.mode&1?(t=rp,rp<<=1,!(rp&130023424)&&(rp=4194304)):t=1);var n=fr();e=To(e,t),e!==null&&(Ad(e,t,n),wr(e,n))}function DH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),DA(e,n)}function AH(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(Te(314))}r!==null&&r.delete(t),DA(e,n)}var AA;AA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_r.current)yr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yr=!1,xH(e,t,n);yr=!!(e.flags&131072)}else yr=!1,$t&&t.flags&1048576&&$4(t,Pg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sm(e,t),e=t.pendingProps;var i=Sc(t,nr.current);lc(t,n),i=xS(null,t,r,e,i,n);var o=SS();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,br(r)?(o=!0,Tg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,vS(t),i.updater=xy,t.stateNode=i,i._reactInternals=t,W1(t,r,e,n),t=G1(null,t,r,!0,o,n)):(t.tag=0,$t&&o&&uS(t),lr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sm(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=FH(r),e=hi(r,e),i){case 0:t=q1(null,t,r,e,n);break e;case 1:t=Tk(null,t,r,e,n);break e;case 11:t=Ck(null,t,r,e,n);break e;case 14:t=Ek(null,t,r,hi(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),q1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),Tk(e,t,r,i,n);case 3:e:{if(yA(t),e===null)throw Error(Te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,U4(e,t),Rg(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Oc(Error(Te(423)),t),t=Ok(e,t,r,n,i);break e}else if(r!==i){i=Oc(Error(Te(424)),t),t=Ok(e,t,r,n,i);break e}else for(kr=xs(t.stateNode.containerInfo.firstChild),Rr=t,$t=!0,gi=null,n=Y4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cc(),r===i){t=Oo(e,t,n);break e}lr(e,t,r,n)}t=t.child}return t;case 5:return q4(t),e===null&&U1(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,F1(r,i)?s=null:o!==null&&F1(r,o)&&(t.flags|=32),vA(e,t),lr(e,t,s,n),t.child;case 6:return e===null&&U1(t),null;case 13:return _A(e,t,n);case 4:return yS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ec(t,null,r,n):lr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),Ck(e,t,r,i,n);case 7:return lr(e,t,t.pendingProps,n),t.child;case 8:return lr(e,t,t.pendingProps.children,n),t.child;case 12:return lr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ot(kg,r._currentValue),r._currentValue=s,o!==null)if(Pi(o.value,s)){if(o.children===i.children&&!_r.current){t=Oo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=xo(-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),V1(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Te(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),V1(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}lr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,lc(t,n),i=ti(i),r=r(i),t.flags|=1,lr(e,t,r,n),t.child;case 14:return r=t.type,i=hi(r,t.pendingProps),i=hi(r.type,i),Ek(e,t,r,i,n);case 15:return mA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),sm(e,t),t.tag=1,br(r)?(e=!0,Tg(t)):e=!1,lc(t,n),H4(t,r,i),W1(t,r,i,n),G1(null,t,r,!0,e,n);case 19:return bA(e,t,n);case 22:return gA(e,t,n)}throw Error(Te(156,t.tag))};function IA(e,t){return l4(e,t)}function IH(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 Gr(e,t,n,r){return new IH(e,t,n,r)}function LS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FH(e){if(typeof e=="function")return LS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qx)return 11;if(e===Jx)return 14}return 2}function Ts(e,t){var n=e.alternate;return n===null?(n=Gr(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 cm(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")LS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ul:return $a(n.children,i,o,t);case Xx:s=8,i|=8;break;case m1:return e=Gr(12,n,t,i|2),e.elementType=m1,e.lanes=o,e;case g1:return e=Gr(13,n,t,i),e.elementType=g1,e.lanes=o,e;case v1:return e=Gr(19,n,t,i),e.elementType=v1,e.lanes=o,e;case WD:return Ty(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VD:s=10;break e;case HD:s=9;break e;case Qx:s=11;break e;case Jx:s=14;break e;case Qo:s=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Gr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $a(e,t,n,r){return e=Gr(7,e,r,t),e.lanes=n,e}function Ty(e,t,n,r){return e=Gr(22,e,r,t),e.elementType=WD,e.lanes=n,e.stateNode={isHidden:!1},e}function W0(e,t,n){return e=Gr(6,e,null,t),e.lanes=n,e}function Y0(e,t,n){return t=Gr(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=T0(0),this.expirationTimes=T0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=T0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function DS(e,t,n,r,i,o,s,a,l){return e=new $H(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Gr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vS(o),e}function jH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function FA(e){if(!e)return Is;e=e._reactInternals;e:{if(ul(e)!==e||e.tag!==1)throw Error(Te(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(br(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Te(171))}if(e.tag===1){var n=e.type;if(br(n))return I4(e,n,t)}return t}function $A(e,t,n,r,i,o,s,a,l){return e=DS(n,r,!0,e,i,o,s,a,l),e.context=FA(null),n=e.current,r=fr(),i=Es(n),o=xo(r,i),o.callback=t??null,Ss(n,o,i),e.current.lanes=i,Ad(e,i,r),wr(e,r),e}function Oy(e,t,n,r){var i=t.current,o=fr(),s=Es(i);return n=FA(n),t.context===null?t.context=n:t.pendingContext=n,t=xo(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ss(i,t,s),e!==null&&(Ci(e,i,s,o),rm(e,i,s)),s}function jg(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 Fk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function AS(e,t){Fk(e,t),(e=e.alternate)&&Fk(e,t)}function BH(){return null}var jA=typeof reportError=="function"?reportError:function(e){console.error(e)};function IS(e){this._internalRoot=e}Py.prototype.render=IS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Te(409));Oy(e,t,null,null)};Py.prototype.unmount=IS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xa(function(){Oy(null,e,null,null)}),t[Eo]=null}};function Py(e){this._internalRoot=e}Py.prototype.unstable_scheduleHydration=function(e){if(e){var t=m4();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rs.length&&t!==0&&t<rs[n].priority;n++);rs.splice(n,0,e),n===0&&v4(e)}};function FS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ky(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $k(){}function zH(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=jg(s);o.call(c)}}var s=$A(t,r,e,0,null,!1,!1,"",$k);return e._reactRootContainer=s,e[Eo]=s.current,Kf(e.nodeType===8?e.parentNode:e),Xa(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=jg(l);a.call(c)}}var l=DS(e,0,!1,null,null,!1,!1,"",$k);return e._reactRootContainer=l,e[Eo]=l.current,Kf(e.nodeType===8?e.parentNode:e),Xa(function(){Oy(t,l,n,r)}),l}function My(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=jg(s);a.call(l)}}Oy(t,s,e,i)}else s=zH(n,t,e,i,r);return jg(s)}h4=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Yu(t.pendingLanes);n!==0&&(nS(t,n|1),wr(t,rn()),!(dt&6)&&(Pc=rn()+500,Zs()))}break;case 13:Xa(function(){var r=To(e,1);if(r!==null){var i=fr();Ci(r,e,1,i)}}),AS(e,1)}};rS=function(e){if(e.tag===13){var t=To(e,134217728);if(t!==null){var n=fr();Ci(t,e,134217728,n)}AS(e,134217728)}};p4=function(e){if(e.tag===13){var t=Es(e),n=To(e,t);if(n!==null){var r=fr();Ci(n,e,t,r)}AS(e,t)}};m4=function(){return wt};g4=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}};O1=function(e,t,n){switch(t){case"input":if(b1(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=by(r);if(!i)throw Error(Te(90));qD(r),b1(r,i)}}}break;case"textarea":ZD(e,n);break;case"select":t=n.value,t!=null&&ic(e,!!n.multiple,t,!1)}};n4=MS;r4=Xa;var UH={usingClientEntryPoint:!1,Events:[Fd,Yl,by,e4,t4,MS]},Ru={findFiberByHostInstance:Ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},VH={bundleType:Ru.bundleType,version:Ru.version,rendererPackageName:Ru.rendererPackageName,rendererConfig:Ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Io.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=s4(e),e===null?null:e.stateNode},findFiberByHostInstance:Ru.findFiberByHostInstance||BH,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 pp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pp.isDisabled&&pp.supportsFiber)try{gy=pp.inject(VH),Gi=pp}catch{}}Ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UH;Ir.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!FS(t))throw Error(Te(200));return jH(e,t,null,n)};Ir.createRoot=function(e,t){if(!FS(e))throw Error(Te(299));var n=!1,r="",i=jA;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=DS(e,1,!1,null,null,n,!1,r,i),e[Eo]=t.current,Kf(e.nodeType===8?e.parentNode:e),new IS(t)};Ir.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Te(188)):(e=Object.keys(e).join(","),Error(Te(268,e)));return e=s4(t),e=e===null?null:e.stateNode,e};Ir.flushSync=function(e){return Xa(e)};Ir.hydrate=function(e,t,n){if(!ky(t))throw Error(Te(200));return My(null,e,t,!0,n)};Ir.hydrateRoot=function(e,t,n){if(!FS(e))throw Error(Te(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=jA;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=$A(t,null,e,1,n??null,i,!1,o,s),e[Eo]=t.current,Kf(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 Py(t)};Ir.render=function(e,t,n){if(!ky(t))throw Error(Te(200));return My(null,e,t,!1,n)};Ir.unmountComponentAtNode=function(e){if(!ky(e))throw Error(Te(40));return e._reactRootContainer?(Xa(function(){My(null,null,e,!1,function(){e._reactRootContainer=null,e[Eo]=null})}),!0):!1};Ir.unstable_batchedUpdates=MS;Ir.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ky(n))throw Error(Te(200));if(e==null||e._reactInternals===void 0)throw Error(Te(38));return My(e,t,n,!1,r)};Ir.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Ir})(BU);const ja=LL(Ya);var BA,jk=Ya;BA=jk.createRoot,jk.hydrateRoot;var Bg={},HH={get exports(){return Bg},set exports(e){Bg=e}},zA={};/**
|
||
* @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 kc=H;function WH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YH=typeof Object.is=="function"?Object.is:WH,qH=kc.useState,GH=kc.useEffect,ZH=kc.useLayoutEffect,KH=kc.useDebugValue;function XH(e,t){var n=t(),r=qH({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return ZH(function(){i.value=n,i.getSnapshot=t,q0(i)&&o({inst:i})},[e,n,t]),GH(function(){return q0(i)&&o({inst:i}),e(function(){q0(i)&&o({inst:i})})},[e]),KH(n),n}function q0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!YH(e,n)}catch{return!0}}function QH(e,t){return t()}var JH=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?QH:XH;zA.useSyncExternalStore=kc.useSyncExternalStore!==void 0?kc.useSyncExternalStore:JH;(function(e){e.exports=zA})(HH);var Bk={},eW={get exports(){return Bk},set exports(e){Bk=e}},UA={};/**
|
||
* @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 Ry=H,tW=Bg;function nW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rW=typeof Object.is=="function"?Object.is:nW,iW=tW.useSyncExternalStore,oW=Ry.useRef,sW=Ry.useEffect,aW=Ry.useMemo,lW=Ry.useDebugValue;UA.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=oW(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=aW(function(){function l(m){if(!c){if(c=!0,f=m,m=r(m),i!==void 0&&s.hasValue){var g=s.value;if(i(g,m))return h=g}return h=m}if(g=h,rW(f,m))return g;var v=r(m);return i!==void 0&&i(g,v)?g:(f=m,h=v)}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 a=iW(e,o[0],o[1]);return sW(function(){s.hasValue=!0,s.value=a},[a]),lW(a),a};(function(e){e.exports=UA})(eW);function cW(e){e()}let VA=cW;const uW=e=>VA=e,fW=()=>VA,HA=H.createContext(null),dW=()=>{throw new Error("uSES not initialized!")};function uc(){return uc=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},uc.apply(this,arguments)}function $S(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 sw={},hW={get exports(){return sw},set exports(e){sw=e}},xt={};/** @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 kn=typeof Symbol=="function"&&Symbol.for,jS=kn?Symbol.for("react.element"):60103,BS=kn?Symbol.for("react.portal"):60106,Ny=kn?Symbol.for("react.fragment"):60107,Ly=kn?Symbol.for("react.strict_mode"):60108,Dy=kn?Symbol.for("react.profiler"):60114,Ay=kn?Symbol.for("react.provider"):60109,Iy=kn?Symbol.for("react.context"):60110,zS=kn?Symbol.for("react.async_mode"):60111,Fy=kn?Symbol.for("react.concurrent_mode"):60111,$y=kn?Symbol.for("react.forward_ref"):60112,jy=kn?Symbol.for("react.suspense"):60113,pW=kn?Symbol.for("react.suspense_list"):60120,By=kn?Symbol.for("react.memo"):60115,zy=kn?Symbol.for("react.lazy"):60116,mW=kn?Symbol.for("react.block"):60121,gW=kn?Symbol.for("react.fundamental"):60117,vW=kn?Symbol.for("react.responder"):60118,yW=kn?Symbol.for("react.scope"):60119;function $r(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jS:switch(e=e.type,e){case zS:case Fy:case Ny:case Dy:case Ly:case jy:return e;default:switch(e=e&&e.$$typeof,e){case Iy:case $y:case zy:case By:case Ay:return e;default:return t}}case BS:return t}}}function WA(e){return $r(e)===Fy}xt.AsyncMode=zS;xt.ConcurrentMode=Fy;xt.ContextConsumer=Iy;xt.ContextProvider=Ay;xt.Element=jS;xt.ForwardRef=$y;xt.Fragment=Ny;xt.Lazy=zy;xt.Memo=By;xt.Portal=BS;xt.Profiler=Dy;xt.StrictMode=Ly;xt.Suspense=jy;xt.isAsyncMode=function(e){return WA(e)||$r(e)===zS};xt.isConcurrentMode=WA;xt.isContextConsumer=function(e){return $r(e)===Iy};xt.isContextProvider=function(e){return $r(e)===Ay};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jS};xt.isForwardRef=function(e){return $r(e)===$y};xt.isFragment=function(e){return $r(e)===Ny};xt.isLazy=function(e){return $r(e)===zy};xt.isMemo=function(e){return $r(e)===By};xt.isPortal=function(e){return $r(e)===BS};xt.isProfiler=function(e){return $r(e)===Dy};xt.isStrictMode=function(e){return $r(e)===Ly};xt.isSuspense=function(e){return $r(e)===jy};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ny||e===Fy||e===Dy||e===Ly||e===jy||e===pW||typeof e=="object"&&e!==null&&(e.$$typeof===zy||e.$$typeof===By||e.$$typeof===Ay||e.$$typeof===Iy||e.$$typeof===$y||e.$$typeof===gW||e.$$typeof===vW||e.$$typeof===yW||e.$$typeof===mW)};xt.typeOf=$r;(function(e){e.exports=xt})(hW);var US=sw,_W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bW={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wW={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},YA={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VS={};VS[US.ForwardRef]=wW;VS[US.Memo]=YA;function zk(e){return US.isMemo(e)?YA:VS[e.$$typeof]||_W}var xW=Object.defineProperty,SW=Object.getOwnPropertyNames,Uk=Object.getOwnPropertySymbols,CW=Object.getOwnPropertyDescriptor,EW=Object.getPrototypeOf,Vk=Object.prototype;function qA(e,t,n){if(typeof t!="string"){if(Vk){var r=EW(t);r&&r!==Vk&&qA(e,r,n)}var i=SW(t);Uk&&(i=i.concat(Uk(t)));for(var o=zk(e),s=zk(t),a=0;a<i.length;++a){var l=i[a];if(!bW[l]&&!(n&&n[l])&&!(s&&s[l])&&!(o&&o[l])){var c=CW(t,l);try{xW(e,l,c)}catch{}}}}return e}var Hk=qA,aw={},TW={get exports(){return aw},set exports(e){aw=e}},St={};/**
|
||
* @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 HS=Symbol.for("react.element"),WS=Symbol.for("react.portal"),Uy=Symbol.for("react.fragment"),Vy=Symbol.for("react.strict_mode"),Hy=Symbol.for("react.profiler"),Wy=Symbol.for("react.provider"),Yy=Symbol.for("react.context"),OW=Symbol.for("react.server_context"),qy=Symbol.for("react.forward_ref"),Gy=Symbol.for("react.suspense"),Zy=Symbol.for("react.suspense_list"),Ky=Symbol.for("react.memo"),Xy=Symbol.for("react.lazy"),PW=Symbol.for("react.offscreen"),kW=Symbol.for("react.module.reference");function oi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case HS:switch(e=e.type,e){case Uy:case Hy:case Vy:case Gy:case Zy:return e;default:switch(e=e&&e.$$typeof,e){case OW:case Yy:case qy:case Xy:case Ky:case Wy:return e;default:return t}}case WS:return t}}}St.ContextConsumer=Yy;St.ContextProvider=Wy;St.Element=HS;St.ForwardRef=qy;St.Fragment=Uy;St.Lazy=Xy;St.Memo=Ky;St.Portal=WS;St.Profiler=Hy;St.StrictMode=Vy;St.Suspense=Gy;St.SuspenseList=Zy;St.isAsyncMode=function(){return!1};St.isConcurrentMode=function(){return!1};St.isContextConsumer=function(e){return oi(e)===Yy};St.isContextProvider=function(e){return oi(e)===Wy};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===HS};St.isForwardRef=function(e){return oi(e)===qy};St.isFragment=function(e){return oi(e)===Uy};St.isLazy=function(e){return oi(e)===Xy};St.isMemo=function(e){return oi(e)===Ky};St.isPortal=function(e){return oi(e)===WS};St.isProfiler=function(e){return oi(e)===Hy};St.isStrictMode=function(e){return oi(e)===Vy};St.isSuspense=function(e){return oi(e)===Gy};St.isSuspenseList=function(e){return oi(e)===Zy};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uy||e===Hy||e===Vy||e===Gy||e===Zy||e===PW||typeof e=="object"&&e!==null&&(e.$$typeof===Xy||e.$$typeof===Ky||e.$$typeof===Wy||e.$$typeof===Yy||e.$$typeof===qy||e.$$typeof===kW||e.getModuleId!==void 0)};St.typeOf=oi;(function(e){e.exports=St})(TW);const MW=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function RW(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,c,f,h,p;function m(b,x){return l=b,c=x,f=e(l,c),h=t(r,c),p=n(f,h,c),a=!0,p}function g(){return f=e(l,c),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function v(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function w(){const b=e(l,c),x=!s(b,f);return f=b,x&&(p=n(f,h,c)),p}function _(b,x){const E=!o(x,c),P=!i(b,l,x,c);return l=b,c=x,E&&P?g():E?v():P?w():p}return function(x,E){return a?_(x,E):m(x,E)}}function NW(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=$S(t,MW);const s=n(e,o),a=r(e,o),l=i(e,o);return RW(s,a,l,e,o)}function LW(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 lw(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Wk(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):e.length!==1}function GA(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=Wk(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Wk(c),c=o(a,l)),c},o}}function YS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function DW(e){return e&&typeof e=="object"?lw(t=>LW(e,t)):e?typeof e=="function"?GA(e):YS(e,"mapDispatchToProps"):lw(t=>({dispatch:t}))}function AW(e){return e?typeof e=="function"?GA(e):YS(e,"mapStateToProps"):lw(()=>({}))}function IW(e,t,n){return uc({},n,e,t)}function FW(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function $W(e){return e?typeof e=="function"?FW(e):YS(e,"mergeProps"):()=>IW}function jW(){const e=fW();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 Yk={notify(){},get:()=>[]};function ZA(e,t){let n,r=Yk;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function s(){f.onStateChange&&f.onStateChange()}function a(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=jW())}function c(){n&&(n(),n=void 0,r.clear(),r=Yk)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const BW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zg=BW?H.useLayoutEffect:H.useEffect;function qk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function G0(e,t){if(qk(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])||!qk(e[n[i]],t[n[i]]))return!1;return!0}const zW=["reactReduxForwardedRef"];let KA=dW;const UW=e=>{KA=e},VW=[null,null];function HW(e,t,n){zg(()=>e(...t),n)}function WW(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function YW(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,p=null;const m=()=>{if(h||!a.current)return;const v=t.getState();let w,_;try{w=r(v,i.current)}catch(b){_=b,p=b}_||(p=null),w===o.current?s.current||c():(o.current=w,l.current=w,s.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function qW(e,t){return e===t}function GW(e,t,n,{pure:r,areStatesEqual:i=qW,areOwnPropsEqual:o=G0,areStatePropsEqual:s=G0,areMergedPropsEqual:a=G0,forwardRef:l=!1,context:c=HA}={}){const f=c,h=AW(e),p=DW(t),m=$W(n),g=Boolean(e);return w=>{const _=w.displayName||w.name||"Component",b=`Connect(${_})`,x={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:_,WrappedComponent:w,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function E(N){const[D,U,A]=H.useMemo(()=>{const{reactReduxForwardedRef:X}=N,ae=$S(N,zW);return[N.context,X,ae]},[N]),Y=H.useMemo(()=>D&&D.Consumer&&aw.isContextConsumer(z.createElement(D.Consumer,null))?D:f,[D,f]),q=H.useContext(Y),ee=Boolean(N.store)&&Boolean(N.store.getState)&&Boolean(N.store.dispatch),Z=Boolean(q)&&Boolean(q.store),te=ee?N.store:q.store,ne=Z?q.getServerState:te.getState,le=H.useMemo(()=>NW(te.dispatch,x),[te]),[K,$]=H.useMemo(()=>{if(!g)return VW;const X=ZA(te,ee?void 0:q.subscription),ae=X.notifyNestedSubs.bind(X);return[X,ae]},[te,ee,q]),I=H.useMemo(()=>ee?q:uc({},q,{subscription:K}),[ee,q,K]),B=H.useRef(),ie=H.useRef(A),W=H.useRef(),G=H.useRef(!1);H.useRef(!1);const re=H.useRef(!1),se=H.useRef();zg(()=>(re.current=!0,()=>{re.current=!1}),[]);const me=H.useMemo(()=>()=>W.current&&A===ie.current?W.current:le(te.getState(),A),[te,A]),O=H.useMemo(()=>ae=>K?YW(g,te,K,le,ie,B,G,re,W,$,ae):()=>{},[K]);HW(WW,[ie,B,G,A,W,$]);let R;try{R=KA(O,me,ne?()=>le(ne(),A):me)}catch(X){throw se.current&&(X.message+=`
|
||
The error may be correlated with this previous error:
|
||
${se.current.stack}
|
||
|
||
`),X}zg(()=>{se.current=void 0,W.current=void 0,B.current=R});const F=H.useMemo(()=>z.createElement(w,uc({},R,{ref:U})),[U,w,R]);return H.useMemo(()=>g?z.createElement(Y.Provider,{value:I},F):F,[Y,F,I])}const k=z.memo(E);if(k.WrappedComponent=w,k.displayName=E.displayName=b,l){const D=z.forwardRef(function(A,Y){return z.createElement(k,uc({},A,{reactReduxForwardedRef:Y}))});return D.displayName=b,D.WrappedComponent=w,Hk(D,w)}return Hk(k,w)}}function ZW({store:e,context:t,children:n,serverState:r}){const i=H.useMemo(()=>{const a=ZA(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0}},[e,r]),o=H.useMemo(()=>e.getState(),[e]);zg(()=>{const{subscription:a}=i;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),o!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[i,o]);const s=t||HA;return z.createElement(s.Provider,{value:i},n)}UW(Bg.useSyncExternalStore);uW(Ya.unstable_batchedUpdates);/**
|
||
* @remix-run/router v1.2.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function 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)}var hs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hs||(hs={}));const Gk="popstate";function KW(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return cw("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:od(i)}return JW(t,n,null,e)}function hn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function XW(){return Math.random().toString(36).substr(2,8)}function Zk(e){return{usr:e.state,key:e.key}}function cw(e,t,n,r){return n===void 0&&(n=null),Ug({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yc(t):t,{state:n,key:t&&t.key||r||XW()})}function od(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 Yc(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 QW(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:od(e);return hn(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function JW(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=hs.Pop,l=null;function c(){a=hs.Pop,l&&l({action:a,location:p.location})}function f(m,g){a=hs.Push;let v=cw(p.location,m,g);n&&n(v,m);let w=Zk(v),_=p.createHref(v);try{s.pushState(w,"",_)}catch{i.location.assign(_)}o&&l&&l({action:a,location:p.location})}function h(m,g){a=hs.Replace;let v=cw(p.location,m,g);n&&n(v,m);let w=Zk(v),_=p.createHref(v);s.replaceState(w,"",_),o&&l&&l({action:a,location:p.location})}let p={get action(){return a},get location(){return e(i,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Gk,c),l=m,()=>{i.removeEventListener(Gk,c),l=null}},createHref(m){return t(i,m)},encodeLocation(m){let g=QW(typeof m=="string"?m:od(m));return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(m){return s.go(m)}};return p}var Kk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kk||(Kk={}));function eY(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yc(t):t,i=JA(r.pathname||"/",n);if(i==null)return null;let o=XA(e);tY(o);let s=null;for(let a=0;s==null&&a<o.length;++a)s=uY(o[a],hY(i));return s}function XA(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(hn(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=Os([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(hn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),XA(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:lY(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of QA(o.path))i(o,s,l)}),t}function QA(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 s=QA(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function tY(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nY=/^:\w+$/,rY=3,iY=2,oY=1,sY=10,aY=-2,Xk=e=>e==="*";function lY(e,t){let n=e.split("/"),r=n.length;return n.some(Xk)&&(r+=aY),t&&(r+=iY),n.filter(i=>!Xk(i)).reduce((i,o)=>i+(nY.test(o)?rY:o===""?oY:sY),r)}function cY(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 uY(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=fY({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=a.route;o.push({params:r,pathname:Os([i,f.pathname]),pathnameBase:vY(Os([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Os([i,f.pathnameBase]))}return o}function fY(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dY(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,f,h)=>{if(f==="*"){let p=a[h]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=pY(a[h]||"",f),c},{}),pathname:o,pathnameBase:s,pattern:e}}function dY(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function hY(e){try{return decodeURI(e)}catch(t){return qS(!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 pY(e,t){try{return decodeURIComponent(e)}catch(n){return qS(!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 JA(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 qS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mY(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Yc(e):e;return{pathname:n?n.startsWith("/")?n:gY(n,t):t,search:yY(r),hash:_Y(i)}}function gY(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 Z0(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 eI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tI(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Yc(e):(i=Ug({},e),hn(!i.pathname||!i.pathname.includes("?"),Z0("?","pathname","search",i)),hn(!i.pathname||!i.pathname.includes("#"),Z0("#","pathname","hash",i)),hn(!i.search||!i.search.includes("#"),Z0("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=mY(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Os=e=>e.join("/").replace(/\/\/+/g,"/"),vY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yY=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_Y=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class bY{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function wY(e){return e instanceof bY}const xY=["post","put","patch","delete"];[...xY];/**
|
||
* React Router v6.6.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function 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 SY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const CY=typeof Object.is=="function"?Object.is:SY,{useState:EY,useEffect:TY,useLayoutEffect:OY,useDebugValue:PY}=Qb;function kY(e,t,n){const r=t(),[{inst:i},o]=EY({inst:{value:r,getSnapshot:t}});return OY(()=>{i.value=r,i.getSnapshot=t,K0(i)&&o({inst:i})},[e,r,t]),TY(()=>(K0(i)&&o({inst:i}),e(()=>{K0(i)&&o({inst:i})})),[e]),PY(r),r}function K0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!CY(n,r)}catch{return!0}}function MY(e,t,n){return t()}const RY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NY=!RY,LY=NY?MY:kY;"useSyncExternalStore"in Qb&&(e=>e.useSyncExternalStore)(Qb);const DY=H.createContext(null),AY=H.createContext(null),Qy=H.createContext(null),jd=H.createContext(null),Jy=H.createContext(null),fl=H.createContext({outlet:null,matches:[]}),nI=H.createContext(null);function IY(e,t){let{relative:n}=t===void 0?{}:t;qc()||hn(!1);let{basename:r,navigator:i}=H.useContext(jd),{hash:o,pathname:s,search:a}=GS(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Os([r,s])),i.createHref({pathname:l,search:a,hash:o})}function qc(){return H.useContext(Jy)!=null}function Mn(){return qc()||hn(!1),H.useContext(Jy).location}function Fo(){qc()||hn(!1);let{basename:e,navigator:t}=H.useContext(jd),{matches:n}=H.useContext(fl),{pathname:r}=Mn(),i=JSON.stringify(eI(n).map(a=>a.pathnameBase)),o=H.useRef(!1);return H.useEffect(()=>{o.current=!0}),H.useCallback(function(a,l){if(l===void 0&&(l={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=tI(a,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:Os([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function Ks(){let{matches:e}=H.useContext(fl),t=e[e.length-1];return t?t.params:{}}function GS(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=H.useContext(fl),{pathname:i}=Mn(),o=JSON.stringify(eI(r).map(s=>s.pathnameBase));return H.useMemo(()=>tI(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function FY(e,t){qc()||hn(!1);let{navigator:n}=H.useContext(jd),r=H.useContext(Qy),{matches:i}=H.useContext(fl),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Mn(),c;if(t){var f;let v=typeof t=="string"?Yc(t):t;a==="/"||(f=v.pathname)!=null&&f.startsWith(a)||hn(!1),c=v}else c=l;let h=c.pathname||"/",p=a==="/"?h:h.slice(a.length)||"/",m=eY(e,{pathname:p}),g=zY(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Os([a,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:Os([a,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return t&&g?H.createElement(Jy.Provider,{value:{location:uw({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hs.Pop}},g):g}function $Y(){let e=WY(),t=wY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return H.createElement(H.Fragment,null,H.createElement("h2",null,"Unhandled Thrown Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},t),n?H.createElement("pre",{style:i},n):null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:o},"errorElement")," props on ",H.createElement("code",{style:o},"<Route>")))}class jY extends H.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?H.createElement(fl.Provider,{value:this.props.routeContext},H.createElement(nI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BY(e){let{routeContext:t,match:n,children:r}=e,i=H.useContext(DY);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),H.createElement(fl.Provider,{value:t},r)}function zY(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));o>=0||hn(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,s,a)=>{let l=s.route.id?i==null?void 0:i[s.route.id]:null,c=n?s.route.errorElement||H.createElement($Y,null):null,f=t.concat(r.slice(0,a+1)),h=()=>H.createElement(BY,{match:s,routeContext:{outlet:o,matches:f}},l?c:s.route.element!==void 0?s.route.element:o);return n&&(s.route.errorElement||a===0)?H.createElement(jY,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var Qk;(function(e){e.UseRevalidator="useRevalidator"})(Qk||(Qk={}));var Vg;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Vg||(Vg={}));function UY(e){let t=H.useContext(Qy);return t||hn(!1),t}function VY(e){let t=H.useContext(fl);return t||hn(!1),t}function HY(e){let t=VY(),n=t.matches[t.matches.length-1];return n.route.id||hn(!1),n.route.id}function WY(){var e;let t=H.useContext(nI),n=UY(Vg.UseRouteError),r=HY(Vg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function ZS(e){let{to:t,replace:n,state:r,relative:i}=e;qc()||hn(!1);let o=H.useContext(Qy),s=Fo();return H.useEffect(()=>{o&&o.navigation.state!=="idle"||s(t,{replace:n,state:r,relative:i})}),null}function yt(e){hn(!1)}function YY(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hs.Pop,navigator:o,static:s=!1}=e;qc()&&hn(!1);let a=t.replace(/^\/*/,"/"),l=H.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Yc(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=H.useMemo(()=>{let v=JA(c,a);return v==null?null:{pathname:v,search:f,hash:h,state:p,key:m}},[a,c,f,h,p,m]);return g==null?null:H.createElement(jd.Provider,{value:l},H.createElement(Jy.Provider,{children:n,value:{location:g,navigationType:i}}))}function e_(e){let{children:t,location:n}=e,r=H.useContext(AY),i=r&&!t?r.router.routes:fw(t);return FY(i,n)}var Jk;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Jk||(Jk={}));new Promise(()=>{});function fw(e,t){t===void 0&&(t=[]);let n=[];return H.Children.forEach(e,(r,i)=>{if(!H.isValidElement(r))return;if(r.type===H.Fragment){n.push.apply(n,fw(r.props.children,t));return}r.type!==yt&&hn(!1),!r.props.index||!r.props.children||hn(!1);let o=[...t,i],s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=fw(r.props.children,o)),n.push(s)}),n}/**
|
||
* React Router DOM v6.6.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hg.apply(this,arguments)}function rI(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 qY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GY(e,t){return e.button===0&&(!t||t==="_self")&&!qY(e)}const ZY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],KY=["aria-current","caseSensitive","className","end","style","to","children"];function XY(e){let{basename:t,children:n,window:r}=e,i=H.useRef();i.current==null&&(i.current=KW({window:r,v5Compat:!0}));let o=i.current,[s,a]=H.useState({action:o.action,location:o.location});return H.useLayoutEffect(()=>o.listen(a),[o]),H.createElement(YY,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const At=H.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f}=t,h=rI(t,ZY),p=IY(c,{relative:i}),m=QY(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i});function g(v){r&&r(v),v.defaultPrevented||m(v)}return H.createElement("a",Hg({},h,{href:p,onClick:o?r:g,ref:n,target:l}))}),iI=H.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,children:c}=t,f=rI(t,KY),h=GS(l,{relative:f.relative}),p=Mn(),m=H.useContext(Qy),{navigator:g}=H.useContext(jd),v=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,w=p.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(w=w.toLowerCase(),_=_?_.toLowerCase():null,v=v.toLowerCase());let b=w===v||!s&&w.startsWith(v)&&w.charAt(v.length)==="/",x=_!=null&&(_===v||!s&&_.startsWith(v)&&_.charAt(v.length)==="/"),E=b?r:void 0,P;typeof o=="function"?P=o({isActive:b,isPending:x}):P=[o,b?"active":null,x?"pending":null].filter(Boolean).join(" ");let k=typeof a=="function"?a({isActive:b,isPending:x}):a;return H.createElement(At,Hg({},f,{"aria-current":E,className:P,ref:n,style:k,to:l}),typeof c=="function"?c({isActive:b,isPending:x}):c)});var e3;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(e3||(e3={}));var t3;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(t3||(t3={}));function QY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Fo(),l=Mn(),c=GS(e,{relative:s});return H.useCallback(f=>{if(GY(f,n)){f.preventDefault();let h=r!==void 0?r:od(l)===od(c);a(e,{replace:h,state:i,preventScrollReset:o,relative:s})}},[l,a,c,r,i,n,e,o,s])}const JY="shlink-web-client",eq="A React-based progressive web application for shlink",tq="/shlink-web-client/feature/update-coding-standard",nq="https://github.com/shlinkio/shlink-web-client",rq="MIT",iq={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",start:"vite serve --host=0.0.0.0",build:"tsc --noEmit && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs","build:serve":"serve -p 5000 ./build",test:"jest --env=jsdom --colors","test:coverage":"npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary","test:ci":"npm run test:coverage -- --coverageReporters=clover --ci","test:pretty":"npm run test:coverage -- --coverageReporters=html","test:verbose":"npm run test -- --verbose"},oq={"@babel/preset-env":"^7.20.2","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.18.6","@fortawesome/fontawesome-free":"^6.2.1","@fortawesome/fontawesome-svg-core":"^6.2.1","@fortawesome/free-regular-svg-icons":"^6.2.1","@fortawesome/free-solid-svg-icons":"^6.2.1","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.0.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5",redux:"^4.2.0","redux-localstorage-simple":"^2.5.1","redux-thunk":"^2.4.2",uuid:"^8.3.2","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"},sq={"@shlinkio/eslint-config-js-coding-standard":"~2.1.0","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^14.4.3","@types/jest":"^29.2.4","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^3.1.0","adm-zip":"^0.5.10","babel-jest":"^29.3.1",chalk:"^5.2.0",eslint:"^8.30.0","identity-obj-proxy":"^3.0.0",jest:"^29.3.1","jest-canvas-mock":"^2.4.0","jest-environment-jsdom":"^29.3.1","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",serve:"^14.1.2",stylelint:"^14.16.0","ts-mockery":"^1.2.0",typescript:"^4.9.4",vite:"^4.1.1","vite-plugin-pwa":"^0.14.1"},aq=[">0.2%","not dead","not ie <= 11","not op_mini all"],Wg={name:JY,description:eq,private:!1,homepage:tq,repository:nq,license:rq,scripts:iq,dependencies:oq,devDependencies:sq,browserslist:aq};var ki,Qi=".",oI="function",sI="string",aI="__global__",KS="Provider",lq=0,XS=Array.prototype.slice,cq=function(t,n){var r=t[n];if(r===void 0&&ki.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},t_=function(t){var n;return this.nested[t]||(n=ki.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},lI=function(t){return t.split(Qi).reduce(cq,this)},uq=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var a=0,l=function(f){if(f)throw f;t[a]&&t[a++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},fq=function(t,n){var r,i;return typeof t===oI&&(n=t,t=aI),r=t.split(Qi),i=r.shift(),r.length?t_.call(this,i).middleware(r.join(Qi),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},dq=function(t,n){return n(t)},n3=function(t,n){return(t[n]||[]).concat(t.__global__||[])},hq=function(t,n){var r,i,o,s,a;return this.id,o=this.container,s=this.decorators,a=this.middlewares,r=t+KS,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=n3(s,t).reduce(dq,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:uq(n3(a,t),t,f,o)}},Object.defineProperties(o,i),this},cI=function(t,n){var r,i;return r=t.split(Qi),this.providerMap[t]&&r.length===1&&!this.container[t+KS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(t_.call(this,i).provider(r.join(Qi),n),this):hq.call(this,i,n))},QS=function(t,n){return cI.call(this,t,function(){this.$get=n})},uI=function(t,n,r){var i=arguments.length>3?XS.call(arguments,3):[],o=this;return QS.call(this,t,function(){var a=n,l=i.map(lI,o.container);return r?new(n.bind.apply(n,[null].concat(l))):a.apply(null,l)})},pq=function(t,n){return uI.apply(this,[t,n,!0].concat(XS.call(arguments,2)))},mq=function(t,n){return uI.apply(this,[t,n,!1].concat(XS.call(arguments,2)))},fI=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},dI=function(t,n){var r=t[n];return r||(r={},fI.call(t,n,r)),r},gq=function(t,n){var r;return r=t.split(Qi),t=r.pop(),fI.call(r.reduce(dI,this.container),t,n),this},vq=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},yq=function(t,n){var r=t.split(Qi);return t=r.pop(),vq.call(r.reduce(dI,this.container),t,n),this},hI=function(t,n){var r,i;return typeof t===oI&&(n=t,t=aI),r=t.split(Qi),i=r.shift(),r.length?t_.call(this,i).decorator(r.join(Qi),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},_q=function(t){return this.deferred.push(t),this},bq=function(t){return(t||[]).map(lI,this.container)},wq=function(t,n){return QS.call(this,t,function(i){return{instance:n.bind(n,i)}})},xq=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},JS=function(t){return Object.keys(t||this.container||{}).filter(xq)},Yg={},Sq=function(t){var n;return typeof t===sI?(n=Yg[t],n||(Yg[t]=n=new ki,n.constant("BOTTLE_NAME",t)),n):new ki},Cq=function(t){typeof t===sI?delete Yg[t]:Yg={}},pI=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},r3=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+KS]},Eq=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(Qi);s.length>1&&s.forEach(r3,t_.call(this,s[0])),r3.call(this,o),this.provider(o,n[o])}},this)},Tq=function(t){return this.deferred.forEach(function(r){r(t)}),this};ki=function e(t){if(!(this instanceof e))return e.pop(t);this.id=lq++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:hI.bind(this),$register:pI.bind(this),$list:JS.bind(this)}};ki.prototype={constant:yq,decorator:hI,defer:_q,digest:bq,factory:QS,instanceFactory:wq,list:JS,middleware:fq,provider:cI,resetProviders:Eq,register:pI,resolve:Tq,service:pq,serviceFactory:mq,value:gq};ki.pop=Sq;ki.clear=Cq;ki.list=JS;ki.config={strict:!1};const Oq=ki;var Pq=function(){return!0};const eC=Pq;function kt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function bt(e){return function t(n){return arguments.length===0||kt(n)?t:e.apply(this,arguments)}}function ut(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return kt(n)?t:bt(function(i){return e(n,i)});default:return kt(n)&&kt(r)?t:kt(n)?bt(function(i){return e(i,r)}):kt(r)?bt(function(i){return e(n,i)}):e(n,r)}}}function kq(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 Gc(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,s){return t.apply(this,arguments)};case 6:return function(n,r,i,o,s,a){return t.apply(this,arguments)};case 7:return function(n,r,i,o,s,a,l){return t.apply(this,arguments)};case 8:return function(n,r,i,o,s,a,l,c){return t.apply(this,arguments)};case 9:return function(n,r,i,o,s,a,l,c,f){return t.apply(this,arguments)};case 10:return function(n,r,i,o,s,a,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 n_(e,t,n){return function(){for(var r=[],i=0,o=e,s=0;s<t.length||i<arguments.length;){var a;s<t.length&&(!kt(t[s])||i>=arguments.length)?a=t[s]:(a=arguments[i],i+=1),r[s]=a,kt(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):Gc(o,n_(e,r,n))}}var Mq=ut(function(t,n){return t===1?bt(n):Gc(t,n_(t,[],n))});const qg=Mq;function Xs(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return kt(n)?t:ut(function(o,s){return e(n,o,s)});case 2:return kt(n)&&kt(r)?t:kt(n)?ut(function(o,s){return e(o,r,s)}):kt(r)?ut(function(o,s){return e(n,o,s)}):bt(function(o){return e(n,r,o)});default:return kt(n)&&kt(r)&&kt(i)?t:kt(n)&&kt(r)?ut(function(o,s){return e(o,s,i)}):kt(n)&&kt(i)?ut(function(o,s){return e(o,r,s)}):kt(r)&&kt(i)?ut(function(o,s){return e(n,o,s)}):kt(n)?bt(function(o){return e(o,r,i)}):kt(r)?bt(function(o){return e(n,o,i)}):kt(i)?bt(function(o){return e(n,r,o)}):e(n,r,i)}}}const Bd=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Rq(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function tC(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!Bd(i)){for(var o=0;o<e.length;){if(typeof i[e[o]]=="function")return i[e[o]].apply(i,r);o+=1}if(Rq(i)){var s=t.apply(null,r);return s(i)}}return n.apply(this,arguments)}}const sd={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var Nq=ut(function(t,n){return n>t?n:t});const mI=Nq;function um(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function r_(e){return Object.prototype.toString.call(e)==="[object String]"}var Lq=bt(function(t){return Bd(t)?!0:!t||typeof t!="object"||r_(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const gI=Lq;var Dq=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 Aq(e){return new Dq(e)}var Iq=ut(function(t,n){return Gc(t.length,function(){return t.apply(n,arguments)})});const Fq=Iq;function $q(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 i3(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 o3(e,t,n,r){return e["@@transducer/result"](n[r](Fq(e["@@transducer/step"],e),t))}var s3=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Zc(e,t,n){if(typeof e=="function"&&(e=Aq(e)),gI(n))return $q(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return o3(e,t,n,"fantasy-land/reduce");if(n[s3]!=null)return i3(e,t,n[s3]());if(typeof n.next=="function")return i3(e,t,n);if(typeof n.reduce=="function")return o3(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var jq=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=sd.init,e.prototype["@@transducer/result"]=sd.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),Bq=ut(function(t,n){return new jq(t,n)});const zq=Bq;function Mr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var a3=Object.prototype.toString,Uq=function(){return a3.call(arguments)==="[object Arguments]"?function(t){return a3.call(t)==="[object Arguments]"}:function(t){return Mr("callee",t)}}();const vI=Uq;var Vq=!{toString:null}.propertyIsEnumerable("toString"),l3=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c3=function(){return arguments.propertyIsEnumerable("length")}(),Hq=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},Wq=bt(typeof Object.keys=="function"&&!c3?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=c3&&vI(t);for(n in t)Mr(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(Vq)for(r=l3.length-1;r>=0;)n=l3[r],Mr(n,t)&&!Hq(i,n)&&(i[i.length]=n),r-=1;return i});const Ji=Wq;var Yq=ut(tC(["fantasy-land/map","map"],zq,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return qg(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Zc(function(r,i){return r[i]=t(n[i]),r},{},Ji(n));default:return um(t,n)}}));const zd=Yq,dw=Number.isInteger||function(t){return t<<0===t};var qq=ut(function(t,n){var r=t<0?n.length+t:t;return r_(n)?n.charAt(r):n[r]});const yI=qq;var Gq=ut(function(t,n){return t.map(function(r){for(var i=n,o=0,s;o<r.length;){if(i==null)return;s=r[o],i=dw(s)?yI(s,i):i[s],o+=1}return i})});const Zq=Gq;var Kq=ut(function(t,n){return Zq([t],n)[0]});const Xq=Kq;var Qq=ut(function(t,n){return Xq([t],n)});const ct=Qq;var Jq=Xs(Zc);const nC=Jq;var eG=bt(function(t){return function(){return t}});const X0=eG;var tG=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))}:Zc(function(r,i){return kq(r,zd(i,n))},[],t)});const nG=tG;var rG=bt(function(t){for(var n=Ji(t),r=n.length,i=[],o=0;o<r;)i[o]=t[n[o]],o+=1;return i});const Kc=rG;var iG=Xs(function(t,n,r){var i={};for(var o in r)i[o]=r[o];return i[t]=n,i});const ad=iG;var oG=bt(function(t){return t==null});const $o=oG;var sG=Xs(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var o=!$o(r)&&Mr(i,r)?r[i]:dw(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(dw(i)&&Bd(r)){var s=[].concat(r);return s[i]=n,s}else return ad(i,n,r)});const Ol=sG;function aG(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var lG=ut(function(t,n){var r=qg(t,n);return qg(t,function(){return Zc(nG,zd(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const cG=lG;var uG=bt(function(t){return cG(t.length,t)});const fG=uG;function dG(e){return function t(n){for(var r,i,o,s=[],a=0,l=n.length;a<l;){if(gI(n[a]))for(r=e?t(n[a]):n[a],o=0,i=r.length;o<i;)s[s.length]=r[o],o+=1;else s[s.length]=n[a];a+=1}return s}}function hG(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var pG=bt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});const Gg=pG;function _I(e,t,n,r){var i=function(s){for(var a=t.length,l=0;l<a;){if(e===t[l])return n[l];l+=1}t[l+1]=e,n[l+1]=s;for(var c in e)s[c]=r?_I(e[c],t,n,!0):e[c];return s};switch(Gg(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return hG(e);default:return e}}var mG=bt(function(t){return!t});const gG=mG;var vG=fG(gG);const yG=vG;function _G(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function rC(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return Bd(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var bG=Xs(rC("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)}));const bI=bG;var wG=bt(rC("tail",bI(1,1/0)));const xG=wG;function It(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Gc(arguments[0].length,nC(_G,arguments[0],xG(arguments)))}var SG=bt(function(t){return r_(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});const hw=SG;function CG(e){return e}var EG=bt(CG);const iC=EG;function u3(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function f3(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function TG(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function OG(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const Q0=typeof Object.is=="function"?Object.is:OG;function d3(e,t,n,r){var i=u3(e),o=u3(t);function s(a,l){return oC(a,l,n.slice(),r.slice())}return!f3(function(a,l){return!f3(s,l,a)},o,i)}function oC(e,t,n,r){if(Q0(e,t))return!0;var i=Gg(e);if(i!==Gg(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"&&TG(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&Q0(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Q0(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:d3(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:d3(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 s=Ji(e);if(s.length!==Ji(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(o=s.length-1;o>=0;){var c=s[o];if(!(Mr(c,t)&&oC(t[c],e[c],a,l)))return!1;o-=1}return!0}var PG=ut(function(t,n){return oC(t,n,[],[])});const sC=PG;function kG(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(sC(e[n],t))return n;n+=1}return-1}function MG(e,t){return kG(t,e,0)>=0}function J0(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 Nu=function(t){return(t<10?"0":"")+t},RG=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Nu(t.getUTCMonth()+1)+"-"+Nu(t.getUTCDate())+"T"+Nu(t.getUTCHours())+":"+Nu(t.getUTCMinutes())+":"+Nu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const NG=RG;function LG(e){return function(){return!e.apply(this,arguments)}}function DG(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 Zg(e){return Object.prototype.toString.call(e)==="[object Object]"}var AG=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=sd.init,e.prototype["@@transducer/result"]=sd.result,e.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e}(),IG=ut(function(t,n){return new AG(t,n)});const FG=IG;var $G=ut(tC(["filter"],FG,function(e,t){return Zg(t)?Zc(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},Ji(t)):DG(e,t)}));const wI=$G;var jG=ut(function(t,n){return wI(LG(t),n)});const Ud=jG;function xI(e,t){var n=function(s){var a=t.concat([e]);return MG(s,a)?"<Circular>":xI(s,a)},r=function(o,s){return um(function(a){return J0(a)+": "+n(o[a])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+um(n,e).join(", ")+"))";case"[object Array]":return"["+um(n,e).concat(r(e,Ud(function(o){return/^\d+$/.test(o)},Ji(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):J0(NG(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())+")":J0(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,Ji(e)).join(", ")+"}"}}var BG=bt(function(t){return xI(t,[])});const zG=BG;var UG=bt(function(t){var n=nC(mI,0,zd(function(r){return r[0].length},t));return Gc(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 i_=UG;var VG=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"]=sd.init,e.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(Mr(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}(),HG=n_(4,[],function(t,n,r,i){return new VG(t,n,r,i)});const WG=HG;var YG=n_(4,[],tC([],WG,function(t,n,r,i){return Zc(function(o,s){var a=r(s);return o[a]=t(Mr(a,o)?o[a]:_I(n,[],[],!1),s),o},{},i)}));const SI=YG;var qG=SI(function(e,t){return e+1},0);const CI=qG;var GG=ut(function(t,n){var r={};for(var i in n)r[i]=n[i];return delete r[t],r});const ZG=GG;var KG=yI(-1);const XG=KG;var QG=bt(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():Bd(t)?[]:r_(t)?"":Zg(t)?{}:vI(t)?function(){return arguments}():void 0});const JG=QG;var eZ=bt(dG(!0));const tZ=eZ;var nZ=bt(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n});const Gu=nZ;var rZ=ut(rC("groupBy",SI(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));const iZ=rZ;var oZ=ut(function(t,n){return qg(t+1,function(){var r=arguments[t];if(r!=null&&aG(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(zG(r)+' does not have a method named "'+n+'"')})});const sZ=oZ;var aZ=bt(function(t){return t!=null&&sC(t,JG(t))});const qn=aZ;function h3(e){return Object.prototype.toString.call(e)==="[object Number]"}var lZ=ut(function(t,n){var r={};return Gc(n.length,function(){var i=t.apply(this,arguments);return Mr(i,r)||(r[i]=n.apply(this,arguments)),r[i]})});const EI=lZ;var cZ=Xs(function(t,n,r){var i={},o;for(o in n)Mr(o,n)&&(i[o]=Mr(o,r)?t(o,n[o],r[o]):n[o]);for(o in r)Mr(o,r)&&!Mr(o,i)&&(i[o]=r[o]);return i});const uZ=cZ;var fZ=Xs(function e(t,n,r){return uZ(function(i,o,s){return Zg(o)&&Zg(s)?e(t,o,s):t(i,o,s)},n,r)});const dZ=fZ;var hZ=ut(function(t,n){return dZ(function(r,i,o){return o},t,n)});const TI=hZ;var pZ=ut(function(t,n){return n<t?n:t});const OI=pZ;var mZ=ut(function(t,n){for(var r={},i={},o=0,s=t.length;o<s;)i[t[o]]=1,o+=1;for(var a in n)i.hasOwnProperty(a)||(r[a]=n[a]);return r});const gZ=mZ;var vZ=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 PI=vZ;var yZ=Xs(function(t,n,r){return sC(n,r[t])});const _Z=yZ;var bZ=ut(function(t,n){if(!(h3(t)&&h3(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 aC=bZ;var wZ=Xs(function(t,n,r){return r.replace(t,n)});const xZ=wZ;var SZ=ut(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,i){var o=t(r),s=t(i);return o<s?-1:o>s?1:0})});const CZ=SZ;var EZ=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(bI(i,i+=t,n));return r});const ld=EZ;var TZ=sZ(0,"toLowerCase");const OZ=TZ;var PZ=bt(function(t){var n=[];for(var r in t)Mr(r,t)&&(n[n.length]=[r,t[r]]);return n});const Kg=PZ;var Lu=`
|
||
\v\f\r \u2028\u2029\uFEFF`,kZ="",MZ=typeof String.prototype.trim=="function",RZ=bt(!MZ||Lu.trim()||!kZ.trim()?function(t){var n=new RegExp("^["+Lu+"]["+Lu+"]*"),r=new RegExp("["+Lu+"]["+Lu+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()});const NZ=RZ;var LZ=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 kI=LZ,lC=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Ps=e=>!!(e!=null&&e.id),o_=e=>!!(e!=null&&e.version),DZ=e=>!!(e!=null&&e.serverNotFound),Vd=e=>Ps(e)?e.id:"",AZ=e=>gZ(["id","autoConnect"],e),s_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",MI=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),RI=e=>e.dir?`${e.field}-${e.dir}`:void 0,IZ=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};var FZ=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 s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},p3=typeof Symbol<"u"&&Symbol,$Z=FZ,jZ=function(){return typeof p3!="function"||typeof Symbol!="function"||typeof p3("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$Z()},BZ="Function.prototype.bind called on incompatible ",eb=Array.prototype.slice,zZ=Object.prototype.toString,UZ="[object Function]",VZ=function(t){var n=this;if(typeof n!="function"||zZ.call(n)!==UZ)throw new TypeError(BZ+n);for(var r=eb.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(eb.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(eb.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l<s;l++)a.push("$"+l);if(i=Function("binder","return function ("+a.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},HZ=VZ,cC=Function.prototype.bind||HZ,WZ=cC,YZ=WZ.call(Function.call,Object.prototype.hasOwnProperty),lt,cd=SyntaxError,NI=Function,fc=TypeError,tb=function(e){try{return NI('"use strict"; return ('+e+").constructor;")()}catch{}},Ba=Object.getOwnPropertyDescriptor;if(Ba)try{Ba({},"")}catch{Ba=null}var nb=function(){throw new fc},qZ=Ba?function(){try{return arguments.callee,nb}catch{try{return Ba(arguments,"callee").get}catch{return nb}}}():nb,Pl=jZ(),es=Object.getPrototypeOf||function(e){return e.__proto__},$l={},GZ=typeof Uint8Array>"u"?lt:es(Uint8Array),dc={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Pl?es([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":$l,"%AsyncGenerator%":$l,"%AsyncGeneratorFunction%":$l,"%AsyncIteratorPrototype%":$l,"%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%":NI,"%GeneratorFunction%":$l,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Pl?es(es([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Pl?lt:es(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"||!Pl?lt:es(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Pl?es(""[Symbol.iterator]()):lt,"%Symbol%":Pl?Symbol:lt,"%SyntaxError%":cd,"%ThrowTypeError%":qZ,"%TypedArray%":GZ,"%TypeError%":fc,"%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},ZZ=function e(t){var n;if(t==="%AsyncFunction%")n=tb("async function () {}");else if(t==="%GeneratorFunction%")n=tb("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=tb("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=es(i.prototype))}return dc[t]=n,n},m3={"%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"]},a_=cC,Xg=YZ,KZ=a_.call(Function.call,Array.prototype.concat),XZ=a_.call(Function.apply,Array.prototype.splice),g3=a_.call(Function.call,String.prototype.replace),Qg=a_.call(Function.call,String.prototype.slice),QZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,JZ=/\\(\\)?/g,eK=function(t){var n=Qg(t,0,1),r=Qg(t,-1);if(n==="%"&&r!=="%")throw new cd("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new cd("invalid intrinsic syntax, expected opening `%`");var i=[];return g3(t,QZ,function(o,s,a,l){i[i.length]=a?g3(l,JZ,"$1"):s||o}),i},tK=function(t,n){var r=t,i;if(Xg(m3,r)&&(i=m3[r],r="%"+i[0]+"%"),Xg(dc,r)){var o=dc[r];if(o===$l&&(o=ZZ(r)),typeof o>"u"&&!n)throw new fc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new cd("intrinsic "+t+" does not exist!")},uC=function(t,n){if(typeof t!="string"||t.length===0)throw new fc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new fc('"allowMissing" argument must be a boolean');var r=eK(t),i=r.length>0?r[0]:"",o=tK("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],XZ(r,KZ([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],m=Qg(p,0,1),g=Qg(p,-1);if((m==='"'||m==="'"||m==="`"||g==='"'||g==="'"||g==="`")&&m!==g)throw new cd("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,s="%"+i+"%",Xg(dc,s))a=dc[s];else if(a!=null){if(!(p in a)){if(!n)throw new fc("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ba&&f+1>=r.length){var v=Ba(a,p);h=!!v,h&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[p]}else h=Xg(a,p),a=a[p];h&&!l&&(dc[s]=a)}}return a},pw={},nK={get exports(){return pw},set exports(e){pw=e}};(function(e){var t=cC,n=uC,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var m=s(p,"length");m.configurable&&a(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c})(nK);var LI=uC,DI=pw,rK=DI(LI("String.prototype.indexOf")),iK=function(t,n){var r=LI(t,!!n);return typeof r=="function"&&rK(t,".prototype.")>-1?DI(r):r};const oK={},sK=Object.freeze(Object.defineProperty({__proto__:null,default:oK},Symbol.toStringTag,{value:"Module"})),aK=m7(sK);var fC=typeof Map=="function"&&Map.prototype,rb=Object.getOwnPropertyDescriptor&&fC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jg=fC&&rb&&typeof rb.get=="function"?rb.get:null,lK=fC&&Map.prototype.forEach,dC=typeof Set=="function"&&Set.prototype,ib=Object.getOwnPropertyDescriptor&&dC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ev=dC&&ib&&typeof ib.get=="function"?ib.get:null,cK=dC&&Set.prototype.forEach,uK=typeof WeakMap=="function"&&WeakMap.prototype,yf=uK?WeakMap.prototype.has:null,fK=typeof WeakSet=="function"&&WeakSet.prototype,_f=fK?WeakSet.prototype.has:null,dK=typeof WeakRef=="function"&&WeakRef.prototype,v3=dK?WeakRef.prototype.deref:null,hK=Boolean.prototype.valueOf,pK=Object.prototype.toString,mK=Function.prototype.toString,gK=String.prototype.match,hC=String.prototype.slice,ps=String.prototype.replace,vK=String.prototype.toUpperCase,y3=String.prototype.toLowerCase,AI=RegExp.prototype.test,_3=Array.prototype.concat,zi=Array.prototype.join,yK=Array.prototype.slice,b3=Math.floor,mw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ob=Object.getOwnPropertySymbols,gw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mc||"symbol")?Symbol.toStringTag:null,II=Object.prototype.propertyIsEnumerable,w3=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function x3(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||AI.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-b3(-e):b3(e);if(r!==e){var i=String(r),o=hC.call(t,i.length+1);return ps.call(i,n,"$&_")+"."+ps.call(ps.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ps.call(t,n,"$&_")}var sb=aK.custom,ab=sb&&$I(sb)?sb:null,_K=function e(t,n,r,i){var o=n||{};if(ts(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ts(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 s=ts(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ts(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(ts(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=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 BI(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?x3(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?x3(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 vw(t)?"[Array]":"[Object]";var h=$K(o,r);if(typeof i>"u")i=[];else if(jI(i,t)>=0)return"[Circular]";function p(ee,Z,te){if(Z&&(i=yK.call(i),i.push(Z)),te){var ne={depth:o.depth};return ts(o,"quoteStyle")&&(ne.quoteStyle=o.quoteStyle),e(ee,ne,r+1,i)}return e(ee,o,r+1,i)}if(typeof t=="function"){var m=kK(t),g=mp(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(g.length>0?" { "+zi.call(g,", ")+" }":"")}if($I(t)){var v=Mc?ps.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):gw.call(t);return typeof t=="object"&&!Mc?Du(v):v}if(AK(t)){for(var w="<"+y3.call(String(t.nodeName)),_=t.attributes||[],b=0;b<_.length;b++)w+=" "+_[b].name+"="+FI(bK(_[b].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+y3.call(String(t.nodeName))+">",w}if(vw(t)){if(t.length===0)return"[]";var x=mp(t,p);return h&&!FK(x)?"["+yw(x,h)+"]":"[ "+zi.call(x,", ")+" ]"}if(SK(t)){var E=mp(t,p);return"cause"in t&&!II.call(t,"cause")?"{ ["+String(t)+"] "+zi.call(_3.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+zi.call(E,", ")+" }"}if(typeof t=="object"&&s){if(ab&&typeof t[ab]=="function")return t[ab]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(MK(t)){var P=[];return lK.call(t,function(ee,Z){P.push(p(Z,t,!0)+" => "+p(ee,t))}),S3("Map",Jg.call(t),P,h)}if(LK(t)){var k=[];return cK.call(t,function(ee){k.push(p(ee,t))}),S3("Set",ev.call(t),k,h)}if(RK(t))return lb("WeakMap");if(DK(t))return lb("WeakSet");if(NK(t))return lb("WeakRef");if(EK(t))return Du(p(Number(t)));if(OK(t))return Du(p(mw.call(t)));if(TK(t))return Du(hK.call(t));if(CK(t))return Du(p(String(t)));if(!wK(t)&&!xK(t)){var N=mp(t,p),D=w3?w3(t)===Object.prototype:t instanceof Object||t.constructor===Object,U=t instanceof Object?"":"null prototype",A=!D&&rr&&Object(t)===t&&rr in t?hC.call(Qs(t),8,-1):U?"Object":"",Y=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",q=Y+(A||U?"["+zi.call(_3.call([],A||[],U||[]),": ")+"] ":"");return N.length===0?q+"{}":h?q+"{"+yw(N,h)+"}":q+"{ "+zi.call(N,", ")+" }"}return String(t)};function FI(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function bK(e){return ps.call(String(e),/"/g,""")}function vw(e){return Qs(e)==="[object Array]"&&(!rr||!(typeof e=="object"&&rr in e))}function wK(e){return Qs(e)==="[object Date]"&&(!rr||!(typeof e=="object"&&rr in e))}function xK(e){return Qs(e)==="[object RegExp]"&&(!rr||!(typeof e=="object"&&rr in e))}function SK(e){return Qs(e)==="[object Error]"&&(!rr||!(typeof e=="object"&&rr in e))}function CK(e){return Qs(e)==="[object String]"&&(!rr||!(typeof e=="object"&&rr in e))}function EK(e){return Qs(e)==="[object Number]"&&(!rr||!(typeof e=="object"&&rr in e))}function TK(e){return Qs(e)==="[object Boolean]"&&(!rr||!(typeof e=="object"&&rr in e))}function $I(e){if(Mc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!gw)return!1;try{return gw.call(e),!0}catch{}return!1}function OK(e){if(!e||typeof e!="object"||!mw)return!1;try{return mw.call(e),!0}catch{}return!1}var PK=Object.prototype.hasOwnProperty||function(e){return e in this};function ts(e,t){return PK.call(e,t)}function Qs(e){return pK.call(e)}function kK(e){if(e.name)return e.name;var t=gK.call(mK.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function jI(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 MK(e){if(!Jg||!e||typeof e!="object")return!1;try{Jg.call(e);try{ev.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function RK(e){if(!yf||!e||typeof e!="object")return!1;try{yf.call(e,yf);try{_f.call(e,_f)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function NK(e){if(!v3||!e||typeof e!="object")return!1;try{return v3.call(e),!0}catch{}return!1}function LK(e){if(!ev||!e||typeof e!="object")return!1;try{ev.call(e);try{Jg.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function DK(e){if(!_f||!e||typeof e!="object")return!1;try{_f.call(e,_f);try{yf.call(e,yf)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function AK(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function BI(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return BI(hC.call(e,0,t.maxStringLength),t)+r}var i=ps.call(ps.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,IK);return FI(i,"single",t)}function IK(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":"")+vK.call(t.toString(16))}function Du(e){return"Object("+e+")"}function lb(e){return e+" { ? }"}function S3(e,t,n,r){var i=r?yw(n,r):zi.call(n,", ");return e+" ("+t+") {"+i+"}"}function FK(e){for(var t=0;t<e.length;t++)if(jI(e[t],`
|
||
`)>=0)return!1;return!0}function $K(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=zi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:zi.call(Array(t+1),n)}}function yw(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+zi.call(e,","+n)+`
|
||
`+t.prev}function mp(e,t){var n=vw(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ts(e,i)?t(e[i],e):""}var o=typeof ob=="function"?ob(e):[],s;if(Mc){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)ts(e,l)&&(n&&String(Number(l))===l&&l<e.length||Mc&&s["$"+l]instanceof Symbol||(AI.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof ob=="function")for(var c=0;c<o.length;c++)II.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}var pC=uC,Xc=iK,jK=_K,BK=pC("%TypeError%"),gp=pC("%WeakMap%",!0),vp=pC("%Map%",!0),zK=Xc("WeakMap.prototype.get",!0),UK=Xc("WeakMap.prototype.set",!0),VK=Xc("WeakMap.prototype.has",!0),HK=Xc("Map.prototype.get",!0),WK=Xc("Map.prototype.set",!0),YK=Xc("Map.prototype.has",!0),mC=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},qK=function(e,t){var n=mC(e,t);return n&&n.value},GK=function(e,t,n){var r=mC(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},ZK=function(e,t){return!!mC(e,t)},KK=function(){var t,n,r,i={assert:function(o){if(!i.has(o))throw new BK("Side channel does not contain "+jK(o))},get:function(o){if(gp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return zK(t,o)}else if(vp){if(n)return HK(n,o)}else if(r)return qK(r,o)},has:function(o){if(gp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return VK(t,o)}else if(vp){if(n)return YK(n,o)}else if(r)return ZK(r,o);return!1},set:function(o,s){gp&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new gp),UK(t,o,s)):vp?(n||(n=new vp),WK(n,o,s)):(r||(r={key:{},next:null}),GK(r,o,s))}};return i},XK=String.prototype.replace,QK=/%20/g,cb={RFC1738:"RFC1738",RFC3986:"RFC3986"},gC={default:cb.RFC3986,formatters:{RFC1738:function(e){return XK.call(e,QK,"+")},RFC3986:function(e){return String(e)}},RFC1738:cb.RFC1738,RFC3986:cb.RFC3986},JK=gC,ub=Object.prototype.hasOwnProperty,Pa=Array.isArray,Fi=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),eX=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Pa(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},zI=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},tX=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Pa(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!ub.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 Pa(t)&&!Pa(n)&&(i=zI(t,r)),Pa(t)&&Pa(n)?(n.forEach(function(o,s){if(ub.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,r):t.push(o)}else t[s]=o}),t):Object.keys(n).reduce(function(o,s){var a=n[s];return ub.call(o,s)?o[s]=e(o[s],a,r):o[s]=a,o},i)},nX=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},rX=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}},iX=function(t,n,r,i,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===JK.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Fi[c];continue}if(c<2048){a=a+(Fi[192|c>>6]+Fi[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Fi[224|c>>12]+Fi[128|c>>6&63]+Fi[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Fi[240|c>>18]+Fi[128|c>>12&63]+Fi[128|c>>6&63]+Fi[128|c&63]}return a},oX=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],f=s[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:s,prop:c}),r.push(f))}return eX(n),t},sX=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},aX=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},lX=function(t,n){return[].concat(t,n)},cX=function(t,n){if(Pa(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},UI={arrayToObject:zI,assign:nX,combine:lX,compact:oX,decode:rX,encode:iX,isBuffer:aX,isRegExp:sX,maybeMap:cX,merge:tX},VI=KK,_w=UI,bf=gC,uX=Object.prototype.hasOwnProperty,C3={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},mo=Array.isArray,fX=String.prototype.split,dX=Array.prototype.push,HI=function(e,t){dX.apply(e,mo(t)?t:[t])},hX=Date.prototype.toISOString,E3=bf.default,zn={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:_w.encode,encodeValuesOnly:!1,format:E3,formatter:bf.formatters[E3],indices:!1,serializeDate:function(t){return hX.call(t)},skipNulls:!1,strictNullHandling:!1},pX=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},fb={},mX=function e(t,n,r,i,o,s,a,l,c,f,h,p,m,g,v,w){for(var _=t,b=w,x=0,E=!1;(b=b.get(fb))!==void 0&&!E;){var P=b.get(t);if(x+=1,typeof P<"u"){if(P===x)throw new RangeError("Cyclic object value");E=!0}typeof b.get(fb)>"u"&&(x=0)}if(typeof l=="function"?_=l(n,_):_ instanceof Date?_=h(_):r==="comma"&&mo(_)&&(_=_w.maybeMap(_,function($){return $ instanceof Date?h($):$})),_===null){if(o)return a&&!g?a(n,zn.encoder,v,"key",p):n;_=""}if(pX(_)||_w.isBuffer(_)){if(a){var k=g?n:a(n,zn.encoder,v,"key",p);if(r==="comma"&&g){for(var N=fX.call(String(_),","),D="",U=0;U<N.length;++U)D+=(U===0?"":",")+m(a(N[U],zn.encoder,v,"value",p));return[m(k)+(i&&mo(_)&&N.length===1?"[]":"")+"="+D]}return[m(k)+"="+m(a(_,zn.encoder,v,"value",p))]}return[m(n)+"="+m(String(_))]}var A=[];if(typeof _>"u")return A;var Y;if(r==="comma"&&mo(_))Y=[{value:_.length>0?_.join(",")||null:void 0}];else if(mo(l))Y=l;else{var q=Object.keys(_);Y=c?q.sort(c):q}for(var ee=i&&mo(_)&&_.length===1?n+"[]":n,Z=0;Z<Y.length;++Z){var te=Y[Z],ne=typeof te=="object"&&typeof te.value<"u"?te.value:_[te];if(!(s&&ne===null)){var le=mo(_)?typeof r=="function"?r(ee,te):ee:ee+(f?"."+te:"["+te+"]");w.set(t,x);var K=VI();K.set(fb,w),HI(A,e(ne,le,r,i,o,s,a,l,c,f,h,p,m,g,v,K))}}return A},gX=function(t){if(!t)return zn;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||zn.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=bf.default;if(typeof t.format<"u"){if(!uX.call(bf.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=bf.formatters[r],o=zn.filter;return(typeof t.filter=="function"||mo(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:zn.addQueryPrefix,allowDots:typeof t.allowDots>"u"?zn.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:zn.charsetSentinel,delimiter:typeof t.delimiter>"u"?zn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:zn.encode,encoder:typeof t.encoder=="function"?t.encoder:zn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:zn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:zn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:zn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:zn.strictNullHandling}},vX=function(e,t){var n=e,r=gX(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):mo(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in C3?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=C3[a];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=VI(),h=0;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||HI(s,mX(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 m=s.join(r.delimiter),g=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""},Rc=UI,bw=Object.prototype.hasOwnProperty,yX=Array.isArray,En={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Rc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},_X=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},WI=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},bX="utf8=%26%2310003%3B",wX="utf8=%E2%9C%93",xX=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===wX?c="utf-8":s[l]===bX&&(c="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var f=s[l],h=f.indexOf("]="),p=h===-1?f.indexOf("="):h+1,m,g;p===-1?(m=n.decoder(f,En.decoder,c,"key"),g=n.strictNullHandling?null:""):(m=n.decoder(f.slice(0,p),En.decoder,c,"key"),g=Rc.maybeMap(WI(f.slice(p+1),n),function(v){return n.decoder(v,En.decoder,c,"value")})),g&&n.interpretNumericEntities&&c==="iso-8859-1"&&(g=_X(g)),f.indexOf("[]=")>-1&&(g=yX(g)?[g]:g),bw.call(r,m)?r[m]=Rc.combine(r[m],g):r[m]=g}return r},SX=function(e,t,n,r){for(var i=r?t:WI(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},CX=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&bw.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&bw.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+o.slice(l.index)+"]"),SX(f,n,r,i)}},EX=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"||Rc.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}},TX=function(e,t){var n=EX(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?xX(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var a=o[s],l=CX(a,r[a],n,typeof e=="string");i=Rc.merge(i,l,n)}return n.allowSparse===!0?i:Rc.compact(i)},OX=vX,PX=TX,kX=gC,YI={formats:kX,parse:PX,stringify:OX};const dl=e=>YI.parse(e,{ignoreQueryPrefix:!0}),Hd=e=>YI.stringify(e,{arrayFormat:"brackets"});var l_=(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))(l_||{}),c_=(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))(c_||{});const MX=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),no=e=>MX(e)?e:void 0,RX=e=>(e==null?void 0:e.type)===l_.INVALID_ARGUMENT||(e==null?void 0:e.type)===c_.INVALID_ARGUMENT,NX=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===l_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===c_.INVALID_SHORT_URL_DELETION,LX=e=>((e==null?void 0:e.type)===l_.NOT_FOUND||(e==null?void 0:e.type)===c_.NOT_FOUND)&&(e==null?void 0:e.status)===404,DX=(e,t)=>`${e}/rest/v${t}`,AX=Ud($o),IX=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:RI(e)});class FX{constructor(t,n,r){Se(this,"apiVersion");Se(this,"listShortUrls",async(t={})=>this.performRequest("/short-urls","GET",IX(t)).then(({shortUrls:n})=>n));Se(this,"createShortUrl",async t=>{const n=Ud(r=>qn(r)||$o(r),t);return this.performRequest("/short-urls","POST",{},n)});Se(this,"getShortUrlVisits",async(t,n)=>this.performRequest(`/short-urls/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getTagVisits",async(t,n)=>this.performRequest(`/tags/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getDomainVisits",async(t,n)=>this.performRequest(`/domains/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getOrphanVisits",async t=>this.performRequest("/visits/orphan","GET",t).then(({visits:n})=>n));Se(this,"getNonOrphanVisits",async t=>this.performRequest("/visits/non-orphan","GET",t).then(({visits:n})=>n));Se(this,"getVisitsOverview",async()=>this.performRequest("/visits").then(({visits:t})=>t));Se(this,"getShortUrl",async(t,n)=>this.performRequest(`/short-urls/${t}`,"GET",{domain:n}));Se(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest(`/short-urls/${t}`,"DELETE",{domain:n}));Se(this,"updateShortUrl",async(t,n,r)=>this.performRequest(`/short-urls/${t}`,"PATCH",{domain:n},r));Se(this,"listTags",async()=>this.performRequest("/tags","GET",{withStats:"true"}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));Se(this,"deleteTags",async t=>this.performEmptyRequest("/tags","DELETE",{tags:t}).then(()=>({tags:t})));Se(this,"editTag",async(t,n)=>this.performEmptyRequest("/tags","PUT",{},{oldName:t,newName:n}).then(()=>({oldName:t,newName:n})));Se(this,"health",async()=>this.performRequest("/health","GET"));Se(this,"mercureInfo",async()=>this.performRequest("/mercure-info","GET"));Se(this,"listDomains",async()=>this.performRequest("/domains").then(({domains:t})=>t));Se(this,"editDomainRedirects",async t=>this.performRequest("/domains/redirects","PATCH",{},t));Se(this,"performRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)))));Se(this,"performEmptyRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)))));Se(this,"toFetchParams",(t,n,r={},i)=>{const o=Hd(AX(r)),s=qn(o)?"":`?${o}`;return[`${DX(this.baseUrl,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});Se(this,"handleFetchError",t=>n=>{if(!LX(no(n)))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const db={},$X=e=>typeof e=="function",jX=e=>{const{selectedServer:t}=e();if(!lC(t))throw new Error("There's no selected server or it is not found");return t},BX=e=>t=>{const{url:n,apiKey:r}=$X(t)?jX(t):t,i=`${n}_${r}`;return db[i]||(db[i]=new FX(e,n,r)),db[i]},zX=e=>{e.serviceFactory("buildShlinkApiClient",BX,"HttpClient")};var ww={},UX={get exports(){return ww},set exports(e){ww=e}};/*!
|
||
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 s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="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})()})(UX);const ge=ww;var VX={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"]},HX=VX,WX={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 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"]},vC=WX,YX={prefix:"fas",iconName:"file-csv",icon:[384,512,[],"f6dd","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 0zM80 224H96c22.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-8H80c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8H96c4.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 40H80c-22.1 0-40-17.9-40-40V264c0-22.1 17.9-40 40-40zm72 46.4c0-25.6 20.8-46.4 46.4-46.4H216c8.8 0 16 7.2 16 16s-7.2 16-16 16H198.4c-7.9 0-14.4 6.4-14.4 14.4c0 5.2 2.8 9.9 7.2 12.5l25.4 14.5c14.4 8.3 23.4 23.6 23.4 40.3c0 25.6-20.8 46.4-46.4 46.4H168c-8.8 0-16-7.2-16-16s7.2-16 16-16h25.6c7.9 0 14.4-6.4 14.4-14.4c0-5.2-2.8-9.9-7.2-12.5l-25.4-14.5C160.9 302.4 152 287 152 270.4zM280 240v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V240c0-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.6V240c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},qX={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"]},GX=qX,qI={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"]},ZX={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"]},GI={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"]},KX={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zm0-160c-53 0-96-43-96-96s43-96 96-96s96 43 96 96s-43 96-96 96z"]},XX=KX,QX={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.8 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"]},yC=QX,JX={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"]},eQ={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 21 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"]},tQ={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.2zM512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z"]},T3={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-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 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-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},nQ={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"]},rQ=nQ,iQ={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 152c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40z"]},ZI=iQ,oQ={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"]},sQ={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 288c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm0-96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm96 96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32z"]},aQ={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"]},lQ=aQ,_C={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"]},KI={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 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},cQ={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},O3={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},uQ={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"]},XI={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"]},fQ={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"]},dQ=fQ,hQ={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 96c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},pQ={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 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-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},bC=pQ,mQ={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"]},gQ=mQ,vQ={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"]},yQ={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zm0-160c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zM120 96c0 30.9-25.1 56-56 56S8 126.9 8 96S33.1 40 64 40s56 25.1 56 56z"]},_Q=yQ,bQ={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"]},wQ=bQ,xQ={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"]},SQ=xQ,CQ={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"]},QI=CQ,EQ={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.6zM352 256c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zm32 0c0-70.7-57.3-128-128-128s-128 57.3-128 128s57.3 128 128 128s128-57.3 128-128z"]},TQ={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"]},OQ={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 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},PQ=OQ,kQ={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"]},wC={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"]},MQ={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},xw=MQ,RQ={prefix:"fas",iconName:"chevron-right",icon:[384,512,[9002],"f054","M342.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.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},NQ={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"]},LQ=NQ,P3={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H480c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H160c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64H288V32c0-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 256c0-22.1-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40s40-17.9 40-40zm152 40c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40zM48 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"]},DQ={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.7 8.4 166.9 8 160 8s-13.7 .4-20.4 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.8zM208 176c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48zM504.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 400c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"]},AQ=DQ,IQ={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M48 32C21.5 32 0 53.5 0 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm80 64v64H64V96h64zM48 288c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V336c0-26.5-21.5-48-48-48H48zm80 64v64H64V352h64zM256 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H304c-26.5 0-48 21.5-48 48zm64 16h64v64H320V96zm32 352v32h32V448H352zm96 0H416v32h32V448zM416 288v32H352V288H256v96 96h64V384h32v32h96V352 320 288H416z"]},FQ={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"]},$Q={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"]},ud={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.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 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function k3(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 ze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k3(Object(n),!0).forEach(function(r){xn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tv(e){return tv=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},tv(e)}function jQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function BQ(e,t,n){return t&&M3(e.prototype,t),n&&M3(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 xC(e,t){return UQ(e)||HQ(e,t)||JI(e,t)||YQ()}function Wd(e){return zQ(e)||VQ(e)||JI(e)||WQ()}function zQ(e){if(Array.isArray(e))return Sw(e)}function UQ(e){if(Array.isArray(e))return e}function VQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function JI(e,t){if(e){if(typeof e=="string")return Sw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sw(e,t)}}function Sw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WQ(){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 YQ(){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 R3=function(){},SC={},e6={},t6=null,n6={mark:R3,measure:R3};try{typeof window<"u"&&(SC=window),typeof document<"u"&&(e6=document),typeof MutationObserver<"u"&&(t6=MutationObserver),typeof performance<"u"&&(n6=performance)}catch{}var qQ=SC.navigator||{},N3=qQ.userAgent,L3=N3===void 0?"":N3,Fs=SC,Dt=e6,D3=t6,yp=n6;Fs.document;var jo=!!Dt.documentElement&&!!Dt.head&&typeof Dt.addEventListener=="function"&&typeof Dt.createElement=="function",r6=~L3.indexOf("MSIE")||~L3.indexOf("Trident/"),_p,bp,wp,xp,Sp,Po="___FONT_AWESOME___",Cw=16,i6="fa",o6="svg-inline--fa",Qa="data-fa-i2svg",Ew="data-fa-pseudo-element",GQ="data-fa-pseudo-element-pending",CC="data-prefix",EC="data-icon",A3="fontawesome-i2svg",ZQ="async",KQ=["HTML","HEAD","STYLE","SCRIPT"],s6=function(){try{return!0}catch{return!1}}(),Mt="classic",Zt="sharp",TC=[Mt,Zt];function Yd(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Mt]}})}var fd=Yd((_p={},xn(_p,Mt,{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(_p,Zt,{fa:"solid",fass:"solid","fa-solid":"solid"}),_p)),dd=Yd((bp={},xn(bp,Mt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),xn(bp,Zt,{solid:"fass"}),bp)),hd=Yd((wp={},xn(wp,Mt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),xn(wp,Zt,{fass:"fa-solid"}),wp)),XQ=Yd((xp={},xn(xp,Mt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),xn(xp,Zt,{"fa-solid":"fass"}),xp)),QQ=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,a6="fa-layers-text",JQ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,eJ=Yd((Sp={},xn(Sp,Mt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),xn(Sp,Zt,{900:"fass"}),Sp)),l6=[1,2,3,4,5,6,7,8,9,10],tJ=l6.concat([11,12,13,14,15,16,17,18,19,20]),nJ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],La={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pd=new Set;Object.keys(dd[Mt]).map(pd.add.bind(pd));Object.keys(dd[Zt]).map(pd.add.bind(pd));var rJ=[].concat(TC,Wd(pd),["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",La.GROUP,La.SWAP_OPACITY,La.PRIMARY,La.SECONDARY]).concat(l6.map(function(e){return"".concat(e,"x")})).concat(tJ.map(function(e){return"w-".concat(e)})),wf=Fs.FontAwesomeConfig||{};function iJ(e){var t=Dt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function oJ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Dt&&typeof Dt.querySelector=="function"){var sJ=[["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"]];sJ.forEach(function(e){var t=xC(e,2),n=t[0],r=t[1],i=oJ(iJ(n));i!=null&&(wf[r]=i)})}var c6={styleDefault:"solid",familyDefault:"classic",cssPrefix:i6,replacementClass:o6,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wf.familyPrefix&&(wf.cssPrefix=wf.familyPrefix);var Nc=ze(ze({},c6),wf);Nc.autoReplaceSvg||(Nc.observeMutations=!1);var He={};Object.keys(c6).forEach(function(e){Object.defineProperty(He,e,{enumerable:!0,set:function(n){Nc[e]=n,xf.forEach(function(r){return r(He)})},get:function(){return Nc[e]}})});Object.defineProperty(He,"familyPrefix",{enumerable:!0,set:function(t){Nc.cssPrefix=t,xf.forEach(function(n){return n(He)})},get:function(){return Nc.cssPrefix}});Fs.FontAwesomeConfig=He;var xf=[];function aJ(e){return xf.push(e),function(){xf.splice(xf.indexOf(e),1)}}var Go=Cw,Yi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function lJ(e){if(!(!e||!jo)){var t=Dt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Dt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return Dt.head.insertBefore(t,r),e}}var cJ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function md(){for(var e=12,t="";e-- >0;)t+=cJ[Math.random()*62|0];return t}function Qc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function OC(e){return e.classList?Qc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function u6(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function uJ(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(u6(e[n]),'" ')},"").trim()}function u_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function PC(e){return e.size!==Yi.size||e.x!==Yi.x||e.y!==Yi.y||e.rotate!==Yi.rotate||e.flipX||e.flipY}function fJ(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,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function dJ(e){var t=e.transform,n=e.width,r=n===void 0?Cw:n,i=e.height,o=i===void 0?Cw:i,s=e.startCentered,a=s===void 0?!1:s,l="";return a&&r6?l+="translate(".concat(t.x/Go-r/2,"em, ").concat(t.y/Go-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/Go,"em), calc(-50% + ").concat(t.y/Go,"em)) "):l+="translate(".concat(t.x/Go,"em, ").concat(t.y/Go,"em) "),l+="scale(".concat(t.size/Go*(t.flipX?-1:1),", ").concat(t.size/Go*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var hJ=`: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-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;
|
||
transition-delay: 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 f6(){var e=i6,t=o6,n=He.cssPrefix,r=He.replacementClass,i=hJ;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var I3=!1;function hb(){He.autoAddCss&&!I3&&(lJ(f6()),I3=!0)}var pJ={mixout:function(){return{dom:{css:f6,insertCss:hb}}},hooks:function(){return{beforeDOMElementCreation:function(){hb()},beforeI2svg:function(){hb()}}}},ko=Fs||{};ko[Po]||(ko[Po]={});ko[Po].styles||(ko[Po].styles={});ko[Po].hooks||(ko[Po].hooks={});ko[Po].shims||(ko[Po].shims=[]);var bi=ko[Po],d6=[],mJ=function e(){Dt.removeEventListener("DOMContentLoaded",e),nv=1,d6.map(function(t){return t()})},nv=!1;jo&&(nv=(Dt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Dt.readyState),nv||Dt.addEventListener("DOMContentLoaded",mJ));function gJ(e){jo&&(nv?setTimeout(e,0):d6.push(e))}function qd(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"?u6(e):"<".concat(t," ").concat(uJ(r),">").concat(o.map(qd).join(""),"</").concat(t,">")}function F3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var vJ=function(t,n){return function(r,i,o,s){return t.call(n,r,i,o,s)}},pb=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=i!==void 0?vJ(n,i):n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<s;l++)c=o[l],f=a(f,t[c],c,t);return f};function yJ(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 Tw(e){var t=yJ(e);return t.length===1?t[0].toString(16):null}function _J(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 $3(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 Ow(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=$3(t);typeof bi.hooks.addPack=="function"&&!i?bi.hooks.addPack(e,$3(t)):bi.styles[e]=ze(ze({},bi.styles[e]||{}),o),e==="fas"&&Ow("fa",t)}var Cp,Ep,Tp,Jl=bi.styles,bJ=bi.shims,wJ=(Cp={},xn(Cp,Mt,Object.values(hd[Mt])),xn(Cp,Zt,Object.values(hd[Zt])),Cp),kC=null,h6={},p6={},m6={},g6={},v6={},xJ=(Ep={},xn(Ep,Mt,Object.keys(fd[Mt])),xn(Ep,Zt,Object.keys(fd[Zt])),Ep);function SJ(e){return~rJ.indexOf(e)}function CJ(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!SJ(i)?i:null}var y6=function(){var t=function(o){return pb(Jl,function(s,a,l){return s[l]=pb(a,o,{}),s},{})};h6=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var a=o[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=s})}return i}),p6=t(function(i,o,s){if(i[s]=s,o[2]){var a=o[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=s})}return i}),v6=t(function(i,o,s){var a=o[2];return i[s]=s,a.forEach(function(l){i[l]=s}),i});var n="far"in Jl||He.autoFetchSvg,r=pb(bJ,function(i,o){var s=o[0],a=o[1],l=o[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(i.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});m6=r.names,g6=r.unicodes,kC=f_(He.styleDefault,{family:He.familyDefault})};aJ(function(e){kC=f_(e.styleDefault,{family:He.familyDefault})});y6();function MC(e,t){return(h6[e]||{})[t]}function EJ(e,t){return(p6[e]||{})[t]}function Da(e,t){return(v6[e]||{})[t]}function _6(e){return m6[e]||{prefix:null,iconName:null}}function TJ(e){var t=g6[e],n=MC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $s(){return kC}var RC=function(){return{prefix:null,iconName:null,rest:[]}};function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Mt:n,i=fd[r][e],o=dd[r][e]||dd[r][i],s=e in bi.styles?e:null;return o||s||null}var j3=(Tp={},xn(Tp,Mt,Object.keys(hd[Mt])),xn(Tp,Zt,Object.keys(hd[Zt])),Tp);function d_(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,Mt,"".concat(He.cssPrefix,"-").concat(Mt)),xn(t,Zt,"".concat(He.cssPrefix,"-").concat(Zt)),t),s=null,a=Mt;(e.includes(o[Mt])||e.some(function(c){return j3[Mt].includes(c)}))&&(a=Mt),(e.includes(o[Zt])||e.some(function(c){return j3[Zt].includes(c)}))&&(a=Zt);var l=e.reduce(function(c,f){var h=CJ(He.cssPrefix,f);if(Jl[f]?(f=wJ[a].includes(f)?XQ[a][f]:f,s=f,c.prefix=f):xJ[a].indexOf(f)>-1?(s=f,c.prefix=f_(f,{family:a})):h?c.iconName=h:f!==He.replacementClass&&f!==o[Mt]&&f!==o[Zt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=s==="fa"?_6(c.iconName):{},m=Da(c.prefix,c.iconName);p.prefix&&(s=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Jl.far&&Jl.fas&&!He.autoFetchSvg&&(c.prefix="fas")}return c},RC());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===Zt&&(Jl.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Da(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=$s()||"fas"),l}var OJ=function(){function e(){jQ(this,e),this.definitions={}}return BQ(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 s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(a){n.definitions[a]=ze(ze({},n.definitions[a]||{}),s[a]),Ow(a,s[a]);var l=hd[Mt][a];l&&Ow(l,s[a]),y6()})}},{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 s=i[o],a=s.prefix,l=s.iconName,c=s.icon,f=c[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(h){typeof h=="string"&&(n[a][h]=c)}),n[a][l]=c}),n}}]),e}(),B3=[],ec={},hc={},PJ=Object.keys(hc);function kJ(e,t){var n=t.mixoutsTo;return B3=e,ec={},Object.keys(hc).forEach(function(r){PJ.indexOf(r)===-1&&delete hc[r]}),B3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),tv(i[s])==="object"&&Object.keys(i[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=i[s][a]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){ec[s]||(ec[s]=[]),ec[s].push(o[s])})}r.provides&&r.provides(hc)}),n}function Pw(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=ec[e]||[];return o.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Ja(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=ec[e]||[];i.forEach(function(o){o.apply(null,n)})}function Mo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return hc[e]?hc[e].apply(null,t):void 0}function kw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$s();if(t)return t=Da(n,t)||t,F3(b6.definitions,n,t)||F3(bi.styles,n,t)}var b6=new OJ,MJ=function(){He.autoReplaceSvg=!1,He.observeMutations=!1,Ja("noAuto")},RJ={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return jo?(Ja("beforeI2svg",t),Mo("pseudoElements2svg",t),Mo("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;He.autoReplaceSvg===!1&&(He.autoReplaceSvg=!0),He.observeMutations=!0,gJ(function(){LJ({autoReplaceSvgRoot:n}),Ja("watch",t)})}},NJ={icon:function(t){if(t===null)return null;if(tv(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Da(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=f_(t[0]);return{prefix:r,iconName:Da(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(QQ))){var i=d_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||$s(),iconName:Da(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=$s();return{prefix:o,iconName:Da(o,t)||t}}}},jr={noAuto:MJ,config:He,dom:RJ,parse:NJ,library:b6,findIconDefinition:kw,toHtml:qd},LJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Dt:n;(Object.keys(bi.styles).length>0||He.autoFetchSvg)&&jo&&He.autoReplaceSvg&&jr.dom.i2svg({node:r})};function h_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return qd(r)})}}),Object.defineProperty(e,"node",{get:function(){if(jo){var r=Dt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function DJ(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(PC(s)&&n.found&&!r.found){var a=n.width,l=n.height,c={x:a/l/2,y:.5};i.style=u_(ze(ze({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function AJ(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(He.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ze(ze({},i),{},{id:s}),children:r}]}]}function NC(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.maskId,f=e.titleId,h=e.extra,p=e.watchable,m=p===void 0?!1:p,g=r.found?r:n,v=g.width,w=g.height,_=i==="fak",b=[He.replacementClass,o?"".concat(He.cssPrefix,"-").concat(o):""].filter(function(U){return h.classes.indexOf(U)===-1}).filter(function(U){return U!==""||!!U}).concat(h.classes).join(" "),x={children:[],attributes:ze(ze({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(w)})},E=_&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/w*16*.0625,"em")}:{};m&&(x.attributes[Qa]=""),l&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||md())},children:[l]}),delete x.attributes.title);var P=ze(ze({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:ze(ze({},E),h.styles)}),k=r.found&&n.found?Mo("generateAbstractMask",P)||{children:[],attributes:{}}:Mo("generateAbstractIcon",P)||{children:[],attributes:{}},N=k.children,D=k.attributes;return P.children=N,P.attributes=D,a?AJ(P):DJ(P)}function z3(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=a===void 0?!1:a,c=ze(ze(ze({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(c[Qa]="");var f=ze({},s.styles);PC(i)&&(f.transform=dJ({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=u_(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 IJ(e){var t=e.content,n=e.title,r=e.extra,i=ze(ze(ze({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=u_(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var mb=bi.styles;function Mw(e){var t=e[0],n=e[1],r=e.slice(4),i=xC(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(La.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(La.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(La.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var FJ={found:!1,width:512,height:512};function $J(e,t){!s6&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Rw(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=$s()),new Promise(function(r,i){if(Mo("missingIconAbstract"),n==="fa"){var o=_6(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&mb[t]&&mb[t][e]){var s=mb[t][e];return r(Mw(s))}$J(e,t),r(ze(ze({},FJ),{},{icon:He.showMissingIcons&&e?Mo("missingIconAbstract")||{}:{}}))})}var U3=function(){},Nw=He.measurePerformance&&yp&&yp.mark&&yp.measure?yp:{mark:U3,measure:U3},Zu='FA "6.2.1"',jJ=function(t){return Nw.mark("".concat(Zu," ").concat(t," begins")),function(){return w6(t)}},w6=function(t){Nw.mark("".concat(Zu," ").concat(t," ends")),Nw.measure("".concat(Zu," ").concat(t),"".concat(Zu," ").concat(t," begins"),"".concat(Zu," ").concat(t," ends"))},LC={begin:jJ,end:w6},fm=function(){};function V3(e){var t=e.getAttribute?e.getAttribute(Qa):null;return typeof t=="string"}function BJ(e){var t=e.getAttribute?e.getAttribute(CC):null,n=e.getAttribute?e.getAttribute(EC):null;return t&&n}function zJ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function UJ(){if(He.autoReplaceSvg===!0)return dm.replace;var e=dm[He.autoReplaceSvg];return e||dm.replace}function VJ(e){return Dt.createElementNS("http://www.w3.org/2000/svg",e)}function HJ(e){return Dt.createElement(e)}function x6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?VJ:HJ:n;if(typeof e=="string")return Dt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(x6(s,{ceFn:r}))}),i}function WJ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var dm={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(x6(i),n)}),n.getAttribute(Qa)===null&&He.keepOriginalSource){var r=Dt.createComment(WJ(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~OC(n).indexOf(He.replacementClass))return dm.replace(t);var i=new RegExp("".concat(He.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(a,l){return l===He.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(a){return qd(a)}).join(`
|
||
`);n.setAttribute(Qa,""),n.innerHTML=s}};function H3(e){e()}function S6(e,t){var n=typeof t=="function"?t:fm;if(e.length===0)n();else{var r=H3;He.mutateApproach===ZQ&&(r=Fs.requestAnimationFrame||H3),r(function(){var i=UJ(),o=LC.begin("mutate");e.map(i),o(),n()})}}var DC=!1;function C6(){DC=!0}function Lw(){DC=!1}var rv=null;function W3(e){if(D3&&He.observeMutations){var t=e.treeCallback,n=t===void 0?fm:t,r=e.nodeCallback,i=r===void 0?fm:r,o=e.pseudoElementsCallback,s=o===void 0?fm:o,a=e.observeMutationsRoot,l=a===void 0?Dt:a;rv=new D3(function(c){if(!DC){var f=$s();Qc(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!V3(h.addedNodes[0])&&(He.searchPseudoElements&&s(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&He.searchPseudoElements&&s(h.target.parentNode),h.type==="attributes"&&V3(h.target)&&~nJ.indexOf(h.attributeName))if(h.attributeName==="class"&&BJ(h.target)){var p=d_(OC(h.target)),m=p.prefix,g=p.iconName;h.target.setAttribute(CC,m||f),g&&h.target.setAttribute(EC,g)}else zJ(h.target)&&i(h.target)})}}),jo&&rv.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function YJ(){rv&&rv.disconnect()}function qJ(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function GJ(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=d_(OC(e));return i.prefix||(i.prefix=$s()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=EJ(i.prefix,e.innerText)||MC(i.prefix,Tw(e.innerText))),!i.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function ZJ(e){var t=Qc(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return He.autoA11y&&(n?t["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(r||md()):(t["aria-hidden"]="true",t.focusable="false")),t}function KJ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Yi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Y3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=GJ(e),r=n.iconName,i=n.prefix,o=n.rest,s=ZJ(e),a=Pw("parseNodeAttributes",{},e),l=t.styleParser?qJ(e):[];return ze({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Yi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var XJ=bi.styles;function E6(e){var t=He.autoReplaceSvg==="nest"?Y3(e,{styleParser:!1}):Y3(e);return~t.extra.classes.indexOf(a6)?Mo("generateLayersText",e,t):Mo("generateSvgReplacementMutation",e,t)}var js=new Set;TC.map(function(e){js.add("fa-".concat(e))});Object.keys(fd[Mt]).map(js.add.bind(js));Object.keys(fd[Zt]).map(js.add.bind(js));js=Wd(js);function q3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!jo)return Promise.resolve();var n=Dt.documentElement.classList,r=function(h){return n.add("".concat(A3,"-").concat(h))},i=function(h){return n.remove("".concat(A3,"-").concat(h))},o=He.autoFetchSvg?js:TC.map(function(f){return"fa-".concat(f)}).concat(Object.keys(XJ));o.includes("fa")||o.push("fa");var s=[".".concat(a6,":not([").concat(Qa,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Qa,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=Qc(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=LC.begin("onTree"),c=a.reduce(function(f,h){try{var p=E6(h);p&&f.push(p)}catch(m){s6||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){S6(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function QJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;E6(e).then(function(n){n&&S6([n],t)})}function JJ(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:kw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:kw(i||{})),e(r,ze(ze({},n),{},{mask:i}))}}var eee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Yi:r,o=n.symbol,s=o===void 0?!1:o,a=n.mask,l=a===void 0?null:a,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,m=n.titleId,g=m===void 0?null:m,v=n.classes,w=v===void 0?[]:v,_=n.attributes,b=_===void 0?{}:_,x=n.styles,E=x===void 0?{}:x;if(t){var P=t.prefix,k=t.iconName,N=t.icon;return h_(ze({type:"icon"},t),function(){return Ja("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?b["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(g||md()):(b["aria-hidden"]="true",b.focusable="false")),NC({icons:{main:Mw(N),mask:l?Mw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:k,transform:ze(ze({},Yi),i),symbol:s,title:p,maskId:f,titleId:g,extra:{attributes:b,styles:E,classes:w}})})}},tee={mixout:function(){return{icon:JJ(eee)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=q3,n.nodeCallback=QJ,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Dt:r,o=n.callback,s=o===void 0?function(){}:o;return q3(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,s=r.titleId,a=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(m,g){Promise.all([Rw(i,a),f.iconName?Rw(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(v){var w=xC(v,2),_=w[0],b=w[1];m([n,NC({icons:{main:_,mask:b},prefix:a,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:s,extra:p,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,a=n.styles,l=u_(a);l.length>0&&(i.style=l);var c;return PC(s)&&(c=Mo("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},nee={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 h_({type:"layer"},function(){Ja("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(He.cssPrefix,"-layers")].concat(Wd(o)).join(" ")},children:s}]})}}}},ree={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,s=r.classes,a=s===void 0?[]:s,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return h_({type:"counter",content:n},function(){return Ja("beforeDOMElementCreation",{content:n,params:r}),IJ({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(Wd(a))}})})}}}},iee={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Yi:i,s=r.title,a=s===void 0?null:s,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return h_({type:"text",content:n},function(){return Ja("beforeDOMElementCreation",{content:n,params:r}),z3({content:n,transform:ze(ze({},Yi),o),title:a,extra:{attributes:h,styles:m,classes:["".concat(He.cssPrefix,"-layers-text")].concat(Wd(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,a=null,l=null;if(r6){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/c,l=f.height/c}return He.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,z3({content:n.innerHTML,width:a,height:l,transform:o,title:i,extra:s,watchable:!0})])}}},oee=new RegExp('"',"ug"),G3=[1105920,1112319];function see(e){var t=e.replace(oee,""),n=_J(t,0),r=n>=G3[0]&&n<=G3[1],i=t.length===2?t[0]===t[1]:!1;return{value:Tw(i?t[0]:t),isSecondary:r||i}}function Z3(e,t){var n="".concat(GQ).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Qc(e.children),s=o.filter(function(N){return N.getAttribute(Ew)===t})[0],a=Fs.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(JQ),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&f!=="none"&&f!==""){var h=a.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Zt:Mt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?dd[p][l[2].toLowerCase()]:eJ[p][c],g=see(h),v=g.value,w=g.isSecondary,_=l[0].startsWith("FontAwesome"),b=MC(m,v),x=b;if(_){var E=TJ(v);E.iconName&&E.prefix&&(b=E.iconName,m=E.prefix)}if(b&&!w&&(!s||s.getAttribute(CC)!==m||s.getAttribute(EC)!==x)){e.setAttribute(n,x),s&&e.removeChild(s);var P=KJ(),k=P.extra;k.attributes[Ew]=t,Rw(b,m).then(function(N){var D=NC(ze(ze({},P),{},{icons:{main:N,mask:RC()},prefix:m,iconName:x,extra:k,watchable:!0})),U=Dt.createElement("svg");t==="::before"?e.insertBefore(U,e.firstChild):e.appendChild(U),U.outerHTML=D.map(function(A){return qd(A)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function aee(e){return Promise.all([Z3(e,"::before"),Z3(e,"::after")])}function lee(e){return e.parentNode!==document.head&&!~KQ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ew)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function K3(e){if(jo)return new Promise(function(t,n){var r=Qc(e.querySelectorAll("*")).filter(lee).map(aee),i=LC.begin("searchPseudoElements");C6(),Promise.all(r).then(function(){i(),Lw(),t()}).catch(function(){i(),Lw(),n()})})}var cee={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=K3,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Dt:r;He.searchPseudoElements&&K3(i)}}},X3=!1,uee={mixout:function(){return{dom:{unwatch:function(){C6(),X3=!0}}}},hooks:function(){return{bootstrap:function(){W3(Pw("mutationObserverCallbacks",{}))},noAuto:function(){YJ()},watch:function(n){var r=n.observeMutationsRoot;X3?Lw():W3(Pw("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Q3=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("-"),s=o[0],a=o.slice(1).join("-");if(s&&a==="h")return r.flipX=!0,r;if(s&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(s){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},fee={mixout:function(){return{parse:{transform:function(n){return Q3(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=Q3(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,a={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(s/2*-1," -256)")},m={outer:a,inner:h,path:p};return{tag:"g",attributes:ze({},m.outer),children:[{tag:"g",attributes:ze({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ze(ze({},r.icon.attributes),m.path)}]}]}}}},gb={x:0,y:0,width:"100%",height:"100%"};function J3(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 dee(e){return e.tag==="g"?e.children:[e]}var hee={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?d_(i.split(" ").map(function(s){return s.trim()})):RC();return o.prefix||(o.prefix=$s()),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,s=n.mask,a=n.maskId,l=n.transform,c=o.width,f=o.icon,h=s.width,p=s.icon,m=fJ({transform:l,containerWidth:h,iconWidth:c}),g={tag:"rect",attributes:ze(ze({},gb),{},{fill:"white"})},v=f.children?{children:f.children.map(J3)}:{},w={tag:"g",attributes:ze({},m.inner),children:[J3(ze({tag:f.tag,attributes:ze(ze({},f.attributes),m.path)},v))]},_={tag:"g",attributes:ze({},m.outer),children:[w]},b="mask-".concat(a||md()),x="clip-".concat(a||md()),E={tag:"mask",attributes:ze(ze({},gb),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,_]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:dee(p)},E]};return r.push(P,{tag:"rect",attributes:ze({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},gb)}),{children:r,attributes:i}}}},pee={provides:function(t){var n=!1;Fs.matchMedia&&(n=Fs.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:ze(ze({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ze(ze({},o),{},{attributeName:"opacity"}),a={tag:"circle",attributes:ze(ze({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:ze(ze({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ze(ze({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:ze(ze({},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:ze(ze({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ze(ze({},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:ze(ze({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},mee={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}}}},gee=[pJ,tee,nee,ree,iee,cee,uee,fee,hee,pee,mee];kJ(gee,{mixoutsTo:jr});jr.noAuto;jr.config;jr.library;jr.dom;var Dw=jr.parse;jr.findIconDefinition;jr.toHtml;var vee=jr.icon;jr.layer;jr.text;jr.counter;var S={},yee={get exports(){return S},set exports(e){S=e}},_ee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bee=_ee,wee=bee;function T6(){}function O6(){}O6.resetWarningCache=T6;var xee=function(){function e(r,i,o,s,a,l){if(l!==wee){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:O6,resetWarningCache:T6};return n.PropTypes=n,n};yee.exports=xee();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 ms(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){tc(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 iv(e){return iv=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},iv(e)}function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function See(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 Cee(e,t){if(e==null)return{};var n=See(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 Aw(e){return Eee(e)||Tee(e)||Oee(e)||Pee()}function Eee(e){if(Array.isArray(e))return Iw(e)}function Tee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oee(e,t){if(e){if(typeof e=="string")return Iw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iw(e,t)}}function Iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kee(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,f=e.spinReverse,h=e.pulse,p=e.fixedWidth,m=e.inverse,g=e.border,v=e.listItem,w=e.flip,_=e.size,b=e.rotation,x=e.pull,E=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":h,"fa-fw":p,"fa-inverse":m,"fa-border":g,"fa-li":v,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},tc(t,"fa-".concat(_),typeof _<"u"&&_!==null),tc(t,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),tc(t,"fa-pull-".concat(x),typeof x<"u"&&x!==null),tc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(E).map(function(P){return E[P]?P:null}).filter(function(P){return P})}function Mee(e){return e=e-0,e===e}function P6(e){return Mee(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Ree=["style"];function Nee(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Lee(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=P6(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[Nee(i)]=o:t[i]=o,t},{})}function k6(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 k6(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=Lee(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[P6(c)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=Cee(n,Ree);return i.attrs.style=ms(ms({},i.attrs.style),s),e.apply(void 0,[t.tag,ms(ms({},i.attrs),a)].concat(Aw(r)))}var M6=!1;try{M6=!0}catch{}function Dee(){if(!M6&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function tM(e){if(e&&iv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Dw.icon)return Dw.icon(e);if(e===null)return null;if(e&&iv(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 vb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?tc({},e,t):{}}var je=z.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,s=e.title,a=e.titleId,l=e.maskId,c=tM(n),f=vb("classes",[].concat(Aw(kee(e)),Aw(o.split(" ")))),h=vb("transform",typeof e.transform=="string"?Dw.transform(e.transform):e.transform),p=vb("mask",tM(r)),m=vee(c,ms(ms(ms(ms({},f),h),p),{},{symbol:i,title:s,titleId:a,maskId:l}));if(!m)return Dee("Could not find icon",c),null;var g=m.abstract,v={ref:t};return Object.keys(e).forEach(function(w){je.defaultProps.hasOwnProperty(w)||(v[w]=e[w])}),Aee(g[0],v)});je.displayName="FontAwesomeIcon";je.propTypes={beat:S.bool,border:S.bool,beatFade:S.bool,bounce:S.bool,className:S.string,fade:S.bool,flash:S.bool,mask:S.oneOfType([S.object,S.array,S.string]),maskId:S.string,fixedWidth:S.bool,inverse:S.bool,flip:S.oneOf([!0,!1,"horizontal","vertical","both"]),icon:S.oneOfType([S.object,S.array,S.string]),listItem:S.bool,pull:S.oneOf(["right","left"]),pulse:S.bool,rotation:S.oneOf([0,90,180,270]),shake:S.bool,size:S.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:S.bool,spinPulse:S.bool,spinReverse:S.bool,symbol:S.oneOfType([S.bool,S.string]),title:S.string,titleId:S.string,transform:S.oneOfType([S.string,S.object]),swapOpacity:S.bool};je.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 Aee=k6.bind(null,z.createElement),R6=H.createContext(),N6=H.createContext();function nM(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 s=H.useCallback(function(a){o.current||i(a)},[]);return H.createElement(R6.Provider,{value:r},H.createElement(N6.Provider,{value:s},t))}var L6=function(t){return Array.isArray(t)?t[0]:t},D6=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)}},Fw=function(t,n){if(typeof t=="function")return D6(t,n);t!=null&&(t.current=n)},rM=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},iM=typeof window<"u"&&window.document&&window.document.createElement?H.useLayoutEffect:H.useEffect,xr="top",ri="bottom",ii="right",Sr="left",AC="auto",Gd=[xr,ri,ii,Sr],Lc="start",gd="end",Iee="clippingParents",A6="viewport",Au="popper",Fee="reference",oM=Gd.reduce(function(e,t){return e.concat([t+"-"+Lc,t+"-"+gd])},[]),I6=[].concat(Gd,[AC]).reduce(function(e,t){return e.concat([t,t+"-"+Lc,t+"-"+gd])},[]),$ee="beforeRead",jee="read",Bee="afterRead",zee="beforeMain",Uee="main",Vee="afterMain",Hee="beforeWrite",Wee="write",Yee="afterWrite",qee=[$ee,jee,Bee,zee,Uee,Vee,Hee,Wee,Yee];function eo(e){return e?(e.nodeName||"").toLowerCase():null}function si(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=si(e).Element;return e instanceof t||e instanceof Element}function Qr(e){var t=si(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IC(e){if(typeof ShadowRoot>"u")return!1;var t=si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Gee(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];!Qr(o)||!eo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Zee(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]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Qr(i)||!eo(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Kee={name:"applyStyles",enabled:!0,phase:"write",fn:Gee,effect:Zee,requires:["computeStyles"]};function Ki(e){return e.split("-")[0]}var za=Math.max,ov=Math.min,Dc=Math.round;function $w(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function F6(){return!/^((?!chrome|android).)*safari/i.test($w())}function Ac(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Qr(e)&&(i=e.offsetWidth>0&&Dc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Dc(r.height)/e.offsetHeight||1);var s=el(e)?si(e):window,a=s.visualViewport,l=!F6()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,f=(r.top+(l&&a?a.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 FC(e){var t=Ac(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 $6(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ro(e){return si(e).getComputedStyle(e)}function Xee(e){return["table","td","th"].indexOf(eo(e))>=0}function Js(e){return((el(e)?e.ownerDocument:e.document)||window.document).documentElement}function p_(e){return eo(e)==="html"?e:e.assignedSlot||e.parentNode||(IC(e)?e.host:null)||Js(e)}function sM(e){return!Qr(e)||Ro(e).position==="fixed"?null:e.offsetParent}function Qee(e){var t=/firefox/i.test($w()),n=/Trident/i.test($w());if(n&&Qr(e)){var r=Ro(e);if(r.position==="fixed")return null}var i=p_(e);for(IC(i)&&(i=i.host);Qr(i)&&["html","body"].indexOf(eo(i))<0;){var o=Ro(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 Zd(e){for(var t=si(e),n=sM(e);n&&Xee(n)&&Ro(n).position==="static";)n=sM(n);return n&&(eo(n)==="html"||eo(n)==="body"&&Ro(n).position==="static")?t:n||Qee(e)||t}function $C(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sf(e,t,n){return za(e,ov(t,n))}function Jee(e,t,n){var r=Sf(e,t,n);return r>n?n:r}function j6(){return{top:0,right:0,bottom:0,left:0}}function B6(e){return Object.assign({},j6(),e)}function z6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ete=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,B6(typeof t!="number"?t:z6(t,Gd))};function tte(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ki(n.placement),l=$C(a),c=[Sr,ii].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var h=ete(i.padding,n),p=FC(o),m=l==="y"?xr:Sr,g=l==="y"?ri:ii,v=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],w=s[l]-n.rects.reference[l],_=Zd(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,x=v/2-w/2,E=h[m],P=b-p[f]-h[g],k=b/2-p[f]/2+x,N=Sf(E,k,P),D=l;n.modifiersData[r]=(t={},t[D]=N,t.centerOffset=N-k,t)}}function nte(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)||$6(t.elements.popper,i)&&(t.elements.arrow=i))}const rte={name:"arrow",enabled:!0,phase:"main",fn:tte,effect:nte,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ic(e){return e.split("-")[1]}var ite={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ote(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Dc(t*i)/i||0,y:Dc(n*i)/i||0}}function aM(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,m=p===void 0?0:p,g=s.y,v=g===void 0?0:g,w=typeof f=="function"?f({x:m,y:v}):{x:m,y:v};m=w.x,v=w.y;var _=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Sr,E=xr,P=window;if(c){var k=Zd(n),N="clientHeight",D="clientWidth";if(k===si(n)&&(k=Js(n),Ro(k).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),k=k,i===xr||(i===Sr||i===ii)&&o===gd){E=ri;var U=h&&k===P&&P.visualViewport?P.visualViewport.height:k[N];v-=U-r.height,v*=l?1:-1}if(i===Sr||(i===xr||i===ri)&&o===gd){x=ii;var A=h&&k===P&&P.visualViewport?P.visualViewport.width:k[D];m-=A-r.width,m*=l?1:-1}}var Y=Object.assign({position:a},c&&ite),q=f===!0?ote({x:m,y:v}):{x:m,y:v};if(m=q.x,v=q.y,l){var ee;return Object.assign({},Y,(ee={},ee[E]=b?"0":"",ee[x]=_?"0":"",ee.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",ee))}return Object.assign({},Y,(t={},t[E]=b?v+"px":"",t[x]=_?m+"px":"",t.transform="",t))}function ste(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Ki(t.placement),variation:Ic(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,aM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,aM(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 ate={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ste,data:{}};var Op={passive:!0};function lte(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=si(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Op)}),a&&l.addEventListener("resize",n.update,Op),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Op)}),a&&l.removeEventListener("resize",n.update,Op)}}const cte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lte,data:{}};var ute={left:"right",right:"left",bottom:"top",top:"bottom"};function hm(e){return e.replace(/left|right|bottom|top/g,function(t){return ute[t]})}var fte={start:"end",end:"start"};function lM(e){return e.replace(/start|end/g,function(t){return fte[t]})}function jC(e){var t=si(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function BC(e){return Ac(Js(e)).left+jC(e).scrollLeft}function dte(e,t){var n=si(e),r=Js(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=F6();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+BC(e),y:l}}function hte(e){var t,n=Js(e),r=jC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=za(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=za(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+BC(e),l=-r.scrollTop;return Ro(i||n).direction==="rtl"&&(a+=za(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function zC(e){var t=Ro(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function U6(e){return["html","body","#document"].indexOf(eo(e))>=0?e.ownerDocument.body:Qr(e)&&zC(e)?e:U6(p_(e))}function Cf(e,t){var n;t===void 0&&(t=[]);var r=U6(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=si(r),s=i?[o].concat(o.visualViewport||[],zC(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Cf(p_(s)))}function jw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pte(e,t){var n=Ac(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 cM(e,t,n){return t===A6?jw(dte(e,n)):el(t)?pte(t,n):jw(hte(Js(e)))}function mte(e){var t=Cf(p_(e)),n=["absolute","fixed"].indexOf(Ro(e).position)>=0,r=n&&Qr(e)?Zd(e):e;return el(r)?t.filter(function(i){return el(i)&&$6(i,r)&&eo(i)!=="body"}):[]}function gte(e,t,n,r){var i=t==="clippingParents"?mte(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=cM(e,c,r);return l.top=za(f.top,l.top),l.right=ov(f.right,l.right),l.bottom=ov(f.bottom,l.bottom),l.left=za(f.left,l.left),l},cM(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function V6(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ki(r):null,o=r?Ic(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case xr:l={x:s,y:t.y-n.height};break;case ri:l={x:s,y:t.y+t.height};break;case ii:l={x:t.x+t.width,y:a};break;case Sr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?$C(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Lc:l[c]=l[c]-(t[f]/2-n[f]/2);break;case gd:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function vd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Iee:a,c=n.rootBoundary,f=c===void 0?A6:c,h=n.elementContext,p=h===void 0?Au:h,m=n.altBoundary,g=m===void 0?!1:m,v=n.padding,w=v===void 0?0:v,_=B6(typeof w!="number"?w:z6(w,Gd)),b=p===Au?Fee:Au,x=e.rects.popper,E=e.elements[g?b:p],P=gte(el(E)?E:E.contextElement||Js(e.elements.popper),l,f,s),k=Ac(e.elements.reference),N=V6({reference:k,element:x,strategy:"absolute",placement:i}),D=jw(Object.assign({},x,N)),U=p===Au?D:k,A={top:P.top-U.top+_.top,bottom:U.bottom-P.bottom+_.bottom,left:P.left-U.left+_.left,right:U.right-P.right+_.right},Y=e.modifiersData.offset;if(p===Au&&Y){var q=Y[i];Object.keys(A).forEach(function(ee){var Z=[ii,ri].indexOf(ee)>=0?1:-1,te=[xr,ri].indexOf(ee)>=0?"y":"x";A[ee]+=q[te]*Z})}return A}function vte(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?I6:l,f=Ic(r),h=f?a?oM:oM.filter(function(g){return Ic(g)===f}):Gd,p=h.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=h);var m=p.reduce(function(g,v){return g[v]=vd(e,{placement:v,boundary:i,rootBoundary:o,padding:s})[Ki(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function yte(e){if(Ki(e)===AC)return[];var t=hm(e);return[lM(e),t,lM(t)]}function _te(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,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,v=n.allowedAutoPlacements,w=t.options.placement,_=Ki(w),b=_===w,x=l||(b||!g?[hm(w)]:yte(w)),E=[w].concat(x).reduce(function(G,re){return G.concat(Ki(re)===AC?vte(t,{placement:re,boundary:f,rootBoundary:h,padding:c,flipVariations:g,allowedAutoPlacements:v}):re)},[]),P=t.rects.reference,k=t.rects.popper,N=new Map,D=!0,U=E[0],A=0;A<E.length;A++){var Y=E[A],q=Ki(Y),ee=Ic(Y)===Lc,Z=[xr,ri].indexOf(q)>=0,te=Z?"width":"height",ne=vd(t,{placement:Y,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),le=Z?ee?ii:Sr:ee?ri:xr;P[te]>k[te]&&(le=hm(le));var K=hm(le),$=[];if(o&&$.push(ne[q]<=0),a&&$.push(ne[le]<=0,ne[K]<=0),$.every(function(G){return G})){U=Y,D=!1;break}N.set(Y,$)}if(D)for(var I=g?3:1,B=function(re){var se=E.find(function(me){var O=N.get(me);if(O)return O.slice(0,re).every(function(R){return R})});if(se)return U=se,"break"},ie=I;ie>0;ie--){var W=B(ie);if(W==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const bte={name:"flip",enabled:!0,phase:"main",fn:_te,requiresIfExists:["offset"],data:{_skip:!1}};function uM(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 fM(e){return[xr,ii,ri,Sr].some(function(t){return e[t]>=0})}function wte(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=vd(t,{elementContext:"reference"}),a=vd(t,{altBoundary:!0}),l=uM(s,r),c=uM(a,i,o),f=fM(l),h=fM(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 xte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wte};function Ste(e,t,n){var r=Ki(e),i=[Sr,xr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Sr,ii].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Cte(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=I6.reduce(function(f,h){return f[h]=Ste(h,t.rects,o),f},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Ete={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cte};function Tte(e){var t=e.state,n=e.name;t.modifiersData[n]=V6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ote={name:"popperOffsets",enabled:!0,phase:"read",fn:Tte,data:{}};function Pte(e){return e==="x"?"y":"x"}function kte(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,v=g===void 0?0:g,w=vd(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),_=Ki(t.placement),b=Ic(t.placement),x=!b,E=$C(_),P=Pte(E),k=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,U=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(k){if(o){var ee,Z=E==="y"?xr:Sr,te=E==="y"?ri:ii,ne=E==="y"?"height":"width",le=k[E],K=le+w[Z],$=le-w[te],I=m?-D[ne]/2:0,B=b===Lc?N[ne]:D[ne],ie=b===Lc?-D[ne]:-N[ne],W=t.elements.arrow,G=m&&W?FC(W):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:j6(),se=re[Z],me=re[te],O=Sf(0,N[ne],G[ne]),R=x?N[ne]/2-I-O-se-A.mainAxis:B-O-se-A.mainAxis,F=x?-N[ne]/2+I+O+me+A.mainAxis:ie+O+me+A.mainAxis,Q=t.elements.arrow&&Zd(t.elements.arrow),X=Q?E==="y"?Q.clientTop||0:Q.clientLeft||0:0,ae=(ee=Y==null?void 0:Y[E])!=null?ee:0,ve=le+R-ae-X,De=le+F-ae,fe=Sf(m?ov(K,ve):K,le,m?za($,De):$);k[E]=fe,q[E]=fe-le}if(a){var ye,be=E==="x"?xr:Sr,Oe=E==="x"?ri:ii,Ae=k[P],Ne=P==="y"?"height":"width",Le=Ae+w[be],ue=Ae-w[Oe],he=[xr,Sr].indexOf(_)!==-1,we=(ye=Y==null?void 0:Y[P])!=null?ye:0,_e=he?Le:Ae-N[Ne]-D[Ne]-we+A.altAxis,Ee=he?Ae+N[Ne]+D[Ne]-we-A.altAxis:ue,Me=m&&he?Jee(_e,Ae,Ee):Sf(m?_e:Le,Ae,m?Ee:ue);k[P]=Me,q[P]=Me-Ae}t.modifiersData[r]=q}}const Mte={name:"preventOverflow",enabled:!0,phase:"main",fn:kte,requiresIfExists:["offset"]};function Rte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Nte(e){return e===si(e)||!Qr(e)?jC(e):Rte(e)}function Lte(e){var t=e.getBoundingClientRect(),n=Dc(t.width)/e.offsetWidth||1,r=Dc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Dte(e,t,n){n===void 0&&(n=!1);var r=Qr(t),i=Qr(t)&&Lte(t),o=Js(t),s=Ac(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((eo(t)!=="body"||zC(o))&&(a=Nte(t)),Qr(t)?(l=Ac(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=BC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ate(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 s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Ite(e){var t=Ate(e);return qee.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Fte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $te(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 dM={placement:"bottom",modifiers:[],strategy:"absolute"};function hM(){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 jte(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?dM:i;return function(a,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},dM,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],p=!1,m={state:f,setOptions:function(_){var b=typeof _=="function"?_(f.options):_;v(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:el(a)?Cf(a):a.contextElement?Cf(a.contextElement):[],popper:Cf(l)};var x=Ite($te([].concat(r,f.options.modifiers)));return f.orderedModifiers=x.filter(function(E){return E.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var _=f.elements,b=_.reference,x=_.popper;if(hM(b,x)){f.rects={reference:Dte(b,Zd(x),f.options.strategy==="fixed"),popper:FC(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var P=f.orderedModifiers[E],k=P.fn,N=P.options,D=N===void 0?{}:N,U=P.name;typeof k=="function"&&(f=k({state:f,options:D,name:U,instance:m})||f)}}}},update:Fte(function(){return new Promise(function(w){m.forceUpdate(),w(f)})}),destroy:function(){v(),p=!0}};if(!hM(a,l))return m;m.setOptions(c).then(function(w){!p&&c.onFirstUpdate&&c.onFirstUpdate(w)});function g(){f.orderedModifiers.forEach(function(w){var _=w.name,b=w.options,x=b===void 0?{}:b,E=w.effect;if(typeof E=="function"){var P=E({state:f,name:_,instance:m,options:x}),k=function(){};h.push(P||k)}})}function v(){h.forEach(function(w){return w()}),h=[]}return m}}var Bte=[cte,Ote,ate,Kee,Ete,bte,Mte,rte,xte],H6=jte({defaultModifiers:Bte}),zte=typeof Element<"u",Ute=typeof Map=="function",Vte=typeof Set=="function",Hte=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function pm(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(!pm(e[r],t[r]))return!1;return!0}var o;if(Ute&&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(!pm(r.value[1],t.get(r.value[0])))return!1;return!0}if(Vte&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Hte&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(zte&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!pm(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var W6=function(t,n){try{return pm(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Wte=[],Yte=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||Wte},s=H.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=H.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var g=m.state,v=Object.keys(g.elements);l({styles:rM(v.map(function(w){return[w,g.styles[w]||{}]})),attributes:rM(v.map(function(w){return[w,g.attributes[w]]}))})},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 W6(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=H.useRef();return iM(function(){h.current&&h.current.setOptions(f)},[f]),iM(function(){if(!(t==null||n==null)){var p=r.createPopper||H6,m=p(t,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,r.createPopper]),{state:h.current?h.current.state:null,styles:a.styles,attributes:a.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},qte=function(){},Gte=function(){return Promise.resolve(null)},Zte=[];function Y6(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,s=o===void 0?Zte:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=H.useContext(R6),p=H.useState(null),m=p[0],g=p[1],v=H.useState(null),w=v[0],_=v[1];H.useEffect(function(){Fw(c,m)},[c,m]);var b=H.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,l,s,w]),x=Yte(a||h,m,b),E=x.state,P=x.styles,k=x.forceUpdate,N=x.update,D=H.useMemo(function(){return{ref:g,style:P.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:_},forceUpdate:k||qte,update:N||Gte}},[g,_,n,E,P,N,k]);return L6(f)(D)}function Kte(e){var t=e.children,n=e.innerRef,r=H.useContext(N6),i=H.useCallback(function(o){Fw(n,o),D6(r,o)},[n,r]);return H.useEffect(function(){return function(){return Fw(n,null)}}),H.useEffect(function(){},[r]),L6(t)({ref:i})}function Bw(e,t){return Bw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Bw(e,t)}function Xte(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bw(e,t)}const pM={disabled:!1},q6=z.createContext(null);var Ku="unmounted",Ca="exited",Ea="entering",jl="entered",zw="exiting",Bo=function(e){Xte(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=Ca,o.appearStatus=Ea):l=jl:r.unmountOnExit||r.mountOnEnter?l=Ku:l=Ca,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Ku?{status:Ca}: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 s=this.state.status;this.props.in?s!==Ea&&s!==jl&&(o=Ea):(s===Ea||s===jl)&&(o=zw)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Ea?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Ca&&this.setState({status:Ku})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[ja.findDOMNode(this),a],c=l[0],f=l[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||pM.disabled){this.safeSetState({status:jl},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Ea},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:jl},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ja.findDOMNode(this);if(!o||pM.disabled){this.safeSetState({status:Ca},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:zw},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ca},function(){i.props.onExited(a)})})})},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,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:ja.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,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===Ku)return null;var o=this.props,s=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 a=$S(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(q6.Provider,{value:null},typeof s=="function"?s(i,a):z.cloneElement(z.Children.only(s),a))},t}(z.Component);Bo.contextType=q6;Bo.propTypes={};function kl(){}Bo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kl,onEntering:kl,onEntered:kl,onExit:kl,onExiting:kl,onExited:kl};Bo.UNMOUNTED=Ku;Bo.EXITED=Ca;Bo.ENTERING=Ea;Bo.ENTERED=jl;Bo.EXITING=zw;const zo=Bo;function mM(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 qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mM(Object(n),!0).forEach(function(r){Qte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(){return Be=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},Be.apply(this,arguments)}function Jte(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 Ze(e,t){if(e==null)return{};var n=Jte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ene(){let 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);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function UC(e){document.body.style.paddingRight=e>0?`${e}px`:null}function tne(){return document.body.clientWidth<window.innerWidth}function G6(){const e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function Z6(){const e=ene(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;tne()&&UC(n+e)}let nne;function $e(e="",t=nne){return t?e.split(" ").map(n=>t[n]||n).join(" "):e}function Er(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function K6(e,t){const n=Array.isArray(t)?t:[t];let{length:r}=n,i;const o={};for(;r>0;)r-=1,i=n[r],o[i]=e[i];return o}let gM={};function Uw(e){gM[e]||(typeof console<"u"&&console.error(e),gM[e]=!0)}function X6(e,t){return function(r,i,o,...s){return r[i]!==null&&typeof r[i]<"u"&&Uw(`"${i}" property of "${o}" has been deprecated.
|
||
${t}`),e(r,i,o,...s)}}const rne=typeof window=="object"&&window.Element||function(){};function VC(e,t,n){if(!(e[t]instanceof rne))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const Bs=S.oneOfType([S.string,S.func,VC,S.shape({current:S.any})]),ke=S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func}),S.arrayOf(S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func})]))]),tl={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},sv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],go={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},vt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},ine=["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"],HC=!!(typeof window<"u"&&window.document&&window.document.createElement);function one(e){return e&&typeof e=="object"?"current"in e:!1}function Q6(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function av(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function vM(e){const t=typeof e,n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&Q6(e)==="[object Symbol]")return n;if(av(e)){const i=typeof e.valueOf=="function"?e.valueOf():e;e=av(i)?`${i}`:i}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");const r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function sne(e){if(!av(e))return!1;const t=Q6(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function J6(e){if(one(e))return e.current;if(sne(e))return e();if(typeof e=="string"&&HC){let t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll(`#${e}`)),!t.length)throw new Error(`The target '${e}' could not be identified in the dom, tip: check spelling`);return t}return e}function lv(e){return e===null?!1:Array.isArray(e)||HC&&typeof e.length=="number"}function Fc(e,t){const n=J6(e);return t?lv(n)?n:n===null?[]:[n]:lv(n)?n[0]:n}const ane=["touchstart","click"];function lne(e,t,n,r){let i=e;lv(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!lv(i)||typeof t!="function"||!Array.isArray(o))throw new Error(`
|
||
The first argument of this function must be DOM node or an array on DOM nodes or NodeList.
|
||
The second must be a function.
|
||
The third is a string or an array of strings that represents DOM events
|
||
`);return Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,a=>{a.addEventListener(s,t,r)})}),function(){Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(a,t,r)})})}}const e5=["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"])'];S.oneOfType([S.bool,S.string]),S.string,S.object;const cne=["className","cssModule","noGutters","tag","widths"],une=["xs","sm","md","lg","xl","xxl"],Ml=S.oneOfType([S.number,S.string]),fne={tag:ke,noGutters:X6(S.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:S.string,cssModule:S.object,xs:Ml,sm:Ml,md:Ml,lg:Ml,xl:Ml,xxl:Ml,widths:S.array},dne={tag:"div",widths:une};function ur(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=Ze(e,cne),a=[];o.forEach((c,f)=>{let h=e[c];if(delete s[c],!h)return;const p=!f;a.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=$e(ge(t,r?"gx-0":null,"row",a),n);return z.createElement(i,Be({},s,{className:l}))}ur.propTypes=fne;ur.defaultProps=dne;const hne=["className","cssModule","widths","tag"],t5=["xs","sm","md","lg","xl","xxl"],yM=S.oneOfType([S.number,S.string]),Rl=S.oneOfType([S.bool,S.number,S.string,S.shape({size:S.oneOfType([S.bool,S.number,S.string]),order:yM,offset:yM})]),pne={tag:ke,xs:Rl,sm:Rl,md:Rl,lg:Rl,xl:Rl,xxl:Rl,className:S.string,cssModule:S.object,widths:S.array},mne={tag:"div",widths:t5},_M=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,gne=(e,t,n=t5)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(av(a)){const c=l?"-":`-${o}-`,f=_M(l,o,a.size);i.push($e(ge({[f]:a.size||a.size==="",[`order${c}${a.order}`]:a.order||a.order===0,[`offset${c}${a.offset}`]:a.offset||a.offset===0}),t))}else{const c=_M(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function WC(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=Ze(e,hne);let{modifiedAttributes:s,colClasses:a}=gne(o,n,r);a.length||a.push("col");const l=$e(ge(t,a),n);return z.createElement(i,Be({},s,{className:l}))}WC.propTypes=pne;WC.defaultProps=mne;const vne=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],yne={children:S.node,className:S.string,color:S.string,container:S.oneOfType([S.bool,S.string]),cssModule:S.object,dark:S.bool,expand:S.oneOfType([S.bool,S.string]),fixed:S.string,full:S.bool,light:S.bool,role:S.string,sticky:S.string,tag:ke},_ne={tag:"nav",expand:!1,container:"fluid"},bne=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function YC(e){const{expand:t,className:n,cssModule:r,light:i,dark:o,fixed:s,sticky:a,color:l,container:c,tag:f,children:h}=e,p=Ze(e,vne),m=$e(ge(n,"navbar",bne(t),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${s}`]:s,[`sticky-${a}`]:a}),r),g=c&&c===!0?"container":`container-${c}`;return z.createElement(f,Be({},p,{className:m}),c?z.createElement("div",{className:g},h):h)}YC.propTypes=yne;YC.defaultProps=_ne;const wne=["className","cssModule","tag"],xne={className:S.string,cssModule:S.object,tag:ke},Sne={tag:"a"};function qC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,wne),o=$e(ge(t,"navbar-brand"),n);return z.createElement(r,Be({},i,{className:o}))}qC.propTypes=xne;qC.defaultProps=Sne;S.string,S.object,S.bool;const Cne=["className","cssModule","children","tag"],Ene={className:S.string,cssModule:S.object,tag:ke,type:S.string,children:S.node},Tne={tag:"button",type:"button"};function GC(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=Ze(e,Cne),s=$e(ge(t,"navbar-toggler"),n);return z.createElement(i,Be({"aria-label":"Toggle navigation"},o,{className:s}),r||z.createElement("span",{className:$e("navbar-toggler-icon",n)}))}GC.propTypes=Ene;GC.defaultProps=Tne;const One=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],Pne={card:S.bool,className:S.string,cssModule:S.object,fill:S.bool,horizontal:S.oneOf(["center","end"]),justified:S.bool,navbar:S.bool,pills:S.bool,tabs:S.bool,tag:ke,vertical:S.oneOfType([S.bool,S.string])},kne={tag:"ul",vertical:!1},Mne=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function m_(e){const{className:t,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:s,justified:a,fill:l,navbar:c,card:f,tag:h}=e,p=Ze(e,One),m=$e(ge(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,Mne(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":a,"nav-fill":l}),n);return z.createElement(h,Be({},p,{className:m}))}m_.propTypes=Pne;m_.defaultProps=kne;const Rne=["className","cssModule","active","tag"],Nne={active:S.bool,className:S.string,cssModule:S.object,tag:ke},Lne={tag:"li"};function ZC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=Ze(e,Rne),s=$e(ge(t,"nav-item",r?"active":!1),n);return z.createElement(i,Be({},o,{className:s}))}ZC.propTypes=Nne;ZC.defaultProps=Lne;const Dne=["className","cssModule","active","tag","innerRef"],Ane={active:S.bool,className:S.string,cssModule:S.object,disabled:S.bool,href:S.any,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,tag:ke},Ine={tag:"a"};class KC extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled){t.preventDefault();return}this.props.href==="#"&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}render(){let t=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:s}=t,a=Ze(t,Dne);const l=$e(ge(n,"nav-link",{disabled:a.disabled,active:i}),r);return z.createElement(o,Be({},a,{ref:s,onClick:this.onClick,className:l}))}}KC.propTypes=Ane;KC.defaultProps=Ine;var n5=KC;S.string,S.node,S.string,S.object,S.string;S.bool,S.string,S.object;const Fne=["className","cssModule","variant","innerRef"],$ne={active:S.bool,"aria-label":S.string,onClick:S.func,variant:S.oneOf(["white"]),className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])},jne={"aria-label":"close"};function XC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=Ze(e,Fne),s=$e(ge(t,"btn-close",r&&`btn-close-${r}`));return z.createElement("button",Be({ref:i,type:"button",className:s},o))}XC.propTypes=$ne;XC.defaultProps=jne;const Bne=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],zne={active:S.bool,"aria-label":S.string,block:S.bool,children:S.node,className:S.string,cssModule:S.object,close:S.bool,color:S.string,disabled:S.bool,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,outline:S.bool,size:S.string,tag:ke},Une={color:"secondary",tag:"button"};function mt(e){const t=H.useCallback(w=>{if(e.disabled){w.preventDefault();return}if(e.onClick)return e.onClick(w)},[e.onClick,e.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:s,cssModule:a,color:l,outline:c,size:f,tag:h,innerRef:p}=e,m=Ze(e,Bne);if(s)return z.createElement(XC,m);const g=`btn${c?"-outline":""}-${l}`,v=$e(ge(o,"btn",g,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return m.href&&h==="button"&&(h="a"),z.createElement(h,Be({type:h==="button"&&m.onClick?"button":void 0},m,{className:v,ref:p,onClick:t,"aria-label":r}))}mt.propTypes=zne;mt.defaultProps=Une;S.func,S.func,S.func,S.bool,S.string,S.object;const yd=z.createContext({}),r5=z.createContext({}),Vne=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Hne={a11y:S.bool,disabled:S.bool,direction:S.oneOf(["up","down","start","end","left","right"]),group:S.bool,isOpen:S.bool,nav:S.bool,active:S.bool,size:S.string,tag:ke,toggle:S.func,children:S.node,className:S.string,cssModule:S.object,dropup:S.bool,inNavbar:S.bool,setActiveFromChild:S.bool,menuRole:S.oneOf(["listbox","menu"])},Wne={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Yne=[vt.space,vt.enter,vt.up,vt.down,vt.end,vt.home];class g_ extends z.Component{constructor(t){super(t),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=z.createRef(),this.menuRef=z.createRef(),this.toggleRef=z.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(t){this.props.isOpen!==t.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(t){this.menuRef.current=t}handleToggleRef(t){this.toggleRef.current=t}handleDocumentClick(t){if(t&&(t.which===3||t.type==="keyup"&&t.which!==vt.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=t.target===i,s=r&&r.contains(t.target)&&r!==t.target;let a=!1;n&&(a=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&t.target.tagName==="INPUT"),!((o&&!a||s)&&(t.type!=="keyup"||t.which===vt.tab))&&this.toggle(t)}handleKeyDown(t){const n=t.target.getAttribute("role")==="menuitem"||t.target.getAttribute("role")==="option",r=this.getMenuCtrl()===t.target,i=vt.tab===t.which;if(!(/input|textarea/i.test(t.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((Yne.indexOf(t.which)!==-1||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(r&&([vt.space,vt.enter,vt.up,vt.down].indexOf(t.which)>-1?(this.props.isOpen||this.toggle(t),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(t.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&t.which===vt.esc&&this.toggle(t)),this.props.isOpen&&n))){if([vt.tab,vt.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([vt.space,vt.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([vt.down,vt.up].indexOf(t.which)>-1||[vt.n,vt.p].indexOf(t.which)>-1&&t.ctrlKey){const o=this.getMenuItems();let s=o.indexOf(t.target);vt.up===t.which||vt.p===t.which&&t.ctrlKey?s=s!==0?s-1:o.length-1:(vt.down===t.which||vt.n===t.which&&t.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if(vt.end===t.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(vt.home===t.which)this.getMenuItems()[0].focus();else if(t.which>=48&&t.which<=90){const o=this.getMenuItems(),s=String.fromCharCode(t.which).toLowerCase();for(let a=0;a<o.length;a+=1)if((o[a].textContent&&o[a].textContent[0].toLowerCase())===s){o[a].focus();break}}}}handleProps(){this.props.isOpen?this.addEvents():this.removeEvents()}getContextValue(){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}}getContainer(){return this.containerRef.current}getMenu(){return this.menuRef.current}getToggle(){return this.toggleRef.current}getMenuCtrl(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}getItemType(){return this.props.menuRole==="listbox"?"option":"menuitem"}getMenuItems(){const t=this.getMenu()||this.getContainer();return[].slice.call(t.querySelectorAll(`[role="${this.getItemType()}"]`))}addEvents(){["click","touchstart","keyup"].forEach(t=>document.addEventListener(t,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(t=>document.removeEventListener(t,this.handleDocumentClick,!0))}toggle(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}render(){const t=Er(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:s,size:a,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=t,m=Ze(t,Vne),g=h||(l?"li":"div");let v=!1;c&&z.Children.map(this.props.children[1].props.children,_=>{_&&_.props.active&&(v=!0)});const w=$e(ge(n,l&&f?"active":!1,c&&v?"active":!1,{"btn-group":s,[`btn-group-${a}`]:!!a,dropdown:!s,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?z.createElement(yd.Provider,{value:this.getContextValue()},z.createElement(nM,null,z.Children.map(this.props.children,_=>z.cloneElement(_,{onKeyDown:this.handleKeyDown})))):z.createElement(yd.Provider,{value:this.getContextValue()},z.createElement(nM,null,z.createElement(g,Be({},m,{[typeof g=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:w}))))}}g_.propTypes=Hne;g_.defaultProps=Wne;g_.contextType=r5;var Jc=g_;const qne={children:S.node};function v_(e){return z.createElement(Jc,Be({group:!0},e))}v_.propTypes=qne;S.string,S.string,S.object,S.string,S.string,S.bool;S.string,S.string,S.object,S.string;const Gne=["className","cssModule","divider","tag","header","active","text"],Zne={children:S.node,active:S.bool,disabled:S.bool,divider:S.bool,tag:ke,header:S.bool,onClick:S.func,className:S.string,cssModule:S.object,toggle:S.bool,text:S.bool},Kne={tag:"button",toggle:!0};class y_ extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(t){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){t.preventDefault();return}this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:t,header:n,divider:r,text:i}=this.props;return t||n||r||i?"-1":"0"}render(){const t=this.getTabIndex(),n=t>-1?this.getRole():void 0;let r=Er(this.props,["toggle"]),{className:i,cssModule:o,divider:s,tag:a,header:l,active:c,text:f}=r,h=Ze(r,Gne);const p=$e(ge(i,{disabled:h.disabled,"dropdown-item":!s&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":f}),o);return a==="button"&&(l?a="h6":s?a="div":h.href?a="a":f&&(a="span")),z.createElement(a,Be({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}y_.propTypes=Zne;y_.defaultProps=Kne;y_.contextType=yd;var Ve=y_;const Xne=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],Qne={tag:ke,children:S.node.isRequired,dark:S.bool,end:S.bool,flip:S.bool,modifiers:S.array,className:S.string,cssModule:S.object,style:S.object,persist:S.bool,strategy:S.string,container:Bs,updateOnSelect:S.bool,right:X6(S.bool,'Please use "end" instead.')},Jne={tag:"div",flip:!0,modifiers:[]},ere={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class __ extends z.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const t=this.props,{className:n,cssModule:r,dark:i,end:o,right:s,tag:a,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:m}=t,g=Ze(t,Xne),v=$e(ge(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||s,show:this.context.isOpen}),r),w=a;if(f||this.context.isOpen&&!this.context.inNavbar){const E=`${ere[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,P=[...c,{name:"flip",enabled:!!l}],k=z.createElement(Y6,{placement:E,modifiers:P,strategy:h},({ref:N,style:D,placement:U,update:A})=>{let Y=qe(qe({},this.props.style),D);const q=ee=>{N(ee);const{onMenuRef:Z}=this.context;Z&&Z(ee)};return z.createElement(w,Be({tabIndex:"-1",role:this.getRole(),ref:q},g,{style:Y,"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":U,onClick:()=>m&&A()}))});return p?ja.createPortal(k,Fc(p)):k}const{onMenuRef:_}=this.context;return z.createElement(w,Be({tabIndex:"-1",role:this.getRole()},g,{ref:_,"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":g.placement}))}}__.propTypes=Qne;__.defaultProps=Jne;__.contextType=yd;var hl=__;const tre=["className","color","cssModule","caret","split","nav","tag","innerRef"],nre={caret:S.bool,color:S.string,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,onClick:S.func,"aria-haspopup":S.bool,split:S.bool,tag:ke,nav:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func])},rre={color:"secondary","aria-haspopup":!0};class b_ extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled||this.context.disabled){t.preventDefault();return}this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const t=this.props,{className:n,color:r,cssModule:i,caret:o,split:s,nav:a,tag:l,innerRef:c}=t,f=Ze(t,tre),h=f["aria-label"]||"Toggle Dropdown",p=$e(ge(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),m=typeof f.children<"u"?f.children:z.createElement("span",{className:"visually-hidden"},h);let g;return a&&!l?(g="a",f.href="#"):l?g=l:(g=mt,f.color=r,f.cssModule=i),this.context.inNavbar?z.createElement(g,Be({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):z.createElement(Kte,{innerRef:c},({ref:v})=>{const w=_=>{v(_);const{onToggleRef:b}=this.context;b&&b(_)};return z.createElement(g,Be({},f,{[typeof g=="string"?"ref":"innerRef"]:w,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m}))})}}b_.propTypes=nre;b_.defaultProps=rre;b_.contextType=yd;var eu=b_;const ire=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],ore=qe(qe({},zo.propTypes),{},{children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:ke,baseClass:S.string,baseClassActive:S.string,className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])}),sre=qe(qe({},zo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:tl.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Qt(e){const{tag:t,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:s,innerRef:a}=e,l=Ze(e,ire),c=K6(l,sv),f=Er(l,sv);return z.createElement(zo,c,h=>{const m=$e(ge(i,n,h==="entered"&&r),o);return z.createElement(t,Be({className:m},f,{ref:a}),s)})}Qt.propTypes=ore;Qt.defaultProps=sre;z.createContext({});S.node,S.string,S.object,S.bool,S.oneOfType([S.object,S.string,S.func]),S.oneOfType([S.array,S.string]).isRequired,S.func.isRequired;S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.node,S.oneOfType([S.array,S.string]),S.bool;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.string.isRequired;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]);const are=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],lre=qe(qe({},zo.propTypes),{},{horizontal:S.bool,isOpen:S.bool,children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:ke,className:S.node,navbar:S.bool,cssModule:S.object,innerRef:S.shape({current:S.object})}),cre=qe(qe({},zo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:tl.Collapse}),ure={[go.ENTERING]:"collapsing",[go.ENTERED]:"collapse show",[go.EXITING]:"collapsing",[go.EXITED]:"collapse"};function fre(e){return ure[e]||"collapse"}class QC extends H.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||z.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(t,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(t,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const t=this.getNode();this.setState({dimension:this.getDimension(t)}),this.props.onExit(t)}onExiting(){const t=this.getNode();this.getDimension(t),this.setState({dimension:0}),this.props.onExiting(t)}onExited(){const t=this.getNode();this.setState({dimension:null}),this.props.onExited(t)}getNode(){return this.nodeRef.current}getDimension(t){return this.props.horizontal?t.scrollWidth:t.scrollHeight}render(){const t=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:s,cssModule:a,children:l,innerRef:c}=t,f=Ze(t,are),{dimension:h}=this.state,p=K6(f,sv),m=Er(f,sv);return z.createElement(zo,Be({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),g=>{let v=fre(g);const w=$e(ge(o,r&&"collapse-horizontal",v,s&&"navbar-collapse"),a),_=h===null?null:{[r?"width":"height"]:h};return z.createElement(n,Be({},m,{style:qe(qe({},m.style),_),className:w,ref:this.nodeRef}),l)})}}QC.propTypes=lre;QC.defaultProps=cre;var i5=QC;S.string.isRequired,S.string,S.node,S.object,S.oneOfType([S.object,S.string,S.func]);S.node,S.string,S.string,S.object,S.oneOfType([S.object,S.func,S.string]),S.bool;const dre=["className","cssModule","color","body","inverse","outline","tag","innerRef"],hre={body:S.bool,className:S.string,color:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),inverse:S.bool,outline:S.bool,tag:ke},pre={tag:"div"};function Cr(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=Ze(e,dre),f=$e(ge(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return z.createElement(a,Be({},c,{className:f,ref:l}))}Cr.propTypes=hre;Cr.defaultProps=pre;S.string,S.object;S.string,S.object;S.string,S.object;const mre=["className","cssModule","innerRef","tag"],gre={className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),tag:ke},vre={tag:"div"};function nl(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=Ze(e,mre),s=$e(ge(t,"card-body"),n);return z.createElement(i,Be({},o,{className:s,ref:r}))}nl.propTypes=gre;nl.defaultProps=vre;S.oneOfType([S.object,S.func,S.string]),S.string,S.object;const yre=["className","cssModule","tag"],_re={className:S.string,cssModule:S.object,tag:ke},bre={tag:"div"};function JC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,yre),o=$e(ge(t,"card-footer"),n);return z.createElement(r,Be({},i,{className:o}))}JC.propTypes=_re;JC.defaultProps=bre;const wre=["className","cssModule","tag"],xre={className:S.string,cssModule:S.object,tag:ke},Sre={tag:"div"};function rl(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,wre),o=$e(ge(t,"card-header"),n);return z.createElement(r,Be({},i,{className:o}))}rl.propTypes=xre;rl.defaultProps=Sre;S.bool,S.string,S.object,S.bool;S.string,S.object;const mm=z.createContext({}),Cre=["in","children","cssModule","slide","tag","className"];class w_ extends z.Component{constructor(t){super(t),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(t,n){this.setState({startAnimation:!1}),this.props.onEnter(t,n)}onEntering(t,n){const{offsetHeight:r}=t;return this.setState({startAnimation:!0}),this.props.onEntering(t,n),r}onExit(t){this.setState({startAnimation:!1}),this.props.onExit(t)}onExiting(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}onExited(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}render(){const t=this.props,{in:n,children:r,cssModule:i,slide:o,tag:s,className:a}=t,l=Ze(t,Cre);return z.createElement(zo,Be({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===go.ENTERED||c===go.EXITING,p=(c===go.ENTERING||c===go.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),m=c===go.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),g=$e(ge(a,"carousel-item",h&&"active",p,m),i);return z.createElement(s,{className:g},r)})}}w_.propTypes=qe(qe({},zo.propTypes),{},{tag:ke,in:S.bool,cssModule:S.object,children:S.node,slide:S.bool,className:S.string});w_.defaultProps=qe(qe({},zo.defaultProps),{},{tag:"div",timeout:tl.Carousel,slide:!0});w_.contextType=mm;var o5=w_;const Ere=40,s5={activeIndex:S.number,next:S.func.isRequired,previous:S.func.isRequired,keyboard:S.bool,pause:S.oneOf(["hover",!1]),ride:S.oneOf(["carousel"]),interval:S.oneOfType([S.number,S.string,S.bool]),children:S.array,mouseEnter:S.func,mouseLeave:S.func,slide:S.bool,dark:S.bool,fade:S.bool,cssModule:S.object,className:S.string,enableTouch:S.bool},Tre=Object.keys(s5),Ore={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class eE extends z.Component{constructor(t){super(t),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(t,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:s}=n;return t.activeIndex!==i&&(t.activeIndex===i+1?o="end":t.activeIndex===i-1?o="start":t.activeIndex<i?o=s?"start":"end":t.activeIndex!==i&&(o=s?"end":"start"),r={activeIndex:t.activeIndex,direction:o,indicatorClicked:!1}),r}componentDidUpdate(t,n){n.activeIndex!==this.state.activeIndex&&this.setInterval()}componentWillUnmount(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}handleKeyPress(t){this.props.keyboard&&(t.keyCode===37?this.props.previous():t.keyCode===39&&this.props.next())}handleTouchStart(t){this.props.enableTouch&&(this.touchStartX=t.changedTouches[0].screenX,this.touchStartY=t.changedTouches[0].screenY)}handleTouchEnd(t){if(!this.props.enableTouch)return;const n=t.changedTouches[0].screenX,r=t.changedTouches[0].screenY,i=Math.abs(this.touchStartX-n),o=Math.abs(this.touchStartY-r);i<o||i<Ere||(n<this.touchStartX?this.props.next():this.props.previous())}getContextValue(){return{direction:this.state.direction}}setInterval(){this.clearInterval(),this.props.interval&&(this.cycleInterval=setInterval(()=>{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...t){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...t)}hoverEnd(...t){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...t)}renderItems(t,n){const{slide:r}=this.props;return z.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return z.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Er(this.props,Tre),a=$e(ge(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=$e(ge("carousel-inner"),t),c=this.props.children.filter(_=>_!=null&&typeof _!="boolean");if(c.every(_=>_.type===o5))return z.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),z.createElement(mm.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const _=c[0],b=c[1],x=c[2];return z.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),z.createElement(mm.Provider,{value:this.getContextValue()},this.renderItems(_,l),b,x))}const h=c[0],p=_=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(_))},m=z.cloneElement(h,{onClickHandler:p}),g=c[1],v=c[2],w=c[3];return z.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),z.createElement(mm.Provider,{value:this.getContextValue()},m,this.renderItems(g,l),v,w))}}eE.propTypes=s5;eE.defaultProps=Ore;var Pre=eE;const kre=["direction","onClickHandler","cssModule","directionText","className"];function Vw(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=Ze(e,kre),a=$e(ge(o,`carousel-control-${t}`),r),l=$e(ge(`carousel-control-${t}-icon`),r),c=$e(ge("visually-hidden"),r);return z.createElement("a",Be({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),z.createElement("span",{className:l,"aria-hidden":"true"}),z.createElement("span",{className:c},i||t))}Vw.propTypes={direction:S.oneOf(["prev","next"]).isRequired,onClickHandler:S.func.isRequired,cssModule:S.object,directionText:S.string,className:S.string};const Mre=["items","activeIndex","cssModule","onClickHandler","className"];function a5(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=Ze(e,Mre),a=$e(ge(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=$e(ge({active:n===f}),r);return z.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return z.createElement("div",Be({className:a},s),l)}a5.propTypes={activeIndex:S.number.isRequired,className:S.string,cssModule:S.object,items:S.array.isRequired,onClickHandler:S.func.isRequired};function l5(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=$e(ge(i,"carousel-caption","d-none","d-md-block"),r);return z.createElement("div",{className:o},z.createElement("h3",null,t),z.createElement("p",null,n))}l5.propTypes={captionHeader:S.node,captionText:S.node.isRequired,className:S.string,cssModule:S.object};const Rre=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],Nre={items:S.array.isRequired,indicators:S.bool,controls:S.bool,autoPlay:S.bool,defaultActiveIndex:S.number,activeIndex:S.number,next:S.func,previous:S.func,goToIndex:S.func};class c5 extends H.Component{constructor(t){super(t),this.animating=!1,this.state={activeIndex:t.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===this.props.items.length-1?0:t.activeIndex+1}))}previous(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===0?this.props.items.length-1:t.activeIndex-1}))}goToIndex(t){this.animating||this.setState({activeIndex:t})}render(){const t=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:s,goToIndex:a}=t,l=Ze(t,Rre),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return z.createElement(o5,{onExiting:this.onExiting,onExited:this.onExited,key:p},z.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),z.createElement(l5,{captionText:h.caption,captionHeader:h.header||h.caption}))});return z.createElement(Pre,Be({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&z.createElement(a5,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&z.createElement(Vw,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&z.createElement(Vw,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}c5.propTypes=Nre;c5.defaultProps={controls:!0,indicators:!0,autoPlay:!0};S.string,S.object;const Lre=["className","cssModule","tag"],Dre={className:S.string,cssModule:S.object,tag:ke},Are={tag:"p"};function tE(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,Lre),o=$e(ge(t,"card-text"),n);return z.createElement(r,Be({},i,{className:o}))}tE.propTypes=Dre;tE.defaultProps=Are;const Ire=["className","cssModule","tag"],Fre={className:S.string,cssModule:S.object,tag:ke},$re={tag:"div"};function nE(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,Ire),o=$e(ge(t,"card-title"),n);return z.createElement(r,Be({},i,{className:o}))}nE.propTypes=Fre;nE.defaultProps=$re;const jre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Bre(){}const zre={children:S.oneOfType([S.node,S.func]).isRequired,popperClassName:S.string,placement:S.string,placementPrefix:S.string,arrowClassName:S.string,hideArrow:S.bool,tag:ke,isOpen:S.bool,cssModule:S.object,offset:S.arrayOf(S.number),fallbackPlacements:S.array,flip:S.bool,container:Bs,target:Bs.isRequired,modifiers:S.array,strategy:S.string,boundariesElement:S.oneOfType([S.string,VC]),onClosed:S.func,fade:S.bool,transition:S.shape(Qt.propTypes)},Ure={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Bre,fade:!0,transition:qe({},Qt.defaultProps)};class rE extends z.Component{constructor(t){super(t),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:t.isOpen}}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return Fc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?Fc(t):t}renderChildren(){const t=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:s,offset:a,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:m,container:g,modifiers:v,strategy:w,boundariesElement:_,onClosed:b,fade:x,transition:E,placement:P}=t,k=Ze(t,jre),N=$e(ge("arrow",f),n),D=$e(ge(p,c?`${c}-auto`:""),this.props.cssModule),U=v.map(ee=>ee.name),Y=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:_}}].filter(ee=>!U.includes(ee.name)),...v],q=qe(qe(qe({},Qt.defaultProps),E),{},{baseClass:x?E.baseClass:"",timeout:x?E.timeout:0});return z.createElement(Qt,Be({},q,k,{in:i,onExited:this.onClosed,tag:m}),z.createElement(Y6,{referenceElement:this.targetNode,modifiers:Y,placement:P,strategy:w},({ref:ee,style:Z,placement:te,isReferenceHidden:ne,arrowProps:le,update:K})=>z.createElement("div",{ref:ee,style:Z,className:D,"data-popper-placement":te,"data-popper-reference-hidden":ne?"true":void 0},typeof r=="function"?r({update:K}):r,!h&&z.createElement("span",{ref:le.ref,className:N,style:le.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():ja.createPortal(z.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}rE.propTypes=zre;rE.defaultProps=Ure;var Vre=rE;S.object.isRequired;Bs.isRequired;const x_={children:S.oneOfType([S.node,S.func]),placement:S.oneOf(ine),target:Bs.isRequired,container:Bs,isOpen:S.bool,disabled:S.bool,hideArrow:S.bool,boundariesElement:S.oneOfType([S.string,VC]),className:S.string,innerClassName:S.string,arrowClassName:S.string,popperClassName:S.string,cssModule:S.object,toggle:S.func,autohide:S.bool,placementPrefix:S.string,delay:S.oneOfType([S.shape({show:S.number,hide:S.number}),S.number]),modifiers:S.array,strategy:S.string,offset:S.arrayOf(S.number),innerRef:S.oneOfType([S.func,S.string,S.object]),trigger:S.string,fade:S.bool,flip:S.bool},u5={show:0,hide:50},Hre={isOpen:!1,hideArrow:!1,autohide:!1,delay:u5,toggle:function(){},trigger:"click",fade:!0};function f5(e,t){return t&&(e===t||t.contains(e))}function bM(e,t=[]){return t&&t.length&&t.filter(n=>f5(e,n))[0]}class iE extends z.Component{constructor(t){super(t),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:t.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}handleDocumentClick(t){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||bM(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!f5(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&bM(t.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(t):this.showWithDelay(t))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(t){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),t.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide")))}onEscKeyDown(t){t.key==="Escape"&&this.hide(t)}getRef(t){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(t):typeof n=="object"&&(n.current=t)),this._popover=t}getDelay(t){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[t])?u5[t]:n[t]:n}getCurrentTarget(t){if(!t)return null;const n=this._targets.indexOf(t);return n>=0?this._targets[n]:this.getCurrentTarget(t.parentElement)}show(t){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=t?t.currentTarget||this.getCurrentTarget(t.target):null,t&&t.composedPath&&typeof t.composedPath=="function"){const n=t.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(t)}}showWithDelay(t){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,t),this.getDelay("show"))}hide(t){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(t))}hideWithDelay(t){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(t,n,r){this._targets.forEach(i=>{i.addEventListener(t,n,r)})}removeEventOnTargets(t,n,r){this._targets.forEach(i=>{i.removeEventListener(t,n,r)})}addTargetEvents(){if(this.props.trigger){let t=this.props.trigger.split(" ");t.indexOf("manual")===-1&&((t.indexOf("click")>-1||t.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(t.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),t.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){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)}updateTarget(){const t=Fc(this.props.target,!0);t!==this._targets&&(this.removeTargetEvents(),this._targets=t?Array.from(t):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(t){return this.props.disabled||!this._isMounted?t&&t.preventDefault():this.props.toggle(t)}render(){this.props.isOpen&&this.updateTarget();const t=this.currentTargetElement||this._targets[0];if(!t)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:m,strategy:g,offset:v,fade:w,flip:_,children:b}=this.props,x=Er(this.props,Object.keys(x_)),E=$e(h,r),P=$e(i,r);return z.createElement(Vre,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:E,container:p,modifiers:m,strategy:g,offset:v,cssModule:r,fade:w,flip:_},({update:k})=>z.createElement("div",Be({},x,{ref:this.getRef,className:P,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof b=="function"?b({update:k}):b))}}iE.propTypes=x_;iE.defaultProps=Hre;var d5=iE;const Wre={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Kd(e){const t=ge("popover","show",e.popperClassName),n=ge("popover-inner",e.innerClassName);return z.createElement(d5,Be({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}Kd.propTypes=x_;Kd.defaultProps=Wre;const Yre=["defaultOpen"];class qre extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(Kd,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,Yre)))}}qre.propTypes=qe({defaultOpen:S.bool},Kd.propTypes);S.string,S.object;S.string,S.object;const Gre=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],Zre={animated:S.bool,bar:S.bool,barAriaLabelledBy:S.string,barAriaValueText:S.string,barClassName:S.string,barStyle:S.object,children:S.node,className:S.string,cssModule:S.object,color:S.string,max:S.oneOfType([S.string,S.number]),min:S.oneOfType([S.string,S.number]),multi:S.bool,striped:S.bool,style:S.object,tag:ke,value:S.oneOfType([S.string,S.number])},Kre={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function oE(e){const{children:t,className:n,barClassName:r,cssModule:i,value:o,min:s,max:a,animated:l,striped:c,color:f,bar:h,multi:p,tag:m,style:g,barStyle:v,barAriaValueText:w,barAriaLabelledBy:_}=e,b=Ze(e,Gre),x=vM(o)/vM(a)*100,E=$e(ge(n,"progress"),i),k={className:$e(ge("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:qe(qe(qe({},h?g:{}),v),{},{width:`${x}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":a,"aria-valuetext":w,"aria-labelledby":_,children:t};return h?z.createElement(m,Be({},b,k)):z.createElement(m,Be({},b,{style:g,className:E}),p?t:z.createElement("div",k))}oE.propTypes=Zre;oE.defaultProps=Kre;const Xre={children:S.node.isRequired,node:S.any};class h5 extends z.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return HC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),ja.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}h5.propTypes=Xre;var p5=h5;function cv(){}const wM=S.shape(Qt.propTypes),m5={autoFocus:S.bool,backdrop:S.oneOfType([S.bool,S.oneOf(["static"])]),backdropClassName:S.string,backdropTransition:wM,centered:S.bool,children:S.node,contentClassName:S.string,className:S.string,container:Bs,cssModule:S.object,external:S.node,fade:S.bool,fullscreen:S.oneOfType([S.bool,S.oneOf(["sm","md","lg","xl"])]),innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,modalClassName:S.string,modalTransition:wM,onClosed:S.func,onEnter:S.func,onExit:S.func,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,size:S.string,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,wrapClassName:S.string,zIndex:S.oneOfType([S.number,S.string])},Qre=Object.keys(m5),Jre={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:cv,onClosed:cv,modalTransition:{timeout:tl.Modal},backdropTransition:{mountOnEnter:!0,timeout:tl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class Vn extends z.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){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}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&t.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.modalIndex<Vn.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let s=0;s<r;s+=1)if(n[s]===i){o=s;break}t.shiftKey&&o===0?(t.preventDefault(),n[r-1].focus()):!t.shiftKey&&o===r-1&&(t.preventDefault(),n[0].focus())}handleBackdropMouseDown(t){this._mouseDownElement=t.target}handleEscape(t){this.props.isOpen&&t.keyCode===vt.esc&&this.props.toggle&&(this.props.keyboard?(t.preventDefault(),t.stopPropagation(),this.props.toggle(t)):this.props.backdrop==="static"&&(t.preventDefault(),t.stopPropagation(),this.handleStaticBackdropAnimation()))}handleStaticBackdropAnimation(){this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(()=>{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(t,n){this.props.onOpened(),(this.props.modalTransition.onEntered||cv)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||cv)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(e5.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===t.target||this.modalIndex<Vn.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===t.target)return;n.length>0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){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=Fc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=G6(),Vn.openCount<1&&(Vn.originalBodyOverflow=window.getComputedStyle(document.body).overflow),Z6(),Vn.openCount===0&&(document.body.className=ge(document.body.className,$e("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=Vn.openCount,Vn.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(Vn.openCount<=1){const t=$e("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=Vn.originalBodyOverflow}this.manageFocusAfterClose(),Vn.openCount=Math.max(0,Vn.openCount-1),UC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Er(this.props,Qre),n="modal-dialog";return z.createElement("div",Be({},t,{className:$e(ge(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),z.createElement("div",{className:$e(ge("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:t}=this.props;if(this._element&&(this.state.isOpen||!t)){const n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,m={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},g=this.props.fade,v=qe(qe(qe({},Qt.defaultProps),this.props.modalTransition),{},{baseClass:g?this.props.modalTransition.baseClass:"",timeout:g?this.props.modalTransition.timeout:0}),w=qe(qe(qe({},Qt.defaultProps),this.props.backdropTransition),{},{baseClass:g?this.props.backdropTransition.baseClass:"",timeout:g?this.props.backdropTransition.timeout:0}),_=l&&(g?z.createElement(Qt,Be({},w,{in:a&&!!l,cssModule:s,className:$e(ge("modal-backdrop",o),s)})):z.createElement("div",{className:$e(ge("modal-backdrop","show",o),s)}));return z.createElement(p5,{node:this._element},z.createElement("div",{className:$e(r)},z.createElement(Qt,Be({},m,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:$e(ge("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),_))}return null}}Vn.propTypes=m5;Vn.defaultProps=Jre;Vn.openCount=0;Vn.originalBodyOverflow=null;var Uo=Vn;const eie=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],tie={children:S.node,className:S.string,close:S.object,closeAriaLabel:S.string,cssModule:S.object,tag:ke,toggle:S.func,wrapTag:ke},nie={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function ro(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=Ze(e,eie),h=$e(ge(n,"modal-header"),r);return!c&&o&&(t=z.createElement("button",{type:"button",onClick:o,className:$e("btn-close",r),"aria-label":l})),z.createElement(a,Be({},f,{className:h}),z.createElement(s,{className:$e("modal-title",r)},i),c||t)}ro.propTypes=tie;ro.defaultProps=nie;const rie=["className","cssModule","tag"],iie={className:S.string,cssModule:S.object,tag:ke},oie={tag:"div"};function Mi(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,rie),o=$e(ge(t,"modal-body"),n);return z.createElement(r,Be({},i,{className:o}))}Mi.propTypes=iie;Mi.defaultProps=oie;const sie=["className","cssModule","tag"],aie={className:S.string,cssModule:S.object,tag:ke},lie={tag:"div"};function ea(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,sie),o=$e(ge(t,"modal-footer"),n);return z.createElement(r,Be({},i,{className:o}))}ea.propTypes=aie;ea.defaultProps=lie;const cie={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Xd(e){const t=ge("tooltip","show",e.popperClassName),n=ge("tooltip-inner",e.innerClassName);return z.createElement(d5,Be({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Xd.propTypes=x_;Xd.defaultProps=cie;S.bool,S.bool,S.string,S.object,S.bool,S.bool,S.oneOfType([S.func,S.string,S.object]),S.oneOfType([S.bool,S.string]),S.string,S.bool;const uie=["className","cssModule","tag","flush","horizontal","numbered"],fie={className:S.string,cssModule:S.object,flush:S.bool,horizontal:S.oneOfType([S.bool,S.string]),numbered:S.bool,tag:ke},die={tag:"ul",horizontal:!1,numbered:!1},hie=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function sE(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=Ze(e,uie),l=$e(ge(t,"list-group",i?"list-group-flush":hie(o),{"list-group-numbered":s}),n);return z.createElement(r,Be({},a,{className:l}))}sE.propTypes=fie;sE.defaultProps=die;const pie=["className","cssModule","tag","innerRef"],mie={children:S.node,tag:ke,innerRef:S.oneOfType([S.object,S.func,S.string]),className:S.string,cssModule:S.object},gie={tag:"form"};class g5 extends H.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}submit(){this.ref&&this.ref.submit()}render(){const t=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=t,s=Ze(t,pie),a=$e(n,r);return z.createElement(i,Be({},s,{ref:o,className:a}))}}g5.propTypes=mie;g5.defaultProps=gie;S.node,S.string,S.object,S.bool,S.bool;const vie=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],yie={children:S.node,row:S.bool,check:S.bool,switch:S.bool,inline:S.bool,floating:S.bool,disabled:S.bool,tag:ke,className:S.string,cssModule:S.object},_ie={tag:"div"};function Zr(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=Ze(e,vie),h=o||c,p=$e(ge(t,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&s?"form-check-inline":!1,h&&i?"disabled":!1,a&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),z.createElement(l,Be({},f,{className:p}))}Zr.propTypes=yie;Zr.defaultProps=_ie;S.node,S.bool,S.string,S.string,S.object;const bie=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],wie={children:S.node,type:S.string,size:S.oneOfType([S.number,S.string]),bsSize:S.string,valid:S.bool,invalid:S.bool,tag:ke,innerRef:S.oneOfType([S.object,S.func,S.string]),plaintext:S.bool,addon:S.bool,className:S.string,cssModule:S.object},xie={type:"text"};let aE=class extends z.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}focus(){this.ref&&this.ref.focus()}render(){let t=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:s,invalid:a,tag:l,addon:c,plaintext:f,innerRef:h}=t,p=Ze(t,bie);const m=["switch","radio","checkbox"].indexOf(i)>-1,g=/\D/g,v=i==="textarea",w=i==="select",_=i==="range";let b=l||(w||v?i:"input"),x="form-control";f?(x=`${x}-plaintext`,b=l||"input"):_?x="form-range":w?x="form-select":m&&(c?x=null:x="form-check-input"),p.size&&g.test(p.size)&&(Uw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const E=$e(ge(n,a&&"is-invalid",s&&"is-valid",o?w?`form-select-${o}`:`form-control-${o}`:!1,x),r);return(b==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof b!="string"||b==="select")&&(Uw(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),z.createElement(b,Be({},p,{ref:h,className:E,"aria-invalid":a}))}};aE.propTypes=wie;aE.defaultProps=xie;var _d=aE;const Sie=["className","cssModule","tag","type","size"],Cie={className:S.string,cssModule:S.object,size:S.string,tag:ke,type:S.string},Eie={tag:"div"};function Qd(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=Ze(e,Sie),a=$e(ge(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?z.createElement(Jc,Be({},s,{className:a})):z.createElement(r5.Provider,{value:{insideInputGroup:!0}},z.createElement(r,Be({},s,{className:a})))}Qd.propTypes=Cie;Qd.defaultProps=Eie;S.string,S.object;const yb=S.oneOfType([S.number,S.string]),Nl=S.oneOfType([S.bool,S.string,S.number,S.shape({size:yb,order:yb,offset:yb})]);S.node,S.bool,S.bool,S.string,S.string,S.string,S.object,S.array;S.bool,S.bool,S.node,S.string,S.object,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool;function uv(){}const xM=S.shape(Qt.propTypes),v5={autoFocus:S.bool,backdrop:S.bool,backdropClassName:S.string,backdropTransition:xM,children:S.node,className:S.string,container:Bs,cssModule:S.object,direction:S.oneOf(["start","end","bottom","top"]),fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,offcanvasTransition:xM,onClosed:S.func,onEnter:S.func,onExit:S.func,style:S.object,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,zIndex:S.oneOfType([S.number,S.string])},Tie=Object.keys(v5),Oie={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:uv,onClosed:uv,offcanvasTransition:{timeout:tl.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:tl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class mi extends z.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){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}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.offcanvasIndex<mi.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let s=0;s<r;s+=1)if(n[s]===i){o=s;break}t.shiftKey&&o===0?(t.preventDefault(),n[r-1].focus()):!t.shiftKey&&o===r-1&&(t.preventDefault(),n[0].focus())}handleBackdropMouseDown(t){this._mouseDownElement=t.target}handleEscape(t){this.props.isOpen&&t.keyCode===vt.esc&&this.props.toggle&&this.props.keyboard&&(t.preventDefault(),t.stopPropagation(),this.props.toggle(t))}onOpened(t,n){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||uv)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.offcanvasTransition.onExited||uv)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&typeof this._dialog.focus=="function"&&this._dialog.focus()}getFocusableChildren(){return this._element.querySelectorAll(e5.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog===t.target||this.offcanvasIndex<mi.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===t.target)return;n.length>0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){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=Fc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=G6(),Z6(),mi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=mi.openCount,mi.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),mi.openCount=Math.max(0,mi.openCount-1),document.body.style.overflow=null,UC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:t,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},m=this.props.fade,g=qe(qe(qe({},Qt.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),v=qe(qe(qe({},Qt.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),w=l&&(m?z.createElement(Qt,Be({},v,{in:a&&!!l,innerRef:b=>{this._backdrop=b},cssModule:s,className:$e(ge("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):z.createElement("div",{className:$e(ge("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=Er(this.props,Tie);return z.createElement(p5,{node:this._element},z.createElement(Qt,Be({},_,p,g,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:$e(ge("offcanvas",i,`offcanvas-${t}`),s),innerRef:b=>{this._dialog=b},style:qe(qe({},h),{},{visibility:a?"visible":"hidden"})}),this.props.children),w)}return null}}mi.propTypes=v5;mi.defaultProps=Oie;mi.openCount=0;S.string,S.object;S.node,S.string,S.object,S.string,S.object,S.func;const Pie=["className","listClassName","cssModule","size","tag","listTag","aria-label"],kie={children:S.node,className:S.string,listClassName:S.string,cssModule:S.object,size:S.string,tag:ke,listTag:ke,"aria-label":S.string},Mie={tag:"nav",listTag:"ul","aria-label":"pagination"};function S_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=Ze(e,Pie),c=$e(ge(t),r),f=$e(ge(n,"pagination",{[`pagination-${i}`]:!!i}),r);return z.createElement(o,{className:c,"aria-label":a},z.createElement(s,Be({},l,{className:f})))}S_.propTypes=kie;S_.defaultProps=Mie;const Rie=["active","className","cssModule","disabled","tag"],Nie={active:S.bool,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,tag:ke},Lie={tag:"li"};function ks(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=Ze(e,Rie),a=$e(ge(n,"page-item",{active:t,disabled:i}),r);return z.createElement(o,Be({},s,{className:a}))}ks.propTypes=Nie;ks.defaultProps=Lie;const Die=["className","cssModule","next","previous","first","last","tag"],Aie={"aria-label":S.string,children:S.node,className:S.string,cssModule:S.object,next:S.bool,previous:S.bool,first:S.bool,last:S.bool,tag:ke},Iie={tag:"a"};function Ms(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=Ze(e,Die);const c=$e(ge(t,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":s&&(f="Last");const h=e["aria-label"]||f;let p;i?p="‹":r?p="›":o?p="«":s&&(p="»");let{children:m}=e;return m&&Array.isArray(m)&&m.length===0&&(m=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(m=[z.createElement("span",{"aria-hidden":"true",key:"caret"},m||p),z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),z.createElement(a,Be({},l,{className:c,"aria-label":h}),m)}Ms.propTypes=Aie;Ms.defaultProps=Iie;const Fie=z.createContext({}),y5={tag:ke,activeTab:S.any,className:S.string,cssModule:S.object},$ie={tag:"div"};class _5 extends H.Component{static getDerivedStateFromProps(t,n){return n.activeTab!==t.activeTab?{activeTab:t.activeTab}:null}constructor(t){super(t),this.state={activeTab:this.props.activeTab}}render(){const{className:t,cssModule:n,tag:r}=this.props,i=Er(this.props,Object.keys(y5)),o=$e(ge("tab-content",t),n);return z.createElement(Fie.Provider,{value:{activeTabId:this.state.activeTab}},z.createElement(r,Be({},i,{className:o})))}}_5.propTypes=y5;_5.defaultProps=$ie;S.string,S.object,S.any;const jie=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Bie={children:S.node,className:S.string,closeClassName:S.string,closeAriaLabel:S.string,color:S.string,cssModule:S.object,fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,tag:ke,toggle:S.func,transition:S.shape(Qt.propTypes)},zie={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:qe(qe({},Qt.defaultProps),{},{unmountOnExit:!0})};function lE(e){const{className:t,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:s,isOpen:a,toggle:l,children:c,transition:f,fade:h,innerRef:p}=e,m=Ze(e,jie),g=$e(ge(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),v=$e(ge("btn-close",n),i),w=qe(qe(qe({},Qt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return z.createElement(Qt,Be({},m,w,{tag:o,className:g,in:a,role:"alert",innerRef:p}),l?z.createElement("button",{type:"button",className:v,"aria-label":r,onClick:l}):null,c)}lE.propTypes=Bie;lE.defaultProps=zie;S.node,S.string,S.object,S.bool,S.bool,S.shape(Qt.propTypes),S.oneOfType([S.object,S.string,S.func]);qe(qe({},Qt.defaultProps),{},{unmountOnExit:!0});S.string,S.object,S.oneOfType([S.object,S.string,S.func]);S.oneOfType([S.string,S.node]),S.func,S.string,S.object,S.node,S.string,S.oneOfType([S.string,S.number]),S.object,S.string;const Uie=["className","cssModule","tag","active","disabled","action","color"],Vie={action:S.bool,active:S.bool,className:S.string,cssModule:S.object,color:S.string,disabled:S.bool,tag:ke},Hie={tag:"li"},Wie=e=>{e.preventDefault()};function cE(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=Ze(e,Uie),c=$e(ge(t,i?"active":!1,o?"disabled":!1,s?"list-group-item-action":!1,a?`list-group-item-${a}`:!1,"list-group-item"),n);return o&&(l.onClick=Wie),z.createElement(r,Be({},l,{className:c}))}cE.propTypes=Vie;cE.defaultProps=Hie;S.string,S.object;S.string,S.object;const Yie=["className","cssModule","tag","type"],qie={className:S.string,cssModule:S.object,tag:ke,type:S.string},Gie={tag:"ul"},uE=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=Ze(e,Yie),a=$e(ge(n,o?`list-${o}`:!1),r);return z.createElement(i,Be({},s,{className:a,ref:t}))});uE.name="List";uE.propTypes=qie;uE.defaultProps=Gie;const Zie=["className","cssModule","tag"],Kie={className:S.string,cssModule:S.object,tag:ke},Xie={tag:"li"},fE=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=Ze(e,Zie),s=$e(ge(n,"list-inline-item"),r);return z.createElement(i,Be({},o,{className:s,ref:t}))});fE.name="ListInlineItem";fE.propTypes=Kie;fE.defaultProps=Xie;const Qie=["defaultOpen"];class Jie extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(v_,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,Qie)))}}Jie.propTypes=qe({defaultOpen:S.bool},v_.propTypes);const eoe=["toggleEvents","defaultOpen"],toe={defaultOpen:S.bool,toggler:S.string.isRequired,toggleEvents:S.arrayOf(S.string)},noe={toggleEvents:ane};class b5 extends H.Component{constructor(t){super(t),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:t.defaultOpen||!1}}componentDidMount(){this.togglers=J6(this.props.toggler),this.togglers.length&&(this.removeEventListeners=lne(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(t){this.setState(({isOpen:n})=>({isOpen:!n})),t.preventDefault()}render(){return z.createElement(i5,Be({isOpen:this.state.isOpen},Er(this.props,eoe)))}}b5.propTypes=toe;b5.defaultProps=noe;const roe=["defaultOpen"];class Jd extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(t){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(t,this.state.isOpen)})}render(){return z.createElement(Jc,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,roe)))}}Jd.propTypes=qe({defaultOpen:S.bool,onToggle:S.func},Jc.propTypes);const ioe=["defaultOpen"];class Br extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(Xd,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,ioe)))}}Br.propTypes=qe({defaultOpen:S.bool},Xd.propTypes);S.oneOf(["border","grow"]),S.oneOf(["sm"]),S.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),S.string,S.object,S.string;qe(qe({},WC.propTypes),{},{color:S.string,tag:ke,animation:S.oneOf(["glow","wave"]),innerRef:S.oneOfType([S.object,S.func,S.string]),size:S.oneOf(["lg","sm","xs"])});S.string,S.string,S.bool,S.string,S.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const e=(t,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=e})();(()=>{if(typeof Object.values=="function")return;Object.values=t=>Object.keys(t).map(n=>t[n])})();const ooe="Left",soe="Right",aoe="Up",loe="Down",nc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Hw={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},SM="mousemove",CM="mouseup",coe="touchend",uoe="touchmove",foe="touchstart";function doe(e,t,n,r){return e>t?n>0?soe:ooe:r>0?loe:aoe}function EM(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 hoe(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,m)=>{m.trackMouse&&!h&&(document.addEventListener(SM,r),document.addEventListener(CM,s));const{clientX:g,clientY:v}=h?f.touches[0]:f,w=EM([g,v],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),Hw),{initial:w.slice(),xy:w,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const m="touches"in f;if(m&&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:g,clientY:v}=m?f.touches[0]:f,[w,_]=EM([g,v],p.rotationAngle),b=w-h.xy[0],x=_-h.xy[1],E=Math.abs(b),P=Math.abs(x),k=(f.timeStamp||0)-h.start,N=Math.sqrt(E*E+P*P)/(k||1),D=[b/(k||1),x/(k||1)],U=doe(E,P,b,x),A=typeof p.delta=="number"?p.delta:p.delta[U.toLowerCase()]||nc.delta;if(E<A&&P<A&&!h.swiping)return h;const Y={absX:E,absY:P,deltaX:b,deltaY:x,dir:U,event:f,first:h.first,initial:h.initial,velocity:N,vxvy:D};Y.first&&p.onSwipeStart&&p.onSwipeStart(Y),p.onSwiping&&p.onSwiping(Y);let q=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${U}`])&&(q=!0),q&&p.preventScrollOnSwipe&&p.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},h),{first:!1,eventData:Y,swiping:!0})})},i=f=>{e((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start<p.swipeDuration){m=Object.assign(Object.assign({},h.eventData),{event:f}),p.onSwiped&&p.onSwiped(m);const g=p[`onSwiped${m.dir}`];g&&g(m)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},h),Hw),{eventData:m})})},o=()=>{document.removeEventListener(SM,r),document.removeEventListener(CM,s)},s=f=>{o(),i(f)},a=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const m=Object.assign(Object.assign({},nc.touchEventOptions),h.touchEventOptions),g=[[foe,n,m],[uoe,r,Object.assign(Object.assign({},m),h.preventScrollOnSwipe?{passive:!1}:{})],[coe,i,m]];g.forEach(([v,w,_])=>f.addEventListener(v,w,_)),p=()=>g.forEach(([v,w])=>f.removeEventListener(v,w))}return p},c={ref:f=>{f!==null&&e((h,p)=>{if(h.el===f)return h;const m={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&f&&(m.cleanUpTouch=a(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),m)})}};return t.trackMouse&&(c.onMouseDown=n),[c,a]}function poe(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 moe(e){const{trackMouse:t}=e,n=H.useRef(Object.assign({},Hw)),r=H.useRef(Object.assign({},nc)),i=H.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},nc),e);let o;for(o in nc)r.current[o]===void 0&&(r.current[o]=nc[o]);const[s,a]=H.useMemo(()=>hoe(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=poe(n.current,r.current,i.current,a),s}var Pp,goe=new Uint8Array(16);function voe(){if(!Pp&&(Pp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Pp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pp(goe)}const yoe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function _oe(e){return typeof e=="string"&&yoe.test(e)}var Bn=[];for(var _b=0;_b<256;++_b)Bn.push((_b+256).toString(16).substr(1));function boe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Bn[e[t+0]]+Bn[e[t+1]]+Bn[e[t+2]]+Bn[e[t+3]]+"-"+Bn[e[t+4]]+Bn[e[t+5]]+"-"+Bn[e[t+6]]+Bn[e[t+7]]+"-"+Bn[e[t+8]]+Bn[e[t+9]]+"-"+Bn[e[t+10]]+Bn[e[t+11]]+Bn[e[t+12]]+Bn[e[t+13]]+Bn[e[t+14]]+Bn[e[t+15]]).toLowerCase();if(!_oe(n))throw TypeError("Stringified UUID is invalid");return n}function dE(e,t,n){e=e||{};var r=e.random||(e.rng||voe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return boe(r)}const woe=2e3,xoe=(e,t)=>(n=!1,r=woe)=>{const[i,o]=H.useState(n),s=H.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},jt=(e=!1)=>{const[t,n]=H.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},Soe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:s})=>s==null?void 0:s.contains("visits-table"))||document.querySelector(".modal")||r()};return moe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Coe=(e,t)=>{const[n,r]=H.useState(t);return[n,o=>{const{location:s,history:a}=window,l=dl(s.search);l[e]=o,a.pushState(null,"",`${s.pathname}?${Hd(l)}`),r(o)}]},Eoe=(e,t)=>{const n=H.useRef(!0);H.useEffect(()=>{!n.current&&e(),n.current=!1},t)},ta=()=>{const e=Fo();return()=>e(-1)},Toe=()=>{const{search:e}=Mn();return dl(e)},C_=()=>{const{current:e}=H.useRef(`dom-${dE()}`);return e},eh=()=>H.useRef(null),vn=({title:e,children:t,bodyClassName:n,...r})=>V(Cr,{...r,children:[e&&C(rl,{role:"heading",children:e}),C(nl,{className:n,children:t})]});const Ooe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=jt();return V(lE,{className:"app-update-banner",isOpen:e,toggle:t,tag:vn,color:"secondary",children:[C("h4",{className:"mb-4",children:"This app has just been updated!"}),V("p",{className:"mb-0",children:["Restart it to enjoy the new features.",V(mt,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:()=>{i(),n()},children:[!r&&V(Ye,{children:["Restart now ",C(je,{icon:LQ,className:"ms-1"})]}),r&&C(Ye,{children:"Restarting..."})]})]})]})},w5=({to:e="/",children:t="Home"})=>C("div",{className:"home",children:V(vn,{className:"p-4",children:[C("h2",{children:"Oops! We could not find requested route."}),C("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),C("br",{}),C(At,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),Poe=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"})})},hE="#4696e5",koe="rgba(70, 150, 229, 0.4)",x5="#f77f28",Moe="rgba(247, 127, 40, 0.4)",Roe="white",Noe="#161b22",S5=e=>{var t,n;return(n=(t=document.getElementsByTagName("html"))==null?void 0:t[0])==null?void 0:n.setAttribute("data-theme",e)},Loe=()=>{var e,t;return((t=(e=document.getElementsByTagName("html"))==null?void 0:e[0])==null?void 0:t.getAttribute("data-theme"))==="dark"};const Doe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const g=Mn().pathname==="/";return H.useEffect(()=>{var v;Object.keys(c).length===0&&l(),S5(((v=f.ui)==null?void 0:v.theme)??"light")},[]),V("div",{className:"container-fluid app-container",children:[C(e,{}),V("div",{className:"app",children:[C("div",{className:ge("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:V(e_,{children:[C(yt,{index:!0,element:C(t,{})}),C(yt,{path:"/settings/*",element:C(o,{})}),C(yt,{path:"/manage-servers",element:C(s,{})}),C(yt,{path:"/server/create",element:C(r,{})}),C(yt,{path:"/server/:serverId/edit",element:C(i,{})}),C(yt,{path:"/server/:serverId/*",element:C(n,{})}),C(yt,{path:"*",element:C(w5,{})})]})}),C("div",{className:"shlink-footer",children:C(a,{})})]}),C(Ooe,{isOpen:h,toggle:p,forceUpdate:Poe})]})};function vi(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 zs(e){return!!e&&!!e[Ft]}function No(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)===Voe}(e)||Array.isArray(e)||!!e[NM]||!!(!((t=e.constructor)===null||t===void 0)&&t[NM])||pE(e)||mE(e))}function il(e,t,n){n===void 0&&(n=!1),tu(e)===0?(n?Object.keys:mc)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function tu(e){var t=e[Ft];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:pE(e)?2:mE(e)?3:0}function pc(e,t){return tu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Aoe(e,t){return tu(e)===2?e.get(t):e[t]}function C5(e,t,n){var r=tu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function E5(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function pE(e){return zoe&&e instanceof Map}function mE(e){return Uoe&&e instanceof Set}function Ta(e){return e.o||e.t}function gE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=O5(e);delete t[Ft];for(var n=mc(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 vE(e,t){return t===void 0&&(t=!1),yE(e)||zs(e)||!No(e)||(tu(e)>1&&(e.set=e.add=e.clear=e.delete=Ioe),Object.freeze(e),t&&il(e,function(n,r){return vE(r,!0)},!0)),e}function Ioe(){vi(2)}function yE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Xi(e){var t=Gw[e];return t||vi(18,e),t}function Foe(e,t){Gw[e]||(Gw[e]=t)}function Ww(){return bd}function bb(e,t){t&&(Xi("Patches"),e.u=[],e.s=[],e.v=t)}function fv(e){Yw(e),e.p.forEach($oe),e.p=null}function Yw(e){e===bd&&(bd=e.l)}function TM(e){return bd={p:[],l:bd,h:e,m:!0,_:0}}function $oe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.O=!0}function wb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Xi("ES5").S(t,e,r),r?(n[Ft].P&&(fv(t),vi(4)),No(e)&&(e=dv(t,e),t.l||hv(t,e)),t.u&&Xi("Patches").M(n[Ft].t,e,t.u,t.s)):e=dv(t,n,[]),fv(t),t.u&&t.v(t.u,t.s),e!==T5?e:void 0}function dv(e,t,n){if(yE(t))return t;var r=t[Ft];if(!r)return il(t,function(o,s){return OM(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return hv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=gE(r.k):r.o;il(r.i===3?new Set(i):i,function(o,s){return OM(e,r,i,o,s,n)}),hv(e,i,!1),n&&e.u&&Xi("Patches").R(r,n,e.u,e.s)}return r.o}function OM(e,t,n,r,i,o){if(zs(i)){var s=dv(e,i,o&&t&&t.i!==3&&!pc(t.D,r)?o.concat(r):void 0);if(C5(n,r,s),!zs(s))return;e.m=!1}if(No(i)&&!yE(i)){if(!e.h.F&&e._<1)return;dv(e,i),t&&t.A.l||hv(e,i)}}function hv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&vE(t,n)}function xb(e,t){var n=e[Ft];return(n?Ta(n):e)[t]}function PM(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 os(e){e.P||(e.P=!0,e.l&&os(e.l))}function Sb(e){e.o||(e.o=gE(e.t))}function qw(e,t,n){var r=pE(t)?Xi("MapSet").N(t,n):mE(t)?Xi("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Ww(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=wd;s&&(l=[a],c=Xu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Xi("ES5").J(t,n);return(n?n.A:Ww()).p.push(r),r}function joe(e){return zs(e)||vi(22,e),function t(n){if(!No(n))return n;var r,i=n[Ft],o=tu(n);if(i){if(!i.P&&(i.i<4||!Xi("ES5").K(i)))return i.t;i.I=!0,r=kM(n,o),i.I=!1}else r=kM(n,o);return il(r,function(s,a){i&&Aoe(i.t,s)===a||C5(r,s,t(a))}),o===3?new Set(r):r}(e)}function kM(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return gE(e)}function Boe(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[Ft];return wd.get(l,o)},set:function(l){var c=this[Ft];wd.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][Ft];if(!a.P)switch(a.i){case 5:r(a)&&os(a);break;case 4:n(a)&&os(a)}}}function n(o){for(var s=o.t,a=o.k,l=mc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==Ft){var h=s[f];if(h===void 0&&!pc(s,f))return!0;var p=a[f],m=p&&p[Ft];if(m?m.t!==h:!E5(p,h))return!0}}var g=!!s[Ft];return l.length!==mc(s).length+(g?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l<s.length;l++)if(!s.hasOwnProperty(l))return!0;return!1}var i={};Foe("ES5",{J:function(o,s){var a=Array.isArray(o),l=function(f,h){if(f){for(var p=Array(h.length),m=0;m<h.length;m++)Object.defineProperty(p,""+m,e(m,!0));return p}var g=O5(h);delete g[Ft];for(var v=mc(g),w=0;w<v.length;w++){var _=v[w];g[_]=e(_,f||!!g[_].enumerable)}return Object.create(Object.getPrototypeOf(h),g)}(a,o),c={i:a?5:4,A:s?s.A:Ww(),P:!1,I:!1,D:{},l:s,t:o,k:l,o:null,O:!1,C:!1};return Object.defineProperty(l,Ft,{value:c,writable:!0}),l},S:function(o,s,a){a?zs(s)&&s[Ft].A===o&&t(o.p):(o.u&&function l(c){if(c&&typeof c=="object"){var f=c[Ft];if(f){var h=f.t,p=f.k,m=f.D,g=f.i;if(g===4)il(p,function(x){x!==Ft&&(h[x]!==void 0||pc(h,x)?m[x]||l(p[x]):(m[x]=!0,os(f)))}),il(h,function(x){p[x]!==void 0||pc(p,x)||(m[x]=!1,os(f))});else if(g===5){if(r(f)&&(os(f),m.length=!0),p.length<h.length)for(var v=p.length;v<h.length;v++)m[v]=!1;else for(var w=h.length;w<p.length;w++)m[w]=!0;for(var _=Math.min(p.length,h.length),b=0;b<_;b++)p.hasOwnProperty(b)||(m[b]=!0),m[b]===void 0&&l(p[b])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var MM,bd,_E=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",zoe=typeof Map<"u",Uoe=typeof Set<"u",RM=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",T5=_E?Symbol.for("immer-nothing"):((MM={})["immer-nothing"]=!0,MM),NM=_E?Symbol.for("immer-draftable"):"__$immer_draftable",Ft=_E?Symbol.for("immer-state"):"__$immer_state",Voe=""+Object.prototype.constructor,mc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,O5=Object.getOwnPropertyDescriptors||function(e){var t={};return mc(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Gw={},wd={get:function(e,t){if(t===Ft)return e;var n=Ta(e);if(!pc(n,t))return function(i,o,s){var a,l=PM(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!No(r)?r:r===xb(e.t,t)?(Sb(e),e.o[t]=qw(e.A.h,r,e)):r},has:function(e,t){return t in Ta(e)},ownKeys:function(e){return Reflect.ownKeys(Ta(e))},set:function(e,t,n){var r=PM(Ta(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=xb(Ta(e),t),o=i==null?void 0:i[Ft];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(E5(n,i)&&(n!==void 0||pc(e.t,t)))return!0;Sb(e),os(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return xb(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Sb(e),os(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ta(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){vi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){vi(12)}},Xu={};il(wd,function(e,t){Xu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xu.deleteProperty=function(e,t){return Xu.set.call(this,e,t,void 0)},Xu.set=function(e,t,n){return wd.set.call(this,e[0],t,n,e[0])};var Hoe=function(){function e(n){var r=this;this.g=RM,this.F=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=r;return function(v){var w=this;v===void 0&&(v=a);for(var _=arguments.length,b=Array(_>1?_-1:0),x=1;x<_;x++)b[x-1]=arguments[x];return l.produce(v,function(E){var P;return(P=o).call.apply(P,[w,E].concat(b))})}}var c;if(typeof o!="function"&&vi(6),s!==void 0&&typeof s!="function"&&vi(7),No(i)){var f=TM(r),h=qw(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?fv(f):Yw(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(v){return bb(f,s),wb(v,f)},function(v){throw fv(f),v}):(bb(f,s),wb(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===T5&&(c=void 0),r.F&&vE(c,!0),s){var m=[],g=[];Xi("Patches").M(i,c,m,g),s(m,g)}return c}vi(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(m){return i.apply(void 0,[m].concat(h))})};var s,a,l=r.produce(i,o,function(c,f){s=c,a=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,a]}):[l,s,a]},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){No(n)||vi(8),zs(n)&&(n=joe(n));var r=TM(this),i=qw(this,n,void 0);return i[Ft].C=!0,Yw(r),i},t.finishDraft=function(n,r){var i=n&&n[Ft],o=i.A;return bb(o,r),wb(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!RM&&vi(20),this.g=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 s=Xi("Patches").$;return zs(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ar=new Hoe,P5=Ar.produce;Ar.produceWithPatches.bind(Ar);Ar.setAutoFreeze.bind(Ar);Ar.setUseProxies.bind(Ar);Ar.applyPatches.bind(Ar);Ar.createDraft.bind(Ar);Ar.finishDraft.bind(Ar);function Woe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LM(Object(n),!0).forEach(function(r){Woe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xn(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 AM=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cb=function(){return Math.random().toString(36).substring(7).split("").join(".")},pv={INIT:"@@redux/INIT"+Cb(),REPLACE:"@@redux/REPLACE"+Cb(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cb()}};function Yoe(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 k5(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Xn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Xn(1));return n(k5)(e,t)}if(typeof e!="function")throw new Error(Xn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Xn(3));return o}function h(v){if(typeof v!="function")throw new Error(Xn(4));if(l)throw new Error(Xn(5));var w=!0;return c(),a.push(v),function(){if(w){if(l)throw new Error(Xn(6));w=!1,c();var b=a.indexOf(v);a.splice(b,1),s=null}}}function p(v){if(!Yoe(v))throw new Error(Xn(7));if(typeof v.type>"u")throw new Error(Xn(8));if(l)throw new Error(Xn(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var w=s=a,_=0;_<w.length;_++){var b=w[_];b()}return v}function m(v){if(typeof v!="function")throw new Error(Xn(10));i=v,p({type:pv.REPLACE})}function g(){var v,w=h;return v={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(Xn(11));function x(){b.next&&b.next(f())}x();var E=w(x);return{unsubscribe:E}}},v[AM]=function(){return this},v}return p({type:pv.INIT}),r={dispatch:p,subscribe:h,getState:f,replaceReducer:m},r[AM]=g,r}function qoe(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:pv.INIT});if(typeof r>"u")throw new Error(Xn(12));if(typeof n(void 0,{type:pv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Xn(13))})}function M5(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),s;try{qoe(n)}catch(a){s=a}return function(l,c){if(l===void 0&&(l={}),s)throw s;for(var f=!1,h={},p=0;p<o.length;p++){var m=o[p],g=n[m],v=l[m],w=g(v,c);if(typeof w>"u")throw c&&c.type,new Error(Xn(14));h[m]=w,f=f||w!==v}return f=f||o.length!==Object.keys(l).length,f?h:l}}function mv(){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 Goe(){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(Xn(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=mv.apply(void 0,a)(i.dispatch),DM(DM({},i),{},{dispatch:o})}}}function R5(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,e):s(a)}}};return t}var N5=R5();N5.withExtraArgument=R5;const IM=N5;var Zoe=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)}}(),th=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,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(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}}},xd=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},Koe=Object.defineProperty,Xoe=Object.defineProperties,Qoe=Object.getOwnPropertyDescriptors,FM=Object.getOwnPropertySymbols,Joe=Object.prototype.hasOwnProperty,ese=Object.prototype.propertyIsEnumerable,$M=function(e,t,n){return t in e?Koe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Rs=function(e,t){for(var n in t||(t={}))Joe.call(t,n)&&$M(e,n,t[n]);if(FM)for(var r=0,i=FM(t);r<i.length;r++){var n=i[r];ese.call(t,n)&&$M(e,n,t[n])}return e},Eb=function(e,t){return Xoe(e,Qoe(t))},nh=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{a(n.next(l))}catch(c){i(c)}},s=function(l){try{a(n.throw(l))}catch(c){i(c)}},a=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,s)};a((n=n.apply(e,t)).next())})},tse=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mv:mv.apply(null,arguments)};function nse(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 rse=function(e){Zoe(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,xd([void 0],n[0].concat(this)))):new(t.bind.apply(t,xd([void 0],n.concat(this))))},t}(Array);function Zw(e){return No(e)?P5(e,function(){}):e}function ise(e){return typeof e=="boolean"}function ose(){return function(t){return sse(t)}}function sse(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new rse;return n&&(ise(n)?r.push(IM):r.push(IM.withExtraArgument(n.extraArgument))),r}var ase=!0;function lse(e){var t=ose(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,s=o===void 0?t():o,a=n.devTools,l=a===void 0?!0:a,c=n.preloadedState,f=c===void 0?void 0:c,h=n.enhancers,p=h===void 0?void 0:h,m;if(typeof i=="function")m=i;else if(nse(i))m=M5(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 g=s;typeof g=="function"&&(g=g(t));var v=Goe.apply(void 0,g),w=mv;l&&(w=tse(Rs({trace:!ase},typeof l=="object"&&l)));var _=[v];Array.isArray(p)?_=xd([v],p):typeof p=="function"&&(_=p(_));var b=w.apply(void 0,_);return k5(m,f,b)}function wn(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 Rs(Rs({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 L5(e){var t={},n=[],r,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(a in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[a]=s,i},addMatcher:function(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function cse(e){return typeof e=="function"}function use(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?L5(t):[t,n,r],o=i[0],s=i[1],a=i[2],l;if(cse(e))l=function(){return Zw(e())};else{var c=Zw(e);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var m=xd([o[p.type]],s.filter(function(g){var v=g.matcher;return v(p)}).map(function(g){var v=g.reducer;return v}));return m.filter(function(g){return!!g}).length===0&&(m=[a]),m.reduce(function(g,v){if(v)if(zs(g)){var w=g,_=v(w,p);return _===void 0?g:_}else{if(No(g))return P5(g,function(b){return v(b,p)});var _=v(g,p);if(_===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return g},h)}return f.getInitialState=l,f}function fse(e,t){return e+"/"+t}function Gn(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:Zw(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},s={},a={};i.forEach(function(f){var h=r[f],p=fse(t,f),m,g;"reducer"in h?(m=h.reducer,g=h.prepare):m=h,o[f]=m,s[p]=m,a[f]=g?wn(p,g):wn(p)});function l(){var f=typeof e.extraReducers=="function"?L5(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,m=f[1],g=m===void 0?[]:m,v=f[2],w=v===void 0?void 0:v,_=Rs(Rs({},p),s);return use(n,function(b){for(var x in _)b.addCase(x,_[x]);for(var E=0,P=g;E<P.length;E++){var k=P[E];b.addMatcher(k.matcher,k.reducer)}w&&b.addDefaultCase(w)})}var c;return{name:t,reducer:function(f,h){return c||(c=l()),c(f,h)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var dse="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",D5=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=dse[Math.random()*64|0];return t},hse=["name","message","stack","code"],Tb=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),jM=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),pse=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=hse;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},mse=function(){function e(t,n,r){var i=wn(t+"/fulfilled",function(c,f,h,p){return{payload:c,meta:Eb(Rs({},p||{}),{arg:h,requestId:f,requestStatus:"fulfilled"})}}),o=wn(t+"/pending",function(c,f,h){return{payload:void 0,meta:Eb(Rs({},h||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),s=wn(t+"/rejected",function(c,f,h,p,m){return{payload:p,error:(r&&r.serializeError||pse)(c||"Rejected"),meta:Eb(Rs({},m||{}),{arg:h,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),a=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 m=r!=null&&r.idGenerator?r.idGenerator(c):D5(),g=new a,v;function w(b){v=b,g.abort()}var _=function(){return nh(this,null,function(){var b,x,E,P,k,N,D;return th(this,function(U){switch(U.label){case 0:return U.trys.push([0,4,,5]),P=(b=r==null?void 0:r.condition)==null?void 0:b.call(r,c,{getState:h,extra:p}),vse(P)?[4,P]:[3,2];case 1:P=U.sent(),U.label=2;case 2:if(P===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return k=new Promise(function(A,Y){return g.signal.addEventListener("abort",function(){return Y({name:"AbortError",message:v||"Aborted"})})}),f(o(m,c,(x=r==null?void 0:r.getPendingMeta)==null?void 0:x.call(r,{requestId:m,arg:c},{getState:h,extra:p}))),[4,Promise.race([k,Promise.resolve(n(c,{dispatch:f,getState:h,extra:p,requestId:m,signal:g.signal,abort:w,rejectWithValue:function(A,Y){return new Tb(A,Y)},fulfillWithValue:function(A,Y){return new jM(A,Y)}})).then(function(A){if(A instanceof Tb)throw A;return A instanceof jM?i(A.payload,m,c,A.meta):i(A,m,c)})])];case 3:return E=U.sent(),[3,5];case 4:return N=U.sent(),E=N instanceof Tb?s(null,m,c,N.payload,N.meta):s(N,m,c),[3,5];case 5:return D=r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition,D||f(E),[2,E]}})})}();return Object.assign(_,{abort:w,requestId:m,arg:c,unwrap:function(){return _.then(gse)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function gse(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function vse(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bE=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},yse=function(){},wE=function(e,t){return t===void 0&&(t=yse),e.catch(t),e},A5=function(e,t){e.addEventListener("abort",t,{once:!0})},gc=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},_se="task",I5="listener",F5="completed",xE="cancelled",bse="task-"+xE,wse="task-"+F5,$5=I5+"-"+xE,xse=I5+"-"+F5,E_=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=_se+" "+xE+" (reason: "+t+")"}return e}(),vc=function(e){if(e.aborted)throw new E_(e.reason)},j5=function(e){return wE(new Promise(function(t,n){var r=function(){return n(new E_(e.reason))};e.aborted?r():A5(e,r)}))},Sse=function(e,t){return nh(void 0,null,function(){var n,r;return th(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof E_?"cancelled":"rejected",error:r}];case 4:return t==null||t(),[7];case 5:return[2]}})})},gv=function(e){return function(t){return wE(Promise.race([j5(e),t]).then(function(n){return vc(e),n}))}},B5=function(e){var t=gv(e);return function(n){return t(new Promise(function(r){return setTimeout(r,n)}))}},Cse=Object.assign,BM={},rh="listenerMiddleware",Ese=function(e){var t=function(n){return A5(e,function(){return gc(n,e.reason)})};return function(n){bE(n,"taskExecutor");var r=new AbortController;t(r);var i=Sse(function(){return nh(void 0,null,function(){var o;return th(this,function(s){switch(s.label){case 0:return vc(e),vc(r.signal),[4,n({pause:gv(r.signal),delay:B5(r.signal),signal:r.signal})];case 1:return o=s.sent(),vc(r.signal),[2,o]}})})},function(){return gc(r,wse)});return{result:gv(e)(i),cancel:function(){gc(r,bse)}}}},Tse=function(e,t){var n=function(r,i){return nh(void 0,null,function(){var o,s,a,l;return th(this,function(c){switch(c.label){case 0:vc(t),o=function(){},s=new Promise(function(f){o=e({predicate:r,effect:function(h,p){p.unsubscribe(),f([h,p.getState(),p.getOriginalState()])}})}),a=[j5(t),s],i!=null&&a.push(new Promise(function(f){return setTimeout(f,i,null)})),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,Promise.race(a)];case 2:return l=c.sent(),vc(t),[2,l];case 3:return o(),[7];case 4:return[2]}})})};return function(r,i){return wE(n(r,i))}},z5=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,o=e.effect;if(t)i=wn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return bE(o,"options.listener"),{predicate:i,type:t,effect:o}},Ose=function(e){var t=z5(e),n=t.type,r=t.predicate,i=t.effect,o=D5(),s={id:o,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return s},Pse=function(e){return function(){e.forEach(Kw),e.clear()}},zM=function(e,t,n){try{e(t,n)}catch(r){setTimeout(function(){throw r},0)}},kse=wn(rh+"/add"),Mse=wn(rh+"/removeAll"),Rse=wn(rh+"/remove"),Nse=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,xd([rh+"/error"],e))},Kw=function(e){e.pending.forEach(function(t){gc(t,$5)})};function Lse(e){var t=this;e===void 0&&(e={});var n=new Map,r=e.extra,i=e.onError,o=i===void 0?Nse:i;bE(o,"onError");var s=function(m){return m.unsubscribe=function(){return n.delete(m.id)},n.set(m.id,m),function(g){m.unsubscribe(),g!=null&&g.cancelActive&&Kw(m)}},a=function(m){for(var g=0,v=Array.from(n.values());g<v.length;g++){var w=v[g];if(m(w))return w}},l=function(m){var g=a(function(v){return v.effect===m.effect});return g||(g=Ose(m)),s(g)},c=function(m){var g=z5(m),v=g.type,w=g.effect,_=g.predicate,b=a(function(x){var E=typeof v=="string"?x.type===v:x.predicate===_;return E&&x.effect===w});return b&&(b.unsubscribe(),m.cancelActive&&Kw(b)),!!b},f=function(m,g,v,w){return nh(t,null,function(){var _,b,x;return th(this,function(E){switch(E.label){case 0:_=new AbortController,b=Tse(l,_.signal),E.label=1;case 1:return E.trys.push([1,3,4,5]),m.pending.add(_),[4,Promise.resolve(m.effect(g,Cse({},v,{getOriginalState:w,condition:function(P,k){return b(P,k).then(Boolean)},take:b,delay:B5(_.signal),pause:gv(_.signal),extra:r,signal:_.signal,fork:Ese(_.signal),unsubscribe:m.unsubscribe,subscribe:function(){n.set(m.id,m)},cancelActiveListeners:function(){m.pending.forEach(function(P,k,N){P!==_&&(gc(P,$5),N.delete(P))})}})))];case 2:return E.sent(),[3,5];case 3:return x=E.sent(),x instanceof E_||zM(o,x,{raisedBy:"effect"}),[3,5];case 4:return gc(_,xse),m.pending.delete(_),[7];case 5:return[2]}})})},h=Pse(n),p=function(m){return function(g){return function(v){if(kse.match(v))return l(v.payload);if(Mse.match(v)){h();return}if(Rse.match(v))return c(v.payload);var w=m.getState(),_=function(){if(w===BM)throw new Error(rh+": getOriginalState can only be called synchronously");return w},b;try{if(b=g(v),n.size>0)for(var x=m.getState(),E=Array.from(n.values()),P=0,k=E;P<k.length;P++){var N=k[P],D=!1;try{D=N.predicate(v,x,w)}catch(U){D=!1,zM(o,U,{raisedBy:"predicate"})}D&&f(N,v,m,_)}}finally{w=BM}return b}}};return{middleware:p,startListening:l,stopListening:c,clearListeners:h}}var UM;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);Boe();const{actions:Dse,reducer:Ase}=Gn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Ise,resetAppUpdate:Fse}=Dse,$se=Ase,jse=(e,t)=>{e.serviceFactory("App",Doe,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Ise),e.serviceFactory("resetAppUpdate",()=>Fse)};function vv(e){return t=>{const{resetSelectedServer:n}=t;return H.useEffect(()=>{n()},[]),C(e,{...t})}}const Ll=({children:e,to:t,className:n,...r})=>C(iI,{className:({isActive:i})=>ge("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Bse=e=>({selectedServer:t,showOnMobile:n=!1})=>{const r=Ps(t),i=r?t.id:"",{pathname:o}=Mn(),s=ge("aside-menu",{"aside-menu--hidden":!n}),a=l=>`/server/${i}${l}`;return C("aside",{className:s,children:V("nav",{className:"nav flex-column aside-menu__nav",children:[V(Ll,{to:a("/overview"),children:[C(je,{fixedWidth:!0,icon:wQ}),C("span",{className:"aside-menu__item-text",children:"Overview"})]}),V(Ll,{to:a("/list-short-urls/1"),className:ge({"aside-menu__item--selected":o.match("/list-short-urls")!==null}),children:[C(je,{fixedWidth:!0,icon:GI}),C("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),V(Ll,{to:a("/create-short-url"),children:[C(je,{fixedWidth:!0,icon:TQ,flip:"horizontal"}),C("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),V(Ll,{to:a("/manage-tags"),children:[C(je,{fixedWidth:!0,icon:KI}),C("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),V(Ll,{to:a("/manage-domains"),children:[C(je,{fixedWidth:!0,icon:eQ}),C("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),V(Ll,{to:a("/edit"),className:"aside-menu__item--push",children:[C(je,{fixedWidth:!0,icon:cQ}),C("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),r&&C(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:t})]})})},zse=({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 C("div",{className:"home",children:V(vn,{className:"p-4",children:[C("h1",{children:"Oops! This is awkward :S"}),C("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),C("br",{}),C(mt,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Xw=function(){return Xw=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Xw.apply(this,arguments)};function Use(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ei=function(e){var t=e.href,n=e.children,r=Use(e,["href","children"]);return z.createElement("a",Xw({target:"_blank",rel:"noopener noreferrer",href:t},r),n??t)};const Vse=({id:e,name:t})=>V(cE,{tag:At,to:`/server/${e}`,className:"servers-list__server-item",children:[t,C(je,{icon:RQ,className:"servers-list__server-item-icon"})]}),U5=({servers:e,children:t,embedded:n=!1})=>V(Ye,{children:[t&&C("h5",{className:"mb-md-3",children:t}),e.length>0&&C(sE,{className:ge("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>C(Vse,{id:r,name:i},r))})]}),V5=({color:e=hE,className:t})=>C("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:V("g",{fill:e,children:[C("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"}),C("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"}),C("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"}),C("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 Hse=({servers:e})=>{const t=Fo(),n=Kc(e),r=!qn(n);return H.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),C("div",{className:"home",children:C(Cr,{className:"home__main-card",children:V(ur,{className:"g-0",children:[C("div",{className:"col-md-5 d-none d-md-block",children:C("div",{className:"home__logo-wrapper",children:C("div",{className:"home__logo",children:C(V5,{})})})}),V("div",{className:"col-md-7 home__servers-container",children:[C("div",{className:"home__title-wrapper",children:C("h1",{className:"home__title",children:"Welcome!"})}),C(U5,{embedded:!0,servers:n,children:!r&&V("div",{className:"p-4 text-center",children:[C("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),C("p",{children:V(At,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[C(je,{icon:wC})," ",C("span",{className:"ms-1",children:"Add a server"})]})}),C("p",{className:"mb-0 mt-5",children:C(Ei,{href:"https://shlink.io/documentation",children:V("small",{children:[C("span",{className:"me-1",children:"Learn more about Shlink"})," ",C(je,{icon:dQ})]})})})]})})]})]})})})};const Wse=e=>()=>{const[t,n,,r]=jt(),i=Mn(),{pathname:o}=i;H.useEffect(r,[i]);const s="/settings",a=ge("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return V(YC,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[V(qC,{tag:At,to:"/",children:[C(V5,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),C(GC,{onClick:n,children:C(je,{icon:kQ,className:a})}),C(i5,{navbar:!0,isOpen:t,children:V(m_,{navbar:!0,className:"ms-auto",children:[C(ZC,{children:V(n5,{tag:At,to:s,active:o.startsWith(s),children:[C(je,{icon:AQ})," Settings"]})}),C(e,{})]})})]})};const nu=({children:e})=>C("div",{className:"no-menu-wrapper container-xl",children:e}),Yse=e=>({error:"border-danger",default:""})[e],qse=e=>({error:"text-danger",default:"text-muted"})[e],So=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=ge({"col-md-12":i,"col-md-10 offset-md-1":!i});return C(ur,{className:ge("g-0",e),children:C("div",{className:o,children:C(Cr,{className:Yse(r),body:!0,children:V("h3",{className:ge("text-center mb-0",qse(r)),children:[n&&C(je,{icon:qI,spin:!0}),n&&C("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})};function H5(e,t){return n=>{const r=Ks(),{selectServer:i,selectedServer:o}=n;return H.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?DZ(o)?C(t,{}):C(e,{...n}):C(nu,{children:C(So,{loading:!0})})}}const Gse=(e,t)=>{const n=VM(e),r=VM(t),i=n.pop(),o=r.pop(),s=YM(n,r);return s!==0?s:i&&o?YM(i.split("."),o.split(".")):i||o?i?-1:1:0},Qw=(e,t,n)=>{Qse(n);const r=Gse(e,t);return W5[n].includes(r)},Zse=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,VM=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Zse);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},HM=e=>e==="*"||e==="x"||e==="X",WM=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Kse=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Xse=(e,t)=>{if(HM(e)||HM(t))return 0;const[n,r]=Kse(WM(e),WM(t));return n>r?1:n<r?-1:0},YM=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Xse(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},W5={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},qM=Object.keys(W5),Qse=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(qM.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${qM.join("|")}`)},SE=(e,t,n=1)=>aC(n,e+1).map(t),yi=e=>!$o(e)&&!qn(e),ih=e=>It(t=>t.preventDefault(),e),Ob=e=>qn(e)?null:e,ga=e=>t=>e===t,Y5=e=>e?"true":"false",Pb=e=>e===void 0?void 0:Y5(e),Jse=(e,{maxVersion:t,minVersion:n})=>{if(!yi(e))return!1;const r=!n||Qw(e,n,">=");return(!t||Qw(e,t,"<="))&&r},q5=EI(iC,e=>{try{return Qw(e,e,"=")}catch{return!1}}),G5=e=>q5(e)?`v${e}`:e,Z5=(e="latest")=>t=>q5(t)?t:e,oh=e=>t=>o_(t)&&Jse(t.version,{minVersion:e}),K5=oh("2.9.0"),eae=K5,tae=oh("2.10.0"),CE=oh("3.0.0"),nae=CE,X5=oh("3.1.0"),Q5=oh("3.4.0"),rae=Q5;const iae=(e,t,n,r,i,o,s,a,l,c,f,h,p)=>H5(({selectedServer:m,sidebarNotPresent:g,sidebarPresent:v})=>{const w=Mn(),[_,b,x,E]=jt(),P=o_(m);if(H.useEffect(()=>E(),[w]),H.useEffect(()=>(P&&v(),()=>g()),[]),!P)return C(c,{});const k=CE(m),N=X5(m),D=ge("menu-layout__burger-icon",{"menu-layout__burger-icon--active":_}),U=Soe(x,E);return V(Ye,{children:[C(je,{icon:ZX,className:D,onClick:b}),C("div",{...U,className:"menu-layout__swipeable",children:V("div",{className:"menu-layout__swipeable-inner",children:[C(n,{selectedServer:m,showOnMobile:_}),C("div",{className:"menu-layout__container",onClick:()=>E(),children:C("div",{className:"container-xl",children:V(e_,{children:[C(yt,{index:!0,element:C(ZS,{replace:!0,to:"overview"})}),C(yt,{path:"/overview",element:C(f,{})}),C(yt,{path:"/list-short-urls/:page",element:C(t,{})}),C(yt,{path:"/create-short-url",element:C(r,{})}),C(yt,{path:"/short-code/:shortCode/visits/*",element:C(i,{})}),C(yt,{path:"/short-code/:shortCode/edit",element:C(h,{})}),C(yt,{path:"/tag/:tag/visits/*",element:C(o,{})}),N&&C(yt,{path:"/domain/:domain/visits/*",element:C(s,{})}),C(yt,{path:"/orphan-visits/*",element:C(a,{})}),k&&C(yt,{path:"/non-orphan-visits/*",element:C(l,{})}),C(yt,{path:"/manage-tags",element:C(e,{})}),C(yt,{path:"/manage-domains",element:C(p,{})}),C(yt,{path:"*",element:C(w5,{to:`/server/${m.id}/list-short-urls/1`,children:"List short URLs"})})]})})})]})})]})},c),oae={sidebarPresent:!1},{actions:sae,reducer:aae}=Gn({name:"shlink/sidebar",initialState:oae,reducers:{sidebarPresent:()=>({sidebarPresent:!0}),sidebarNotPresent:()=>({sidebarPresent:!1})}}),{sidebarPresent:lae,sidebarNotPresent:cae}=sae,uae=aae,fae=({children:e})=>{const t=Mn();return H.useEffect(()=>{scrollTo(0,0)},[t]),C(Ye,{children:e})},dae="%_VERSION_%",hae=It(Z5(),G5),GM=({project:e,version:t})=>C(Ei,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:C("b",{children:t})}),pae=({selectedServer:e,clientVersion:t=dae})=>{const n=hae(t);return V("small",{className:"text-muted",children:[o_(e)&&V(Ye,{children:["Server: ",C(GM,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",C(GM,{project:"shlink-web-client",version:n})]})};const mae=({selectedServer:e,sidebar:t})=>{const n=ge("text-center",{"shlink-versions-container--with-sidebar":t.sidebarPresent});return C("div",{className:n,children:C(pae,{selectedServer:e})})},ZM={"Content-Type":"application/json"},KM=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...ZM}}:{headers:ZM}:e;class gae{constructor(t){Se(this,"fetchJson",(t,n)=>this.fetch(t,KM(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));Se(this,"fetchEmpty",(t,n)=>this.fetch(t,KM(n)).then(async r=>{if(!r.ok)throw await r.json()}));Se(this,"fetchBlob",t=>this.fetch(t).then(n=>n.blob()));this.fetch=t}}const J5=({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)},e8=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);J5(e,i,n)};class vae{constructor(t,n){this.httpClient=t,this.window=n}async saveImage(t,n){const r=await this.httpClient.fetchBlob(t),i=URL.createObjectURL(r);J5(this.window,i,n)}}class yae{constructor(t,n){Se(this,"exportVisits",(t,n)=>{n.length&&this.exportCsv(t,n)});Se(this,"exportShortUrls",t=>{t.length&&this.exportCsv("short_urls.csv",t)});Se(this,"exportCsv",(t,n)=>{const r=this.jsonToCsv(n);e8(this.window,r,t)});this.window=t,this.jsonToCsv=n}}const _ae=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",gae,"fetch"),e.service("ImageDownloader",vae,"HttpClient","window"),e.service("ReportExporter",yae,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",()=>fae),e.serviceFactory("MainHeader",Wse,"ServersDropdown"),e.serviceFactory("Home",()=>Hse),e.decorator("Home",vv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",iae,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",Bse,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",()=>mae),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",zse,"window","console"),e.serviceFactory("sidebarPresent",()=>lae),e.serviceFactory("sidebarNotPresent",()=>cae)};const na=({text:e,disabled:t=!1,className:n="",children:r,dropdownClassName:i,right:o=!1,minWidth:s})=>{const[a,l]=jt(),c=`dropdown-btn__toggle btn-block ${n}`,f={minWidth:s&&`${s}px`};return V(Jc,{isOpen:a,toggle:l,disabled:t,className:i,children:[C(eu,{caret:!0,className:c,color:"primary",children:e}),C(hl,{className:"w-100",end:o,style:f,children:r})]})};const bae=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=jt(),{domains:a}=n,l=qn(t),c=()=>r("");return H.useEffect(()=>{e()},[]),i?V(Qd,{children:[C(_d,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),C(mt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:It(c,s),children:C(je,{icon:gQ})}),C(Br,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):V(na,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>V(Ve,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&C("span",{className:"float-end text-muted",children:"default"})]},f)),C(Ve,{divider:!0}),C(Ve,{onClick:It(c,o),children:C("i",{children:"New domain"})})]})},Lo=({errorData:e,fallbackMessage:t})=>V(Ye,{children:[(e==null?void 0:e.detail)??t,RX(e)&&V("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Nr=({children:e,type:t,className:n,small:r=!1})=>C(ur,{className:n,children:C("div",{className:ge({"col-md-10 offset-md-1":!r,"col-12":r}),children:C(vn,{role:"document",className:ge("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:ge({"p-2":r}),children:e})})});const wae=500;let kp;const sh=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=H.useState(i),a=()=>{kp&&clearTimeout(kp),kp=null},l=(c,f=wae)=>{s(c),a(),kp=setTimeout(()=>{e(c),a()},f)};return V("div",{className:ge("search-field",t),children:[C("input",{type:"text",className:ge("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)}),C(je,{icon:PQ,className:"search-field__icon"}),C("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})};const T_=({isOpen:e,toggle:t,children:n,right:r=!0})=>V(v_,{toggle:t,isOpen:e,children:[V(eu,{size:"sm",caret:!0,outline:!0,className:"dropdown-btn-menu__dropdown-toggle",children:[" ",C(je,{icon:_Q})," "]}),C(hl,{end:r,children:n})]}),Ef=(e,t,n)=>$o(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,xae=(e,t)=>!e.domain&&t===P8?!0:e.domain===t,Sae=(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,validateUrl:n}:{longUrl:"",validateUrl:n}},t8="__",Cae=e=>e.replaceAll("/",t8),gm=e=>e.replaceAll(t8,"/");function et(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 Pe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vm=function(n){return typeof n}:vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vm(e)}function Re(e){Pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||vm(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 pl(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function to(e,t){Pe(2,arguments);var n=Re(e),r=et(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 s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ym=function(n){return typeof n}:ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ym(e)}function Eae(e,t){if(Pe(2,arguments),!t||ym(t)!=="object")return new Date(NaN);var n=t.years?et(t.years):0,r=t.months?et(t.months):0,i=t.weeks?et(t.weeks):0,o=t.days?et(t.days):0,s=t.hours?et(t.hours):0,a=t.minutes?et(t.minutes):0,l=t.seconds?et(t.seconds):0,c=Re(e),f=r||n?to(c,r+n*12):c,h=o||i?pl(f,o+i*7):f,p=a+s*60,m=l+p*60,g=m*1e3,v=new Date(h.getTime()+g);return v}function EE(e,t){Pe(2,arguments);var n=Re(e).getTime(),r=et(t);return new Date(n+r)}var Tae=36e5;function Oae(e,t){Pe(2,arguments);var n=et(t);return EE(e,n*Tae)}var Pae={};function Vo(){return Pae}function n8(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Vo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.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=Re(e),m=p.getDay(),g=(m<h?7:0)+m-h;return p.setDate(p.getDate()-g),p.setHours(0,0,0,0),p}function Sd(e){return Pe(1,arguments),n8(e,{weekStartsOn:1})}function kae(e){Pe(1,arguments);var t=Re(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=Sd(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var s=Sd(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Mae(e){Pe(1,arguments);var t=kae(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Sd(n);return r}function $c(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 Lr(e){Pe(1,arguments);var t=Re(e);return t.setHours(0,0,0,0),t}var Rae=864e5;function Cd(e,t){Pe(2,arguments);var n=Lr(e),r=Lr(t),i=n.getTime()-$c(n),o=r.getTime()-$c(r);return Math.round((i-o)/Rae)}var Nae=6e4;function Jw(e,t){Pe(2,arguments);var n=et(t);return EE(e,n*Nae)}function TE(e,t){Pe(2,arguments);var n=et(t),r=n*7;return pl(e,r)}function jc(e,t){Pe(2,arguments);var n=et(t);return to(e,n*12)}function _m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_m=function(n){return typeof n}:_m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_m(e)}function XM(e){Pe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(_m(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Re(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bm=function(n){return typeof n}:bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bm(e)}function QM(e){Pe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(bm(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Re(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function wm(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var OE=6e4,O_=36e5,Lae=1e3;function Dae(e,t){Pe(2,arguments);var n=Lr(e),r=Lr(t);return n.getTime()===r.getTime()}function xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xm=function(n){return typeof n}:xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xm(e)}function PE(e){return Pe(1,arguments),e instanceof Date||xm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function r8(e){if(Pe(1,arguments),!PE(e)&&typeof e!="number")return!1;var t=Re(e);return!isNaN(Number(t))}function Ed(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function e2(e){Pe(1,arguments);var t=Re(e),n=Math.floor(t.getMonth()/3)+1;return n}function yv(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()-r.getFullYear()}function JM(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 kE(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=JM(n,r),o=Math.abs(Cd(n,r));n.setDate(n.getDate()-i*o);var s=Number(JM(n,r)===-i),a=i*(o-s);return a===0?0:a}function i8(e,t){return Pe(2,arguments),Re(e).getTime()-Re(t).getTime()}var eR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Aae="trunc";function ME(e){return e?eR[e]:eR[Aae]}function Iae(e,t,n){Pe(2,arguments);var r=i8(e,t)/O_;return ME(n==null?void 0:n.roundingMethod)(r)}function ol(e){Pe(1,arguments);var t=Re(e);return t.setHours(23,59,59,999),t}function Fae(e){Pe(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function $ae(e){Pe(1,arguments);var t=Re(e);return ol(t).getTime()===Fae(t).getTime()}function _v(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=wm(n,r),o=Math.abs(Ed(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=wm(n,r)===-i;$ae(Re(e))&&o===1&&wm(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function jae(e,t,n){Pe(2,arguments);var r=i8(e,t)/1e3;return ME(n==null?void 0:n.roundingMethod)(r)}function Bae(e,t,n){Pe(2,arguments);var r=kE(e,t)/7;return ME(n==null?void 0:n.roundingMethod)(r)}function t2(e){Pe(1,arguments);var t=Re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function zae(e){Pe(1,arguments);var t=Re(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Uae(e){Pe(1,arguments);var t=Re(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Vae(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Vo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.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=Re(e),m=p.getDay(),g=(m<h?-7:0)+6-(m-h);return p.setDate(p.getDate()+g),p.setHours(23,59,59,999),p}function Hae(e){return Pe(1,arguments),Vae(e,{weekStartsOn:1})}function o8(e,t){Pe(2,arguments);var n=et(t);return EE(e,-n)}var Wae=864e5;function Yae(e){Pe(1,arguments);var t=Re(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/Wae)+1}function Bc(e){Pe(1,arguments);var t=1,n=Re(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 s8(e){Pe(1,arguments);var t=Re(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Bc(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Bc(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function qae(e){Pe(1,arguments);var t=s8(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Bc(n);return r}var Gae=6048e5;function a8(e){Pe(1,arguments);var t=Re(e),n=Bc(t).getTime()-qae(t).getTime();return Math.round(n/Gae)+1}function sl(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Vo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.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=Re(e),m=p.getUTCDay(),g=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function RE(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Re(e),h=f.getUTCFullYear(),p=Vo(),m=et((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.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(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(h+1,0,m),g.setUTCHours(0,0,0,0);var v=sl(g,t),w=new Date(0);w.setUTCFullYear(h,0,m),w.setUTCHours(0,0,0,0);var _=sl(w,t);return f.getTime()>=v.getTime()?h+1:f.getTime()>=_.getTime()?h:h-1}function Zae(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Vo(),h=et((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.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=RE(e,t),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var g=sl(m,t);return g}var Kae=6048e5;function l8(e,t){Pe(1,arguments);var n=Re(e),r=sl(n,t).getTime()-Zae(n,t).getTime();return Math.round(r/Kae)+1}function rt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Xae={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return rt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):rt(r+1,2)},d:function(t,n){return rt(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 rt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return rt(t.getUTCHours(),n.length)},m:function(t,n){return rt(t.getUTCMinutes(),n.length)},s:function(t,n){return rt(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 rt(o,n.length)}};const Zo=Xae;var Dl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qae={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 Zo.y(t,n)},Y:function(t,n,r,i){var o=RE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return rt(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):rt(s,n.length)},R:function(t,n){var r=s8(t);return rt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return rt(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 rt(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 rt(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 Zo.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 rt(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=l8(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):rt(o,n.length)},I:function(t,n,r){var i=a8(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):rt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Zo.d(t,n)},D:function(t,n,r){var i=Yae(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):rt(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(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return rt(s,2);case"eo":return r.ordinalNumber(s,{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(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return rt(s,n.length);case"co":return r.ordinalNumber(s,{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 rt(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=Dl.noon:i===0?o=Dl.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=Dl.evening:i>=12?o=Dl.afternoon:i>=4?o=Dl.morning:o=Dl.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 Zo.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Zo.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):rt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):rt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Zo.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Zo.s(t,n)},S:function(t,n){return Zo.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return nR(s);case"XXXX":case"XX":return Oa(s);case"XXXXX":case"XXX":default:return Oa(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return nR(s);case"xxxx":case"xx":return Oa(s);case"xxxxx":case"xxx":default:return Oa(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+tR(s,":");case"OOOO":default:return"GMT"+Oa(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+tR(s,":");case"zzzz":default:return"GMT"+Oa(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return rt(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return rt(s,n.length)}};function tR(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 s=t||"";return n+String(i)+s+rt(o,2)}function nR(e,t){if(e%60===0){var n=e>0?"-":"+";return n+rt(Math.abs(e)/60,2)}return Oa(e,t)}function Oa(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=rt(Math.floor(i/60),2),s=rt(i%60,2);return r+o+n+s}const Jae=Qae;var rR=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"})}},c8=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"})}},ele=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return rR(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",rR(i,n)).replace("{{time}}",c8(o,n))},tle={p:c8,P:ele};const n2=tle;var nle=["D","DD"],rle=["YY","YYYY"];function u8(e){return nle.indexOf(e)!==-1}function f8(e){return rle.indexOf(e)!==-1}function bv(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 ile={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"}},ole=function(t,n,r){var i,o=ile[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 sle=ole;function kb(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 ale={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cle={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ule={date:kb({formats:ale,defaultWidth:"full"}),time:kb({formats:lle,defaultWidth:"full"}),dateTime:kb({formats:cle,defaultWidth:"full"})};const fle=ule;var dle={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hle=function(t,n,r,i){return dle[t]};const ple=hle;function Iu(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,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var mle={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gle={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vle={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"]},yle={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"]},_le={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"}},ble={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"}},wle=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"},xle={ordinalNumber:wle,era:Iu({values:mle,defaultWidth:"wide"}),quarter:Iu({values:gle,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Iu({values:vle,defaultWidth:"wide"}),day:Iu({values:yle,defaultWidth:"wide"}),dayPeriod:Iu({values:_le,defaultWidth:"wide",formattingValues:ble,defaultFormattingWidth:"wide"})};const Sle=xle;function Fu(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 s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Ele(a,function(h){return h.test(s)}):Cle(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function Cle(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Ele(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Tle(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 s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Ole=/^(\d+)(th|st|nd|rd)?/i,Ple=/\d+/i,kle={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},Mle={any:[/^b/i,/^(a|c)/i]},Rle={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Nle={any:[/1/i,/2/i,/3/i,/4/i]},Lle={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},Dle={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]},Ale={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},Ile={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]},Fle={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},$le={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}},jle={ordinalNumber:Tle({matchPattern:Ole,parsePattern:Ple,valueCallback:function(t){return parseInt(t,10)}}),era:Fu({matchPatterns:kle,defaultMatchWidth:"wide",parsePatterns:Mle,defaultParseWidth:"any"}),quarter:Fu({matchPatterns:Rle,defaultMatchWidth:"wide",parsePatterns:Nle,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Fu({matchPatterns:Lle,defaultMatchWidth:"wide",parsePatterns:Dle,defaultParseWidth:"any"}),day:Fu({matchPatterns:Ale,defaultMatchWidth:"wide",parsePatterns:Ile,defaultParseWidth:"any"}),dayPeriod:Fu({matchPatterns:Fle,defaultMatchWidth:"any",parsePatterns:$le,defaultParseWidth:"any"})};const Ble=jle;var zle={code:"en-US",formatDistance:sle,formatLong:fle,formatRelative:ple,localize:Sle,match:Ble,options:{weekStartsOn:0,firstWeekContainsDate:1}};const NE=zle;var Ule=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vle=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Hle=/^'([^]*?)'?$/,Wle=/''/g,Yle=/[a-zA-Z]/;function vo(e,t,n){var r,i,o,s,a,l,c,f,h,p,m,g,v,w,_,b,x,E;Pe(2,arguments);var P=String(t),k=Vo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:NE,D=et((o=(s=(a=(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&&a!==void 0?a:k.firstWeekContainsDate)!==null&&s!==void 0?s:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=et((m=(g=(v=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(_=n.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&g!==void 0?g:(x=k.locale)===null||x===void 0||(E=x.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!(U>=0&&U<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var A=Re(e);if(!r8(A))throw new RangeError("Invalid time value");var Y=$c(A),q=o8(A,Y),ee={firstWeekContainsDate:D,weekStartsOn:U,locale:N,_originalDate:A},Z=P.match(Vle).map(function(te){var ne=te[0];if(ne==="p"||ne==="P"){var le=n2[ne];return le(te,N.formatLong)}return te}).join("").match(Ule).map(function(te){if(te==="''")return"'";var ne=te[0];if(ne==="'")return qle(te);var le=Jae[ne];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&f8(te)&&bv(te,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&u8(te)&&bv(te,t,String(e)),le(q,te,N.localize,ee);if(ne.match(Yle))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");return te}).join("");return Z}function qle(e){var t=e.match(Hle);return t?t[1].replace(Wle,"'"):e}function LE(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 Gle(e){return LE({},e)}var iR=1440,Zle=2520,Mb=43200,Kle=86400;function Xle(e,t,n){var r,i;Pe(2,arguments);var o=Vo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:NE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=wm(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=LE(Gle(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:a}),c,f;a>0?(c=Re(t),f=Re(e)):(c=Re(e),f=Re(t));var h=jae(f,c),p=($c(f)-$c(c))/1e3,m=Math.round((h-p)/60),g;if(m<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(m<iR){var v=Math.round(m/60);return s.formatDistance("aboutXHours",v,l)}else{if(m<Zle)return s.formatDistance("xDays",1,l);if(m<Mb){var w=Math.round(m/iR);return s.formatDistance("xDays",w,l)}else if(m<Kle)return g=Math.round(m/Mb),s.formatDistance("aboutXMonths",g,l)}if(g=_v(f,c),g<12){var _=Math.round(m/Mb);return s.formatDistance("xMonths",_,l)}else{var b=g%12,x=Math.floor(g/12);return b<3?s.formatDistance("aboutXYears",x,l):b<9?s.formatDistance("overXYears",x,l):s.formatDistance("almostXYears",x+1,l)}}function Qle(e,t){var n,r;Pe(1,arguments);var i=Re(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"),s=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(s!=="date"&&s!=="time"&&s!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",l="",c=o==="extended"?"-":"",f=o==="extended"?":":"";if(s!=="time"){var h=rt(i.getDate(),2),p=rt(i.getMonth()+1,2),m=rt(i.getFullYear(),4);a="".concat(m).concat(c).concat(p).concat(c).concat(h)}if(s!=="date"){var g=i.getTimezoneOffset();if(g!==0){var v=Math.abs(g),w=rt(Math.floor(v/60),2),_=rt(v%60,2),b=g<0?"+":"-";l="".concat(b).concat(w,":").concat(_)}else l="Z";var x=rt(i.getHours(),2),E=rt(i.getMinutes(),2),P=rt(i.getSeconds(),2),k=a===""?"":"T",N=[x,E,P].join(f);a="".concat(a).concat(k).concat(N).concat(l)}return a}function oR(e){Pe(1,arguments);var t=Re(e),n=t.getDate();return n}function Jle(e){Pe(1,arguments);var t=Re(e),n=t.getDay();return n}function ece(e){Pe(1,arguments);var t=Re(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 Ti(e){Pe(1,arguments);var t=Re(e),n=t.getHours();return n}var tce=6048e5;function nce(e){Pe(1,arguments);var t=Re(e),n=Sd(t).getTime()-Mae(t).getTime();return Math.round(n/tce)+1}function Oi(e){Pe(1,arguments);var t=Re(e),n=t.getMinutes();return n}function cr(e){Pe(1,arguments);var t=Re(e),n=t.getMonth();return n}function rce(e){Pe(1,arguments);var t=Re(e),n=t.getSeconds();return n}function wv(e){Pe(1,arguments);var t=Re(e),n=t.getTime();return n}function ice(e){return Pe(1,arguments),Math.floor(wv(e)/1e3)}function pt(e){return Pe(1,arguments),Re(e).getFullYear()}function Us(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getTime()>r.getTime()}function Kr(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getTime()<r.getTime()}function d8(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getTime()===r.getTime()}function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function h8(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}}),t&&r2(e,t)}function r2(e,t){return r2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},r2(e,t)}function p8(e){var t=sce();return function(){var r=xv(e),i;if(t){var o=xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oce(this,i)}}function oce(e,t){return t&&(Sm(t)==="object"||typeof t=="function")?t:i2(e)}function i2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sR(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 AE(e,t,n){return t&&sR(e.prototype,t),n&&sR(e,n),e}function o2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ace=10,m8=function(){function e(){DE(this,e),o2(this,"subPriority",0)}return AE(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),lce=function(e){h8(n,e);var t=p8(n);function n(r,i,o,s,a){var l;return DE(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=s,a&&(l.subPriority=a),l}return AE(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,s){return this.setValue(i,o,this.value,s)}}]),n}(m8),cce=function(e){h8(n,e);var t=p8(n);function n(){var r;DE(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),o2(i2(r),"priority",ace),o2(i2(r),"subPriority",-1),r}return AE(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}}]),n}(m8);function uce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aR(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 fce(e,t,n){return t&&aR(e.prototype,t),n&&aR(e,n),e}var gt=function(){function e(){uce(this,e)}return fce(e,[{key:"run",value:function(n,r,i,o){var s=this.parse(n,r,i,o);return s?{setter:new lce(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}();function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function dce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lR(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 hce(e,t,n){return t&&lR(e.prototype,t),n&&lR(e,n),e}function pce(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}}),t&&s2(e,t)}function s2(e,t){return s2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},s2(e,t)}function mce(e){var t=vce();return function(){var r=Sv(e),i;if(t){var o=Sv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gce(this,i)}}function gce(e,t){return t&&(Cm(t)==="object"||typeof t=="function")?t:a2(e)}function a2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vce(){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 Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yce=function(e){pce(n,e);var t=mce(n);function n(){var r;dce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),cR(a2(r),"priority",140),cR(a2(r),"incompatibleTokens",["R","u","t","T"]),r}return hce(n,[{key:"parse",value:function(i,o,s){switch(o){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"});case"GGGGG":return s.era(i,{width:"narrow"});case"GGGG":default:return s.era(i,{width:"wide"})||s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,s){return o.era=s,i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt),sn={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}/},Vi={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 an(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ht(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Hi(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,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*O_+o*OE+s*Lae),rest:t.slice(n[0].length)}}function g8(e){return Ht(sn.anyDigitsSigned,e)}function Jt(e,t){switch(e){case 1:return Ht(sn.singleDigit,t);case 2:return Ht(sn.twoDigits,t);case 3:return Ht(sn.threeDigits,t);case 4:return Ht(sn.fourDigits,t);default:return Ht(new RegExp("^\\d{1,"+e+"}"),t)}}function Cv(e,t){switch(e){case 1:return Ht(sn.singleDigitSigned,t);case 2:return Ht(sn.twoDigitsSigned,t);case 3:return Ht(sn.threeDigitsSigned,t);case 4:return Ht(sn.fourDigitsSigned,t);default:return Ht(new RegExp("^-?\\d{1,"+e+"}"),t)}}function IE(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 v8(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function y8(e){return e%400===0||e%4===0&&e%100!==0}function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function _ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uR(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 bce(e,t,n){return t&&uR(e.prototype,t),n&&uR(e,n),e}function wce(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}}),t&&l2(e,t)}function l2(e,t){return l2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},l2(e,t)}function xce(e){var t=Cce();return function(){var r=Ev(e),i;if(t){var o=Ev(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Sce(this,i)}}function Sce(e,t){return t&&(Em(t)==="object"||typeof t=="function")?t:c2(e)}function c2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cce(){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 Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function fR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ece=function(e){wce(n,e);var t=xce(n);function n(){var r;_ce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),fR(c2(r),"priority",130),fR(c2(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return bce(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:o==="yy"}};switch(o){case"y":return an(Jt(4,i),a);case"yo":return an(s.ordinalNumber(i,{unit:"year"}),a);default:return an(Jt(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=v8(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tm=function(n){return typeof n}:Tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function Tce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dR(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 Oce(e,t,n){return t&&dR(e.prototype,t),n&&dR(e,n),e}function Pce(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}}),t&&u2(e,t)}function u2(e,t){return u2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},u2(e,t)}function kce(e){var t=Rce();return function(){var r=Tv(e),i;if(t){var o=Tv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mce(this,i)}}function Mce(e,t){return t&&(Tm(t)==="object"||typeof t=="function")?t:f2(e)}function f2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rce(){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 Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nce=function(e){Pce(n,e);var t=kce(n);function n(){var r;Tce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),hR(f2(r),"priority",130),hR(f2(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Oce(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return an(Jt(4,i),a);case"Yo":return an(s.ordinalNumber(i,{unit:"year"}),a);default:return an(Jt(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s,a){var l=RE(i,a);if(s.isTwoDigitYear){var c=v8(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),sl(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),sl(i,a)}}]),n}(gt);function Om(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Om=function(n){return typeof n}:Om=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function Lce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(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 Dce(e,t,n){return t&&pR(e.prototype,t),n&&pR(e,n),e}function Ace(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d2(e,t)}function d2(e,t){return d2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},d2(e,t)}function Ice(e){var t=$ce();return function(){var r=Ov(e),i;if(t){var o=Ov(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Fce(this,i)}}function Fce(e,t){return t&&(Om(t)==="object"||typeof t=="function")?t:h2(e)}function h2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $ce(){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 Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jce=function(e){Ace(n,e);var t=Ice(n);function n(){var r;Lce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),mR(h2(r),"priority",130),mR(h2(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Dce(n,[{key:"parse",value:function(i,o){return Cv(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,s){var a=new Date(0);return a.setUTCFullYear(s,0,4),a.setUTCHours(0,0,0,0),Bc(a)}}]),n}(gt);function Pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pm=function(n){return typeof n}:Pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(e)}function Bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gR(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 zce(e,t,n){return t&&gR(e.prototype,t),n&&gR(e,n),e}function Uce(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}}),t&&p2(e,t)}function p2(e,t){return p2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},p2(e,t)}function Vce(e){var t=Wce();return function(){var r=Pv(e),i;if(t){var o=Pv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Hce(this,i)}}function Hce(e,t){return t&&(Pm(t)==="object"||typeof t=="function")?t:m2(e)}function m2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wce(){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 Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function vR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yce=function(e){Uce(n,e);var t=Vce(n);function n(){var r;Bce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),vR(m2(r),"priority",130),vR(m2(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return zce(n,[{key:"parse",value:function(i,o){return Cv(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,s){return i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?km=function(n){return typeof n}:km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},km(e)}function qce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yR(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 Gce(e,t,n){return t&&yR(e.prototype,t),n&&yR(e,n),e}function Zce(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}}),t&&g2(e,t)}function g2(e,t){return g2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},g2(e,t)}function Kce(e){var t=Qce();return function(){var r=kv(e),i;if(t){var o=kv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Xce(this,i)}}function Xce(e,t){return t&&(km(t)==="object"||typeof t=="function")?t:v2(e)}function v2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qce(){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 kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function _R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jce=function(e){Zce(n,e);var t=Kce(n);function n(){var r;qce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),_R(v2(r),"priority",120),_R(v2(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Gce(n,[{key:"parse",value:function(i,o,s){switch(o){case"Q":case"QQ":return Jt(o.length,i);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(i,{width:"wide",context:"formatting"})||s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mm=function(n){return typeof n}:Mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mm(e)}function eue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(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 tue(e,t,n){return t&&bR(e.prototype,t),n&&bR(e,n),e}function nue(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}}),t&&y2(e,t)}function y2(e,t){return y2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},y2(e,t)}function rue(e){var t=oue();return function(){var r=Mv(e),i;if(t){var o=Mv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iue(this,i)}}function iue(e,t){return t&&(Mm(t)==="object"||typeof t=="function")?t:_2(e)}function _2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oue(){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 Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function wR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sue=function(e){nue(n,e);var t=rue(n);function n(){var r;eue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),wR(_2(r),"priority",120),wR(_2(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return tue(n,[{key:"parse",value:function(i,o,s){switch(o){case"q":case"qq":return Jt(o.length,i);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(i,{width:"wide",context:"standalone"})||s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Rm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rm=function(n){return typeof n}:Rm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rm(e)}function aue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(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 lue(e,t,n){return t&&xR(e.prototype,t),n&&xR(e,n),e}function cue(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}}),t&&b2(e,t)}function b2(e,t){return b2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},b2(e,t)}function uue(e){var t=due();return function(){var r=Rv(e),i;if(t){var o=Rv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fue(this,i)}}function fue(e,t){return t&&(Rm(t)==="object"||typeof t=="function")?t:w2(e)}function w2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function due(){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 Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function SR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hue=function(e){cue(n,e);var t=uue(n);function n(){var r;aue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),SR(w2(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),SR(w2(r),"priority",110),r}return lue(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"M":return an(Ht(sn.month,i),a);case"MM":return an(Jt(2,i),a);case"Mo":return an(s.ordinalNumber(i,{unit:"month"}),a);case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(i,{width:"wide",context:"formatting"})||s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Nm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nm=function(n){return typeof n}:Nm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nm(e)}function pue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mue(e,t,n){return t&&CR(e.prototype,t),n&&CR(e,n),e}function gue(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}}),t&&x2(e,t)}function x2(e,t){return x2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},x2(e,t)}function vue(e){var t=_ue();return function(){var r=Nv(e),i;if(t){var o=Nv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yue(this,i)}}function yue(e,t){return t&&(Nm(t)==="object"||typeof t=="function")?t:S2(e)}function S2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _ue(){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 Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function ER(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bue=function(e){gue(n,e);var t=vue(n);function n(){var r;pue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ER(S2(r),"priority",110),ER(S2(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return mue(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"L":return an(Ht(sn.month,i),a);case"LL":return an(Jt(2,i),a);case"Lo":return an(s.ordinalNumber(i,{unit:"month"}),a);case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(i,{width:"wide",context:"standalone"})||s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function wue(e,t,n){Pe(2,arguments);var r=Re(e),i=et(t),o=l8(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lm=function(n){return typeof n}:Lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lm(e)}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sue(e,t,n){return t&&TR(e.prototype,t),n&&TR(e,n),e}function Cue(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}}),t&&C2(e,t)}function C2(e,t){return C2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},C2(e,t)}function Eue(e){var t=Oue();return function(){var r=Lv(e),i;if(t){var o=Lv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Tue(this,i)}}function Tue(e,t){return t&&(Lm(t)==="object"||typeof t=="function")?t:E2(e)}function E2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oue(){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 Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function OR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pue=function(e){Cue(n,e);var t=Eue(n);function n(){var r;xue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),OR(E2(r),"priority",100),OR(E2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Sue(n,[{key:"parse",value:function(i,o,s){switch(o){case"w":return Ht(sn.week,i);case"wo":return s.ordinalNumber(i,{unit:"week"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s,a){return sl(wue(i,s,a),a)}}]),n}(gt);function kue(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=a8(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dm=function(n){return typeof n}:Dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dm(e)}function Mue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PR(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 Rue(e,t,n){return t&&PR(e.prototype,t),n&&PR(e,n),e}function Nue(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}}),t&&T2(e,t)}function T2(e,t){return T2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},T2(e,t)}function Lue(e){var t=Aue();return function(){var r=Dv(e),i;if(t){var o=Dv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Due(this,i)}}function Due(e,t){return t&&(Dm(t)==="object"||typeof t=="function")?t:O2(e)}function O2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aue(){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 Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}function kR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iue=function(e){Nue(n,e);var t=Lue(n);function n(){var r;Mue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),kR(O2(r),"priority",100),kR(O2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Rue(n,[{key:"parse",value:function(i,o,s){switch(o){case"I":return Ht(sn.week,i);case"Io":return s.ordinalNumber(i,{unit:"week"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s){return Bc(kue(i,s))}}]),n}(gt);function Am(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Am=function(n){return typeof n}:Am=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function Fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MR(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 $ue(e,t,n){return t&&MR(e.prototype,t),n&&MR(e,n),e}function jue(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}}),t&&P2(e,t)}function P2(e,t){return P2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},P2(e,t)}function Bue(e){var t=Uue();return function(){var r=Av(e),i;if(t){var o=Av(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zue(this,i)}}function zue(e,t){return t&&(Am(t)==="object"||typeof t=="function")?t:Im(e)}function Im(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uue(){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 Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function Rb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vue=[31,28,31,30,31,30,31,31,30,31,30,31],Hue=[31,29,31,30,31,30,31,31,30,31,30,31],Wue=function(e){jue(n,e);var t=Bue(n);function n(){var r;Fue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Rb(Im(r),"priority",90),Rb(Im(r),"subPriority",1),Rb(Im(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return $ue(n,[{key:"parse",value:function(i,o,s){switch(o){case"d":return Ht(sn.date,i);case"do":return s.ordinalNumber(i,{unit:"date"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){var s=i.getUTCFullYear(),a=y8(s),l=i.getUTCMonth();return a?o>=1&&o<=Hue[l]:o>=1&&o<=Vue[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fm=function(n){return typeof n}:Fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fm(e)}function Yue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RR(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 que(e,t,n){return t&&RR(e.prototype,t),n&&RR(e,n),e}function Gue(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}}),t&&k2(e,t)}function k2(e,t){return k2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},k2(e,t)}function Zue(e){var t=Xue();return function(){var r=Iv(e),i;if(t){var o=Iv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Kue(this,i)}}function Kue(e,t){return t&&(Fm(t)==="object"||typeof t=="function")?t:$m(e)}function $m(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xue(){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 Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(e)}function Nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Que=function(e){Gue(n,e);var t=Zue(n);function n(){var r;Yue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Nb($m(r),"priority",90),Nb($m(r),"subpriority",1),Nb($m(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return que(n,[{key:"parse",value:function(i,o,s){switch(o){case"D":case"DD":return Ht(sn.dayOfYear,i);case"Do":return s.ordinalNumber(i,{unit:"date"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){var s=i.getUTCFullYear(),a=y8(s);return a?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function FE(e,t,n){var r,i,o,s,a,l,c,f;Pe(2,arguments);var h=Vo(),p=et((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.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 m=Re(e),g=et(t),v=m.getUTCDay(),w=g%7,_=(w+7)%7,b=(_<p?7:0)+g-v;return m.setUTCDate(m.getUTCDate()+b),m}function jm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jm=function(n){return typeof n}:jm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jm(e)}function Jue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(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 efe(e,t,n){return t&&NR(e.prototype,t),n&&NR(e,n),e}function tfe(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}}),t&&M2(e,t)}function M2(e,t){return M2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},M2(e,t)}function nfe(e){var t=ife();return function(){var r=Fv(e),i;if(t){var o=Fv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return rfe(this,i)}}function rfe(e,t){return t&&(jm(t)==="object"||typeof t=="function")?t:R2(e)}function R2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ife(){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 Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(e)}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ofe=function(e){tfe(n,e);var t=nfe(n);function n(){var r;Jue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),LR(R2(r),"priority",90),LR(R2(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return efe(n,[{key:"parse",value:function(i,o,s){switch(o){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=FE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bm=function(n){return typeof n}:Bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}function sfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(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 afe(e,t,n){return t&&DR(e.prototype,t),n&&DR(e,n),e}function lfe(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}}),t&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},N2(e,t)}function cfe(e){var t=ffe();return function(){var r=$v(e),i;if(t){var o=$v(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ufe(this,i)}}function ufe(e,t){return t&&(Bm(t)==="object"||typeof t=="function")?t:L2(e)}function L2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ffe(){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 $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$v(e)}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dfe=function(e){lfe(n,e);var t=cfe(n);function n(){var r;sfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),AR(L2(r),"priority",90),AR(L2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return afe(n,[{key:"parse",value:function(i,o,s,a){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+a.weekStartsOn+6)%7+h};switch(o){case"e":case"ee":return an(Jt(o.length,i),l);case"eo":return an(s.ordinalNumber(i,{unit:"day"}),l);case"eee":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeeee":return s.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=FE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zm=function(n){return typeof n}:zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zm(e)}function hfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IR(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 pfe(e,t,n){return t&&IR(e.prototype,t),n&&IR(e,n),e}function mfe(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}}),t&&D2(e,t)}function D2(e,t){return D2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},D2(e,t)}function gfe(e){var t=yfe();return function(){var r=jv(e),i;if(t){var o=jv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return vfe(this,i)}}function vfe(e,t){return t&&(zm(t)==="object"||typeof t=="function")?t:A2(e)}function A2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yfe(){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 jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}function FR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _fe=function(e){mfe(n,e);var t=gfe(n);function n(){var r;hfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),FR(A2(r),"priority",90),FR(A2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return pfe(n,[{key:"parse",value:function(i,o,s,a){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+a.weekStartsOn+6)%7+h};switch(o){case"c":case"cc":return an(Jt(o.length,i),l);case"co":return an(s.ordinalNumber(i,{unit:"day"}),l);case"ccc":return s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"ccccc":return s.day(i,{width:"narrow",context:"standalone"});case"cccccc":return s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(i,{width:"wide",context:"standalone"})||s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=FE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function bfe(e,t){Pe(2,arguments);var n=et(t);n%7===0&&(n=n-7);var r=1,i=Re(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}function Um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Um=function(n){return typeof n}:Um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function wfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $R(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 xfe(e,t,n){return t&&$R(e.prototype,t),n&&$R(e,n),e}function Sfe(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}}),t&&I2(e,t)}function I2(e,t){return I2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},I2(e,t)}function Cfe(e){var t=Tfe();return function(){var r=Bv(e),i;if(t){var o=Bv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Efe(this,i)}}function Efe(e,t){return t&&(Um(t)==="object"||typeof t=="function")?t:F2(e)}function F2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tfe(){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 Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}function jR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ofe=function(e){Sfe(n,e);var t=Cfe(n);function n(){var r;wfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),jR(F2(r),"priority",90),jR(F2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return xfe(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c===0?7:c};switch(o){case"i":case"ii":return Jt(o.length,i);case"io":return s.ordinalNumber(i,{unit:"day"});case"iii":return an(s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiii":return an(s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiiii":return an(s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiii":default:return an(s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,s){return i=bfe(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vm=function(n){return typeof n}:Vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vm(e)}function Pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BR(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 kfe(e,t,n){return t&&BR(e.prototype,t),n&&BR(e,n),e}function Mfe(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}}),t&&$2(e,t)}function $2(e,t){return $2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$2(e,t)}function Rfe(e){var t=Lfe();return function(){var r=zv(e),i;if(t){var o=zv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nfe(this,i)}}function Nfe(e,t){return t&&(Vm(t)==="object"||typeof t=="function")?t:j2(e)}function j2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lfe(){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 zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zv(e)}function zR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dfe=function(e){Mfe(n,e);var t=Rfe(n);function n(){var r;Pfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),zR(j2(r),"priority",80),zR(j2(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return kfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"a":case"aa":case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(IE(s),0,0,0),i}}]),n}(gt);function Hm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hm=function(n){return typeof n}:Hm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hm(e)}function Afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UR(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 Ife(e,t,n){return t&&UR(e.prototype,t),n&&UR(e,n),e}function Ffe(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}}),t&&B2(e,t)}function B2(e,t){return B2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},B2(e,t)}function $fe(e){var t=Bfe();return function(){var r=Uv(e),i;if(t){var o=Uv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jfe(this,i)}}function jfe(e,t){return t&&(Hm(t)==="object"||typeof t=="function")?t:z2(e)}function z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function 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 Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}function VR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zfe=function(e){Ffe(n,e);var t=$fe(n);function n(){var r;Afe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),VR(z2(r),"priority",80),VR(z2(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Ife(n,[{key:"parse",value:function(i,o,s){switch(o){case"b":case"bb":case"bbb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(IE(s),0,0,0),i}}]),n}(gt);function Wm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wm=function(n){return typeof n}:Wm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wm(e)}function Ufe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HR(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 Vfe(e,t,n){return t&&HR(e.prototype,t),n&&HR(e,n),e}function Hfe(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}}),t&&U2(e,t)}function U2(e,t){return U2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},U2(e,t)}function Wfe(e){var t=qfe();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 Yfe(this,i)}}function Yfe(e,t){return t&&(Wm(t)==="object"||typeof t=="function")?t:V2(e)}function V2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qfe(){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 WR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gfe=function(e){Hfe(n,e);var t=Wfe(n);function n(){var r;Ufe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),WR(V2(r),"priority",80),WR(V2(r),"incompatibleTokens",["a","b","t","T"]),r}return Vfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"B":case"BB":case"BBB":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(IE(s),0,0,0),i}}]),n}(gt);function Ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ym=function(n){return typeof n}:Ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ym(e)}function Zfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YR(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 Kfe(e,t,n){return t&&YR(e.prototype,t),n&&YR(e,n),e}function Xfe(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}}),t&&H2(e,t)}function H2(e,t){return H2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},H2(e,t)}function Qfe(e){var t=ede();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 Jfe(this,i)}}function Jfe(e,t){return t&&(Ym(t)==="object"||typeof t=="function")?t:W2(e)}function W2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ede(){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 Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}function qR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tde=function(e){Xfe(n,e);var t=Qfe(n);function n(){var r;Zfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),qR(W2(r),"priority",70),qR(W2(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Kfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"h":return Ht(sn.hour12h,i);case"ho":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(gt);function qm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qm=function(n){return typeof n}:qm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qm(e)}function nde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GR(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 rde(e,t,n){return t&&GR(e.prototype,t),n&&GR(e,n),e}function ide(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}}),t&&Y2(e,t)}function Y2(e,t){return Y2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Y2(e,t)}function ode(e){var t=ade();return function(){var r=Wv(e),i;if(t){var o=Wv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return sde(this,i)}}function sde(e,t){return t&&(qm(t)==="object"||typeof t=="function")?t:q2(e)}function q2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ade(){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 Wv(e){return Wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wv(e)}function ZR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lde=function(e){ide(n,e);var t=ode(n);function n(){var r;nde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ZR(q2(r),"priority",70),ZR(q2(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return rde(n,[{key:"parse",value:function(i,o,s){switch(o){case"H":return Ht(sn.hour23h,i);case"Ho":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(gt);function Gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gm=function(n){return typeof n}:Gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gm(e)}function cde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KR(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 ude(e,t,n){return t&&KR(e.prototype,t),n&&KR(e,n),e}function fde(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}}),t&&G2(e,t)}function G2(e,t){return G2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},G2(e,t)}function dde(e){var t=pde();return function(){var r=Yv(e),i;if(t){var o=Yv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hde(this,i)}}function hde(e,t){return t&&(Gm(t)==="object"||typeof t=="function")?t:Z2(e)}function Z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yv(e)}function XR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mde=function(e){fde(n,e);var t=dde(n);function n(){var r;cde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),XR(Z2(r),"priority",70),XR(Z2(r),"incompatibleTokens",["h","H","k","t","T"]),r}return ude(n,[{key:"parse",value:function(i,o,s){switch(o){case"K":return Ht(sn.hour11h,i);case"Ko":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(gt);function Zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zm=function(n){return typeof n}:Zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zm(e)}function gde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QR(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 vde(e,t,n){return t&&QR(e.prototype,t),n&&QR(e,n),e}function yde(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}}),t&&K2(e,t)}function K2(e,t){return K2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},K2(e,t)}function _de(e){var t=wde();return function(){var r=qv(e),i;if(t){var o=qv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bde(this,i)}}function bde(e,t){return t&&(Zm(t)==="object"||typeof t=="function")?t:X2(e)}function X2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qv(e)}function JR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xde=function(e){yde(n,e);var t=_de(n);function n(){var r;gde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),JR(X2(r),"priority",70),JR(X2(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return vde(n,[{key:"parse",value:function(i,o,s){switch(o){case"k":return Ht(sn.hour24h,i);case"ko":return s.ordinalNumber(i,{unit:"hour"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(gt);function Km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Km=function(n){return typeof n}:Km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Km(e)}function Sde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eN(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 Cde(e,t,n){return t&&eN(e.prototype,t),n&&eN(e,n),e}function Ede(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}}),t&&Q2(e,t)}function Q2(e,t){return Q2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Q2(e,t)}function Tde(e){var t=Pde();return function(){var r=Gv(e),i;if(t){var o=Gv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ode(this,i)}}function Ode(e,t){return t&&(Km(t)==="object"||typeof t=="function")?t:J2(e)}function J2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pde(){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 Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gv(e)}function tN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kde=function(e){Ede(n,e);var t=Tde(n);function n(){var r;Sde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),tN(J2(r),"priority",60),tN(J2(r),"incompatibleTokens",["t","T"]),r}return Cde(n,[{key:"parse",value:function(i,o,s){switch(o){case"m":return Ht(sn.minute,i);case"mo":return s.ordinalNumber(i,{unit:"minute"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(gt);function Xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xm=function(n){return typeof n}:Xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xm(e)}function Mde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rde(e,t,n){return t&&nN(e.prototype,t),n&&nN(e,n),e}function Nde(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}}),t&&ex(e,t)}function ex(e,t){return ex=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ex(e,t)}function Lde(e){var t=Ade();return function(){var r=Zv(e),i;if(t){var o=Zv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Dde(this,i)}}function Dde(e,t){return t&&(Xm(t)==="object"||typeof t=="function")?t:tx(e)}function tx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ade(){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 Zv(e){return Zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zv(e)}function rN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ide=function(e){Nde(n,e);var t=Lde(n);function n(){var r;Mde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),rN(tx(r),"priority",50),rN(tx(r),"incompatibleTokens",["t","T"]),r}return Rde(n,[{key:"parse",value:function(i,o,s){switch(o){case"s":return Ht(sn.second,i);case"so":return s.ordinalNumber(i,{unit:"second"});default:return Jt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(gt);function Qm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qm=function(n){return typeof n}:Qm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qm(e)}function Fde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(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 $de(e,t,n){return t&&iN(e.prototype,t),n&&iN(e,n),e}function jde(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}}),t&&nx(e,t)}function nx(e,t){return nx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},nx(e,t)}function Bde(e){var t=Ude();return function(){var r=Kv(e),i;if(t){var o=Kv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zde(this,i)}}function zde(e,t){return t&&(Qm(t)==="object"||typeof t=="function")?t:rx(e)}function rx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ude(){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 Kv(e){return Kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Kv(e)}function oN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vde=function(e){jde(n,e);var t=Bde(n);function n(){var r;Fde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),oN(rx(r),"priority",30),oN(rx(r),"incompatibleTokens",["t","T"]),r}return $de(n,[{key:"parse",value:function(i,o){var s=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return an(Jt(o.length,i),s)}},{key:"set",value:function(i,o,s){return i.setUTCMilliseconds(s),i}}]),n}(gt);function Jm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jm=function(n){return typeof n}:Jm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jm(e)}function Hde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sN(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 Wde(e,t,n){return t&&sN(e.prototype,t),n&&sN(e,n),e}function Yde(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}}),t&&ix(e,t)}function ix(e,t){return ix=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ix(e,t)}function qde(e){var t=Zde();return function(){var r=Xv(e),i;if(t){var o=Xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Gde(this,i)}}function Gde(e,t){return t&&(Jm(t)==="object"||typeof t=="function")?t:ox(e)}function ox(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xv(e)}function aN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kde=function(e){Yde(n,e);var t=qde(n);function n(){var r;Hde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),aN(ox(r),"priority",10),aN(ox(r),"incompatibleTokens",["t","T","x"]),r}return Wde(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Hi(Vi.basicOptionalMinutes,i);case"XX":return Hi(Vi.basic,i);case"XXXX":return Hi(Vi.basicOptionalSeconds,i);case"XXXXX":return Hi(Vi.extendedOptionalSeconds,i);case"XXX":default:return Hi(Vi.extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(gt);function eg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eg=function(n){return typeof n}:eg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eg(e)}function Xde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lN(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 Qde(e,t,n){return t&&lN(e.prototype,t),n&&lN(e,n),e}function Jde(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}}),t&&sx(e,t)}function sx(e,t){return sx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},sx(e,t)}function ehe(e){var t=nhe();return function(){var r=Qv(e),i;if(t){var o=Qv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return the(this,i)}}function the(e,t){return t&&(eg(t)==="object"||typeof t=="function")?t:ax(e)}function ax(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nhe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qv(e){return Qv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qv(e)}function cN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rhe=function(e){Jde(n,e);var t=ehe(n);function n(){var r;Xde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),cN(ax(r),"priority",10),cN(ax(r),"incompatibleTokens",["t","T","X"]),r}return Qde(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Hi(Vi.basicOptionalMinutes,i);case"xx":return Hi(Vi.basic,i);case"xxxx":return Hi(Vi.basicOptionalSeconds,i);case"xxxxx":return Hi(Vi.extendedOptionalSeconds,i);case"xxx":default:return Hi(Vi.extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(gt);function tg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tg=function(n){return typeof n}:tg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tg(e)}function ihe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uN(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 ohe(e,t,n){return t&&uN(e.prototype,t),n&&uN(e,n),e}function she(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}}),t&&lx(e,t)}function lx(e,t){return lx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},lx(e,t)}function ahe(e){var t=che();return function(){var r=Jv(e),i;if(t){var o=Jv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return lhe(this,i)}}function lhe(e,t){return t&&(tg(t)==="object"||typeof t=="function")?t:cx(e)}function cx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function che(){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 Jv(e){return Jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Jv(e)}function fN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uhe=function(e){she(n,e);var t=ahe(n);function n(){var r;ihe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),fN(cx(r),"priority",40),fN(cx(r),"incompatibleTokens","*"),r}return ohe(n,[{key:"parse",value:function(i){return g8(i)}},{key:"set",value:function(i,o,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(gt);function ng(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ng=function(n){return typeof n}:ng=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ng(e)}function fhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dN(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 dhe(e,t,n){return t&&dN(e.prototype,t),n&&dN(e,n),e}function hhe(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}}),t&&ux(e,t)}function ux(e,t){return ux=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ux(e,t)}function phe(e){var t=ghe();return function(){var r=ey(e),i;if(t){var o=ey(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return mhe(this,i)}}function mhe(e,t){return t&&(ng(t)==="object"||typeof t=="function")?t:fx(e)}function fx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ghe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function hN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vhe=function(e){hhe(n,e);var t=phe(n);function n(){var r;fhe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),hN(fx(r),"priority",20),hN(fx(r),"incompatibleTokens","*"),r}return dhe(n,[{key:"parse",value:function(i){return g8(i)}},{key:"set",value:function(i,o,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(gt),yhe={G:new yce,y:new Ece,Y:new Nce,R:new jce,u:new Yce,Q:new Jce,q:new sue,M:new hue,L:new bue,w:new Pue,I:new Iue,d:new Wue,D:new Que,E:new ofe,e:new dfe,c:new _fe,i:new Ofe,a:new Dfe,b:new zfe,B:new Gfe,h:new tde,H:new lde,K:new mde,k:new xde,m:new kde,s:new Ide,S:new Vde,X:new Kde,x:new rhe,t:new uhe,T:new vhe};function rg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rg=function(n){return typeof n}:rg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rg(e)}function pN(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=_he(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,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function _he(e,t){if(e){if(typeof e=="string")return mN(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 mN(e,t)}}function mN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bhe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,whe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xhe=/^'([^]*?)'?$/,She=/''/g,Che=/\S/,Ehe=/[a-zA-Z]/;function Lb(e,t,n,r){var i,o,s,a,l,c,f,h,p,m,g,v,w,_,b,x,E,P;Pe(3,arguments);var k=String(e),N=String(t),D=Vo(),U=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:D.locale)!==null&&i!==void 0?i:NE;if(!U.match)throw new RangeError("locale must contain match property");var A=et((s=(a=(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:D.firstWeekContainsDate)!==null&&a!==void 0?a:(p=D.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=et((g=(v=(w=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(b=r.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&w!==void 0?w:D.weekStartsOn)!==null&&v!==void 0?v:(E=D.locale)===null||E===void 0||(P=E.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&g!==void 0?g:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return k===""?Re(n):new Date(NaN);var q={firstWeekContainsDate:A,weekStartsOn:Y,locale:U},ee=[new cce],Z=N.match(whe).map(function(O){var R=O[0];if(R in n2){var F=n2[R];return F(O,U.formatLong)}return O}).join("").match(bhe),te=[],ne=pN(Z),le;try{var K=function(){var R=le.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&f8(R)&&bv(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&u8(R)&&bv(R,N,e);var F=R[0],Q=yhe[F];if(Q){var X=Q.incompatibleTokens;if(Array.isArray(X)){var ae=te.find(function(De){return X.includes(De.token)||De.token===F});if(ae)throw new RangeError("The format string mustn't contain `".concat(ae.fullToken,"` and `").concat(R,"` at the same time"))}else if(Q.incompatibleTokens==="*"&&te.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));te.push({token:F,fullToken:R});var ve=Q.run(k,R,U.match,q);if(!ve)return{v:new Date(NaN)};ee.push(ve.setter),k=ve.rest}else{if(F.match(Ehe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");if(R==="''"?R="'":F==="'"&&(R=The(R)),k.indexOf(R)===0)k=k.slice(R.length);else return{v:new Date(NaN)}}};for(ne.s();!(le=ne.n()).done;){var $=K();if(rg($)==="object")return $.v}}catch(O){ne.e(O)}finally{ne.f()}if(k.length>0&&Che.test(k))return new Date(NaN);var I=ee.map(function(O){return O.priority}).sort(function(O,R){return R-O}).filter(function(O,R,F){return F.indexOf(O)===R}).map(function(O){return ee.filter(function(R){return R.priority===O}).sort(function(R,F){return F.subPriority-R.subPriority})}).map(function(O){return O[0]}),B=Re(n);if(isNaN(B.getTime()))return new Date(NaN);var ie=o8(B,$c(B)),W={},G=pN(I),re;try{for(G.s();!(re=G.n()).done;){var se=re.value;if(!se.validate(ie,q))return new Date(NaN);var me=se.set(ie,W,q);Array.isArray(me)?(ie=me[0],LE(W,me[1])):ie=me}}catch(O){G.e(O)}finally{G.f()}return ie}function The(e){return e.match(xhe)[1].replace(She,"'")}function Ohe(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Phe(e,t){Pe(2,arguments);var n=t2(e),r=t2(t);return n.getTime()===r.getTime()}function khe(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()===r.getFullYear()}function zc(e,t){Pe(2,arguments);var n=Re(e).getTime(),r=Re(t.start).getTime(),i=Re(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function $E(e,t){Pe(2,arguments);var n=et(t);return pl(e,-n)}function Do(e,t){var n;Pe(1,arguments);var r=et((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=Lhe(e),o;if(i.date){var s=Dhe(i.date,r);o=Ahe(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=Ihe(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Fhe(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(a+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(a+l+c)}var Mp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Mhe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Rhe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Nhe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Lhe(e){var t={},n=e.split(Mp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Mp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Mp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Mp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Dhe(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 Ahe(e,t){if(t===null)return new Date(NaN);var n=e.match(Mhe);if(!n)return new Date(NaN);var r=!!n[4],i=$u(n[1]),o=$u(n[2])-1,s=$u(n[3]),a=$u(n[4]),l=$u(n[5])-1;if(r)return Uhe(t,a,l)?$he(t,a,l):new Date(NaN);var c=new Date(0);return!Bhe(t,o,s)||!zhe(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function $u(e){return e?parseInt(e):1}function Ihe(e){var t=e.match(Rhe);if(!t)return NaN;var n=Db(t[1]),r=Db(t[2]),i=Db(t[3]);return Vhe(n,r,i)?n*O_+r*OE+i*1e3:NaN}function Db(e){return e&&parseFloat(e.replace(",","."))||0}function Fhe(e){if(e==="Z")return 0;var t=e.match(Nhe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Hhe(r,i)?n*(r*O_+i*OE):NaN}function $he(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 jhe=[31,null,31,30,31,30,31,31,30,31,30,31];function _8(e){return e%400===0||e%4===0&&e%100!==0}function Bhe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jhe[t]||(_8(e)?29:28))}function zhe(e,t){return t>=1&&t<=(_8(e)?366:365)}function Uhe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Vhe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Hhe(e,t){return t>=0&&t<=59}function Wi(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var a=ece(s);return n.setMonth(r,Math.min(o,a)),n}function Tf(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setHours(r),n}function Of(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setMinutes(r),n}function Qu(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Wi(n,n.getMonth()+o*3)}function Whe(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setSeconds(r),n}function ty(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Td(e,t){Pe(2,arguments);var n=et(t);return to(e,-n)}function Yhe(e,t){Pe(2,arguments);var n=et(t);return TE(e,-n)}function Od(e,t){Pe(2,arguments);var n=et(t);return jc(e,-n)}const Pf="yyyy-MM-dd",jE="yyyy-MM-dd HH:mm",Vs=()=>new Date,BE=e=>typeof e!="string",b8=(e,t)=>!e||!BE(e)?e:t?vo(e,t):Qle(e),w8=(e=Pf)=>t=>b8(t,e),Hs=e=>b8(e,void 0),Rp=w8(),ny=w8(jE),wi=e=>BE(e)?e:Do(e),gN=e=>e?wi(e):null,ah=(e,t,n)=>{try{return zc(wi(e),{start:wi(t??e),end:wi(n??e)})}catch{return!1}},va=(e,t)=>d8(e,t)||Kr(e,t),lh="all",x8={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[lh]:void 0},S8=Object.keys(x8),C8=e=>e===void 0||qn(wI(Boolean,e)),ry=e=>typeof e=="string"&&S8.includes(e),qhe=S8.filter(e=>e!==lh),E8=(e,t)=>({startDate:gN(e),endDate:gN(t)}),Ghe=e=>{if(!(!e||C8(e)))return e.startDate&&!e.endDate?`Since ${Rp(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Rp(e.endDate)}`:`${Rp(e.startDate)} - ${Rp(e.endDate)}`},zE=e=>{if(!(!e||e===lh))return ry(e)?x8[e]:Ghe(e)},qr=e=>Lr($E(Vs(),e)),Al=e=>({startDate:e,endDate:ol(Vs())}),T8=i_([[ga("today"),()=>Al(Lr(Vs()))],[ga("yesterday"),()=>({startDate:qr(1),endDate:ol($E(Vs(),1))})],[ga("last7Days"),()=>Al(qr(7))],[ga("last30Days"),()=>Al(qr(30))],[ga("last90Days"),()=>Al(qr(90))],[ga("last180Days"),()=>Al(qr(180))],[ga("last365Days"),()=>Al(qr(365))],[eC,()=>({})]]),Zhe=e=>{const t=wi(e);return i_([[()=>va(Lr(Vs()),t),()=>"today"],[()=>va(qr(1),t),()=>"yesterday"],[()=>va(qr(7),t),()=>"last7Days"],[()=>va(qr(30),t),()=>"last30Days"],[()=>va(qr(90),t),()=>"last90Days"],[()=>va(qr(180),t),()=>"last180Days"],[()=>va(qr(365),t),()=>"last365Days"],[eC,()=>lh]])()},Khe=e=>ry(e)?T8(e):e,ir=(e,t)=>mse(e,t,{serializeError:iC}),ch=wn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),vN=5e3,yN=4,_N=2,Xhe=({currentPage:e,pagesCount:t})=>e>=t,Qhe=(e,t)=>t*100/e,uh=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=wn(`${e}/progressChanged`),o=wn(`${e}/large`),s=wn(`${e}/fallbackToInterval`),a=ir(e,async(l,{getState:c,dispatch:f})=>{const[h,p]=t(l,c),m=async b=>Promise.all(b.map(async x=>h(x,vN).then(ct("data")))).then(tZ),g=async(b,x=0)=>{if(r(c))return[];const E=await m(b[x]);return f(i(Qhe(b.length,x+_N))),x<b.length-1?E.concat(await g(b,x+1)):E},v=async(b=1)=>{const{pagination:x,data:E}=await h(b,vN);if(!x||Xhe(x))return E;const P=aC(_N,x.pagesCount+1),k=ld(yN,P);return x.pagesCount-1>yN&&f(o()),E.concat(await g(k))},[w,_]=await Promise.all([v(),p()]);return!w.length&&_&&f(s(Zhe(_.date))),{...n(l),visits:w}});return Object.assign(a,{progressChanged:i,large:o,fallbackToInterval:s})},fh=(e,t)=>e?async()=>t({page:1,itemsPerPage:1}).then(({data:n})=>n[0]):async()=>Promise.resolve(void 0),dh=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:s,large:a,progressChanged:l,fallbackToInterval:c}=t,{reducer:f,actions:h}=Gn({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(o,(g,{error:v})=>({...n,error:!0,errorData:no(v)})),m.addCase(s,(g,{payload:v})=>({...g,...v,loading:!1,loadingLarge:!1,error:!1})),m.addCase(a,g=>({...g,loadingLarge:!0})),m.addCase(l,(g,{payload:v})=>({...g,progress:v})),m.addCase(c,(g,{payload:v})=>({...g,fallbackInterval:v})),m.addCase(ch,(g,{payload:v})=>{const{visits:w}=g,_=r(g,v.createdVisits).map(({visit:b})=>b);return _.length?{...g,visits:[..._,...w]}:g})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},O8="shlink/domainVisits",P8="DEFAULT",Jhe={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},epe=e=>uh({typePrefix:`${O8}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getDomainVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=fh(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),tpe=e=>dh({name:O8,initialState:Jhe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&xae(s,t)&&ah(a.date,i,o))}}),ru=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>V("div",{className:`${n} ${i?"":"mb-3"}`,children:[C("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),ig=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=C_();return C(ru,{label:V(Ye,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:C("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},og=({className:e="",placement:t,children:n})=>{const r=eh();return V(Ye,{children:[C("span",{className:e,ref:r,children:C(je,{icon:bC})}),C(Br,{target:r,placement:t,children:n})]})},Ab=({isLast:e,...t})=>C(ig,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),npe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,m;const[i,o]=H.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=H.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=H.useState(((m=n.redirects)==null?void 0:m.invalidShortUrlRedirect)??""),f=ih(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:Ob(i),regular404Redirect:Ob(s),invalidShortUrlRedirect:Ob(l)}}).then(t));return C(Uo,{isOpen:e,toggle:t,centered:!0,children:V("form",{name:"domainRedirectsModal",onSubmit:f,children:[V(ro,{toggle:t,children:["Edit redirects for ",C("b",{children:n.domain})]}),V(Mi,{children:[V(Ab,{value:i,onChange:o,children:[V(og,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",V("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),V(Ab,{value:s,onChange:a,children:[V(og,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",V("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),V(Ab,{value:l,isLast:!0,onChange:c,children:[C(og,{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"]})]}),V(ea,{children:[C(mt,{color:"link",type:"button",onClick:t,children:"Cancel"}),C(mt,{color:"primary",children:"Save"})]})]})})},rpe=({domain:e,editDomainRedirects:t,selectedServer:n})=>{const[r,i]=jt(),[o,s]=jt(),{isDefault:a}=e,l=!a||tae(n),c=X5(n),f=Vd(n);return V(T_,{isOpen:r,toggle:i,children:[c&&V(Ve,{tag:At,to:`/server/${f}/domain/${e.domain}${e.isDefault?`_${P8}`:""}/visits`,children:[C(je,{icon:_C,fixedWidth:!0})," Visit stats"]}),V(Ve,{disabled:!l,onClick:l?s:void 0,children:[C(je,{fixedWidth:!0,icon:yC})," Edit redirects"]}),C(npe,{domain:e,isOpen:o,toggle:s,editDomainRedirects:t})]})},ipe=({status:e,matchMedia:t=window.matchMedia})=>{const n=eh(),r=()=>t("(max-width: 991px)").matches,[i,o]=H.useState(r());return H.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?C(je,{fixedWidth:!0,icon:qI,spin:!0}):V(Ye,{children:[C("span",{ref:n,children:e==="valid"?C(je,{fixedWidth:!0,icon:ud,className:"text-muted"}):C(je,{fixedWidth:!0,icon:xw,className:"text-danger"})}),C(Br,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":V("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",C("br",{}),"Check the ",C(Ei,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},Ib=({fallback:e})=>V("span",{className:"text-muted",children:[!e&&C("small",{children:"No redirect"}),e&&V(Ye,{children:[e," ",C("small",{children:"(as fallback)"})]})]}),ope=()=>V(Ye,{children:[C(je,{fixedWidth:!0,icon:XX,className:"text-primary",id:"defaultDomainIcon"}),C(Br,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),spe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r,selectedServer:i})=>{const{domain:o,isDefault:s,redirects:a,status:l}=e;return H.useEffect(()=>{n(e.domain)},[]),V("tr",{className:"responsive-table__row",children:[C("td",{className:"responsive-table__cell","data-th":"Is default domain",children:s&&C(ope,{})}),C("th",{className:"responsive-table__cell","data-th":"Domain",children:o}),C("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??C(Ib,{fallback:r==null?void 0:r.baseUrlRedirect})}),C("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??C(Ib,{fallback:r==null?void 0:r.regular404Redirect})}),C("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??C(Ib,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),C("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:C(ipe,{status:l})}),C("td",{className:"responsive-table__cell text-end",children:C(rpe,{domain:e,editDomainRedirects:t,selectedServer:i})})]})},bN=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],ape=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i,selectedServer:o})=>{var m;const{filteredDomains:s,defaultRedirects:a,loading:l,error:c,errorData:f}=t,h=a??((m=s.find(({isDefault:g})=>g))==null?void 0:m.redirects);return H.useEffect(()=>{e()},[]),l?C(So,{loading:!0}):V(Ye,{children:[C(sh,{className:"mb-3",onChange:n}),(()=>c?C(Nr,{type:"error",children:C(Lo,{errorData:f,fallbackMessage:"Error loading domains :("})}):C(vn,{children:V("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:C("tr",{children:bN.map((g,v)=>C("th",{children:g},v))})}),V("tbody",{children:[s.length<1&&C("tr",{children:C("td",{colSpan:bN.length,className:"text-center",children:"No results found"})}),s.map(g=>C(spe,{domain:g,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:h,selectedServer:o},g.domain))]})]})}))()]})},lpe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",cpe=e=>ir(lpe,async({domain:t,redirects:n},{getState:r})=>{const{editDomainRedirects:i}=e(r),o=await i({domain:t,...n});return{domain:t,redirects:o}}),upe=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},Np="shlink/domainsList",Lp={domains:[],filteredDomains:[],loading:!1,error:!1},wN=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},xN=(e,t)=>n=>n.domain!==e?n:{...n,status:t},fpe=(e,t)=>{const n=ir(`${Np}/listDomains`,async(s,{getState:a})=>{const{listDomains:l}=e(a),{data:c,defaultRedirects:f}=await l();return{domains:c.map(h=>({...h,status:"validating"})),defaultRedirects:f}}),r=ir(`${Np}/checkDomainHealth`,async(s,{getState:a})=>{const{selectedServer:l}=a();if(!lC(l))return{domain:s,status:"invalid"};try{const{url:c,...f}=l,{health:h}=e({...f,url:upe(c,s)}),{status:p}=await h();return{domain:s,status:p==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=wn(`${Np}/filterDomains`),{reducer:o}=Gn({name:Np,initialState:Lp,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Lp,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Lp,error:!0,errorData:no(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Lp,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(xN(f.domain,f.status)),filteredDomains:l.map(xN(f.domain,f.status))})),s.addCase(i,(a,{payload:l})=>({...a,filteredDomains:a.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(a,{payload:l})=>({...a,domains:a.domains.map(wN(l)),filteredDomains:a.filteredDomains.map(wN(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},dpe=(e,t)=>{e.serviceFactory("DomainSelector",()=>bae),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>ape),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",fpe,"buildShlinkApiClient","editDomainRedirects"),e.serviceFactory("domainsListReducer",ct("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",ct("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",ct("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",cpe,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",ct("checkDomainHealth"),"domainsListReducerCreator")},SN="shlink/mercure",hpe={loading:!0,error:!1},ppe=e=>{const t=ir(`${SN}/loadMercureInfo`,(r,{getState:i})=>{const{settings:o}=i();if(!o.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e(i).mercureInfo()}),{reducer:n}=Gn({name:SN,initialState:hpe,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}},mpe=e=>{e.serviceFactory("mercureInfoReducerCreator",ppe,"buildShlinkApiClient"),e.serviceFactory("mercureInfoReducer",ct("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",ct("loadMercureInfo"),"mercureInfoReducerCreator")},k8=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return V(Uo,{centered:!0,isOpen:e,children:[V(ro,{children:["Duplicated server",i&&"s"]}),V(Mi,{children:[C("p",{children:i?"The next servers already exist:":"There is already a server with:"}),C("ul",{children:t.map(({url:o,apiKey:s},a)=>i?V("li",{children:[C("b",{children:o})," - ",C("b",{children:s})]},a):V(H.Fragment,{children:[V("li",{children:["URL: ",C("b",{children:o})]}),V("li",{children:["API key: ",C("b",{children:s})]})]},a))}),V("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),V(ea,{children:[C(mt,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),C(mt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},M8=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=H.useState(""),[s,a]=H.useState(""),[l,c]=H.useState(""),f=ih(()=>e({name:i,url:s,apiKey:l}));return H.useEffect(()=>{t&&o(t.name),t&&a(t.url),t&&c(t.apiKey)},[t]),V("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[V(vn,{className:"mb-3",title:r,children:[C(ig,{value:i,onChange:o,children:"Name"}),C(ig,{type:"url",value:s,onChange:a,children:"URL"}),C(ig,{value:l,onChange:c,children:"API key"})]}),C("div",{className:"text-end",children:n})]})},CN=4e3,EN=({type:e})=>C("div",{className:"mt-3",children:V(Nr,{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."]})}),gpe=(e,t)=>({servers:n,createServers:r})=>{const i=Fo(),o=ta(),s=!!Object.keys(n).length,[a,l]=t(!1,CN),[c,f]=t(!1,CN),[h,p]=jt(),[m,g]=H.useState(),v=()=>{if(!m)return;const w=dE();r([{...m,id:w}]),i(`/server/${w}`)};return H.useEffect(()=>{Object.values(n).some(({url:_,apiKey:b})=>(m==null?void 0:m.url)===_&&(m==null?void 0:m.apiKey)===b)?p():v()},[m]),V(nu,{children:[V(M8,{title:C("h5",{className:"mb-0",children:"Add new server"}),onSubmit:g,children:[!s&&C(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),s&&C(mt,{outline:!0,onClick:o,children:"Cancel"}),C(mt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),a&&C(EN,{type:"success"}),c&&C(EN,{type:"error"}),C(k8,{isOpen:h,duplicatedServers:m?[m]:[],onDiscard:o,onSave:v})]})},vpe=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,s,a]=jt();return V(Ye,{children:[V("span",{className:n,onClick:s,children:[!r&&C(je,{fixedWidth:!0,icon:vC}),C("span",{className:i,children:r??"Remove this server"})]}),C(e,{server:t,isOpen:o,toggle:a})]})},ype=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=Fo(),s=H.useRef(!1),a=()=>{s.current=!0,t()};return V(Uo,{isOpen:n,toggle:t,centered:!0,onClosed:()=>{s.current&&(r(e),i&&o("/"))},children:[C(ro,{toggle:t,className:"text-danger",children:"Remove server"}),V(Mi,{children:[V("p",{children:["Are you sure you want to remove ",C("b",{children:e?e.name:""}),"?"]}),C("p",{children:C("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."})})]}),V(ea,{children:[C(mt,{color:"link",onClick:t,children:"Cancel"}),C(mt,{color:"danger",onClick:a,children:"Delete"})]})]})},_pe=e=>H5(({editServer:t,selectedServer:n,selectServer:r})=>{const i=ta(),{reconnect:o}=Toe();if(!Ps(n))return null;const s=a=>{t(n.id,a),o==="true"&&r(n.id),i()};return C(nu,{children:V(M8,{title:V("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:s,children:[C(mt,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),C(mt,{outline:!0,color:"primary",children:"Save"})]})})},e);const TN=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),bpe=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:a=""})=>{const l=eh(),[c,f]=H.useState(),[h,p]=H.useState([]),[m,,g,v]=jt(),w=It(t,i),_=It(()=>w(c??[]),v),b=It(()=>w((c??[]).filter(yG(TN(h)))),v),x=async({target:E})=>{var P;return e((P=E.files)==null?void 0:P[0]).then(f).then(()=>{E.value=null}).catch(o)};return H.useEffect(()=>{if(!c)return;const E=Object.values(n),P=c.filter(TN(E)),k=!!P.length;k?p(P):w(c),k&&g()},[c]),V(Ye,{children:[V(mt,{outline:!0,id:"importBtn",className:a,onClick:()=>{var E;return(E=l.current)==null?void 0:E.click()},children:[C(je,{icon:rQ,fixedWidth:!0})," ",r??"Import from file"]}),V(Br,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",C("b",{children:"name"}),", ",C("b",{children:"apiKey"})," and ",C("b",{children:"url"}),"."]}),C("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:l,onChange:x}),C(k8,{isOpen:m,duplicatedServers:h,onDiscard:b,onSave:_})]})};const wpe=e=>({servers:t,selectedServer:n})=>C(nu,{children:V("div",{className:"server-error__container flex-column",children:[V(So,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Ps(n)&&"Could not find this Shlink server.",Ps(n)&&V(Ye,{children:[C("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),V(U5,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",C(At,{to:"/server/create",children:"add a new one"}),"."]}),Ps(n)&&C("div",{className:"container mt-3 mt-md-5",children:V("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",C(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",C(At,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),xpe=4e3,Spe=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[s,a]=H.useState(o),l=p=>a(o.filter(({name:m,url:g})=>`${m} ${g}`.toLowerCase().match(p.toLowerCase()))),c=s.some(({autoConnect:p})=>!!p),[f,h]=n(!1,xpe);return H.useEffect(()=>{a(Object.values(i))},[i]),V(nu,{children:[C(sh,{className:"mb-3",onChange:l}),V(ur,{className:"mb-3",children:[V("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[C(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&V(mt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[C(je,{icon:QI,fixedWidth:!0})," Export servers"]})]}),C("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:V(mt,{outline:!0,color:"primary",className:"flex-fill",tag:At,to:"/server/create",children:[C(je,{icon:wC,fixedWidth:!0})," Add a server"]})})]}),C(vn,{children:V("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:V("tr",{children:[c&&C("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),C("th",{children:"Name"}),C("th",{children:"Base URL"}),C("th",{"aria-label":"Options"})]})}),V("tbody",{children:[!s.length&&C("tr",{className:"text-center",children:C("td",{colSpan:4,children:"No servers found."})}),s.map(p=>C(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&C("div",{className:"mt-3",children:C(Nr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Cpe=e=>({server:t,hasAutoConnect:n})=>V("tr",{className:"responsive-table__row",children:[n&&C("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&V(Ye,{children:[C(je,{icon:ud,className:"text-primary",id:"autoConnectIcon"}),C(Br,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),C("th",{className:"responsive-table__cell","data-th":"Name",children:C(At,{to:`/server/${t.id}`,children:t.name})}),C("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),C("td",{className:"responsive-table__cell text-end",children:C(e,{server:t})})]});var Epe={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 248H128V192H48V248zM48 296V360H128V296H48zM176 296V360H272V296H176zM320 296V360H400V296H320zM400 192H320V248H400V192zM400 408H320V464H384C392.8 464 400 456.8 400 448V408zM272 408H176V464H272V408zM128 408H48V448C48 456.8 55.16 464 64 464H128V408zM272 192H176V248H272V192z"]},Tpe=Epe,Ope={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M280.2 150.2C273.1 143.8 262.1 142.2 254.3 146.1S239.1 158.5 239.1 167.1l.002 56L152 224C138.8 224 128 234.8 128 248v16C128 277.3 138.8 288 152 288L240 287.1v56c0 9.531 5.656 18.16 14.38 22c8.75 3.812 18.91 2.094 25.91-4.375l96-88.75C381.2 268.3 384 261.9 384 255.2c-.3125-7.781-2.875-13.25-7.844-17.75L280.2 150.2zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"]},Ppe=Ope,kpe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},R8={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]};const Mpe=e=>({server:t,setAutoConnect:n})=>{const[r,i]=jt(),[o,,s,a]=jt(),l=`/server/${t.id}`,{autoConnect:c}=t,f=c?tQ:kpe;return V(T_,{isOpen:r,toggle:i,children:[V(Ve,{tag:At,to:l,children:[C(je,{icon:JX,fixedWidth:!0})," Connect"]}),V(Ve,{tag:At,to:`${l}/edit`,children:[C(je,{icon:yC,fixedWidth:!0})," Edit server"]}),V(Ve,{onClick:()=>n(t,!c),children:[C(je,{icon:f,fixedWidth:!0})," ",c?"Do not a":"A","uto-connect"]}),C(Ve,{divider:!0}),V(Ve,{className:"dropdown-item--danger",onClick:s,children:[C(je,{icon:vC,fixedWidth:!0})," Remove server"]}),C(e,{redirectHome:!1,server:t,isOpen:o,toggle:a})]})};var iy={},Rpe={get exports(){return iy},set exports(e){iy=e}};/** @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,s=n.XDomainRequest,a=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,m=n.TextDecoder,g=n.TextEncoder,v=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(fe){c.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(fe){function ye(){}return ye.prototype=fe,new ye}),Date.now||(Date.now=function(){return new Date().getTime()}),v==null){var w=h;h=function(fe,ye){var be=ye.signal;return w(fe,{headers:ye.headers,credentials:ye.credentials,cache:ye.cache}).then(function(Oe){var Ae=Oe.body.getReader();return be._reader=Ae,be._aborted&&be._reader.cancel(),{status:Oe.status,statusText:Oe.statusText,headers:Oe.headers,body:{getReader:function(){return Ae}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(fe){function ye(we,_e,Ee){if(Ee===1)return we>=128>>_e&&we<<_e<=2047;if(Ee===2)return we>=2048>>_e&&we<<_e<=55295||we>=57344>>_e&&we<<_e<=65535;if(Ee===3)return we>=65536>>_e&&we<<_e<=1114111;throw new Error}function be(we,_e){if(we===6*1)return _e>>6>15?3:_e>31?2:1;if(we===6*2)return _e>15?3:2;if(we===6*3)return 3;throw new Error}for(var Oe=65533,Ae="",Ne=this.bitsNeeded,Le=this.codePoint,ue=0;ue<fe.length;ue+=1){var he=fe[ue];Ne!==0&&(he<128||he>191||!ye(Le<<6|he&63,Ne-6,be(Ne,Le)))&&(Ne=0,Le=Oe,Ae+=String.fromCharCode(Le)),Ne===0?(he>=0&&he<=127?(Ne=0,Le=he):he>=192&&he<=223?(Ne=6*1,Le=he&31):he>=224&&he<=239?(Ne=6*2,Le=he&15):he>=240&&he<=247?(Ne=6*3,Le=he&7):(Ne=0,Le=Oe),Ne!==0&&!ye(Le,Ne,be(Ne,Le))&&(Ne=0,Le=Oe)):(Ne-=6,Le=Le<<6|he&63),Ne===0&&(Le<=65535?Ae+=String.fromCharCode(Le):(Ae+=String.fromCharCode(55296+(Le-65535-1>>10)),Ae+=String.fromCharCode(56320+(Le-65535-1&1023))))}return this.bitsNeeded=Ne,this.codePoint=Le,Ae};var b=function(){try{return new m().decode(new g().encode("test"),{stream:!0})==="test"}catch(fe){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+fe)}return!1};(m==null||g==null||!b())&&(m=_);var x=function(){};function E(fe){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=x,this.onload=x,this.onerror=x,this.onreadystatechange=x,this._contentType="",this._xhr=fe,this._sendTimeout=0,this._abort=x}E.prototype.open=function(fe,ye){this._abort(!0);var be=this,Oe=this._xhr,Ae=1,Ne=0;this._abort=function(Ee){be._sendTimeout!==0&&(i(be._sendTimeout),be._sendTimeout=0),(Ae===1||Ae===2||Ae===3)&&(Ae=4,Oe.onload=x,Oe.onerror=x,Oe.onabort=x,Oe.onprogress=x,Oe.onreadystatechange=x,Oe.abort(),Ne!==0&&(i(Ne),Ne=0),Ee||(be.readyState=4,be.onabort(null),be.onreadystatechange())),Ae=0};var Le=function(){if(Ae===1){var Ee=0,Me="",Fe=void 0;if("contentType"in Oe)Ee=200,Me="OK",Fe=Oe.contentType;else try{Ee=Oe.status,Me=Oe.statusText,Fe=Oe.getResponseHeader("Content-Type")}catch{Ee=0,Me="",Fe=void 0}Ee!==0&&(Ae=2,be.readyState=2,be.status=Ee,be.statusText=Me,be._contentType=Fe,be.onreadystatechange())}},ue=function(){if(Le(),Ae===2||Ae===3){Ae=3;var Ee="";try{Ee=Oe.responseText}catch{}be.readyState=3,be.responseText=Ee,be.onprogress()}},he=function(Ee,Me){if((Me==null||Me.preventDefault==null)&&(Me={preventDefault:x}),ue(),Ae===1||Ae===2||Ae===3){if(Ae=4,Ne!==0&&(i(Ne),Ne=0),be.readyState=4,Ee==="load")be.onload(Me);else if(Ee==="error")be.onerror(Me);else if(Ee==="abort")be.onabort(Me);else throw new TypeError;be.onreadystatechange()}},we=function(Ee){Oe!=null&&(Oe.readyState===4?(!("onload"in Oe)||!("onerror"in Oe)||!("onabort"in Oe))&&he(Oe.responseText===""?"error":"load",Ee):Oe.readyState===3?"onprogress"in Oe||ue():Oe.readyState===2&&Le())},_e=function(){Ne=r(function(){_e()},500),Oe.readyState===3&&ue()};"onload"in Oe&&(Oe.onload=function(Ee){he("load",Ee)}),"onerror"in Oe&&(Oe.onerror=function(Ee){he("error",Ee)}),"onabort"in Oe&&(Oe.onabort=function(Ee){he("abort",Ee)}),"onprogress"in Oe&&(Oe.onprogress=ue),"onreadystatechange"in Oe&&(Oe.onreadystatechange=function(Ee){we(Ee)}),("contentType"in Oe||!("ontimeout"in o.prototype))&&(ye+=(ye.indexOf("?")===-1?"?":"&")+"padding=true"),Oe.open(fe,ye,!0),"readyState"in Oe&&(Ne=r(function(){_e()},0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(fe){return this._contentType},E.prototype.setRequestHeader=function(fe,ye){var be=this._xhr;"setRequestHeader"in be&&be.setRequestHeader(fe,ye)},E.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},E.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 fe=this;fe._sendTimeout=r(function(){fe._sendTimeout=0,fe.send()},4);return}var ye=this._xhr;"withCredentials"in ye&&(ye.withCredentials=this.withCredentials);try{ye.send(void 0)}catch(be){throw be}};function P(fe){return fe.replace(/[A-Z]/g,function(ye){return String.fromCharCode(ye.charCodeAt(0)+32)})}function k(fe){for(var ye=Object.create(null),be=fe.split(`\r
|
||
`),Oe=0;Oe<be.length;Oe+=1){var Ae=be[Oe],Ne=Ae.split(": "),Le=Ne.shift(),ue=Ne.join(": ");ye[P(Le)]=ue}this._map=ye}k.prototype.get=function(fe){return this._map[P(fe)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function N(){}N.prototype.open=function(fe,ye,be,Oe,Ae,Ne,Le){fe.open("GET",Ae);var ue=0;fe.onprogress=function(){var we=fe.responseText,_e=we.slice(ue);ue+=_e.length,be(_e)},fe.onerror=function(we){we.preventDefault(),Oe(new Error("NetworkError"))},fe.onload=function(){Oe(null)},fe.onabort=function(){Oe(null)},fe.onreadystatechange=function(){if(fe.readyState===o.HEADERS_RECEIVED){var we=fe.status,_e=fe.statusText,Ee=fe.getResponseHeader("Content-Type"),Me=fe.getAllResponseHeaders();ye(we,_e,Ee,new k(Me))}},fe.withCredentials=Ne;for(var he in Le)Object.prototype.hasOwnProperty.call(Le,he)&&fe.setRequestHeader(he,Le[he]);return fe.send(),fe};function D(fe){this._headers=fe}D.prototype.get=function(fe){return this._headers.get(fe)};function U(){}U.prototype.open=function(fe,ye,be,Oe,Ae,Ne,Le){var ue=null,he=new v,we=he.signal,_e=new m;return h(Ae,{headers:Le,credentials:Ne?"include":"same-origin",signal:we,cache:"no-store"}).then(function(Ee){return ue=Ee.body.getReader(),ye(Ee.status,Ee.statusText,Ee.headers.get("Content-Type"),new D(Ee.headers)),new f(function(Me,Fe){var tt=function(){ue.read().then(function(nt){if(nt.done)Me(void 0);else{var Ke=_e.decode(nt.value,{stream:!0});be(Ke),tt()}}).catch(function(nt){Fe(nt)})};tt()})}).catch(function(Ee){if(Ee.name!=="AbortError")return Ee}).then(function(Ee){Oe(Ee)}),{abort:function(){ue!=null&&ue.cancel(),he.abort()}}};function A(){this._listeners=Object.create(null)}function Y(fe){r(function(){throw fe},0)}A.prototype.dispatchEvent=function(fe){fe.target=this;var ye=this._listeners[fe.type];if(ye!=null)for(var be=ye.length,Oe=0;Oe<be;Oe+=1){var Ae=ye[Oe];try{typeof Ae.handleEvent=="function"?Ae.handleEvent(fe):Ae.call(this,fe)}catch(Ne){Y(Ne)}}},A.prototype.addEventListener=function(fe,ye){fe=String(fe);var be=this._listeners,Oe=be[fe];Oe==null&&(Oe=[],be[fe]=Oe);for(var Ae=!1,Ne=0;Ne<Oe.length;Ne+=1)Oe[Ne]===ye&&(Ae=!0);Ae||Oe.push(ye)},A.prototype.removeEventListener=function(fe,ye){fe=String(fe);var be=this._listeners,Oe=be[fe];if(Oe!=null){for(var Ae=[],Ne=0;Ne<Oe.length;Ne+=1)Oe[Ne]!==ye&&Ae.push(Oe[Ne]);Ae.length===0?delete be[fe]:be[fe]=Ae}};function q(fe){this.type=fe,this.target=void 0}function ee(fe,ye){q.call(this,fe),this.data=ye.data,this.lastEventId=ye.lastEventId}ee.prototype=Object.create(q.prototype);function Z(fe,ye){q.call(this,fe),this.status=ye.status,this.statusText=ye.statusText,this.headers=ye.headers}Z.prototype=Object.create(q.prototype);function te(fe,ye){q.call(this,fe),this.error=ye.error}te.prototype=Object.create(q.prototype);var ne=-1,le=0,K=1,$=2,I=-1,B=0,ie=1,W=2,G=3,re=/^text\/event\-stream(;.*)?$/i,se=1e3,me=18e6,O=function(fe,ye){var be=fe==null?ye:parseInt(fe,10);return be!==be&&(be=ye),R(be)},R=function(fe){return Math.min(Math.max(fe,se),me)},F=function(fe,ye,be){try{typeof ye=="function"&&ye.call(fe,be)}catch(Oe){Y(Oe)}};function Q(fe,ye){A.call(this),ye=ye||{},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,ve(this,fe,ye)}function X(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var ae=h!=null&&p!=null&&"body"in p.prototype;function ve(fe,ye,be){ye=String(ye);var Oe=Boolean(be.withCredentials),Ae=be.lastEventIdQueryParameterName||"lastEventId",Ne=R(1e3),Le=O(be.heartbeatTimeout,45e3),ue="",he=Ne,we=!1,_e=0,Ee=be.headers||{},Me=be.Transport,Fe=ae&&Me==null?void 0:new E(Me!=null?new Me:X()),tt=Me!=null&&typeof Me!="string"?new Me:Fe==null?new U:new N,nt=void 0,Ke=0,qt=ne,zt="",Sn="",or="",Ri="",An=B,ou=0,Ni=0,vh=function(cn,en,sr,In){if(qt===le)if(cn===200&&sr!=null&&re.test(sr)){qt=K,we=Date.now(),he=Ne,fe.readyState=K;var Fn=new Z("open",{status:cn,statusText:en,headers:In});fe.dispatchEvent(Fn),F(fe,fe.onopen,Fn)}else{var mn="";cn!==200?(en&&(en=en.replace(/\s+/g," ")),mn="EventSource's response has a status "+cn+" "+en+" that is not 200. Aborting the connection."):mn="EventSource's response has a Content-Type specifying an unsupported type: "+(sr==null?"-":sr.replace(/\s+/g," "))+". Aborting the connection.",su();var Fn=new Z("error",{status:cn,statusText:en,headers:In});fe.dispatchEvent(Fn),F(fe,fe.onerror,Fn),console.error(mn)}},yh=function(cn){if(qt===K){for(var en=-1,sr=0;sr<cn.length;sr+=1){var In=cn.charCodeAt(sr);(In===`
|
||
`.charCodeAt(0)||In==="\r".charCodeAt(0))&&(en=sr)}var Fn=(en!==-1?Ri:"")+cn.slice(0,en+1);Ri=(en===-1?Ri:"")+cn.slice(en+1),cn!==""&&(we=Date.now(),_e+=cn.length);for(var mn=0;mn<Fn.length;mn+=1){var In=Fn.charCodeAt(mn);if(An===I&&In===`
|
||
`.charCodeAt(0))An=B;else if(An===I&&(An=B),In==="\r".charCodeAt(0)||In===`
|
||
`.charCodeAt(0)){if(An!==B){An===ie&&(Ni=mn+1);var li=Fn.slice(ou,Ni-1),ci=Fn.slice(Ni+(Ni<mn&&Fn.charCodeAt(Ni)===" ".charCodeAt(0)?1:0),mn);li==="data"?(zt+=`
|
||
`,zt+=ci):li==="id"?Sn=ci:li==="event"?or=ci:li==="retry"?(Ne=O(ci,Ne),he=Ne):li==="heartbeatTimeout"&&(Le=O(ci,Le),Ke!==0&&(i(Ke),Ke=r(function(){oa()},Le)))}if(An===B){if(zt!==""){ue=Sn,or===""&&(or="message");var $n=new ee(or,{data:zt.slice(1),lastEventId:Sn});if(fe.dispatchEvent($n),or==="open"?F(fe,fe.onopen,$n):or==="message"?F(fe,fe.onmessage,$n):or==="error"&&F(fe,fe.onerror,$n),qt===$)return}zt="",or=""}An=In==="\r".charCodeAt(0)?I:B}else An===B&&(ou=mn,An=ie),An===ie?In===":".charCodeAt(0)&&(Ni=mn+1,An=W):An===W&&(An=G)}}},_h=function(cn){if(qt===K||qt===le){qt=ne,Ke!==0&&(i(Ke),Ke=0),Ke=r(function(){oa()},he),he=R(Math.min(Ne*16,he*2)),fe.readyState=le;var en=new te("error",{error:cn});fe.dispatchEvent(en),F(fe,fe.onerror,en),cn!=null&&console.error(cn)}},su=function(){qt=$,nt!=null&&(nt.abort(),nt=void 0),Ke!==0&&(i(Ke),Ke=0),fe.readyState=$},oa=function(){if(Ke=0,qt!==ne){if(!we&&nt!=null)_h(new Error("No activity within "+Le+" milliseconds. "+(qt===le?"No response received.":_e+" chars received.")+" Reconnecting.")),nt!=null&&(nt.abort(),nt=void 0);else{var cn=Math.max((we||Date.now())+Le-Date.now(),1);we=!1,Ke=r(function(){oa()},cn)}return}we=!1,_e=0,Ke=r(function(){oa()},Le),qt=le,zt="",or="",Sn=ue,Ri="",ou=0,Ni=0,An=B;var en=ye;if(ye.slice(0,5)!=="data:"&&ye.slice(0,5)!=="blob:"&&ue!==""){var sr=ye.indexOf("?");en=sr===-1?ye:ye.slice(0,sr+1)+ye.slice(sr+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ci,$n){return $n===Ae?"":ci}),en+=(ye.indexOf("?")===-1?"?":"&")+Ae+"="+encodeURIComponent(ue)}var In=fe.withCredentials,Fn={};Fn.Accept="text/event-stream";var mn=fe.headers;if(mn!=null)for(var li in mn)Object.prototype.hasOwnProperty.call(mn,li)&&(Fn[li]=mn[li]);try{nt=tt.open(Fe,vh,yh,_h,en,In,Fn)}catch(ci){throw su(),ci}};fe.url=ye,fe.readyState=le,fe.withCredentials=Oe,fe.headers=Ee,fe._close=su,oa()}Q.prototype=Object.create(A.prototype),Q.prototype.CONNECTING=le,Q.prototype.OPEN=K,Q.prototype.CLOSED=$,Q.prototype.close=function(){this._close()},Q.CONNECTING=le,Q.OPEN=K,Q.CLOSED=$,Q.prototype.withCredentials=void 0;var De=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(De=Q),function(fe){{var ye=fe(t);ye!==void 0&&(e.exports=ye)}}(function(fe){fe.EventSourcePolyfill=Q,fe.NativeEventSource=l,fe.EventSource=De})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Bl:globalThis)})(Rpe,iy);const Npe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:a}=e;if(s||a||!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 m=new iy.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>f.forEach(h=>h.close())};function ra(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:a}=s,l=Ks();return H.useEffect(()=>{const c=m=>a?n.add(m):i([m]),f=t(r,l),h=Npe(s,f,c,o);if(!a)return h;const p=setInterval(()=>{i([...n]),n.clear()},a*1e3*60);return It(()=>clearInterval(p),()=>h==null?void 0:h())},[s]),C(e,{...r})}}class Jr{}Se(Jr,"visits","https://shlink.io/new-visit"),Se(Jr,"orphanVisits","https://shlink.io/new-orphan-visit"),Se(Jr,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);const UE="shlink/shortUrlDeletion",ON={shortCode:"",loading:!1,deleted:!1,error:!1},Lpe=e=>ir(`${UE}/deleteShortUrl`,async({shortCode:t,domain:n},{getState:r})=>{const{deleteShortUrl:i}=e(r);return await i(t,n),{shortCode:t,domain:n}}),N8=wn(`${UE}/shortUrlDeleted`),Dpe=e=>{const{actions:t,reducer:n}=Gn({name:UE,initialState:ON,reducers:{resetDeleteShortUrl:()=>ON},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:no(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},L8="shlink/shortUrlsList",D8=5,Ape={loading:!0,error:!1},Ipe=e=>ir(`${L8}/listShortUrls`,(t,{getState:n})=>{const{listShortUrls:r}=e(n);return r(t??{})}),Fpe=(e,t,n)=>Gn({name:L8,initialState:Ape,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,It((i,{payload:o})=>i.shortUrls?Ol(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,D8-1)],i):i,i=>i.shortUrls?Ol(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?Ol(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:a,domain:l}=o;return Ef(s,a,l)?o:s}),i):i),r.addCase(N8,It((i,{payload:o})=>i.shortUrls?Ol(["shortUrls","data"],Ud(s=>Ef(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?Ol(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(ch,(i,{payload:o})=>{var s,a;return Ol(["shortUrls","data"],(a=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:a.map(l=>{var c;return((c=XG(o.createdVisits.filter(({shortUrl:f})=>f&&Ef(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),PN=10,{ceil:$pe}=Math,jpe=new Intl.NumberFormat("en-US"),bn=e=>jpe.format(Number(e)),Bpe=e=>$pe(e/PN)*PN;const zpe=e=>e?{tag:At,to:e}:{},Dp=({children:e,title:t,link:n})=>V(Cr,{className:"highlight-card",body:!0,...zpe(n),children:[n&&C(je,{size:"3x",className:"highlight-card__link-icon",icon:Ppe}),C(nE,{tag:"h5",className:"highlight-card__title",children:t}),C(tE,{tag:"h2",children:e})]}),Upe=(e,t)=>ra(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,selectedServer:s,loadVisitsOverview:a,visitsOverview:l})=>{const{loading:c,shortUrls:f}=n,{loading:h}=o,{loading:p,visitsCount:m,orphanVisitsCount:g}=l,v=Vd(s),w=CE(s),_=Fo();return H.useEffect(()=>{r({itemsPerPage:D8,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),a()},[]),V(Ye,{children:[V(ur,{children:[C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(Dp,{title:"Visits",link:w&&`/server/${v}/non-orphan-visits`,children:p?"Loading...":bn(m)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(Dp,{title:"Orphan visits",link:`/server/${v}/orphan-visits`,children:p?"Loading...":bn(g)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(Dp,{title:"Short URLs",link:`/server/${v}/list-short-urls/1`,children:c?"Loading...":bn((f==null?void 0:f.pagination.totalItems)??0)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(Dp,{title:"Tags",link:`/server/${v}/manage-tags`,children:h?"Loading...":bn(o.tags.length)})})]}),V(Cr,{className:"mb-3",children:[V(rl,{children:[C("span",{className:"d-sm-none",children:"Create a short URL"}),C("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),C(At,{className:"float-end",to:`/server/${v}/create-short-url`,children:"Advanced options »"})]}),C(nl,{children:C(t,{basicMode:!0})})]}),V(Cr,{children:[V(rl,{children:[C("span",{className:"d-sm-none",children:"Recently created URLs"}),C("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),C(At,{className:"float-end",to:`/server/${v}/list-short-urls/1`,children:"See all »"})]}),C(nl,{children:C(e,{shortUrlsList:n,selectedServer:s,className:"mb-0",onTagClick:b=>_(`/server/${v}/list-short-urls/1?tags=${encodeURIComponent(b)}`)})})]})]})},()=>[Jr.visits,Jr.orphanVisits]),Vpe={},Hpe=e=>e.id?e:ad("id",dE(),e),Wpe=nC((e,t)=>ad(t.id,t,e),{}),{actions:Ype,reducer:qpe}=Gn({name:"shlink/servers",initialState:Vpe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?ad(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>ZG(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?Gu(Kg(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):ad(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:It(zd(Hpe),Wpe,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:Gpe,deleteServer:Zpe,setAutoConnect:Kpe,createServers:A8}=Ype,Xpe=qpe,Qpe=e=>Array.isArray(e)?e.filter(lC):[],Jpe=e=>ir("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${Wg.homepage}/servers.json`),i=Qpe(r);n(A8(i))}),VE="shlink/selectedServer",eme="1.0.0",tme="999.999.999",nme="latest",rme=It(e=>e===nme?tme:e,Z5(eme)),ime=EI(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:rme(n),printableVersion:G5(n)}))),kN=null,HE=wn(`${VE}/resetSelectedServer`),ome=e=>ir(`${VE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(HE());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:s}=e(o),{version:a,printableVersion:l}=await ime(o,s);return{...o,version:a,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),sme=(e,t)=>{const n=Lse();return n.startListening({actionCreator:e.fulfilled,effect:({payload:r},{dispatch:i})=>{o_(r)&&i(t())}}),n},ame=e=>Gn({name:VE,initialState:kN,reducers:{},extraReducers:t=>{t.addCase(HE,()=>kN),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),lme=({servers:e,selectedServer:t})=>{const n=Kc(e);return V(Jd,{nav:!0,inNavbar:!0,children:[V(eu,{nav:!0,caret:!0,children:[C(je,{icon:T3})," ",C("span",{className:"ms-1",children:"Servers"})]}),C(hl,{end:!0,style:{right:0},children:(()=>qn(n)?V(Ve,{tag:At,to:"/server/create",children:[C(je,{icon:wC})," ",C("span",{className:"ms-1",children:"Add a server"})]}):V(Ye,{children:[n.map(({name:i,id:o})=>C(Ve,{tag:At,to:`/server/${o}`,active:Vd(t)===o,children:i},o)),C(Ve,{divider:!0}),V(Ve,{tag:At,to:"/manage-servers",children:[C(je,{icon:T3})," ",C("span",{className:"ms-1",children:"Manage servers"})]})]}))()})]})},cme="shlink-servers.csv";class ume{constructor(t,n,r){Se(this,"exportServers",async()=>{const t=Kc(this.storage.get("servers")??{}).map(AZ);try{const n=this.jsonToCsv(t);e8(this.window,n,cme)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const fme=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",dme=e=>Array.isArray(e)&&e.every(fme);class hme{constructor(t,n){Se(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 s,a;try{const l=((a=(s=o.target)==null?void 0:s.result)==null?void 0:a.toString())??"",c=await this.csvToJson(l);if(!dme(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 pme=(e,t)=>{e.serviceFactory("ManageServers",Spe,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",vv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Cpe,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Mpe,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",gpe,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",vv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",_pe,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>lme),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>ype),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",vpe,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",bpe,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",wpe,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",Upe,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",hme,"csvToJson","fileReaderFactory"),e.service("ServersExporter",ume,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",ome,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>A8),e.serviceFactory("deleteServer",()=>Zpe),e.serviceFactory("editServer",()=>Gpe),e.serviceFactory("setAutoConnect",()=>Kpe),e.serviceFactory("fetchServers",Jpe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>HE),e.serviceFactory("selectServerListener",sme,"selectServer","loadMercureInfo"),e.serviceFactory("selectedServerReducerCreator",ame,"selectServer"),e.serviceFactory("selectedServerReducer",ct("reducer"),"selectedServerReducerCreator")},yc=({children:e})=>C("small",{className:"form-text text-muted d-block",children:e}),I8=({checked:e=!1,onChange:t=iC,className:n,children:r,type:i,inline:o=!1})=>{const s=C_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return V("span",{className:ge("form-check",l,n),style:c,children:[C("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),C("label",{className:"form-check-label",htmlFor:s,children:r})]})},Uc=e=>C(I8,{type:"switch",...e}),mme=e=>e?`${e}`:"",gme=({settings:{realTimeUpdates:e},toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const r=C_();return V(vn,{title:"Real-time updates",className:"h-100",children:[C(Zr,{children:V(Uc,{checked:e.enabled,onChange:t,children:["Enable or disable real-time updates.",V(yc,{children:["Real-time updates are currently being ",C("b",{children:e.enabled?"processed":"ignored"}),"."]})]})}),V(ru,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ge("form-label",{"text-muted":!e.enabled}),id:r,children:[C(_d,{type:"number",min:0,placeholder:"Immediate",disabled:!e.enabled,value:mme(e.interval),id:r,onChange:({target:i})=>n(Number(i.value))}),e.enabled&&V(yc,{children:[e.interval!==void 0&&e.interval>0&&V("span",{children:["Updates will be reflected in the UI every ",C("b",{children:e.interval})," minute",e.interval>1&&"s","."]}),!e.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},WE={field:"dateCreated",dir:"DESC"},vme={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:WE}},yme=(e,{payload:t})=>TI(e,t),ya=e=>({reducer:yme,prepare:e}),_a=e=>({payload:e}),{reducer:_me,actions:bme}=Gn({name:"shlink/settings",initialState:vme,reducers:{toggleRealTimeUpdates:ya(e=>_a({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:ya(e=>_a({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:ya(e=>_a({shortUrlCreation:e})),setShortUrlsListSettings:ya(e=>_a({shortUrlsList:e})),setUiSettings:ya(e=>_a({ui:e})),setVisitsSettings:ya(e=>_a({visits:e})),setTagsSettings:ya(e=>_a({tags:e}))}}),{toggleRealTimeUpdates:wme,setRealTimeUpdatesInterval:xme,setShortUrlCreationSettings:Sme,setShortUrlsListSettings:Cme,setUiSettings:Eme,setVisitsSettings:Tme,setTagsSettings:Ome}=bme,Pme=_me;const kf=({children:e,...t})=>C(n5,{className:"nav-pills__nav-link",tag:iI,...t,children:e}),F8=({children:e,fill:t=!1,className:n=""})=>C(Cr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:C(m_,{pills:!0,fill:t,children:H.Children.map(e,r=>{if(!H.isValidElement(r)||r.type!==kf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),Fb=({items:e})=>C(Ye,{children:e.map((t,n)=>C("div",{className:"mb-3",children:t},n))}),kme=(e,t,n,r,i,o)=>()=>V(nu,{children:[V(F8,{className:"mb-3",children:[C(kf,{to:"general",children:"General"}),C(kf,{to:"short-urls",children:"Short URLs"}),C(kf,{to:"other-items",children:"Other items"})]}),V(e_,{children:[C(yt,{path:"general",element:C(Fb,{items:[C(r,{}),C(e,{})]})}),C(yt,{path:"short-urls",element:C(Fb,{items:[C(t,{}),C(n,{})]})}),C(yt,{path:"other-items",element:C(Fb,{items:[C(o,{}),C(i,{})]})}),C(yt,{path:"*",element:C(ZS,{replace:!0,to:"general"})})]})]}),$b=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Mme=e=>e==="includes"?V(Ye,{children:["The list of suggested tags will contain those ",C("b",{children:"including"})," provided input."]}):V(Ye,{children:["The list of suggested tags will contain those ",C("b",{children:"starting with"})," provided input."]}),Rme=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return V(vn,{title:"Short URLs form",className:"h-100",children:[C(Zr,{children:V(Uc,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",V(yc,{children:["The initial state of the ",C("b",{children:"Validate URL"})," checkbox will be ",C("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),C(Zr,{children:V(Uc,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",V(yc,{children:["The initial state of the ",C("b",{children:"Forward query params on redirect"})," checkbox will be ",C("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),V(ru,{noMargin:!0,label:"Tag suggestions search mode:",children:[V(na,{text:$b(n.tagFilteringMode),children:[C(Ve,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:$b("startsWith")}),C(Ve,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:$b("includes")})]}),C(yc,{children:Mme(n.tagFilteringMode)})]})]})},$8={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"};function hh({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=s_(a,t.field,t.dir);n(l?a:void 0,l)};return V(Jd,{children:[V(eu,{caret:!0,color:r?"primary":"link",className:ge({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&C(Ye,{children:"Order by"}),r&&!t.field&&C("i",{children:"Order by..."}),r&&t.field&&V(Ye,{children:[o&&"Order by: ",e[t.field]," - ",C("small",{children:t.dir??"DESC"})]})]}),V(hl,{end:i,className:ge("w-100",{"ordering-dropdown__menu--link":!r}),children:[Kg(e).map(([a,l])=>V(Ve,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&C(je,{icon:t.dir==="ASC"?SQ:lQ,className:"ordering-dropdown__sort-icon"})]},a)),C(Ve,{divider:!0}),C(Ve,{disabled:!t.field,onClick:()=>n(),children:C("i",{children:"Clear selection"})})]})]})}const Nme=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>C(vn,{title:"Short URLs list",className:"h-100",children:C(ru,{noMargin:!0,label:"Default ordering for short URLs list:",children:C(hh,{items:$8,order:(e==null?void 0:e.defaultOrdering)??WE,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),j8={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Lme=({settings:{tags:e},setTagsSettings:t})=>C(vn,{title:"Tags",className:"h-100",children:C(ru,{noMargin:!0,label:"Default ordering for tags list:",children:C(hh,{items:j8,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const Dme=({settings:{ui:e},setUiSettings:t})=>V(vn,{title:"User interface",className:"h-100",children:[C(je,{icon:(e==null?void 0:e.theme)==="dark"?FQ:EQ,className:"user-interface__theme-icon"}),C(Uc,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),S5(r)},children:"Use dark theme."})]}),B8=({active:e,allText:t,onChange:n})=>V(Ye,{children:[C(Ve,{active:e==="all",onClick:()=>n("all"),children:t}),C(Ve,{divider:!0}),qhe.map(r=>C(Ve,{active:e===r,onClick:()=>n(r),children:zE(r)},r))]}),Ame=({onChange:e,active:t,allText:n})=>C(na,{text:zE(t)??n,children:C(B8,{allText:n,active:t,onChange:e})}),MN=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},Ime=({settings:e,setVisitsSettings:t})=>{var n,r;return V(vn,{title:"Visits",className:"h-100",children:[C(Zr,{children:V(Uc,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:MN(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",V(yc,{children:["The visits coming from potential bots will be ",C("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),C(ru,{noMargin:!0,label:"Default interval to load on visits sections:",children:C(Ame,{allText:"All visits",active:MN(e),onChange:i=>t({defaultInterval:i})})})]})},Fme=(e,t)=>{e.serviceFactory("Settings",kme,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",vv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>gme),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>Rme),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>Dme),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>Ime),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>Lme),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>Nme),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>wme),e.serviceFactory("setRealTimeUpdatesInterval",()=>xme),e.serviceFactory("setShortUrlCreationSettings",()=>Sme),e.serviceFactory("setShortUrlsListSettings",()=>Cme),e.serviceFactory("setUiSettings",()=>Eme),e.serviceFactory("setVisitsSettings",()=>Tme),e.serviceFactory("setTagsSettings",()=>Ome)},$me=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}),jme=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,selectedServer:o,basicMode:s=!1,settings:{shortUrlCreation:a}})=>{const l=H.useMemo(()=>$me(a),[a]);return V(Ye,{children:[C(e,{initialState:l,saving:r.saving,selectedServer:o,mode:s?"create-basic":"create",onSave:async c=>(i(),n(c))}),C(t,{creation:r,resetCreateShortUrl:i,canBeClosed:s})]})},Bme=e=>({settings:{shortUrlCreation:t},selectedServer:n,shortUrlDetail:r,getShortUrlDetail:i,shortUrlEdition:o,editShortUrl:s})=>{const{search:a}=Mn(),l=Ks(),c=ta(),{loading:f,error:h,errorData:p,shortUrl:m}=r,{saving:g,saved:v,error:w,errorData:_}=o,{domain:b}=dl(a),x=H.useMemo(()=>Sae(m,t),[m,t]);return H.useEffect(()=>{l.shortCode&&i({shortCode:gm(l.shortCode),domain:b})},[]),f?C(So,{loading:!0}):h?C(Nr,{type:"error",children:C(Lo,{errorData:p,fallbackMessage:"An error occurred while loading short URL detail :("})}):V(Ye,{children:[C("header",{className:"mb-3",children:C(Cr,{body:!0,children:V("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[C(mt,{color:"link",size:"lg",className:"p-0 me-3",onClick:c,children:C(je,{icon:XI})}),C("span",{className:"text-center",children:V("small",{children:["Edit ",C(Ei,{href:(m==null?void 0:m.shortUrl)??""})]})}),C("span",{})]})})}),C(e,{initialState:x,saving:g,selectedServer:n,mode:"edit",onSave:async E=>{m&&s({...m,data:E})}}),v&&w&&C(Nr,{type:"error",className:"mt-3",children:C(Lo,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!w&&C(Nr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var P_={},zme=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()}},Ume=zme,RN={"text/plain":"Text","text/html":"Url",default:"Text"},Vme="Copy to clipboard: #{key}, Enter";function Hme(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Wme(e,t){var n,r,i,o,s,a,l=!1;t||(t={}),n=t.debug||!1;try{i=Ume(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.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=RN[t.format]||RN.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(a),o.selectNodeContents(a),s.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=Hme("message"in t?t.message:Vme),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var Yme=Wme;function dx(e){return dx=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},dx(e)}Object.defineProperty(P_,"__esModule",{value:!0});P_.CopyToClipboard=void 0;var Ap=z8(H),qme=z8(Yme),Gme=["text","onCopy","options","children"];function z8(e){return e&&e.__esModule?e:{default:e}}function NN(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 LN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NN(Object(n),!0).forEach(function(r){YE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zme(e,t){if(e==null)return{};var n=Kme(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 Kme(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 Xme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DN(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 Qme(e,t,n){return t&&DN(e.prototype,t),n&&DN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hx(e,t)}function hx(e,t){return hx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},hx(e,t)}function ege(e){var t=nge();return function(){var r=oy(e),i;if(t){var o=oy(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return tge(this,i)}}function tge(e,t){if(t&&(dx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U8(e)}function U8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}function YE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V8=function(e){Jme(n,e);var t=ege(n);function n(){var r;Xme(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),YE(U8(r),"onClick",function(a){var l=r.props,c=l.text,f=l.onCopy,h=l.children,p=l.options,m=Ap.default.Children.only(h),g=(0,qme.default)(c,p);f&&f(c,g),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(a)}),r}return Qme(n,[{key:"render",value:function(){var i=this.props;i.text,i.onCopy,i.options;var o=i.children,s=Zme(i,Gme),a=Ap.default.Children.only(o);return Ap.default.cloneElement(a,LN(LN({},s),{},{onClick:this.onClick}))}}]),n}(Ap.default.PureComponent);P_.CopyToClipboard=V8;YE(V8,"defaultProps",{onCopy:void 0,options:void 0});var rge=P_,px=rge.CopyToClipboard;px.CopyToClipboard=px;var H8=px;const ige=e=>({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:s,saved:a}=t;if(H.useEffect(()=>{n()},[]),s)return V(Nr,{type:"error",className:"mt-3",children:[r&&C(je,{icon:xw,className:"float-end pointer",onClick:n}),C(Lo,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!a)return null;const{shortUrl:l}=t.result;return V(Nr,{type:"success",className:"mt-3",children:[r&&C(je,{icon:xw,className:"float-end pointer",onClick:n}),V("span",{children:[C("b",{children:"Great!"})," The short URL is ",C("b",{children:l})]}),C(H8,{text:l,onCopy:o,children:V("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[C(je,{icon:R8})," Copy"]})}),C(Xd,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},jb="delete",oge=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[a,l]=H.useState("");H.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,m=It(i,t),g=ih(()=>o(e).then(t));return C(Uo,{isOpen:n,toggle:m,centered:!0,onClosed:()=>h&&s(e),children:V("form",{onSubmit:g,children:[C(ro,{toggle:m,children:C("span",{className:"text-danger",children:"Delete short URL"})}),V(Mi,{children:[V("p",{children:[C("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),C("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),V("p",{children:["Write ",C("b",{children:jb})," to confirm deletion."]}),C("input",{type:"text",className:"form-control",placeholder:`Insert ${jb}`,value:a,onChange:v=>l(v.target.value)}),f&&C(Nr,{type:NX(p)?"warning":"error",small:!0,className:"mt-2",children:C(Lo,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),V(ea,{children:[C("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),C("button",{type:"submit",className:"btn btn-danger",disabled:a!==jb||c,children:c?"Deleting...":"Delete"})]})]})})},W8=({amount:e=0,loading:t=!1,...n})=>V(mt,{...n,outline:!0,color:"primary",disabled:t,children:[C(je,{icon:YX})," ",t?"Exporting...":V(Ye,{children:["Export (",bn(e),")"]})]}),k_=()=>{const e=Fo(),{search:t}=Mn(),{serverId:n=""}=Ks(),r=H.useMemo(It(()=>dl(t),({orderBy:o,tags:s,excludeBots:a,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f})=>{const h=o?IZ(o):void 0,p=(s==null?void 0:s.split(","))??[];return{...f,orderBy:h,tags:p,excludeBots:a!==void 0?a==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}}),[t]);return[r,o=>{const s={...r,...o},{orderBy:a,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:h,...p}=s,m={...p,orderBy:a&&RI(a),tags:l.length>0?l.join(","):void 0,excludeBots:Pb(c),excludeMaxVisitsReached:Pb(f),excludePastValidUntil:Pb(h)},g=Hd(m),v=qn(g)?"":`?${g}`;e(`/server/${n}/list-short-urls/1${v}`)}]},AN=20,sge=(e,{exportShortUrls:t})=>({amount:n=0,selectedServer:r})=>{const[{tags:i,search:o,startDate:s,endDate:a,orderBy:l,tagsMode:c}]=k_(),[f,,h,p]=jt();return C(W8,{loading:f,className:"btn-md-block",amount:n,onClick:async()=>{if(!Ps(r))return;const g=n/AN,{listShortUrls:v}=e(r),w=async(b=1)=>{const{data:x}=await v({page:`${b}`,tags:i,searchTerm:o,startDate:s,endDate:a,orderBy:l,tagsMode:c,itemsPerPage:AN});return b>=g?x:x.concat(await w(b+1))};h();const _=await w();t(_.map(b=>{var x;return{createdAt:b.dateCreated,shortUrl:b.shortUrl,longUrl:b.longUrl,title:b.title??"",tags:b.tags.join(","),visits:((x=b==null?void 0:b.visitsSummary)==null?void 0:x.total)??b.visitsCount}})),p()}})};const Y8=({text:e,onCopy:t})=>C(H8,{text:e,onCopy:t,children:C(je,{icon:R8,className:"ms-2 copy-to-clipboard-icon"})}),age=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=Hd({...n,margin:t>0?t:void 0});return`${r}${qn(i)?"":`?${i}`}`},lge=({errorCorrection:e,setErrorCorrection:t})=>V(na,{text:`Error correction (${e})`,children:[V(Ve,{active:e==="L",onClick:()=>t("L"),children:[C("b",{children:"L"}),"ow"]}),V(Ve,{active:e==="M",onClick:()=>t("M"),children:[C("b",{children:"M"}),"edium"]}),V(Ve,{active:e==="Q",onClick:()=>t("Q"),children:[C("b",{children:"Q"}),"uartile"]}),V(Ve,{active:e==="H",onClick:()=>t("H"),children:[C("b",{children:"H"}),"igh"]})]}),cge=({format:e,setFormat:t})=>V(na,{text:`Format (${e})`,children:[C(Ve,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),C(Ve,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]});const uge=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i,selectedServer:o})=>{const[s,a]=H.useState(300),[l,c]=H.useState(0),[f,h]=H.useState("png"),[p,m]=H.useState("L"),g=eae(o),v=H.useMemo(()=>age(t,{size:s,format:f,margin:l,errorCorrection:p}),[t,s,f,l,p]),w=H.useMemo(()=>s+l,[s,l]),_=H.useMemo(()=>{if(!(w<500))return w<800?"lg":"xl"},[w]);return V(Uo,{isOpen:i,toggle:r,centered:!0,size:_,children:[V(ro,{toggle:r,children:["QR code for ",C(Ei,{href:t,children:t})]}),V(Mi,{children:[V(ur,{children:[V(Zr,{className:"d-grid col-md-4",children:[V("label",{children:["Size: ",s,"px"]}),C("input",{type:"range",className:"form-control-range",value:s,step:10,min:50,max:1e3,onChange:b=>a(Number(b.target.value))})]}),V(Zr,{className:"d-grid col-md-4",children:[V("label",{htmlFor:"marginControl",children:["Margin: ",l,"px"]}),C("input",{id:"marginControl",type:"range",className:"form-control-range",value:l,step:1,min:0,max:100,onChange:b=>c(Number(b.target.value))})]}),C(Zr,{className:"d-grid col-md-4",children:C(cge,{format:f,setFormat:h})}),C(Zr,{className:"col-md-6",children:C(lge,{errorCorrection:p,setErrorCorrection:m})})]}),V("div",{className:"text-center",children:[V("div",{className:"mb-3",children:[C(Ei,{href:v}),C(Y8,{text:v})]}),C("img",{src:v,className:"qr-code-modal__img",alt:"QR code"}),g&&C("div",{className:"mt-3",children:V(mt,{block:!0,color:"primary",onClick:()=>{e.saveImage(v,`${n}-qr-code.${f}`).catch(()=>{})},children:["Download ",C(je,{icon:QI,className:"ms-1"})]})})]})]})]})},sy=({date:e,format:t=jE,relative:n=!1})=>{const r=BE(e)?e:Do(e);return C("time",{dateTime:`${ice(r)}000`,children:n?`${Xle(Vs(),r)} ago`:vo(r,t)})},fge=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,a=(r==null?void 0:r.total)??n;return i&&a>=i?{icon:$Q,className:"text-danger",description:V(Ye,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",C("b",{children:i})," visit",i>1?"s":"","."]})}:s&&Kr(wi(s),Vs())?{icon:O3,className:"text-danger",description:V(Ye,{children:["This short URL cannot be visited since ",C("b",{className:"indivisible",children:ny(wi(s))}),"."]})}:o&&Kr(Vs(),wi(o))?{icon:O3,className:"text-warning",description:V(Ye,{children:["This short URL will start working on ",C("b",{className:"indivisible",children:ny(wi(o))}),"."]})}:{icon:ud,className:"text-primary",description:"This short URL can be visited normally."}},dge=({shortUrl:e})=>{const t=eh(),{icon:n,className:r,description:i}=fge(e);return V(Ye,{children:[C("span",{style:{cursor:i?"help":void 0},ref:t,children:C(je,{icon:n,className:r})}),C(Br,{target:t,placement:"bottom",children:i})]})},hge=({id:e},{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`/server/${e}/short-code/${Cae(t)}/${r}${i}`},mx=({selectedServer:e,shortUrl:t,suffix:n,children:r,...i})=>!e||!Ps(e)||!t?C("span",{...i,children:r}):C(At,{to:hge(e,t,n),...i,children:r});const q8=({visitsCount:e,shortUrl:t,selectedServer:n,active:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(t==null?void 0:t.meta)??{},a=!!i||!!o||!!s,l=C(mx,{selectedServer:n,shortUrl:t,suffix:"visits",children:C("strong",{className:ge("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:bn(e)})});if(!a)return l;const c=eh();return V(Ye,{children:[V("span",{className:"indivisible",children:[l,V("small",{className:"short-urls-visits-count__max-visits-control",ref:c,children:[i&&V(Ye,{children:[" / ",bn(i)]}),C("sup",{className:"ms-1",children:C(je,{icon:bC})})]})]}),C(Br,{target:c,placement:"bottom",children:V("ul",{className:"list-unstyled mb-0",children:[i&&V("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",C("b",{children:bn(i)})," visit",i===1?"":"s","."]}),o&&V("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",C("b",{className:"indivisible",children:ny(wi(o))}),"."]}),s&&V("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",C("b",{className:"indivisible",children:ny(wi(s))}),"."]})]})})]})};const qE=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>V("span",{className:ge("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&&C("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),pge=({tags:e,onTagClick:t,colorGenerator:n})=>qn(e)?C("i",{className:"indivisible",children:C("small",{children:"No tags"})}):C(Ye,{children:e.map(r=>C(qE,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))});const mge=(e,t,n)=>({shortUrl:r,selectedServer:i,onTagClick:o,settings:s})=>{var v,w,_,b;const[a,l]=n(),[c,f]=n(!1,500),h=H.useRef(!0),[{excludeBots:p}]=k_(),{visits:m}=s,g=p??(m==null?void 0:m.excludeBots);return H.useEffect(()=>{!h.current&&f(),h.current=!1},[(v=r.visitsSummary)==null?void 0:v.total,(w=r.visitsSummary)==null?void 0:w.nonBots,r.visitsCount]),V("tr",{className:"responsive-table__row",children:[C("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:C(sy,{date:r.dateCreated})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:V("span",{className:"position-relative short-urls-row__cell--indivisible",children:[C("span",{className:"short-urls-row__short-url-wrapper",children:C(Ei,{href:r.shortUrl})}),C(Y8,{text:r.shortUrl,onCopy:l}),C("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!a,children:"Copied short URL!"})]})}),C("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:C(Ei,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&C("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:C(Ei,{href:r.longUrl})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:C(pge,{tags:r.tags,colorGenerator:t,onTagClick:o})}),C("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:C(q8,{visitsCount:(g?(_=r.visitsSummary)==null?void 0:_.nonBots:(b=r.visitsSummary)==null?void 0:b.total)??r.visitsCount,shortUrl:r,selectedServer:i,active:c})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:C(dge,{shortUrl:r})}),C("td",{className:"responsive-table__cell short-urls-row__cell",children:C(e,{selectedServer:i,shortUrl:r})})]})},gge=(e,t)=>({shortUrl:n,selectedServer:r})=>{const[i,o]=jt(),[s,,a,l]=jt(),[c,,f,h]=jt();return V(T_,{toggle:o,isOpen:i,children:[V(Ve,{tag:mx,selectedServer:r,shortUrl:n,suffix:"visits",children:[C(je,{icon:_C,fixedWidth:!0})," Visit stats"]}),V(Ve,{tag:mx,selectedServer:r,shortUrl:n,suffix:"edit",children:[C(je,{icon:yC,fixedWidth:!0})," Edit short URL"]}),V(Ve,{onClick:a,children:[C(je,{icon:IQ,fixedWidth:!0})," QR code"]}),C(t,{shortUrl:n,isOpen:s,toggle:l}),C(Ve,{divider:!0}),V(Ve,{className:"dropdown-item--danger",onClick:f,children:[C(je,{icon:vC,fixedWidth:!0})," Delete short URL"]}),C(e,{shortUrl:n,isOpen:c,toggle:h})]})},G8="shlink/shortUrlCreation",IN={saving:!1,saved:!1,error:!1},vge=e=>ir(`${G8}/createShortUrl`,(t,{getState:n})=>{const{createShortUrl:r}=e(n);return r(t)}),yge=e=>{const{reducer:t,actions:n}=Gn({name:G8,initialState:IN,reducers:{resetCreateShortUrl:()=>IN},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:no(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},FN="shlink/shortUrlDetail",$N={loading:!1,error:!1},_ge=e=>{const t=ir(`${FN}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var l;const{shortUrlsList:s}=o();return((l=s==null?void 0:s.shortUrls)==null?void 0:l.data.find(c=>Ef(c,r,i)))??await e(o).getShortUrl(r,i)}),{reducer:n}=Gn({name:FN,initialState:$N,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:no(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...$N,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},Z8="shlink/shortUrlEdition",bge={saving:!1,saved:!1,error:!1},wge=e=>ir(`${Z8}/editShortUrl`,({shortCode:t,domain:n,data:r},{getState:i})=>{const{updateShortUrl:o}=e(i);return o(t,n,r)}),xge=e=>Gn({name:Z8,initialState:bge,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:no(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),K8=e=>C(I8,{type:"checkbox",...e});function Sge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gx(e,t)}function gx(e,t){return gx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gx(e,t)}function Cge(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 jN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ege(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Tge(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Ege(e,t,n))return!0;e=e.parentNode||e.host}return e}function Oge(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Pge=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 kge(e){return e===void 0&&(e=0),function(){return++e}}var Mge=kge(),vx,Ip={},Bb={},Rge=["touchstart","touchmove"],Nge="ignore-react-onclickoutside";function BN(e,t){var n=null,r=Rge.indexOf(t)!==-1;return r&&vx&&(n={passive:!e.props.preventDefault}),n}function M_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Sge(s,o);function s(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():Ya.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Bb[c._uid])){typeof vx>"u"&&(vx=Pge()),Bb[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),Ip[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&Oge(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;Tge(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,Ip[c._uid],BN(jN(c),h))})}},c.disableOnClickOutside=function(){delete Bb[c._uid];var f=Ip[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,BN(jN(c),p))}),delete Ip[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=Mge(),c}var a=s.prototype;return a.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.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()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var f=Cge(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)},s}(H.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:Nge,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var X8=H.createContext(),Q8=H.createContext();function Lge(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 s=H.useCallback(function(a){o.current||i(a)},[]);return H.createElement(X8.Provider,{value:r},H.createElement(Q8.Provider,{value:s},t))}var J8=function(t){return Array.isArray(t)?t[0]:t},eF=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)}},yx=function(t,n){if(typeof t=="function")return eF(t,n);t!=null&&(t.current=n)},zN=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},UN=typeof window<"u"&&window.document&&window.document.createElement?H.useLayoutEffect:H.useEffect,Dge=[],Age=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||Dge},s=H.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=H.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var g=m.state,v=Object.keys(g.elements);l({styles:zN(v.map(function(w){return[w,g.styles[w]||{}]})),attributes:zN(v.map(function(w){return[w,g.attributes[w]]}))})},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 W6(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=H.useRef();return UN(function(){h.current&&h.current.setOptions(f)},[f]),UN(function(){if(!(t==null||n==null)){var p=r.createPopper||H6,m=p(t,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,r.createPopper]),{state:h.current?h.current.state:null,styles:a.styles,attributes:a.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},Ige=function(){},Fge=function(){return Promise.resolve(null)},$ge=[];function jge(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,s=o===void 0?$ge:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=H.useContext(X8),p=H.useState(null),m=p[0],g=p[1],v=H.useState(null),w=v[0],_=v[1];H.useEffect(function(){yx(c,m)},[c,m]);var b=H.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,l,s,w]),x=Age(a||h,m,b),E=x.state,P=x.styles,k=x.forceUpdate,N=x.update,D=H.useMemo(function(){return{ref:g,style:P.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:_},forceUpdate:k||Ige,update:N||Fge}},[g,_,n,E,P,N,k]);return J8(f)(D)}function Bge(e){var t=e.children,n=e.innerRef,r=H.useContext(Q8),i=H.useCallback(function(o){yx(n,o),eF(r,o)},[n,r]);return H.useEffect(function(){return function(){return yx(n,null)}}),H.useEffect(function(){},[r]),J8(t)({ref:i})}function VN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(n),!0).forEach(function(r){oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tF(e){return(tF=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})(e)}function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WN(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 Nn(e,t,n){return t&&WN(e.prototype,t),n&&WN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R_(){return(R_=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 Ln(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&nF(e,t)}function _x(e){return(_x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function nF(e,t){return(nF=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n})(e,t)}function ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zge(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce(e)}function Dn(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=_x(e);if(t){var i=_x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zge(this,n)}}function rF(e){return function(t){if(Array.isArray(t))return zb(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 zb(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 zb(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 zb(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 YN(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function qN(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var Uge={p:qN,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return YN(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;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",YN(i,t)).replace("{{time}}",qN(o,t))}},Vge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function pn(e){var t=e?typeof e=="string"||e instanceof String?Do(e):Re(e):new Date;return ns(t)?t:null}function Hge(e,t,n,r,i){var o=null,s=Ns(n)||Ns(Va()),a=!0;return Array.isArray(t)?(t.forEach(function(l){var c=Lb(e,l,new Date,{locale:s});r&&(a=ns(c,i)&&e===ln(c,l,n)),ns(c,i)&&a&&(o=c)}),o):(o=Lb(e,t,new Date,{locale:s}),r?a=ns(o)&&e===ln(o,t,n):ns(o)||(t=t.match(Vge).map(function(l){var c=l[0];return c==="p"||c==="P"?s?(0,Uge[c])(l,s.formatLong):c:l}).join(""),e.length>0&&(o=Lb(e,t.slice(0,e.length),new Date)),ns(o)||(o=new Date(e))),ns(o)&&a?o:null)}function ns(e,t){return t=t||new Date("1/1/1000"),r8(e)&&!Kr(e,t)}function ln(e,t,n){if(n==="en")return vo(e,t,{awareOfUnicodeTokens:!0});var r=Ns(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Va()&&Ns(Va())&&(r=Ns(Va())),vo(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Ub(e,t){var n=t.dateFormat,r=t.locale;return e&&ln(e,Array.isArray(n)?n[0]:n,r)||""}function GN(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,s=t.second;return Tf(Of(Whe(e,s===void 0?0:s),o),r)}function Wge(e,t){var n=t&&Ns(t)||Va()&&Ns(Va());return nce(e,n?{locale:n}:null)}function Yge(e,t){return ln(e,"ddd",t)}function qge(e){return Lr(e)}function GE(e,t,n){var r=Ns(t||Va());return n8(e,{locale:r,weekStartsOn:n})}function Ua(e){return zae(e)}function Ju(e){return Uae(e)}function Gge(e){return t2(e)}function iF(e,t){return e&&t?khe(e,t):!e&&!t}function gs(e,t){return e&&t?Ohe(e,t):!e&&!t}function ay(e,t){return e&&t?Phe(e,t):!e&&!t}function gr(e,t){return e&&t?Dae(e,t):!e&&!t}function vs(e,t){return e&&t?d8(e,t):!e&&!t}function sg(e,t,n){var r,i=Lr(t),o=ol(n);try{r=zc(e,{start:i,end:o})}catch{r=!1}return r}function Va(){return(typeof window<"u"?window:globalThis).__localeId__}function Ns(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function oF(e,t){return ln(Wi(pn(),e),"LLLL",t)}function sF(e,t){return ln(Wi(pn(),e),"LLL",t)}function Zge(e,t){return ln(Qu(pn(),e),"QQQ",t)}function N_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,s=t.includeDates,a=t.includeDateIntervals,l=t.filterDate;return L_(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return gr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return zc(e,{start:f,end:h})})||s&&!s.some(function(c){return gr(e,c)})||a&&!a.some(function(c){var f=c.start,h=c.end;return zc(e,{start:f,end:h})})||l&&!l(pn(e))||!1}function ZE(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,s=i.end;return zc(e,{start:o,end:s})}):n&&n.some(function(i){return gr(e,i)})||!1}function Kge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return L_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return gs(e,a)})||o&&!o.some(function(a){return gs(e,a)})||s&&!s(pn(e))||!1}function Xge(e,t,n,r){var i=pt(e),o=cr(e),s=pt(t),a=cr(t),l=pt(r);return i===s&&i===l?o<=n&&n<=a:i<s?l===i&&o<=n||l===s&&a>=n||l<s&&l>i:void 0}function Qge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return L_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ay(e,a)})||o&&!o.some(function(a){return ay(e,a)})||s&&!s(pn(e))||!1}function Jge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=new Date(e,0,1);return L_(i,{minDate:n,maxDate:r})||!1}function eve(e,t,n,r){var i=pt(e),o=e2(e),s=pt(t),a=e2(t),l=pt(r);return i===s&&i===l?o<=n&&n<=a:i<s?l===i&&o<=n||l===s&&a>=n||l<s&&l>i:void 0}function L_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Cd(e,n)<0||r&&Cd(e,r)>0}function ZN(e,t){return t.some(function(n){return Ti(n)===Ti(e)&&Oi(n)===Oi(e)})}function KN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&ZN(e,n)||r&&!ZN(e,r)||i&&!i(e)||!1}function XN(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=pn(),s=Tf(Of(o,Oi(e)),Ti(e)),a=Tf(Of(o,Oi(n)),Ti(n)),l=Tf(Of(o,Oi(r)),Ti(r));try{i=!zc(s,{start:a,end:l})}catch{i=!1}return i}function QN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Td(e,1);return n&&Ed(n,i)>0||r&&r.every(function(o){return Ed(o,i)>0})||!1}function JN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=to(e,1);return n&&Ed(i,n)>0||r&&r.every(function(o){return Ed(i,o)>0})||!1}function eL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Od(e,1);return n&&yv(n,i)>0||r&&r.every(function(o){return yv(o,i)>0})||!1}function tL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=jc(e,1);return n&&yv(i,n)>0||r&&r.every(function(o){return yv(i,o)>0})||!1}function aF(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Cd(i,t)>=0});return QM(r)}return n?QM(n):t}function lF(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Cd(i,t)<=0});return XM(r)}return n?XM(n):t}function nL(){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(PE(o)){var s=ln(o,"MM.dd.yyyy"),a=n.get(s)||[];a.includes(t)||(a.push(t),n.set(s,a))}else if(tF(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 m=ln(f[h],"MM.dd.yyyy"),g=n.get(m)||[];g.includes(c)||(g.push(c),n.set(m,g))}}}return n}function tve(e,t,n,r,i){for(var o=i.length,s=[],a=0;a<o;a++){var l=Jw(Oae(e,Ti(i[a])),Oi(i[a])),c=Jw(e,(n+1)*r);Us(l,t)&&Kr(l,c)&&s.push(i[a])}return s}function rL(e){return e<10?"0".concat(e):"".concat(e)}function Mf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(pt(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function nve(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var s=e+t-o,a=!0;n&&(a=pt(n)<=s),r&&a&&(a=pt(r)>=s),a&&i.push(s)}return i}var rve=M_(function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;Rn(this,n),oe(ce(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return z.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(ce(i),p),"aria-selected":l===p?"true":void 0},l===p?z.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?pt(i.props.minDate):null,h=i.props.maxDate?pt(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(z.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},z.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(z.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},z.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),oe(ce(i),"onChange",function(l){i.props.onChange(l)}),oe(ce(i),"handleClickOutside",function(){i.props.onCancel()}),oe(ce(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),oe(ce(i),"incrementYears",function(){return i.shiftYears(1)}),oe(ce(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,a=o||(s?10:5);return i.state={yearsList:nve(i.props.year,a,i.props.minDate,i.props.maxDate)},i.dropdownRef=H.createRef(),i}return Nn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;r&&(r.scrollTop=r.scrollHeight/2-r.clientHeight/2)}},{key:"render",value:function(){var r=ge({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return z.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),ive=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),oe(ce(r),"renderSelectOptions",function(){for(var a=r.props.minDate?pt(r.props.minDate):1900,l=r.props.maxDate?pt(r.props.maxDate):2100,c=[],f=a;f<=l;f++)c.push(z.createElement("option",{key:f,value:f},f));return c}),oe(ce(r),"onSelectChange",function(a){r.onChange(a.target.value)}),oe(ce(r),"renderSelectMode",function(){return z.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),oe(ce(r),"renderReadView",function(a){return z.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},z.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),z.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),oe(ce(r),"renderDropdown",function(){return z.createElement(rve,{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})}),oe(ce(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),oe(ce(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.year&&r.props.onChange(a)}),oe(ce(r),"toggleDropdown",function(a){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,a)})}),oe(ce(r),"handleYearChange",function(a,l){r.onSelect(a,l),r.setOpen()}),oe(ce(r),"onSelect",function(a,l){r.props.onSelect&&r.props.onSelect(a,l)}),oe(ce(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Nn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return z.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),ove=M_(function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(a){return r.props.month===a}),oe(ce(r),"renderOptions",function(){return r.props.monthNames.map(function(a,l){return z.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:a,onClick:r.onChange.bind(ce(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?z.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",a)})}),oe(ce(r),"onChange",function(a){return r.props.onChange(a)}),oe(ce(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Nn(n,[{key:"render",value:function(){return z.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),sve=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),oe(ce(r),"renderSelectOptions",function(a){return a.map(function(l,c){return z.createElement("option",{key:c,value:c},l)})}),oe(ce(r),"renderSelectMode",function(a){return z.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(a))}),oe(ce(r),"renderReadView",function(a,l){return z.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},z.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),z.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),oe(ce(r),"renderDropdown",function(a){return z.createElement(ove,{key:"dropdown",month:r.props.month,monthNames:a,onChange:r.onChange,onCancel:r.toggleDropdown})}),oe(ce(r),"renderScrollMode",function(a){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,a)];return l&&c.unshift(r.renderDropdown(a)),c}),oe(ce(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.month&&r.props.onChange(a)}),oe(ce(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Nn(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(s){return sF(s,i.props.locale)}:function(s){return oF(s,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return z.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function ave(e,t){for(var n=[],r=Ua(e),i=Ua(t);!Us(r,i);)n.push(pn(r)),r=to(r,1);return n}var lve=M_(function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var s=wv(o),a=iF(i.props.date,o)&&gs(i.props.date,o);return z.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:i.onChange.bind(ce(i),s),"aria-selected":a?"true":void 0},a?z.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",ln(o,i.props.dateFormat,i.props.locale))})}),oe(ce(i),"onChange",function(o){return i.props.onChange(o)}),oe(ce(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:ave(i.props.minDate,i.props.maxDate)},i}return Nn(n,[{key:"render",value:function(){var r=ge({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return z.createElement("div",{className:r},this.renderOptions())}}]),n}()),cve=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),oe(ce(r),"renderSelectOptions",function(){for(var a=Ua(r.props.minDate),l=Ua(r.props.maxDate),c=[];!Us(a,l);){var f=wv(a);c.push(z.createElement("option",{key:f,value:f},ln(a,r.props.dateFormat,r.props.locale))),a=to(a,1)}return c}),oe(ce(r),"onSelectChange",function(a){r.onChange(a.target.value)}),oe(ce(r),"renderSelectMode",function(){return z.createElement("select",{value:wv(Ua(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),oe(ce(r),"renderReadView",function(a){var l=ln(r.props.date,r.props.dateFormat,r.props.locale);return z.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},z.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),z.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),oe(ce(r),"renderDropdown",function(){return z.createElement(lve,{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})}),oe(ce(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),oe(ce(r),"onChange",function(a){r.toggleDropdown();var l=pn(parseInt(a));iF(r.props.date,l)&&gs(r.props.date,l)||r.props.onChange(l)}),oe(ce(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Nn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return z.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),uve=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"dayEl",z.createRef()),oe(ce(r),"handleClick",function(a){!r.isDisabled()&&r.props.onClick&&r.props.onClick(a)}),oe(ce(r),"handleMouseEnter",function(a){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(a)}),oe(ce(r),"handleOnKeyDown",function(a){a.key===" "&&(a.preventDefault(),a.key="Enter"),r.props.handleOnKeyDown(a)}),oe(ce(r),"isSameDay",function(a){return gr(r.props.day,a)}),oe(ce(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)}),oe(ce(r),"isDisabled",function(){return N_(r.props.day,r.props)}),oe(ce(r),"isExcluded",function(){return ZE(r.props.day,r.props)}),oe(ce(r),"getHighLightedClass",function(a){var l=r.props,c=l.day,f=l.highlightDates;if(!f)return!1;var h=ln(c,"MM.dd.yyyy");return f.get(h)}),oe(ce(r),"isInRange",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&sg(l,c,f)}),oe(ce(r),"isInSelectingRange",function(){var a,l=r.props,c=l.day,f=l.selectsStart,h=l.selectsEnd,p=l.selectsRange,m=l.selectsDisabledDaysInRange,g=l.startDate,v=l.endDate,w=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return!(!(f||h||p)||!w||!m&&r.isDisabled())&&(f&&v&&(Kr(w,v)||vs(w,v))?sg(c,w,v):(h&&g&&(Us(w,g)||vs(w,g))||!(!p||!g||v||!Us(w,g)&&!vs(w,g)))&&sg(c,g,w))}),oe(ce(r),"isSelectingRangeStart",function(){var a;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.startDate,h=l.selectsStart,p=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return gr(c,h?p:f)}),oe(ce(r),"isSelectingRangeEnd",function(){var a;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.endDate,h=l.selectsEnd,p=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return gr(c,h?p:f)}),oe(ce(r),"isRangeStart",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&gr(c,l)}),oe(ce(r),"isRangeEnd",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&gr(f,l)}),oe(ce(r),"isWeekend",function(){var a=Jle(r.props.day);return a===0||a===6}),oe(ce(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===cr(r.props.day)}),oe(ce(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(cr(r.props.day)+1)%12===r.props.month}),oe(ce(r),"isCurrentDay",function(){return r.isSameDay(pn())}),oe(ce(r),"isSelected",function(){return r.isSameDay(r.props.selected)}),oe(ce(r),"getClassNames",function(a){var l=r.props.dayClassName?r.props.dayClassName(a):void 0;return ge("react-datepicker__day",l,"react-datepicker__day--"+Yge(r.props.day),{"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"))}),oe(ce(r),"getAriaLabel",function(){var a=r.props,l=a.day,c=a.ariaLabelPrefixWhenEnabled,f=c===void 0?"Choose":c,h=a.ariaLabelPrefixWhenDisabled,p=h===void 0?"Not available":h,m=r.isDisabled()||r.isExcluded()?p:f;return"".concat(m," ").concat(ln(l,"PPPP",r.props.locale))}),oe(ce(r),"getTabIndex",function(a,l){var c=a||r.props.selected,f=l||r.props.preSelection;return r.isKeyboardSelected()||r.isSameDay(c)&&gr(f,c)?0:-1}),oe(ce(r),"handleFocusDay",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!a.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)),l&&r.dayEl.current.focus({preventScroll:!0})}),oe(ce(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(oR(r.props.day),r.props.day):oR(r.props.day)}),oe(ce(r),"render",function(){return z.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.renderDayContents())}),r}return Nn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),fve=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"handleClick",function(a){r.props.onClick&&r.props.onClick(a)}),r}return Nn(n,[{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,s=o===void 0?"week ":o,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick};return z.createElement("div",{className:ge(a),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick},i)}}]),n}(),dve=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l)}),oe(ce(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),oe(ce(r),"handleWeekClick",function(a,l,c){typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(a,l,c),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),oe(ce(r),"formatWeekNumber",function(a){return r.props.formatWeekNumber?r.props.formatWeekNumber(a):Wge(a)}),oe(ce(r),"renderDays",function(){var a=GE(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(a);if(r.props.showWeekNumber){var f=r.props.onWeekSelect?r.handleWeekClick.bind(ce(r),a,c):void 0;l.push(z.createElement(fve,{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=pl(a,h);return z.createElement(uve,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(ce(r),p),onMouseEnter:r.handleDayMouseEnter.bind(ce(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 Nn(n,[{key:"render",value:function(){return z.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),hve=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",rF(Array(12)).map(function(){return z.createRef()})),oe(ce(r),"isDisabled",function(a){return N_(a,r.props)}),oe(ce(r),"isExcluded",function(a){return ZE(a,r.props)}),oe(ce(r),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l,r.props.orderInDisplay)}),oe(ce(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),oe(ce(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),oe(ce(r),"isRangeStartMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&gs(Wi(c,a),f)}),oe(ce(r),"isRangeStartQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ay(Qu(c,a),f)}),oe(ce(r),"isRangeEndMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&gs(Wi(c,a),h)}),oe(ce(r),"isRangeEndQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ay(Qu(c,a),h)}),oe(ce(r),"isWeekInMonth",function(a){var l=r.props.day,c=pl(a,6);return gs(a,l)||gs(c,l)}),oe(ce(r),"isCurrentMonth",function(a,l){return pt(a)===pt(pn())&&l===cr(pn())}),oe(ce(r),"isSelectedMonth",function(a,l,c){return cr(a)===l&&pt(a)===pt(c)}),oe(ce(r),"isSelectedQuarter",function(a,l,c){return e2(a)===l&&pt(a)===pt(c)}),oe(ce(r),"renderWeeks",function(){for(var a=[],l=r.props.fixedHeight,c=0,f=!1,h=GE(Ua(r.props.day),r.props.locale,r.props.calendarStartDay);a.push(z.createElement(dve,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:h,month:cr(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=TE(h,1);var p=l&&c>=6,m=!l&&!r.isWeekInMonth(h);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return a}),oe(ce(r),"onMonthClick",function(a,l){r.handleDayClick(Ua(Wi(r.props.day,l)),a)}),oe(ce(r),"handleMonthNavigation",function(a,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[a].current&&r.MONTH_REFS[a].current.focus())}),oe(ce(r),"onMonthKeyDown",function(a,l){var c=a.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(a,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,to(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,Td(r.props.preSelection,1))}}),oe(ce(r),"onQuarterClick",function(a,l){r.handleDayClick(Gge(Qu(r.props.day,l)),a)}),oe(ce(r),"getMonthClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate,v=l.preSelection,w=l.monthClassName,_=w?w(c):void 0;return ge("react-datepicker__month-text","react-datepicker__month-".concat(a),_,{"react-datepicker__month--disabled":(m||g)&&Kge(Wi(c,a),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,a,p),"react-datepicker__month-text--keyboard-selected":cr(v)===a,"react-datepicker__month--in-range":Xge(f,h,a,c),"react-datepicker__month--range-start":r.isRangeStartMonth(a),"react-datepicker__month--range-end":r.isRangeEndMonth(a),"react-datepicker__month-text--today":r.isCurrentMonth(c,a)})}),oe(ce(r),"getTabIndex",function(a){var l=cr(r.props.preSelection);return r.props.disabledKeyboardNavigation||a!==l?"-1":"0"}),oe(ce(r),"getAriaLabel",function(a){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,m=l.day,g=Wi(m,a),v=r.isDisabled(g)||r.isExcluded(g)?p:f;return"".concat(v," ").concat(ln(g,"MMMM yyyy"))}),oe(ce(r),"getQuarterClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate;return ge("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter--disabled":(m||g)&&Qge(Qu(c,a),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,a,p),"react-datepicker__quarter--in-range":eve(f,h,a,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(a),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(a)})}),oe(ce(r),"renderMonths",function(){var a=r.props,l=a.showFullMonthYearPicker,c=a.showTwoColumnMonthYearPicker,f=a.showFourColumnMonthYearPicker,h=a.locale,p=a.day,m=a.selected;return(f?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(g,v){return z.createElement("div",{className:"react-datepicker__month-wrapper",key:v},g.map(function(w,_){return z.createElement("div",{ref:r.MONTH_REFS[w],key:_,onClick:function(b){r.onMonthClick(b,w)},onKeyDown:function(b){r.onMonthKeyDown(b,w)},tabIndex:r.getTabIndex(w),className:r.getMonthClassNames(w),role:"option","aria-label":r.getAriaLabel(w),"aria-current":r.isCurrentMonth(p,w)?"date":void 0,"aria-selected":r.isSelectedMonth(p,w,m)},l?oF(w,h):sF(w,h))}))})}),oe(ce(r),"renderQuarters",function(){var a=r.props,l=a.day,c=a.selected;return z.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return z.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},Zge(f,r.props.locale))}))}),oe(ce(r),"getClassNames",function(){var a=r.props;a.day;var l=a.selectingDate,c=a.selectsStart,f=a.selectsEnd,h=a.showMonthYearPicker,p=a.showQuarterYearPicker;return ge("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return Nn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,a=r.ariaLabelPrefix,l=a===void 0?"month ":a;return z.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(ln(s,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),cF=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return oe(ce(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),oe(ce(r),"handleClick",function(a){(r.props.minTime||r.props.maxTime)&&XN(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&KN(a,r.props)||r.props.onChange(a)}),oe(ce(r),"isSelectedTime",function(a,l,c){return r.props.selected&&l===Ti(a)&&c===Oi(a)}),oe(ce(r),"liClasses",function(a,l,c){var f=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(a,l,c):void 0];return r.isSelectedTime(a,l,c)&&f.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&XN(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&KN(a,r.props))&&f.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Ti(a)+Oi(a))%r.props.intervals!=0&&f.push("react-datepicker__time-list-item--injected"),f.join(" ")}),oe(ce(r),"handleOnKeyDown",function(a,l){a.key===" "&&(a.preventDefault(),a.key="Enter"),a.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(a)}),oe(ce(r),"renderTimes",function(){for(var a=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,f=qge(pn(r.props.selected)),h=1440/c,p=r.props.injectTimes&&r.props.injectTimes.sort(function(E,P){return E-P}),m=r.props.selected||r.props.openToDate||pn(),g=Ti(m),v=Oi(m),w=Tf(Of(f,v),g),_=0;_<h;_++){var b=Jw(f,_*c);if(a.push(b),p){var x=tve(f,b,_,c,p);a=a.concat(x)}}return a.map(function(E,P){return z.createElement("li",{key:P,onClick:r.handleClick.bind(ce(r),E),className:r.liClasses(E,g,v),ref:function(k){(Kr(E,w)||vs(E,w))&&(r.centerLi=k)},onKeyDown:function(k){r.handleOnKeyDown(k,E)},tabIndex:"0","aria-selected":r.isSelectedTime(E,g,v)?"true":void 0},ln(E,l,r.props.locale))})}),r}return Nn(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=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 z.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},z.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}},z.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),z.createElement("div",{className:"react-datepicker__time"},z.createElement("div",{className:"react-datepicker__time-box"},z.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}();oe(cF,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var pve=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(i=t.call(this,r)),"YEAR_REFS",rF(Array(i.props.yearItemNumber)).map(function(){return z.createRef()})),oe(ce(i),"isDisabled",function(o){return N_(o,i.props)}),oe(ce(i),"isExcluded",function(o){return ZE(o,i.props)}),oe(ce(i),"updateFocusOnPaginate",function(o){var s=function(){this.YEAR_REFS[o].current.focus()}.bind(ce(i));window.requestAnimationFrame(s)}),oe(ce(i),"handleYearClick",function(o,s){i.props.onDayClick&&i.props.onDayClick(o,s)}),oe(ce(i),"handleYearNavigation",function(o,s){var a=i.props,l=a.date,c=a.yearItemNumber,f=Mf(l,c).startPeriod;i.isDisabled(s)||i.isExcluded(s)||(i.props.setPreSelection(s),o-f==-1?i.updateFocusOnPaginate(c-1):o-f===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-f].current.focus())}),oe(ce(i),"isSameDay",function(o,s){return gr(o,s)}),oe(ce(i),"isCurrentYear",function(o){return o===pt(pn())}),oe(ce(i),"isKeyboardSelected",function(o){var s=Ju(ty(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!gr(s,Ju(i.props.selected))&&gr(s,Ju(i.props.preSelection))}),oe(ce(i),"onYearClick",function(o,s){var a=i.props.date;i.handleYearClick(Ju(ty(a,s)),o)}),oe(ce(i),"onYearKeyDown",function(o,s){var a=o.key;if(!i.props.disabledKeyboardNavigation)switch(a){case"Enter":i.onYearClick(o,s),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(s+1,jc(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(s-1,Od(i.props.preSelection,1))}}),oe(ce(i),"getYearClassNames",function(o){var s=i.props,a=s.minDate,l=s.maxDate,c=s.selected;return ge("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===pt(c),"react-datepicker__year-text--disabled":(a||l)&&Jge(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),oe(ce(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===pt(i.props.preSelection)?"0":"-1"}),i}return Nn(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,s=Mf(o.date,o.yearItemNumber),a=s.startPeriod,l=s.endPeriod,c=function(h){i.push(z.createElement("div",{ref:r.YEAR_REFS[h-a],onClick:function(p){r.onYearClick(p,h)},onKeyDown:function(p){r.onYearKeyDown(p,h)},tabIndex:r.getYearTabIndex(h),className:r.getYearClassNames(h),key:h,"aria-current":r.isCurrentYear(h)?"date":void 0},h))},f=a;f<=l;f++)c(f);return z.createElement("div",{className:"react-datepicker__year"},z.createElement("div",{className:"react-datepicker__year-wrapper"},i))}}]),n}(),mve=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(i=t.call(this,r)),"onTimeChange",function(o){i.setState({time:o});var s=new Date;s.setHours(o.split(":")[0]),s.setMinutes(o.split(":")[1]),i.props.onChange(s)}),oe(ce(i),"renderTimeInput",function(){var o=i.state.time,s=i.props,a=s.date,l=s.timeString,c=s.customTimeInput;return c?z.cloneElement(c,{date:a,value:o,onChange:i.onTimeChange}):z.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 Nn(n,[{key:"render",value:function(){return z.createElement("div",{className:"react-datepicker__input-time-container"},z.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),z.createElement("div",{className:"react-datepicker-time__input-container"},z.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 gve(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return z.createElement("div",{className:t},r&&z.createElement("div",R_({className:"react-datepicker__triangle"},o)),n)}var vve=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],yve=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),oe(ce(i),"setClickOutsideRef",function(){return i.containerRef.current}),oe(ce(i),"handleDropdownFocus",function(o){(function(){var s=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return vve.some(function(a){return s.indexOf(a)>=0})})(o.target)&&i.props.onDropdownFocus()}),oe(ce(i),"getDateInView",function(){var o=i.props,s=o.preSelection,a=o.selected,l=o.openToDate,c=aF(i.props),f=lF(i.props),h=pn(),p=l||a||s;return p||(c&&Kr(h,c)?c:f&&Us(h,f)?f:h)}),oe(ce(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:to(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),oe(ce(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:Td(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),oe(ce(i),"handleDayClick",function(o,s,a){i.props.onSelect(o,s,a),i.props.setPreSelection&&i.props.setPreSelection(o)}),oe(ce(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),oe(ce(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),oe(ce(i),"handleYearChange",function(o){i.props.onYearChange&&i.props.onYearChange(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)}),oe(ce(i),"handleMonthChange",function(o){i.props.onMonthChange&&i.props.onMonthChange(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)}),oe(ce(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),oe(ce(i),"changeYear",function(o){i.setState(function(s){var a=s.date;return{date:ty(a,o)}},function(){return i.handleYearChange(i.state.date)})}),oe(ce(i),"changeMonth",function(o){i.setState(function(s){var a=s.date;return{date:Wi(a,o)}},function(){return i.handleMonthChange(i.state.date)})}),oe(ce(i),"changeMonthYear",function(o){i.setState(function(s){var a=s.date;return{date:ty(Wi(a,cr(o)),pt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),oe(ce(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=GE(o,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(z.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(l){var c=pl(s,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return z.createElement("div",{key:l,className:ge("react-datepicker__day-name",h)},f)}))}),oe(ce(i),"formatWeekday",function(o,s){return i.props.formatWeekDay?function(a,l,c){return l(ln(a,"EEEE",c))}(o,i.props.formatWeekDay,s):i.props.useWeekdaysShort?function(a,l){return ln(a,"EEE",l)}(o,s):function(a,l){return ln(a,"EEEEEE",l)}(o,s)}),oe(ce(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:Od(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),oe(ce(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=eL(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.minDate,E=b.yearItemNumber,P=E===void 0?12:E,k=Mf(Ju(Od(_,P)),P).endPeriod,N=x&&pt(x);return N&&N>k||!1}(i.state.date,i.props);break;default:o=QN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,g=m===void 0?typeof f=="string"?f:"Previous Month":m,v=p.previousYearAriaLabel,w=v===void 0?typeof h=="string"?h:"Previous Year":v;return z.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?w:g},z.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),oe(ce(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:jc(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),oe(ce(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=tL(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.maxDate,E=b.yearItemNumber,P=E===void 0?12:E,k=Mf(jc(_,P),P).startPeriod,N=x&&pt(x);return N&&N<k||!1}(i.state.date,i.props);break;default:o=JN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var a=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.nextMonthButtonLabel,h=c.nextYearButtonLabel,p=i.props,m=p.nextMonthAriaLabel,g=m===void 0?typeof f=="string"?f:"Next Month":m,v=p.nextYearAriaLabel,w=v===void 0?typeof h=="string"?h:"Next Year":v;return z.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?w:g},z.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),oe(ce(i),"renderCurrentMonth",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=["react-datepicker__current-month"];return i.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),z.createElement("div",{className:s.join(" ")},ln(o,i.props.dateFormat,i.props.locale))}),oe(ce(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return z.createElement(ive,{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:pt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),oe(ce(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return z.createElement(sve,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:cr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),oe(ce(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return z.createElement(cve,{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})}),oe(ce(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return z.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(Lr(pn()),o)}},i.props.todayButton)}),oe(ce(i),"renderDefaultHeader",function(o){var s=o.monthDate,a=o.i;return z.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),z.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(a!==0),i.renderMonthYearDropdown(a!==0),i.renderYearDropdown(a!==0)),z.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),oe(ce(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,a=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=QN(i.state.date,i.props),c=JN(i.state.date,i.props),f=eL(i.state.date,i.props),h=tL(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return z.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(HN(HN({},i.state),{},{customHeaderCount:a,monthDate:s,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&&z.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),oe(ce(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,a=s.showYearPicker,l=Mf(o,s.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return z.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(c," - ").concat(f):pt(o))}),oe(ce(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)}}),oe(ce(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,a=Td(i.state.date,s),l=0;l<i.props.monthsShown;++l){var c=l-i.props.monthSelectedIn,f=to(a,c),h="month-".concat(l),p=l<i.props.monthsShown-1,m=l>0;o.push(z.createElement("div",{key:h,ref:function(g){i.monthContainer=g},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),z.createElement(hve,{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,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:m})))}return o}}),oe(ce(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?z.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),z.createElement(pve,R_({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),oe(ce(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return z.createElement(cF,{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})}),oe(ce(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=ns(o)&&Boolean(i.props.selected)?"".concat(rL(o.getHours()),":").concat(rL(o.getMinutes())):"";if(i.props.showTimeInput)return z.createElement(mve,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=z.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return Nn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){this.props.preSelection&&!gr(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!gr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||gve;return z.createElement("div",{ref:this.containerRef},z.createElement(r,{className:ge("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{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:12}}}]),n}(),uF=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Nn(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 ja.createPortal(this.props.children,this.el)}}]),n}(),_ve=function(e){return!e.disabled&&e.tabIndex!==-1},bve=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(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(_ve)}),oe(ce(i),"handleFocusStart",function(o){var s=i.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),oe(ce(i),"handleFocusEnd",function(o){var s=i.getTabChildren();s&&s.length>1&&s[0].focus()}),i.tabLoopRef=z.createRef(),i}return Nn(n,[{key:"render",value:function(){return this.props.enableTabLoop?z.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},z.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,z.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),wve=function(e){Ln(n,z.Component);var t=Dn(n);function n(){return Rn(this,n),t.apply(this,arguments)}return Nn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,s=i.wrapperClassName,a=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,g=i.popperOnKeyDown,v=i.portalId,w=i.portalHost;if(!a){var _=ge("react-datepicker-popper",o);r=z.createElement(jge,R_({modifiers:c,placement:f},h),function(x){var E=x.ref,P=x.style,k=x.placement,N=x.arrowProps;return z.createElement(bve,{enableTabLoop:m},z.createElement("div",{ref:E,style:P,className:_,"data-placement":k,onKeyDown:g},z.cloneElement(l,{arrowProps:N})))})}this.props.popperContainer&&(r=z.createElement(this.props.popperContainer,{},r)),v&&!a&&(r=z.createElement(uF,{portalId:v,portalHost:w},r));var b=ge("react-datepicker-wrapper",s);return z.createElement(Lge,{className:"react-datepicker-manager"},z.createElement(Bge,null,function(x){var E=x.ref;return z.createElement("div",{ref:E,className:b},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),xve=M_(yve),Sve=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(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:pn()}),oe(ce(i),"calcInitialState",function(){var o,s=i.getPreSelection(),a=aF(i.props),l=lF(i.props),c=a&&Kr(s,Lr(a))?a:l&&Us(s,ol(l))?l:s;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:nL(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),oe(ce(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),oe(ce(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),oe(ce(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),oe(ce(i),"setOpen",function(o){var s=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:Vb},function(){o||i.setState(function(a){return{focused:!!s&&a.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),oe(ce(i),"inputOk",function(){return PE(i.state.preSelection)}),oe(ce(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),oe(ce(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),oe(ce(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),oe(ce(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),oe(ce(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),oe(ce(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),oe(ce(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),oe(ce(i),"handleChange",function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=s[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(ce(i),s),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:Cve});var c=Hge(l.target.value,i.props.dateFormat,i.props.locale,i.props.strictParsing,i.props.minDate);!c&&l.target.value||i.setSelected(c,l,!0)}}),oe(ce(i),"handleSelect",function(o,s,a){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(s),i.setSelected(o,s,!1,a),!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||Kr(o,c)||i.setOpen(!1)}}),oe(ce(i),"setSelected",function(o,s,a,l){var c=o;if(c===null||!N_(c,i.props)){var f=i.props,h=f.onChange,p=f.selectsRange,m=f.startDate,g=f.endDate;if(!vs(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||a&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=GN(c,{hour:Ti(i.props.selected),minute:Oi(i.props.selected),second:rce(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var v=m&&!g,w=m&&g;!m&&!g?h([c,null],s):v&&(Kr(c,m)?h([c,null],s):h([m,c],s)),w&&h([c,null],s)}else h(c,s);a||(i.props.onSelect(c,s),i.setState({inputValue:null}))}}),oe(ce(i),"setPreSelection",function(o){var s=i.props.minDate!==void 0,a=i.props.maxDate!==void 0,l=!0;if(o){var c=Lr(o);if(s&&a)l=sg(o,i.props.minDate,i.props.maxDate);else if(s){var f=Lr(i.props.minDate);l=Us(o,f)||vs(c,f)}else if(a){var h=ol(i.props.maxDate);l=Kr(o,h)||vs(c,h)}}l&&i.setState({preSelection:o})}),oe(ce(i),"handleTimeChange",function(o){var s=GN(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Ti(o),minute:Oi(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),i.setState({inputValue:null})}),oe(ce(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),oe(ce(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var s=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(s==="ArrowDown"||s==="ArrowUp"){o.preventDefault();var a=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(a&&a.focus({preventScroll:!0}))}var l=pn(i.state.preSelection);s==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===Vb?(i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l)):i.setOpen(!1)):s==="Escape"&&(o.preventDefault(),i.setOpen(!1)),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."})}}else s!=="ArrowDown"&&s!=="ArrowUp"&&s!=="Enter"||i.onInputClick()}),oe(ce(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var s=o.key,a=pn(i.state.preSelection);if(s==="Enter")o.preventDefault(),i.handleSelect(a,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(a);else if(s==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."});else if(!i.props.disabledKeyboardNavigation){var l;switch(s){case"ArrowLeft":l=$E(a,1);break;case"ArrowRight":l=pl(a,1);break;case"ArrowUp":l=Yhe(a,1);break;case"ArrowDown":l=TE(a,1);break;case"PageUp":l=Td(a,1);break;case"PageDown":l=to(a,1);break;case"Home":l=Od(a,1);break;case"End":l=jc(a,1)}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:"Date input not valid."}));if(o.preventDefault(),i.setState({lastPreSelectChange:Vb}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=cr(a),f=cr(l),h=pt(a),p=pt(l);c!==f||h!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),oe(ce(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})})}))}),oe(ce(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})}),oe(ce(i),"clear",function(){i.onClearClick()}),oe(ce(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)}),oe(ce(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?z.createElement(xve,{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:"react-datepicker-ignore-onclickoutside",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,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,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,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}),oe(ce(i),"renderDateInput",function(){var o,s=ge(i.props.className,oe({},"react-datepicker-ignore-onclickoutside",i.state.open)),a=i.props.customInput||z.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 m=Ub(f,p),g=h?Ub(h,p):"";return"".concat(m," - ").concat(g)}(i.props.startDate,i.props.endDate,i.props):Ub(i.props.selected,i.props);return z.cloneElement(a,(oe(o={},l,function(f){i.input=f}),oe(o,"value",c),oe(o,"onBlur",i.handleBlur),oe(o,"onChange",i.handleChange),oe(o,"onClick",i.onInputClick),oe(o,"onFocus",i.handleFocus),oe(o,"onKeyDown",i.onInputKeyDown),oe(o,"id",i.props.id),oe(o,"name",i.props.name),oe(o,"autoFocus",i.props.autoFocus),oe(o,"placeholder",i.props.placeholderText),oe(o,"disabled",i.props.disabled),oe(o,"autoComplete",i.props.autoComplete),oe(o,"className",ge(a.props.className,s)),oe(o,"title",i.props.title),oe(o,"readOnly",i.props.readOnly),oe(o,"required",i.props.required),oe(o,"tabIndex",i.props.tabIndex),oe(o,"aria-describedby",i.props.ariaDescribedBy),oe(o,"aria-invalid",i.props.ariaInvalid),oe(o,"aria-labelledby",i.props.ariaLabelledBy),oe(o,"aria-required",i.props.ariaRequired),o))}),oe(ce(i),"renderClearButton",function(){var o=i.props,s=o.isClearable,a=o.selected,l=o.startDate,c=o.endDate,f=o.clearButtonTitle,h=o.clearButtonClassName,p=h===void 0?"":h,m=o.ariaLabelClose,g=m===void 0?"Close":m;return!s||a==null&&l==null&&c==null?null:z.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(p).trim(),"aria-label":g,onClick:i.onClearClick,title:f,tabIndex:-1})}),i.state=i.calcInitialState(),i}return Nn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,s;r.inline&&(o=r.selected,s=this.props.selected,o&&s?cr(o)!==cr(s)||pt(o)!==pt(s):o!==s)&&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:nL(this.props.highlightDates)}),i.focused||vs(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(){return z.createElement("div",{className:"react-datepicker__input-container"},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?z.createElement("div",{className:"react-datepicker__portal"},r):null;return this.state.open&&this.props.portalId&&(i=z.createElement(uF,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),z.createElement("div",null,this.renderInputContainer(),i)}return z.createElement(wve,{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:12,renderDayContents:function(r){return r},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),Cve="input",Vb="navigate";const bx=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||$o(r),s=H.useRef();return V("div",{className:"date-input-container",children:[C(Sve,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??Pf,className:ge("date-input-container__input form-control",t),ref:s}),o&&C(je,{icon:Tpe,className:"date-input-container__icon",onClick:()=>{var a;return(a=s.current)==null?void 0:a.input.focus()}})]})},Eve=e=>C(bx,{...e,dateFormat:jE,showTimeSelect:!0,timeIntervals:10}),Hb=({children:e,infoTooltip:t,checked:n,onChange:r})=>V("p",{children:[C(K8,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&C(og,{placement:"right",children:t})]});const Tve=({isOpen:e,toggle:t})=>V(Uo,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[C(ro,{toggle:t,children:"Info"}),V(Mi,{children:[V("p",{children:["When the ",C("b",{children:C("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),C("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),V("ul",{children:[C("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),V("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.",C("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),C("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"})]})]})]}),Ove=()=>{const[e,t]=jt();return V(Ye,{children:[C("span",{title:"What does this mean?",children:C(je,{icon:bC,style:{cursor:"pointer"},onClick:t})}),C(Tve,{isOpen:e,toggle:t})]})};const Pve=It(NZ,xZ(/ /g,"-")),Wb=e=>typeof e=="string"?Do(e):e,kve=(e,t)=>({mode:n,saving:r,onSave:i,initialState:o,selectedServer:s})=>{const[a,l]=H.useState(o),c=n==="edit",f=n==="create-basic",h=yi(o.title),p=E=>l({...a,tags:E.map(Pve)}),m=()=>l(o),g=()=>{const E=yi(a.title);return i_([[()=>!E&&!h,()=>{}],[()=>!E&&h,()=>null],[eC,()=>a.title]])()},v=ih(async()=>i({...a,validSince:Hs(a.validSince)??null,validUntil:Hs(a.validUntil)??null,maxVisits:yi(a.maxVisits)?Number(a.maxVisits):null,title:g()}).then(()=>!c&&m()).catch(()=>{}));H.useEffect(()=>{l(o)},[o]);const w=(E,P,k="text",N={},D={})=>C(Zr,{...D,children:C(_d,{id:E,type:k,placeholder:P,value:a[E]??"",onChange:U=>l({...a,[E]:U.target.value}),...N})}),_=(E,P,k={})=>C(Eve,{selected:a[E]?Wb(a[E]):null,placeholderText:P,isClearable:!0,onChange:N=>l({...a,[E]:N}),...k}),b=V(Ye,{children:[C(Zr,{children:C(_d,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:a.longUrl,onChange:E=>l({...a,longUrl:E.target.value})})}),V(ur,{children:[f&&w("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),C("div",{className:f?"col-lg-6 mb-3":"col-12",children:C(e,{selectedTags:a.tags??[],onChange:p})})]})]}),x=K5(s);return V("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:v,children:[f&&b,!f&&V(Ye,{children:[C(vn,{title:"Main options",className:"mb-3",children:b}),V(ur,{children:[C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Customize the short URL",children:[w("title","Title"),!c&&V(Ye,{children:[V(ur,{children:[C("div",{className:"col-lg-6",children:w("customSlug","Custom slug","text",{disabled:yi(a.shortCodeLength)})}),C("div",{className:"col-lg-6",children:w("shortCodeLength","Short code length","number",{min:4,disabled:yi(a.customSlug)})})]}),C(t,{value:a.domain,onChange:E=>l({...a,domain:E})})]})]})}),C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Limit access to the short URL",children:[w("maxVisits","Maximum number of visits allowed","number",{min:1}),C("div",{className:"mb-3",children:_("validSince","Enabled since...",{maxDate:a.validUntil?Wb(a.validUntil):void 0})}),_("validUntil","Enabled until...",{minDate:a.validSince?Wb(a.validSince):void 0})]})})]}),V(ur,{children:[C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Extra checks",children:[C(Hb,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:a.validateUrl,onChange:E=>l({...a,validateUrl:E}),children:"Validate URL"}),!c&&V("p",{children:[C(K8,{inline:!0,className:"me-2",checked:a.findIfExists,onChange:E=>l({...a,findIfExists:E}),children:"Use existing URL if found"}),C(Ove,{})]})]})}),C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Configure behavior",children:[C(Hb,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:a.crawlable,onChange:E=>l({...a,crawlable:E}),children:"Make it crawlable"}),x&&C(Hb,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:a.forwardQuery,onChange:E=>l({...a,forwardQuery:E}),children:"Forward query params on redirect"})]})})]})]}),C("div",{className:"text-center",children:C(mt,{outline:!0,color:"primary",disabled:r||qn(a.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},Mve=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>V("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(bx,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),C("div",{className:"col-md-6",children:C(bx,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&ol(o))})})]}),fF=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=ry(t),[s,a]=H.useState(o?t:void 0),[l,c]=H.useState(o?void 0:t),f=p=>{a(C8(p)?lh:void 0),c(p),e(p)},h=p=>{a(p),c(void 0),e(T8(p))};return i&&Eoe(()=>{const p=ry(t);p&&h(t),t&&!p&&f(t)},[t]),V(na,{disabled:r,text:zE(s??l)??n,children:[C(B8,{allText:n,active:s,onChange:h}),C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Custom:"}),C(Ve,{text:!0,children:C(Mve,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},Rve=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1}=t,a=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return V(na,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Visits:"}),C(Ve,{active:i,onClick:a("excludeBots"),children:"Ignore visits from bots"}),r&&V(Ye,{children:[C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Short URLs:"}),C(Ve,{active:o,onClick:a("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),C(Ve,{active:s,onClick:a("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),C(Ve,{divider:!0}),C(Ve,{disabled:!yi(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:C("i",{children:"Clear filters"})})]})};const Nve=(e,t)=>({selectedServer:n,className:r,shortUrlsAmount:i,order:o,handleOrderBy:s,settings:a})=>{var D;const[l,c]=k_(),{search:f,tags:h,startDate:p,endDate:m,excludeBots:g,excludeMaxVisitsReached:v,excludePastValidUntil:w,tagsMode:_="any"}=l,b=rae(n),x=It(({startDate:U,endDate:A})=>({startDate:Hs(U)??void 0,endDate:Hs(A)??void 0}),c),E=It(U=>qn(U)?void 0:U,U=>c({search:U})),P=U=>c({tags:U}),k=nae(n),N=It(()=>_==="any"?"all":"any",U=>c({tagsMode:U}));return V("div",{className:ge("short-urls-filtering-bar-container",r),children:[C(sh,{initialValue:f,onChange:E}),V(Qd,{className:"mt-3",children:[C(t,{allowNew:!1,placeholder:"With tags...",selectedTags:h,onChange:P}),k&&h.length>1&&V(Ye,{children:[C(mt,{outline:!0,color:"secondary",onClick:N,id:"tagsModeBtn","aria-label":"Change tags mode",children:C(je,{className:"short-urls-filtering-bar__tags-icon",icon:_==="all"?KI:hQ})}),C(Br,{target:"tagsModeBtn",placement:"left",children:_==="all"?"With all the tags.":"With any of the tags."})]})]}),V(ur,{className:"flex-lg-row-reverse",children:[C("div",{className:"col-lg-8 col-xl-6 mt-3",children:V("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(fF,{defaultText:"All short URLs",initialDateRange:E8(p,m),onDatesChange:x})}),C(Rve,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:g??((D=a.visits)==null?void 0:D.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:w},onChange:c,supportsDisabledFiltering:b})]})}),C("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:C(e,{amount:i})}),C("div",{className:"col-6 d-lg-none mt-3",children:C(hh,{prefixed:!1,items:$8,order:o,onChange:s})})]})]})};function Rf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:C(je,{icon:e.dir==="ASC"?oQ:vQ,className:n})}const Il=2,wx="...",dF=(e,t)=>{const n=aC(mI(Il,e-Il),OI(t-1,e+Il)+1);return e-Il>Il&&n.unshift(wx),e+Il<t-1&&n.push(wx),n.unshift(1),n.push(t),n},Pd=e=>e===wx,hF=e=>Pd(e)?e:bn(e),pF=(e,t)=>Pd(e)?`${e}_${t}`:`${e}`,Lve=({paginator:e,serverId:t,currentQueryString:n=""})=>{const{currentPage:r=0,pagesCount:i=0}=e??{},o=a=>`/server/${t}/list-short-urls/${a}${n}`;if(i<=1)return C("div",{className:"pb-3"});const s=()=>dF(r,i).map((a,l)=>C(ks,{disabled:Pd(a),active:r===a,children:C(Ms,{tag:At,to:o(a),children:hF(a)})},pF(a,l)));return V(S_,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[C(ks,{disabled:r===1,children:C(Ms,{previous:!0,tag:At,to:o(r-1)})}),s(),C(ks,{disabled:r>=i,children:C(Ms,{next:!0,tag:At,to:o(r+1)})})]})},Dve=(e,t)=>ra(({listShortUrls:n,shortUrlsList:r,selectedServer:i,settings:o})=>{var ee,Z,te;const s=Vd(i),{page:a}=Ks(),l=Mn(),[c,f]=k_(),{tags:h,search:p,startDate:m,endDate:g,orderBy:v,tagsMode:w,excludeBots:_,excludePastValidUntil:b,excludeMaxVisitsReached:x}=c,[E,P]=H.useState(v??((ee=o.shortUrlsList)==null?void 0:ee.defaultOrdering)??WE),{pagination:k}=(r==null?void 0:r.shortUrls)??{},N=_??((Z=o.visits)==null?void 0:Z.excludeBots),D=(ne,le)=>{f({orderBy:{field:ne,dir:le}}),P({field:ne,dir:le})},U=ne=>()=>D(ne,s_(ne,E.field,E.dir)),A=ne=>C(Rf,{currentOrder:E,field:ne}),Y=It(ne=>[...new Set([...h,ne])],ne=>f({tags:ne})),q=({field:ne,dir:le})=>Q5(i)&&N&&ne==="visits"?{field:"nonBotVisits",dir:le}:{field:ne,dir:le};return H.useEffect(()=>{n({page:a,searchTerm:p,tags:h,startDate:m,endDate:g,orderBy:q(E),tagsMode:w,excludePastValidUntil:b,excludeMaxVisitsReached:x})},[a,p,h,m,g,E.field,E.dir,w,b,x]),V(Ye,{children:[C(t,{selectedServer:i,shortUrlsAmount:(te=r.shortUrls)==null?void 0:te.pagination.totalItems,order:E,handleOrderBy:D,settings:o,className:"mb-3"}),V(Cr,{body:!0,className:"pb-0",children:[C(e,{selectedServer:i,shortUrlsList:r,orderByColumn:U,renderOrderIcon:A,onTagClick:Y}),C(Lve,{paginator:k,serverId:s,currentQueryString:l.search})]})]})},()=>[Jr.visits]);const Ave=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,selectedServer:o,className:s})=>{const{error:a,loading:l,shortUrls:c}=r,f=ge({"short-urls-table__header-cell--with-action":!!t}),h=ge("short-urls-table__header-cell",f),p=ge("table table-hover responsive-table short-urls-table",s),m=()=>a?C("tr",{children:C("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):l?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!l&&qn(c==null?void 0:c.data)?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.data.map(g=>C(e,{shortUrl:g,selectedServer:o,onTagClick:i},g.shortUrl));return V("table",{className:p,children:[C("thead",{className:"responsive-table__header short-urls-table__header",children:V("tr",{children:[V("th",{className:h,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),V("th",{className:h,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),V("th",{className:"short-urls-table__header-cell",children:[V("span",{className:f,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]})," / ",V("span",{className:f,onClick:t==null?void 0:t("longUrl"),children:[C("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),C("th",{className:"short-urls-table__header-cell",children:"Tags"}),C("th",{className:h,onClick:t==null?void 0:t("visits"),children:V("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),C("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),C("tbody",{children:m()})]})},Ive=(e,t)=>{e.serviceFactory("ShortUrlsList",Dve,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",Ave,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",mge,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.decorator("ShortUrlsRow",t(["settings"])),e.serviceFactory("ShortUrlsRowMenu",gge,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",ige,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",kve,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",jme,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Bme,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>oge),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",uge,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",Nve,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",sge,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("shortUrlsListReducerCreator",Fpe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",ct("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",yge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",ct("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",xge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",ct("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Dpe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",ct("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",_ge,"buildShlinkApiClient"),e.serviceFactory("shortUrlDetailReducer",ct("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",Ipe,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",vge,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",ct("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",Lpe,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",ct("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>N8),e.serviceFactory("getShortUrlDetail",ct("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",wge,"buildShlinkApiClient")},Fve=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:a,deleted:l,errorData:c}=i;return V(Uo,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[C(ro,{toggle:t,className:"text-danger",children:"Delete tag"}),V(Mi,{children:["Are you sure you want to delete tag ",C("b",{children:e}),"?",a&&C(Nr,{type:"error",small:!0,className:"mt-2",children:C(Lo,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),V(ea,{children:[C(mt,{color:"link",onClick:t,children:"Cancel"}),C(mt,{color:"danger",disabled:s,onClick:async()=>{await r(e),t()},children:s?"Deleting tag...":"Delete tag"})]})]})};function D_(){return(D_=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 mF(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 xx(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},Nf=function(e){return"touches"in e},Sx=function(e){return e&&e.ownerDocument.defaultView||self},iL=function(e,t,n){var r=e.getBoundingClientRect(),i=Nf(t)?function(o,s){for(var a=0;a<o.length;a++)if(o[a].identifier===s)return o[a];return o[0]}(t.touches,n):t;return{left:kd((i.pageX-(r.left+Sx(e).pageXOffset))/r.width),top:kd((i.pageY-(r.top+Sx(e).pageYOffset))/r.height)}},oL=function(e){!Nf(e)&&e.preventDefault()},gF=z.memo(function(e){var t=e.onMove,n=e.onKey,r=mF(e,["onMove","onKey"]),i=H.useRef(null),o=xx(t),s=xx(n),a=H.useRef(null),l=H.useRef(!1),c=H.useMemo(function(){var m=function(w){oL(w),(Nf(w)?w.touches.length>0:w.buttons>0)&&i.current?o(iL(i.current,w,a.current)):v(!1)},g=function(){return v(!1)};function v(w){var _=l.current,b=Sx(i.current),x=w?b.addEventListener:b.removeEventListener;x(_?"touchmove":"mousemove",m),x(_?"touchend":"mouseup",g)}return[function(w){var _=w.nativeEvent,b=i.current;if(b&&(oL(_),!function(E,P){return P&&!Nf(E)}(_,l.current)&&b)){if(Nf(_)){l.current=!0;var x=_.changedTouches||[];x.length&&(a.current=x[0].identifier)}b.focus(),o(iL(b,_,a.current)),v(!0)}},function(w){var _=w.which||w.keyCode;_<37||_>40||(w.preventDefault(),s({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},v]},[s,o]),f=c[0],h=c[1],p=c[2];return H.useEffect(function(){return p},[p]),z.createElement("div",D_({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),KE=function(e){return e.filter(Boolean).join(" ")},vF=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=KE(["react-colorful__pointer",e.className]);return z.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},z.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},$ve=function(e){return Vve(Cx(e))},Cx=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}},jve=function(e){return Uve(zve(e))},Bve=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)}},Ex=function(e){var t=Bve(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},zve=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),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:Hn(255*[r,a,s,s,l,r][c]),g:Hn(255*[l,r,r,a,s,s][c]),b:Hn(255*[s,s,l,r,r,a][c]),a:Hn(i,2)}},Fp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Uve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?Fp(Hn(255*i)):"";return"#"+Fp(t)+Fp(n)+Fp(r)+o},Vve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:Hn(60*(a<0?a+6:a)),s:Hn(o?s/o*100:0),v:Hn(o/255*100),a:i}},Hve=z.memo(function(e){var t=e.hue,n=e.onChange,r=KE(["react-colorful__hue",e.className]);return z.createElement("div",{className:r},z.createElement(gF,{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"},z.createElement(vF,{className:"react-colorful__hue-pointer",left:t/360,color:Ex({h:t,s:100,v:100,a:1})})))}),Wve=z.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Ex({h:t.h,s:100,v:100,a:1})};return z.createElement("div",{className:"react-colorful__saturation",style:r},z.createElement(gF,{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)+"%"},z.createElement(vF,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ex(t)})))}),yF=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Yve=function(e,t){return e.toLowerCase()===t.toLowerCase()||yF(Cx(e),Cx(t))};function qve(e,t,n){var r=xx(n),i=H.useState(function(){return e.toHsva(t)}),o=i[0],s=i[1],a=H.useRef({color:t,hsva:o});H.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),H.useEffect(function(){var c;yF(o,a.current.hsva)||e.equal(c=e.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},r(c))},[o,e,r]);var l=H.useCallback(function(c){s(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var Gve=typeof window<"u"?H.useLayoutEffect:H.useEffect,Zve=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},sL=new Map,Kve=function(e){Gve(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!sL.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}`,sL.set(t,n);var r=Zve();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Xve=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,s=mF(e,["className","colorModel","color","onChange"]),a=H.useRef(null);Kve(a);var l=qve(n,i,o),c=l[0],f=l[1],h=KE(["react-colorful",t]);return z.createElement("div",D_({},s,{ref:a,className:h}),z.createElement(Wve,{hsva:c,onChange:f}),z.createElement(Hve,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},Qve={defaultColor:"000",toHsva:$ve,fromHsva:function(e){return jve({h:e.h,s:e.s,v:e.v,a:1})},equal:Yve},Jve=function(e){return z.createElement(Xve,D_({},e,{colorModel:Qve}))};const eye=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[a,l]=H.useState(t),[c,f]=H.useState(e(t)),[h,p,,m]=jt(),{editing:g,error:v,edited:w,errorData:_}=s,b=ih(async()=>{await n({oldName:t,newName:a,color:c}),r()}),x=It(m,()=>w&&i({oldName:t,newName:a,color:c}));return C(Uo,{isOpen:o,toggle:r,centered:!0,onClosed:x,children:V("form",{name:"editTag",onSubmit:b,children:[C(ro,{toggle:r,children:"Edit tag"}),V(Mi,{children:[V(Qd,{children:[C("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:C(je,{icon:sQ,className:"edit-tag-modal__color-icon"})}),C(Kd,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:C(Jve,{color:c,onChange:f})}),C(_d,{value:a,placeholder:"Tag",required:!0,onChange:({target:E})=>l(E.value)})]}),v&&C(Nr,{type:"error",small:!0,className:"mt-2",children:C(Lo,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),V(ea,{children:[C(mt,{type:"button",color:"link",onClick:r,children:"Cancel"}),C(mt,{color:"primary",disabled:g,children:g?"Saving...":"Save"})]})]})})};function tye(e){return z.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},z.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const nye={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},rye=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class iye extends z.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=z.createRef(),this.sizer=z.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);rye.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:s,inputAttributes:a,inputEventHandlers:l,index:c}=this.props;return z.createElement("div",{className:s.searchWrapper},z.createElement("input",Object.assign({},a,l,{ref:this.input,value:n,placeholder:i,className:s.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}})),z.createElement("div",{ref:this.sizer,style:nye},n||i))}}function XE(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function oye(e){return new RegExp(XE(e),"gi")}function sye(e){return new RegExp(`(?:^|\\s)${XE(e)}`,"i")}function aye(e){return new RegExp(`^${XE(e)}$`,"i")}function lye(e,t){const n=oye(t);return e.replace(n,"<mark>$&</mark>")}function cye({item:e,query:t}){return z.createElement("span",{dangerouslySetInnerHTML:{__html:lye(e.name,t)}})}function uye(e){const t=e.suggestionComponent||cye,n=e.options.map((r,i)=>{const o=`${e.id}-${i}`,s=[];return e.index===i&&s.push(e.classNames.suggestionActive),r.disabled&&s.push(e.classNames.suggestionDisabled),z.createElement("li",{id:o,key:o,role:"option",className:s.join(" "),"aria-disabled":Boolean(r.disabled),onMouseDown:a=>a.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?z.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:z.createElement(t,{item:r,query:e.query}))});return z.createElement("div",{className:e.classNames.suggestions},z.createElement("ul",{role:"listbox",id:e.id},n))}function fye(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 ka={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},_F={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 bF(e,t){return e.findIndex(n=>aye(t).test(n.name))}function Yb(){if(this.state.query.length>=this.props.minQueryLength){const e=bF(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 dye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function hye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function pye(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function mye(e,t){return sye(t).test(e.name)}function gye(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&&bF(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 QE extends z.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=z.createRef(),this.input=z.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?Yb.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(),Yb.call(this)),t.key===ka.BACKSPACE&&this.props.allowBackspace&&pye.call(this,t),(t.key===ka.UP_ARROW||t.key===ka.UP_ARROW_COMPAT)&&dye.call(this,t),(t.key===ka.DOWN_ARROW||t.key===ka.DOWN_ARROW_COMPAT)&&hye.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&&Yb.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&fye(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||tye,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},_F,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),z.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},z.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,s)=>z.createElement(t,{key:s,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,s)}))),z.createElement("div",{className:r.search},z.createElement(iye,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?z.createElement(uye,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:gye(t,n)}:null}}QE.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:mye,suggestionsTransform:null,autoresize:!0,classNames:_F,delimiters:[ka.TAB,ka.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};QE.propTypes={id:S.string,tags:S.arrayOf(S.object),placeholderText:S.string,ariaLabelText:S.string,removeButtonText:S.string,noSuggestionsText:S.string,newTagText:S.string,suggestions:S.arrayOf(S.object),suggestionsFilter:S.func,suggestionsTransform:S.func,autoresize:S.bool,delimiters:S.arrayOf(S.string),onDelete:S.func.isRequired,onAddition:S.func.isRequired,onInput:S.func,onFocus:S.func,onBlur:S.func,onValidate:S.func,minQueryLength:S.number,maxSuggestionsLength:S.number,classNames:S.object,allowNew:S.bool,allowBackspace:S.bool,addOnBlur:S.bool,tagComponent:S.oneOfType([S.func,S.element]),suggestionComponent:S.oneOfType([S.func,S.element]),inputAttributes:S.object};const wF=({tag:e,colorGenerator:t})=>C("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),aL=e=>({id:e,name:e}),vye=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,settings:s,allowNew:a=!0})=>{var h;H.useEffect(()=>{i()},[]);const l=((h=s.shortUrlCreation)==null?void 0:h.tagFilteringMode)??"startsWith",c=({tag:p,onDelete:m})=>C(qE,{colorGenerator:e,text:p.name,clearable:!0,className:"react-tags__tag",onClose:m}),f=({item:p})=>V(Ye,{children:[C(wF,{tag:`${p.name}`,colorGenerator:e}),p.name]});return C(QE,{tags:t.map(aL),tagComponent:c,suggestions:o.tags.filter(p=>!t.includes(p)).map(aL),suggestionComponent:f,allowNew:a,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(p,m)=>m.filter(({name:g})=>g.includes(p)):void 0,onDelete:p=>{const m=[...t];m.splice(p,1),n(m)},onAddition:({name:p})=>n([...new Set([...t,...p.toLowerCase().split(",")])])})},Tx="shlink/tagDelete",yye={deleting:!1,deleted:!1,error:!1},xF=wn(`${Tx}/tagDeleted`),_ye=e=>{const t=ir(`${Tx}/deleteTag`,async(r,{getState:i})=>{const{deleteTags:o}=e(i);await o([r])}),{reducer:n}=Gn({name:Tx,initialState:yye,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:no(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},JE="shlink/tagEdit",bye={editing:!1,edited:!1,error:!1},SF=wn(`${JE}/tagEdited`),wye=(e,t)=>ir(`${JE}/editTag`,async({oldName:n,newName:r,color:i},{getState:o})=>(await e(o).editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),xye=e=>Gn({name:JE,initialState:bye,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:no(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...PI(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),eT="shlink/tagsList",qb={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},lL=(e,t)=>n=>n===e?t:n,cL=(e,t)=>Ud(n=>n===t,e),Sye=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const o=n[r];return{...n,[r]:{...o,visitsCount:o.visitsCount+i}}},{...t}),Cye=e=>Object.entries(e.reduce((t,{shortUrl:n})=>(n==null||n.tags.forEach(r=>{t[r]=(t[r]||0)+1}),t),{})),Eye=(e,t=!0)=>ir(`${eT}/listTags`,async(n,{getState:r})=>{const{tagsList:i}=r();if(!t&&!qn(i.tags))return i;const{listTags:o}=e(r),{tags:s,stats:a=[]}=await o(),l=a.reduce((c,{tag:f,shortUrlsCount:h,visitsCount:p})=>(c[f]={shortUrlsCount:h,visitsCount:p},c),{});return{tags:s,stats:l}}),CF=wn(`${eT}/filterTags`),Tye=(e,t)=>Gn({name:eT,initialState:qb,reducers:{},extraReducers:n=>{n.addCase(CF,(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})=>({...qb,error:!0,errorData:no(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...qb,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(xF,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:cL(r,s),filteredTags:cL(i,s)})),n.addCase(SF,({tags:r,filteredTags:i,stats:o,...s},{payload:a})=>({...s,stats:{...o,[a.newName]:o[a.oldName]},tags:r.map(lL(a.oldName,a.newName)).sort(),filteredTags:i.map(lL(a.oldName,a.newName)).sort()})),n.addCase(ch,(r,{payload:i})=>({...r,stats:Sye(Cye(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),Oye=e=>ra(({filterTags:t,forceListTags:n,tagsList:r,selectedServer:i,settings:o})=>{var h;const[s,a]=H.useState(((h=o.tags)==null?void 0:h.defaultOrdering)??{}),l=It(()=>r.filteredTags.map(p=>{var m,g;return{tag:p,shortUrls:((m=r.stats[p])==null?void 0:m.shortUrlsCount)??0,visits:((g=r.stats[p])==null?void 0:g.visitsCount)??0}}),p=>MI(p,s));if(H.useEffect(()=>{n()},[]),r.loading)return C(So,{loading:!0});if(r.error)return C(Nr,{type:"error",children:C(Lo,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const c=p=>()=>{const m=s_(p,s.field,s.dir);a({field:m?p:void 0,dir:m})};return V(Ye,{children:[C(sh,{className:"mb-3",onChange:t}),C(ur,{className:"mb-3",children:C("div",{className:"col-lg-6 offset-lg-6",children:C(hh,{items:j8,order:s,onChange:(p,m)=>a({field:p,dir:m})})})}),(()=>{if(r.filteredTags.length<1)return C(So,{children:"No tags found"});const p=l();return C(e,{sortedTags:p,selectedServer:i,currentOrder:s,orderByColumn:c})})()]})},()=>[Jr.visits]);const tT=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Pd(o)&&n(o);return V(S_,{listClassName:ge("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[C(ks,{disabled:t<=1,children:C(Ms,{previous:!0,tag:"span",onClick:i(t-1)})}),dF(t,e).map((o,s)=>C(ks,{disabled:Pd(o),active:t===o,children:C(Ms,{role:"link",tag:"span",onClick:i(o),children:hF(o)})},pF(o,s))),C(ks,{disabled:t>=e,children:C(Ms,{next:!0,tag:"span",onClick:i(t+1)})})]})};const Pye=20,kye=e=>({sortedTags:t,selectedServer:n,orderByColumn:r,currentOrder:i})=>{const o=H.useRef(!0),{search:s}=Mn(),{page:a=1}=dl(s),[l,c]=Coe("page",Number(a)),f=ld(Pye,t),h=f.length>1,p=f[l-1]??[];return H.useEffect(()=>{!o.current&&c(1),o.current=!1},[t]),H.useEffect(()=>{scrollTo(0,0)},[l]),V(vn,{bodyClassName:h?"pb-1":"",children:[V("table",{className:"table table-hover responsive-table mb-0",children:[V("thead",{className:"responsive-table__header",children:[V("tr",{children:[V("th",{className:"tags-table__header-cell",onClick:r("tag"),children:["Tag ",C(Rf,{currentOrder:i,field:"tag"})]}),V("th",{className:"tags-table__header-cell text-lg-end",onClick:r("shortUrls"),children:["Short URLs ",C(Rf,{currentOrder:i,field:"shortUrls"})]}),V("th",{className:"tags-table__header-cell text-lg-end",onClick:r("visits"),children:["Visits ",C(Rf,{currentOrder:i,field:"visits"})]}),C("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),C("tr",{children:C("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),V("tbody",{children:[p.length===0&&C("tr",{children:C("td",{colSpan:4,className:"text-center",children:"No results found"})}),p.map(m=>C(e,{tag:m,selectedServer:n},m.tag))]})]}),h&&C("div",{className:"sticky-card-paginator",children:C(tT,{pagesCount:f.length,currentPage:l,setCurrentPage:c})})]},l)},Mye=(e,t,n)=>({tag:r,selectedServer:i})=>{const[o,s]=jt(),[a,l]=jt(),[c,f]=jt(),h=Vd(i);return V("tr",{className:"responsive-table__row",children:[V("th",{className:"responsive-table__cell","data-th":"Tag",children:[C(wF,{tag:r.tag,colorGenerator:n})," ",r.tag]}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:C(At,{to:`/server/${h}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:bn(r.shortUrls)})}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:C(At,{to:`/server/${h}/tag/${r.tag}/visits`,children:bn(r.visits)})}),C("td",{className:"responsive-table__cell text-lg-end",children:V(T_,{toggle:f,isOpen:c,children:[V(Ve,{onClick:l,children:[C(je,{icon:GX,fixedWidth:!0,className:"me-1"})," Edit"]}),V(Ve,{onClick:s,children:[C(je,{icon:uQ,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),C(t,{tag:r.tag,toggle:l,isOpen:a}),C(e,{tag:r.tag,toggle:s,isOpen:o})]})},Rye=(e,t)=>{e.serviceFactory("TagsSelector",vye,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>Fve),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",eye,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",Mye,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",kye,"TagsTableRow"),e.serviceFactory("TagsList",Oye,"TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",xye,"editTag"),e.serviceFactory("tagEditReducer",ct("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",_ye,"buildShlinkApiClient"),e.serviceFactory("tagDeleteReducer",ct("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Tye,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",ct("reducer"),"tagsListReducerCreator");const n=r=>({buildShlinkApiClient:i})=>Eye(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>CF),e.serviceFactory("deleteTag",ct("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>xF),e.serviceFactory("editTag",wye,"buildShlinkApiClient","ColorGenerator"),e.serviceFactory("tagEdited",()=>SF)};var Nye="Expected a function",EF="__lodash_hash_undefined__",TF=1/0,Lye="[object Function]",Dye="[object GeneratorFunction]",Aye="[object Symbol]",Iye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fye=/^\w*$/,$ye=/^\./,jye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bye=/[\\^$.*+?()[\]{}|]/g,zye=/\\(\\)?/g,Uye=/^\[object .+?Constructor\]$/,Vye=typeof Bl=="object"&&Bl&&Bl.Object===Object&&Bl,Hye=typeof self=="object"&&self&&self.Object===Object&&self,nT=Vye||Hye||Function("return this")();function Wye(e,t){return e==null?void 0:e[t]}function Yye(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var qye=Array.prototype,Gye=Function.prototype,OF=Object.prototype,Gb=nT["__core-js_shared__"],uL=function(){var e=/[^.]+$/.exec(Gb&&Gb.keys&&Gb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),PF=Gye.toString,rT=OF.hasOwnProperty,kF=OF.toString,Zye=RegExp("^"+PF.call(rT).replace(Bye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fL=nT.Symbol,Kye=qye.splice,Xye=MF(nT,"Map"),Md=MF(Object,"create"),dL=fL?fL.prototype:void 0,hL=dL?dL.toString:void 0;function al(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 Qye(){this.__data__=Md?Md(null):{}}function Jye(e){return this.has(e)&&delete this.__data__[e]}function e_e(e){var t=this.__data__;if(Md){var n=t[e];return n===EF?void 0:n}return rT.call(t,e)?t[e]:void 0}function t_e(e){var t=this.__data__;return Md?t[e]!==void 0:rT.call(t,e)}function n_e(e,t){var n=this.__data__;return n[e]=Md&&t===void 0?EF:t,this}al.prototype.clear=Qye;al.prototype.delete=Jye;al.prototype.get=e_e;al.prototype.has=t_e;al.prototype.set=n_e;function iu(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 r_e(){this.__data__=[]}function i_e(e){var t=this.__data__,n=A_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Kye.call(t,n,1),!0}function o_e(e){var t=this.__data__,n=A_(t,e);return n<0?void 0:t[n][1]}function s_e(e){return A_(this.__data__,e)>-1}function a_e(e,t){var n=this.__data__,r=A_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}iu.prototype.clear=r_e;iu.prototype.delete=i_e;iu.prototype.get=o_e;iu.prototype.has=s_e;iu.prototype.set=a_e;function ml(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 l_e(){this.__data__={hash:new al,map:new(Xye||iu),string:new al}}function c_e(e){return I_(this,e).delete(e)}function u_e(e){return I_(this,e).get(e)}function f_e(e){return I_(this,e).has(e)}function d_e(e,t){return I_(this,e).set(e,t),this}ml.prototype.clear=l_e;ml.prototype.delete=c_e;ml.prototype.get=u_e;ml.prototype.has=f_e;ml.prototype.set=d_e;function A_(e,t){for(var n=e.length;n--;)if(S_e(e[n][0],t))return n;return-1}function h_e(e,t){t=v_e(t,e)?[t]:g_e(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[w_e(t[n++])];return n&&n==r?e:void 0}function p_e(e){if(!NF(e)||__e(e))return!1;var t=C_e(e)||Yye(e)?Zye:Uye;return t.test(x_e(e))}function m_e(e){if(typeof e=="string")return e;if(oT(e))return hL?hL.call(e):"";var t=e+"";return t=="0"&&1/e==-TF?"-0":t}function g_e(e){return RF(e)?e:b_e(e)}function I_(e,t){var n=e.__data__;return y_e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function MF(e,t){var n=Wye(e,t);return p_e(n)?n:void 0}function v_e(e,t){if(RF(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||oT(e)?!0:Fye.test(e)||!Iye.test(e)||t!=null&&e in Object(t)}function y_e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function __e(e){return!!uL&&uL in e}var b_e=iT(function(e){e=T_e(e);var t=[];return $ye.test(e)&&t.push(""),e.replace(jye,function(n,r,i,o){t.push(i?o.replace(zye,"$1"):r||n)}),t});function w_e(e){if(typeof e=="string"||oT(e))return e;var t=e+"";return t=="0"&&1/e==-TF?"-0":t}function x_e(e){if(e!=null){try{return PF.call(e)}catch{}try{return e+""}catch{}}return""}function iT(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(Nye);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 s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(iT.Cache||ml),n}iT.Cache=ml;function S_e(e,t){return e===t||e!==e&&t!==t}var RF=Array.isArray;function C_e(e){var t=NF(e)?kF.call(e):"";return t==Lye||t==Dye}function NF(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function E_e(e){return!!e&&typeof e=="object"}function oT(e){return typeof e=="symbol"||E_e(e)&&kF.call(e)==Aye}function T_e(e){return e==null?"":m_e(e)}function O_e(e,t,n){var r=e==null?void 0:h_e(e,t);return r===void 0?n:r}var pL=O_e;function Zb(e){return e==null?"":`${e}`}function P_e(e={}){return e.separator?e.decimals?t=>t.toFixed(e.decimals).replace(".",e.separator):t=>`${t}`.replace(".",e.separator):e.decimals?t=>t.toFixed(e.decimals):t=>`${t}`}function sT(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 k_e(e={stringFormatter:sT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function M_e(e={stringFormatter:sT()}){return t=>t===null||(t=JSON.stringify(t),t===void 0)?"":(t[0]==='"'&&(t=t.replace(/^"(.+)"$/,"$1")),e.stringFormatter(t))}function mL(e,t,n){const r=e[t];return r===void 0?n:r}function LF(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Ox(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}class R_e{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||sT(),i=M_e({stringFormatter:r}),o={header:r,undefined:Zb,boolean:Zb,number:P_e(),bigint:Zb,string:r,symbol:k_e({stringFormatter:r}),function:i,object:i};return n.formatters={...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=>pL(i,r,n):i=>mL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string")return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?o=>pL(o,r.value,i):o=>mL(o,r.value,i)};if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i};return{label:o,value(a){const l=r.value(a,s);return l??i}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Ox(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(LF,[]),[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 Ox(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){return this.opts.formatters[typeof t](t)}}class N_e extends R_e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,a)=>(Object.keys(a).forEach(l=>{s.includes(l)||s.push(l)}),s),[]));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&&(n.length===0||typeof n[0]!="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(LF,[])}processData(t){return Ox(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 gL;(function(e){e[e.LEFT_BRACE=1]="LEFT_BRACE",e[e.RIGHT_BRACE=2]="RIGHT_BRACE",e[e.LEFT_BRACKET=3]="LEFT_BRACKET",e[e.RIGHT_BRACKET=4]="RIGHT_BRACKET",e[e.COLON=5]="COLON",e[e.COMMA=6]="COMMA",e[e.TRUE=7]="TRUE",e[e.FALSE=8]="FALSE",e[e.NULL=9]="NULL",e[e.STRING=10]="STRING",e[e.NUMBER=11]="NUMBER",e[e.SEPARATOR=12]="SEPARATOR"})(gL||(gL={}));var vL;(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"})(vL||(vL={}));var yL;(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"})(yL||(yL={}));var _L;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(_L||(_L={}));var L_e=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 s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(g){var v=[];for(var w in g)v.push(w);return v};e.exports=h;var o=n(5);o.inherits=n(2);var s=n(23),a=n(14);o.inherits(h,s);for(var l=i(a.prototype),c=0;c<l.length;c++){var f=l[c];h.prototype[f]||(h.prototype[f]=a.prototype[f])}function h(g){if(!(this instanceof h))return new h(g);s.call(this,g),a.call(this,g),g&&g.readable===!1&&(this.readable=!1),g&&g.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,g&&g.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(m,this)}function m(g){g.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(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),h.prototype._destroy=function(g,v){this.push(null),this.end(),r.nextTick(v,g)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var i=n(38),o=n(39),s=n(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(O,R){if(a()<R)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(O=new Uint8Array(R)).__proto__=c.prototype:(O===null&&(O=new c(R)),O.length=R),O}function c(O,R,F){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(O,R,F);if(typeof O=="number"){if(typeof R=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,O)}return f(this,O,R,F)}function f(O,R,F,Q){if(typeof R=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&R instanceof ArrayBuffer?function(X,ae,ve,De){if(ae.byteLength,ve<0||ae.byteLength<ve)throw new RangeError("'offset' is out of bounds");if(ae.byteLength<ve+(De||0))throw new RangeError("'length' is out of bounds");return ae=ve===void 0&&De===void 0?new Uint8Array(ae):De===void 0?new Uint8Array(ae,ve):new Uint8Array(ae,ve,De),c.TYPED_ARRAY_SUPPORT?(X=ae).__proto__=c.prototype:X=m(X,ae),X}(O,R,F,Q):typeof R=="string"?function(X,ae,ve){if(typeof ve=="string"&&ve!==""||(ve="utf8"),!c.isEncoding(ve))throw new TypeError('"encoding" must be a valid string encoding');var De=0|v(ae,ve),fe=(X=l(X,De)).write(ae,ve);return fe!==De&&(X=X.slice(0,fe)),X}(O,R,F):function(X,ae){if(c.isBuffer(ae)){var ve=0|g(ae.length);return(X=l(X,ve)).length===0||ae.copy(X,0,0,ve),X}if(ae){if(typeof ArrayBuffer<"u"&&ae.buffer instanceof ArrayBuffer||"length"in ae)return typeof ae.length!="number"||function(De){return De!=De}(ae.length)?l(X,0):m(X,ae);if(ae.type==="Buffer"&&s(ae.data))return m(X,ae.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(O,R)}function h(O){if(typeof O!="number")throw new TypeError('"size" argument must be a number');if(O<0)throw new RangeError('"size" argument must not be negative')}function p(O,R){if(h(R),O=l(O,R<0?0:0|g(R)),!c.TYPED_ARRAY_SUPPORT)for(var F=0;F<R;++F)O[F]=0;return O}function m(O,R){var F=R.length<0?0:0|g(R.length);O=l(O,F);for(var Q=0;Q<F;Q+=1)O[Q]=255&R[Q];return O}function g(O){if(O>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|O}function v(O,R){if(c.isBuffer(O))return O.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(O)||O instanceof ArrayBuffer))return O.byteLength;typeof O!="string"&&(O=""+O);var F=O.length;if(F===0)return 0;for(var Q=!1;;)switch(R){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":case void 0:return re(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return se(O).length;default:if(Q)return re(O).length;R=(""+R).toLowerCase(),Q=!0}}function w(O,R,F){var Q=O[R];O[R]=O[F],O[F]=Q}function _(O,R,F,Q,X){if(O.length===0)return-1;if(typeof F=="string"?(Q=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,isNaN(F)&&(F=X?0:O.length-1),F<0&&(F=O.length+F),F>=O.length){if(X)return-1;F=O.length-1}else if(F<0){if(!X)return-1;F=0}if(typeof R=="string"&&(R=c.from(R,Q)),c.isBuffer(R))return R.length===0?-1:b(O,R,F,Q,X);if(typeof R=="number")return R&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(O,R,F):Uint8Array.prototype.lastIndexOf.call(O,R,F):b(O,[R],F,Q,X);throw new TypeError("val must be string, number or Buffer")}function b(O,R,F,Q,X){var ae,ve=1,De=O.length,fe=R.length;if(Q!==void 0&&((Q=String(Q).toLowerCase())==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(O.length<2||R.length<2)return-1;ve=2,De/=2,fe/=2,F/=2}function ye(Ne,Le){return ve===1?Ne[Le]:Ne.readUInt16BE(Le*ve)}if(X){var be=-1;for(ae=F;ae<De;ae++)if(ye(O,ae)===ye(R,be===-1?0:ae-be)){if(be===-1&&(be=ae),ae-be+1===fe)return be*ve}else be!==-1&&(ae-=ae-be),be=-1}else for(F+fe>De&&(F=De-fe),ae=F;ae>=0;ae--){for(var Oe=!0,Ae=0;Ae<fe;Ae++)if(ye(O,ae+Ae)!==ye(R,Ae)){Oe=!1;break}if(Oe)return ae}return-1}function x(O,R,F,Q){F=Number(F)||0;var X=O.length-F;Q?(Q=Number(Q))>X&&(Q=X):Q=X;var ae=R.length;if(ae%2!=0)throw new TypeError("Invalid hex string");Q>ae/2&&(Q=ae/2);for(var ve=0;ve<Q;++ve){var De=parseInt(R.substr(2*ve,2),16);if(isNaN(De))return ve;O[F+ve]=De}return ve}function E(O,R,F,Q){return me(re(R,O.length-F),O,F,Q)}function P(O,R,F,Q){return me(function(X){for(var ae=[],ve=0;ve<X.length;++ve)ae.push(255&X.charCodeAt(ve));return ae}(R),O,F,Q)}function k(O,R,F,Q){return P(O,R,F,Q)}function N(O,R,F,Q){return me(se(R),O,F,Q)}function D(O,R,F,Q){return me(function(X,ae){for(var ve,De,fe,ye=[],be=0;be<X.length&&!((ae-=2)<0);++be)De=(ve=X.charCodeAt(be))>>8,fe=ve%256,ye.push(fe),ye.push(De);return ye}(R,O.length-F),O,F,Q)}function U(O,R,F){return R===0&&F===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(R,F))}function A(O,R,F){F=Math.min(O.length,F);for(var Q=[],X=R;X<F;){var ae,ve,De,fe,ye=O[X],be=null,Oe=ye>239?4:ye>223?3:ye>191?2:1;if(X+Oe<=F)switch(Oe){case 1:ye<128&&(be=ye);break;case 2:(192&(ae=O[X+1]))==128&&(fe=(31&ye)<<6|63&ae)>127&&(be=fe);break;case 3:ae=O[X+1],ve=O[X+2],(192&ae)==128&&(192&ve)==128&&(fe=(15&ye)<<12|(63&ae)<<6|63&ve)>2047&&(fe<55296||fe>57343)&&(be=fe);break;case 4:ae=O[X+1],ve=O[X+2],De=O[X+3],(192&ae)==128&&(192&ve)==128&&(192&De)==128&&(fe=(15&ye)<<18|(63&ae)<<12|(63&ve)<<6|63&De)>65535&&fe<1114112&&(be=fe)}be===null?(be=65533,Oe=1):be>65535&&(be-=65536,Q.push(be>>>10&1023|55296),be=56320|1023&be),Q.push(be),X+=Oe}return function(Ae){var Ne=Ae.length;if(Ne<=Y)return String.fromCharCode.apply(String,Ae);for(var Le="",ue=0;ue<Ne;)Le+=String.fromCharCode.apply(String,Ae.slice(ue,ue+=Y));return Le}(Q)}t.Buffer=c,t.SlowBuffer=function(O){return+O!=O&&(O=0),c.alloc(+O)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.foo()===42&&typeof O.subarray=="function"&&O.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(O){return O.__proto__=c.prototype,O},c.from=function(O,R,F){return f(null,O,R,F)},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(O,R,F){return function(Q,X,ae,ve){return h(X),X<=0?l(Q,X):ae!==void 0?typeof ve=="string"?l(Q,X).fill(ae,ve):l(Q,X).fill(ae):l(Q,X)}(null,O,R,F)},c.allocUnsafe=function(O){return p(null,O)},c.allocUnsafeSlow=function(O){return p(null,O)},c.isBuffer=function(O){return!(O==null||!O._isBuffer)},c.compare=function(O,R){if(!c.isBuffer(O)||!c.isBuffer(R))throw new TypeError("Arguments must be Buffers");if(O===R)return 0;for(var F=O.length,Q=R.length,X=0,ae=Math.min(F,Q);X<ae;++X)if(O[X]!==R[X]){F=O[X],Q=R[X];break}return F<Q?-1:Q<F?1:0},c.isEncoding=function(O){switch(String(O).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(O,R){if(!s(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return c.alloc(0);var F;if(R===void 0)for(R=0,F=0;F<O.length;++F)R+=O[F].length;var Q=c.allocUnsafe(R),X=0;for(F=0;F<O.length;++F){var ae=O[F];if(!c.isBuffer(ae))throw new TypeError('"list" argument must be an Array of Buffers');ae.copy(Q,X),X+=ae.length}return Q},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;R<O;R+=2)w(this,R,R+1);return this},c.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var R=0;R<O;R+=4)w(this,R,R+3),w(this,R+1,R+2);return this},c.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var R=0;R<O;R+=8)w(this,R,R+7),w(this,R+1,R+6),w(this,R+2,R+5),w(this,R+3,R+4);return this},c.prototype.toString=function(){var O=0|this.length;return O===0?"":arguments.length===0?A(this,0,O):function(R,F,Q){var X=!1;if((F===void 0||F<0)&&(F=0),F>this.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(F>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return Z(this,F,Q);case"utf8":case"utf-8":return A(this,F,Q);case"ascii":return q(this,F,Q);case"latin1":case"binary":return ee(this,F,Q);case"base64":return U(this,F,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,F,Q);default:if(X)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),X=!0}}.apply(this,arguments)},c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){var O="",R=t.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,R).match(/.{2}/g).join(" "),this.length>R&&(O+=" ... ")),"<Buffer "+O+">"},c.prototype.compare=function(O,R,F,Q,X){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(R===void 0&&(R=0),F===void 0&&(F=O?O.length:0),Q===void 0&&(Q=0),X===void 0&&(X=this.length),R<0||F>O.length||Q<0||X>this.length)throw new RangeError("out of range index");if(Q>=X&&R>=F)return 0;if(Q>=X)return-1;if(R>=F)return 1;if(R>>>=0,F>>>=0,Q>>>=0,X>>>=0,this===O)return 0;for(var ae=X-Q,ve=F-R,De=Math.min(ae,ve),fe=this.slice(Q,X),ye=O.slice(R,F),be=0;be<De;++be)if(fe[be]!==ye[be]){ae=fe[be],ve=ye[be];break}return ae<ve?-1:ve<ae?1:0},c.prototype.includes=function(O,R,F){return this.indexOf(O,R,F)!==-1},c.prototype.indexOf=function(O,R,F){return _(this,O,R,F,!0)},c.prototype.lastIndexOf=function(O,R,F){return _(this,O,R,F,!1)},c.prototype.write=function(O,R,F,Q){if(R===void 0)Q="utf8",F=this.length,R=0;else if(F===void 0&&typeof R=="string")Q=R,F=this.length,R=0;else{if(!isFinite(R))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");R|=0,isFinite(F)?(F|=0,Q===void 0&&(Q="utf8")):(Q=F,F=void 0)}var X=this.length-R;if((F===void 0||F>X)&&(F=X),O.length>0&&(F<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var ae=!1;;)switch(Q){case"hex":return x(this,O,R,F);case"utf8":case"utf-8":return E(this,O,R,F);case"ascii":return P(this,O,R,F);case"latin1":case"binary":return k(this,O,R,F);case"base64":return N(this,O,R,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,O,R,F);default:if(ae)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),ae=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Y=4096;function q(O,R,F){var Q="";F=Math.min(O.length,F);for(var X=R;X<F;++X)Q+=String.fromCharCode(127&O[X]);return Q}function ee(O,R,F){var Q="";F=Math.min(O.length,F);for(var X=R;X<F;++X)Q+=String.fromCharCode(O[X]);return Q}function Z(O,R,F){var Q=O.length;(!R||R<0)&&(R=0),(!F||F<0||F>Q)&&(F=Q);for(var X="",ae=R;ae<F;++ae)X+=G(O[ae]);return X}function te(O,R,F){for(var Q=O.slice(R,F),X="",ae=0;ae<Q.length;ae+=2)X+=String.fromCharCode(Q[ae]+256*Q[ae+1]);return X}function ne(O,R,F){if(O%1!=0||O<0)throw new RangeError("offset is not uint");if(O+R>F)throw new RangeError("Trying to access beyond buffer length")}function le(O,R,F,Q,X,ae){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>X||R<ae)throw new RangeError('"value" argument is out of bounds');if(F+Q>O.length)throw new RangeError("Index out of range")}function K(O,R,F,Q){R<0&&(R=65535+R+1);for(var X=0,ae=Math.min(O.length-F,2);X<ae;++X)O[F+X]=(R&255<<8*(Q?X:1-X))>>>8*(Q?X:1-X)}function $(O,R,F,Q){R<0&&(R=4294967295+R+1);for(var X=0,ae=Math.min(O.length-F,4);X<ae;++X)O[F+X]=R>>>8*(Q?X:3-X)&255}function I(O,R,F,Q,X,ae){if(F+Q>O.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function B(O,R,F,Q,X){return X||I(O,0,F,4),o.write(O,R,F,Q,23,4),F+4}function ie(O,R,F,Q,X){return X||I(O,0,F,8),o.write(O,R,F,Q,52,8),F+8}c.prototype.slice=function(O,R){var F,Q=this.length;if(O=~~O,R=R===void 0?Q:~~R,O<0?(O+=Q)<0&&(O=0):O>Q&&(O=Q),R<0?(R+=Q)<0&&(R=0):R>Q&&(R=Q),R<O&&(R=O),c.TYPED_ARRAY_SUPPORT)(F=this.subarray(O,R)).__proto__=c.prototype;else{var X=R-O;F=new c(X,void 0);for(var ae=0;ae<X;++ae)F[ae]=this[ae+O]}return F},c.prototype.readUIntLE=function(O,R,F){O|=0,R|=0,F||ne(O,R,this.length);for(var Q=this[O],X=1,ae=0;++ae<R&&(X*=256);)Q+=this[O+ae]*X;return Q},c.prototype.readUIntBE=function(O,R,F){O|=0,R|=0,F||ne(O,R,this.length);for(var Q=this[O+--R],X=1;R>0&&(X*=256);)Q+=this[O+--R]*X;return Q},c.prototype.readUInt8=function(O,R){return R||ne(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,R){return R||ne(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,R){return R||ne(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,R){return R||ne(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,R){return R||ne(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,R,F){O|=0,R|=0,F||ne(O,R,this.length);for(var Q=this[O],X=1,ae=0;++ae<R&&(X*=256);)Q+=this[O+ae]*X;return Q>=(X*=128)&&(Q-=Math.pow(2,8*R)),Q},c.prototype.readIntBE=function(O,R,F){O|=0,R|=0,F||ne(O,R,this.length);for(var Q=R,X=1,ae=this[O+--Q];Q>0&&(X*=256);)ae+=this[O+--Q]*X;return ae>=(X*=128)&&(ae-=Math.pow(2,8*R)),ae},c.prototype.readInt8=function(O,R){return R||ne(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,R){R||ne(O,2,this.length);var F=this[O]|this[O+1]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt16BE=function(O,R){R||ne(O,2,this.length);var F=this[O+1]|this[O]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt32LE=function(O,R){return R||ne(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,R){return R||ne(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,R){return R||ne(O,4,this.length),o.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,R){return R||ne(O,4,this.length),o.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,R){return R||ne(O,8,this.length),o.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,R){return R||ne(O,8,this.length),o.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,R,F,Q){O=+O,R|=0,F|=0,Q||le(this,O,R,F,Math.pow(2,8*F)-1,0);var X=1,ae=0;for(this[R]=255&O;++ae<F&&(X*=256);)this[R+ae]=O/X&255;return R+F},c.prototype.writeUIntBE=function(O,R,F,Q){O=+O,R|=0,F|=0,Q||le(this,O,R,F,Math.pow(2,8*F)-1,0);var X=F-1,ae=1;for(this[R+X]=255&O;--X>=0&&(ae*=256);)this[R+X]=O/ae&255;return R+F},c.prototype.writeUInt8=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,1,255,0),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[R]=255&O,R+1},c.prototype.writeUInt16LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):K(this,O,R,!0),R+2},c.prototype.writeUInt16BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):K(this,O,R,!1),R+2},c.prototype.writeUInt32LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R+3]=O>>>24,this[R+2]=O>>>16,this[R+1]=O>>>8,this[R]=255&O):$(this,O,R,!0),R+4},c.prototype.writeUInt32BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeIntLE=function(O,R,F,Q){if(O=+O,R|=0,!Q){var X=Math.pow(2,8*F-1);le(this,O,R,F,X-1,-X)}var ae=0,ve=1,De=0;for(this[R]=255&O;++ae<F&&(ve*=256);)O<0&&De===0&&this[R+ae-1]!==0&&(De=1),this[R+ae]=(O/ve>>0)-De&255;return R+F},c.prototype.writeIntBE=function(O,R,F,Q){if(O=+O,R|=0,!Q){var X=Math.pow(2,8*F-1);le(this,O,R,F,X-1,-X)}var ae=F-1,ve=1,De=0;for(this[R+ae]=255&O;--ae>=0&&(ve*=256);)O<0&&De===0&&this[R+ae+1]!==0&&(De=1),this[R+ae]=(O/ve>>0)-De&255;return R+F},c.prototype.writeInt8=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,1,127,-128),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[R]=255&O,R+1},c.prototype.writeInt16LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):K(this,O,R,!0),R+2},c.prototype.writeInt16BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):K(this,O,R,!1),R+2},c.prototype.writeInt32LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8,this[R+2]=O>>>16,this[R+3]=O>>>24):$(this,O,R,!0),R+4},c.prototype.writeInt32BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeFloatLE=function(O,R,F){return B(this,O,R,!0,F)},c.prototype.writeFloatBE=function(O,R,F){return B(this,O,R,!1,F)},c.prototype.writeDoubleLE=function(O,R,F){return ie(this,O,R,!0,F)},c.prototype.writeDoubleBE=function(O,R,F){return ie(this,O,R,!1,F)},c.prototype.copy=function(O,R,F,Q){if(F||(F=0),Q||Q===0||(Q=this.length),R>=O.length&&(R=O.length),R||(R=0),Q>0&&Q<F&&(Q=F),Q===F||O.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("sourceStart out of bounds");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),O.length-R<Q-F&&(Q=O.length-R+F);var X,ae=Q-F;if(this===O&&F<R&&R<Q)for(X=ae-1;X>=0;--X)O[X+R]=this[X+F];else if(ae<1e3||!c.TYPED_ARRAY_SUPPORT)for(X=0;X<ae;++X)O[X+R]=this[X+F];else Uint8Array.prototype.set.call(O,this.subarray(F,F+ae),R);return ae},c.prototype.fill=function(O,R,F,Q){if(typeof O=="string"){if(typeof R=="string"?(Q=R,R=0,F=this.length):typeof F=="string"&&(Q=F,F=this.length),O.length===1){var X=O.charCodeAt(0);X<256&&(O=X)}if(Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!c.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q)}else typeof O=="number"&&(O&=255);if(R<0||this.length<R||this.length<F)throw new RangeError("Out of range index");if(F<=R)return this;var ae;if(R>>>=0,F=F===void 0?this.length:F>>>0,O||(O=0),typeof O=="number")for(ae=R;ae<F;++ae)this[ae]=O;else{var ve=c.isBuffer(O)?O:re(new c(O,Q).toString()),De=ve.length;for(ae=0;ae<F-R;++ae)this[ae+R]=ve[ae%De]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(O){return O<16?"0"+O.toString(16):O.toString(16)}function re(O,R){var F;R=R||1/0;for(var Q=O.length,X=null,ae=[],ve=0;ve<Q;++ve){if((F=O.charCodeAt(ve))>55295&&F<57344){if(!X){if(F>56319){(R-=3)>-1&&ae.push(239,191,189);continue}if(ve+1===Q){(R-=3)>-1&&ae.push(239,191,189);continue}X=F;continue}if(F<56320){(R-=3)>-1&&ae.push(239,191,189),X=F;continue}F=65536+(X-55296<<10|F-56320)}else X&&(R-=3)>-1&&ae.push(239,191,189);if(X=null,F<128){if((R-=1)<0)break;ae.push(F)}else if(F<2048){if((R-=2)<0)break;ae.push(F>>6|192,63&F|128)}else if(F<65536){if((R-=3)<0)break;ae.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;ae.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return ae}function se(O){return i.toByteArray(function(R){if((R=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(R).replace(W,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(O))}function me(O,R,F,Q){for(var X=0;X<Q&&!(X+F>=R.length||X>=O.length);++X)R[X+F]=O[X];return X}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(w){if(n===setTimeout)return setTimeout(w,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&m())}function m(){if(!f){var w=a(p);f=!0;for(var _=c.length;_;){for(l=c,c=[];++h<_;)l&&l[h].run();h=-1,_=c.length}l=null,f=!1,function(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(w)}}function g(w,_){this.fun=w,this.array=_}function v(){}i.nextTick=function(w){var _=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)_[b-1]=arguments[b];c.push(new g(w,_)),c.length!==1||f||a(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){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,s,a){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,s)});case 4:return r.nextTick(function(){i.call(null,o,s,a)});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(a,l){for(var c in a)l[c]=a[c]}function s(a,l,c){return i(a,l,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(a,l,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,l,c)},s.alloc=function(a,l,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return l!==void 0?typeof c=="string"?f.fill(l,c):f.fill(l):f.fill(0),f},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}},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 s=i.length;s--;)if(r(i[s][0],o))return s;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var s=i.__data__;return r(o)?s[typeof o=="string"?"string":"hash"]:s.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function s(a,l){this._id=a,this._clearFn=l}t.setTimeout=function(){return new s(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(a){a&&a.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(a,l){clearTimeout(a._idleTimeoutId),a._idleTimeout=l},t.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},t._unrefActive=t.active=function(a){clearTimeout(a._idleTimeoutId);var l=a._idleTimeout;l>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._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(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(a){return typeof a=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var a,l,c,f,h,p;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((a=arguments[1])instanceof Error)throw a;var m=new Error('Uncaught, unspecified "error" event. ('+a+")");throw m.context=a,m}if(o(l=this._events[s]))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(s,a){var l;if(!r(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,r(a.listener)?a.listener:a),this._events[s]?i(this._events[s])?this._events[s].push(a):this._events[s]=[this._events[s],a]:this._events[s]=a,i(this._events[s])&&!this._events[s].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[s].length>l&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,a){if(!r(a))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(s,c),l||(l=!0,a.apply(this,arguments))}return c.listener=a,this.on(s,c),this},n.prototype.removeListener=function(s,a){var l,c,f,h;if(!r(a))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(f=(l=this._events[s]).length,c=-1,l===a||r(l.listener)&&l.listener===a)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,a);else if(i(l)){for(h=f;h-- >0;)if(l[h]===a||l[h].listener&&l[h].listener===a){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[s]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",s,a)}return this},n.prototype.removeAllListeners=function(s){var a,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(a in this._events)a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[s]))this.removeListener(s,l);else if(l)for(;l.length;)this.removeListener(s,l[l.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var a=this._events[s];if(r(a))return 1;if(a)return a.length}return 0},n.listenerCount=function(s,a){return s.listenerCount(a)}},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 s=n(6);function a(A){var Y=this;this.next=null,this.entry=null,this.finish=function(){(function(q,ee,Z){var te=q.entry;for(q.entry=null;te;){var ne=te.callback;ee.pendingcb--,ne(void 0),te=te.next}ee.corkedRequestsFree?ee.corkedRequestsFree.next=q:ee.corkedRequestsFree=q})(Y,A)}}e.exports=x;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;x.WritableState=b;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},m=n(24),g=n(7).Buffer,v=o.Uint8Array||function(){},w=n(25);function _(){}function b(A,Y){l=l||n(1),A=A||{};var q=Y instanceof l;this.objectMode=!!A.objectMode,q&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var ee=A.highWaterMark,Z=A.writableHighWaterMark,te=this.objectMode?16:16384;this.highWaterMark=ee||ee===0?ee:q&&(Z||Z===0)?Z:te,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 ne=A.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){(function(K,$){var I=K._writableState,B=I.sync,ie=I.writecb;if(function(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}(I),$)(function(G,re,se,me,O){--re.pendingcb,se?(s.nextTick(O,me),s.nextTick(U,G,re),G._writableState.errorEmitted=!0,G.emit("error",me)):(O(me),G._writableState.errorEmitted=!0,G.emit("error",me),U(G,re))})(K,I,B,$,ie);else{var W=N(I);W||I.corked||I.bufferProcessing||!I.bufferedRequest||k(K,I),B?c(P,K,I,W,ie):P(K,I,W,ie)}})(Y,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 a(this)}function x(A){if(l=l||n(1),!(h.call(x,this)||this instanceof l))return new x(A);this._writableState=new b(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),m.call(this)}function E(A,Y,q,ee,Z,te,ne){Y.writelen=ee,Y.writecb=ne,Y.writing=!0,Y.sync=!0,q?A._writev(Z,Y.onwrite):A._write(Z,te,Y.onwrite),Y.sync=!1}function P(A,Y,q,ee){q||function(Z,te){te.length===0&&te.needDrain&&(te.needDrain=!1,Z.emit("drain"))}(A,Y),Y.pendingcb--,ee(),U(A,Y)}function k(A,Y){Y.bufferProcessing=!0;var q=Y.bufferedRequest;if(A._writev&&q&&q.next){var ee=Y.bufferedRequestCount,Z=new Array(ee),te=Y.corkedRequestsFree;te.entry=q;for(var ne=0,le=!0;q;)Z[ne]=q,q.isBuf||(le=!1),q=q.next,ne+=1;Z.allBuffers=le,E(A,Y,!0,Y.length,Z,"",te.finish),Y.pendingcb++,Y.lastBufferedRequest=null,te.next?(Y.corkedRequestsFree=te.next,te.next=null):Y.corkedRequestsFree=new a(Y),Y.bufferedRequestCount=0}else{for(;q;){var K=q.chunk,$=q.encoding,I=q.callback;if(E(A,Y,!1,Y.objectMode?1:K.length,K,$,I),q=q.next,Y.bufferedRequestCount--,Y.writing)break}q===null&&(Y.lastBufferedRequest=null)}Y.bufferedRequest=q,Y.bufferProcessing=!1}function N(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function D(A,Y){A._final(function(q){Y.pendingcb--,q&&A.emit("error",q),Y.prefinished=!0,A.emit("prefinish"),U(A,Y)})}function U(A,Y){var q=N(Y);return q&&(function(ee,Z){Z.prefinished||Z.finalCalled||(typeof ee._final=="function"?(Z.pendingcb++,Z.finalCalled=!0,s.nextTick(D,ee,Z)):(Z.prefinished=!0,ee.emit("prefinish")))}(A,Y),Y.pendingcb===0&&(Y.finished=!0,A.emit("finish"))),q}f.inherits(x,m),b.prototype.getBuffer=function(){for(var A=this.bufferedRequest,Y=[];A;)Y.push(A),A=A.next;return Y},function(){try{Object.defineProperty(b.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(A){return!!h.call(this,A)||this===x&&A&&A._writableState instanceof b}})):h=function(A){return A instanceof this},x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},x.prototype.write=function(A,Y,q){var ee=this._writableState,Z=!1,te=!ee.objectMode&&function(ne){return g.isBuffer(ne)||ne instanceof v}(A);return te&&!g.isBuffer(A)&&(A=function(ne){return g.from(ne)}(A)),typeof Y=="function"&&(q=Y,Y=null),te?Y="buffer":Y||(Y=ee.defaultEncoding),typeof q!="function"&&(q=_),ee.ended?function(ne,le){var K=new Error("write after end");ne.emit("error",K),s.nextTick(le,K)}(this,q):(te||function(ne,le,K,$){var I=!0,B=!1;return K===null?B=new TypeError("May not write null values to stream"):typeof K=="string"||K===void 0||le.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(ne.emit("error",B),s.nextTick($,B),I=!1),I}(this,ee,A,q))&&(ee.pendingcb++,Z=function(ne,le,K,$,I,B){if(!K){var ie=function(se,me,O){return se.objectMode||se.decodeStrings===!1||typeof me!="string"||(me=g.from(me,O)),me}(le,$,I);$!==ie&&(K=!0,I="buffer",$=ie)}var W=le.objectMode?1:$.length;le.length+=W;var G=le.length<le.highWaterMark;if(G||(le.needDrain=!0),le.writing||le.corked){var re=le.lastBufferedRequest;le.lastBufferedRequest={chunk:$,encoding:I,isBuf:K,callback:B,next:null},re?re.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else E(ne,le,!1,W,$,I,B);return G}(this,ee,te,A,Y,q)),Z},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.finished||A.bufferProcessing||!A.bufferedRequest||k(this,A))},x.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(A,Y,q){q(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(A,Y,q){var ee=this._writableState;typeof A=="function"?(q=A,A=null,Y=null):typeof Y=="function"&&(q=Y,Y=null),A!=null&&this.write(A,Y),ee.corked&&(ee.corked=1,this.uncork()),ee.ending||ee.finished||function(Z,te,ne){te.ending=!0,U(Z,te),ne&&(te.finished?s.nextTick(ne):Z.once("finish",ne)),te.ended=!0,Z.writable=!1}(this,ee,q)},Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),x.prototype.destroy=w.destroy,x.prototype._undestroy=w.undestroy,x.prototype._destroy=function(A,Y){this.end(),Y(A)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(a,l,c){function f(m,g){if(!l[m]){if(!a[m]){var v=typeof _dereq_=="function"&&_dereq_;if(!g&&v)return v(m,!0);if(h)return h(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var _=l[m]={exports:{}};a[m][0].call(_.exports,function(b){return f(a[m][1][b]||b)},_,_.exports,s,a,l,c)}return l[m].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p<c.length;p++)f(c[p]);return f}({1:[function(s,a,l){a.exports=function(c){var f=c._SomePromiseArray;function h(p){var m=new f(p),g=m.promise();return m.setHowMany(1),m.setUnwrap(),m.init(),g}c.any=function(p){return h(p)},c.prototype.any=function(){return h(this)}}},{}],2:[function(s,a,l){var c;try{throw new Error}catch(_){c=_}var f=s("./schedule"),h=s("./queue"),p=s("./util");function m(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new h(16),this._normalQueue=new h(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var _=this;this.drainQueues=function(){_._drainQueues()},this._schedule=f}function g(_,b,x){this._lateQueue.push(_,b,x),this._queueTick()}function v(_,b,x){this._normalQueue.push(_,b,x),this._queueTick()}function w(_){this._normalQueue._pushOne(_),this._queueTick()}m.prototype.setScheduler=function(_){var b=this._schedule;return this._schedule=_,this._customScheduler=!0,b},m.prototype.hasCustomScheduler=function(){return this._customScheduler},m.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},m.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},m.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},m.prototype.fatalError=function(_,b){b?(r.stderr.write("Fatal "+(_ instanceof Error?_.stack:_)+`
|
||
`),r.exit(2)):this.throwLater(_)},m.prototype.throwLater=function(_,b){if(arguments.length===1&&(b=_,_=function(){throw b}),typeof setTimeout<"u")setTimeout(function(){_(b)},0);else try{this._schedule(function(){_(b)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(m.prototype.invokeLater=function(_,b,x){this._trampolineEnabled?g.call(this,_,b,x):this._schedule(function(){setTimeout(function(){_.call(b,x)},100)})},m.prototype.invoke=function(_,b,x){this._trampolineEnabled?v.call(this,_,b,x):this._schedule(function(){_.call(b,x)})},m.prototype.settlePromises=function(_){this._trampolineEnabled?w.call(this,_):this._schedule(function(){_._settlePromises()})}):(m.prototype.invokeLater=g,m.prototype.invoke=v,m.prototype.settlePromises=w),m.prototype._drainQueue=function(_){for(;_.length()>0;){var b=_.shift();if(typeof b=="function"){var x=_.shift(),E=_.shift();b.call(x,E)}else b._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},a.exports=m,a.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,a,l){a.exports=function(c,f,h,p){var m=!1,g=function(b,x){this._reject(x)},v=function(b,x){x.promiseRejectionQueued=!0,x.bindingPromise._then(g,g,null,this,b)},w=function(b,x){!(50397184&this._bitField)&&this._resolveCallback(x.target)},_=function(b,x){x.promiseRejectionQueued||this._reject(b)};c.prototype.bind=function(b){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var x=h(b),E=new c(f);E._propagateFrom(this,1);var P=this._target();if(E._setBoundTo(x),x instanceof c){var k={promiseRejectionQueued:!1,promise:E,target:P,bindingPromise:x};P._then(f,v,void 0,E,k),x._then(w,_,void 0,E,k),E._setOnCancel(x)}else E._resolveCallback(P);return E},c.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(b,x){return c.resolve(x).bind(b)}}},{}],4:[function(s,a,l){var c;typeof Promise<"u"&&(c=Promise);var f=s("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},a.exports=f},{"./promise":22}],5:[function(s,a,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}a.exports=function(p){var m=s("./util"),g=m.canEvaluate;function v(b){return function(x,E){var P;if(x!=null&&(P=x[E]),typeof P!="function"){var k="Object "+m.classString(x)+" has no method '"+m.toString(E)+"'";throw new p.TypeError(k)}return P}(b,this.pop()).apply(b,this)}function w(b){return b[this]}function _(b){var x=+this;return x<0&&(x=Math.max(0,x+b.length)),b[x]}m.isIdentifier,p.prototype.call=function(b){var x=[].slice.call(arguments,1);return x.push(b),this._then(v,void 0,void 0,x,void 0)},p.prototype.get=function(b){var x;if(typeof b=="number")x=_;else if(g){var E=(void 0)(b);x=E!==null?E:w}else x=w;return this._then(x,void 0,void 0,b,void 0)}}},{"./util":36}],6:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),g=m.tryCatch,v=m.errorObj,w=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,b=_;_._isCancellable();){if(!_._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var x=_._cancellationParent;if(x==null||!x._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),b=_,_=x}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(_){return _===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(),w.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){if(m.isArray(_))for(var x=0;x<_.length;++x)this._doInvokeOnCancel(_[x],b);else if(_!==void 0)if(typeof _=="function"){if(!b){var E=g(_).call(this._boundValue());E===v&&(this._attachExtraTrace(E.e),w.throwLater(E.e))}}else _._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,_)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=s("./es5").keys,p=f.tryCatch,m=f.errorObj;return function(g,v,w){return function(_){var b=w._boundValue();e:for(var x=0;x<g.length;++x){var E=g[x];if(E===Error||E!=null&&E.prototype instanceof Error){if(_ instanceof E)return p(v).call(b,_)}else if(typeof E=="function"){var P=p(E).call(b,_);if(P===m)return P;if(P)return p(v).call(b,_)}else if(f.isObject(_)){for(var k=h(E),N=0;N<k.length;++N){var D=k[N];if(E[D]!=_[D])continue e}return p(v).call(b,_)}}return c}}}},{"./es5":13,"./util":36}],8:[function(s,a,l){a.exports=function(c){var f=!1,h=[];function p(){this._trace=new p.CapturedTrace(m())}function m(){var g=h.length-1;if(g>=0)return h[g]}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 g=h.pop(),v=g._promiseCreated;return g._promiseCreated=null,v}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var g=c.prototype._pushContext,v=c.prototype._popContext,w=c._peekContext,_=c.prototype._peekContext,b=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=g,c.prototype._popContext=v,c._peekContext=w,c.prototype._peekContext=_,c.prototype._promiseCreated=b,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var x=this._peekContext();x&&x._promiseCreated==null&&(x._promiseCreated=this)}},p}},{}],9:[function(s,a,l){a.exports=function(c,f){var h,p,m,g=c._getDomain,v=c._async,w=s("./errors").Warning,_=s("./util"),b=_.canAttachTrace,x=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,E=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,N=null,D=!1,U=_.env("BLUEBIRD_DEBUG")!=0,A=!(_.env("BLUEBIRD_WARNINGS")==0||!U&&!_.env("BLUEBIRD_WARNINGS")),Y=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!U&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),q=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ue=this._target();ue._bitField=-1048577&ue._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ue=this;setTimeout(function(){ue._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ve("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 ue=this._settledValue();this._setUnhandledRejectionIsNotified(),ve("unhandledRejection",p,ue,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(ue,he,we){return F(ue,he,we||this)},c.onPossiblyUnhandledRejection=function(ue){var he=g();p=typeof ue=="function"?he===null?ue:_.domainBind(he,ue):void 0},c.onUnhandledRejectionHandled=function(ue){var he=g();h=typeof ue=="function"?he===null?ue:_.domainBind(he,ue):void 0};var ee=function(){};c.longStackTraces=function(){if(v.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!Le.longStackTraces&&fe()){var ue=c.prototype._captureStackTrace,he=c.prototype._attachExtraTrace;Le.longStackTraces=!0,ee=function(){if(v.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);c.prototype._captureStackTrace=ue,c.prototype._attachExtraTrace=he,f.deactivateLongStackTraces(),v.enableTrampoline(),Le.longStackTraces=!1},c.prototype._captureStackTrace=O,c.prototype._attachExtraTrace=R,f.activateLongStackTraces(),v.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Le.longStackTraces&&fe()};var Z=function(){try{if(typeof CustomEvent=="function"){var ue=new CustomEvent("CustomEvent");return _.global.dispatchEvent(ue),function(he,we){var _e=new CustomEvent(he.toLowerCase(),{detail:we,cancelable:!0});return!_.global.dispatchEvent(_e)}}return typeof Event=="function"?(ue=new Event("CustomEvent"),_.global.dispatchEvent(ue),function(he,we){var _e=new Event(he.toLowerCase(),{cancelable:!0});return _e.detail=we,!_.global.dispatchEvent(_e)}):((ue=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(ue),function(he,we){var _e=document.createEvent("CustomEvent");return _e.initCustomEvent(he.toLowerCase(),!1,!0,we),!_.global.dispatchEvent(_e)})}catch{}return function(){return!1}}(),te=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(ue){var he="on"+ue.toLowerCase(),we=_.global[he];return!!we&&(we.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ne(ue,he){return{promise:he}}var le={promiseCreated:ne,promiseFulfilled:ne,promiseRejected:ne,promiseResolved:ne,promiseCancelled:ne,promiseChained:function(ue,he,we){return{promise:he,child:we}},warning:function(ue,he){return{warning:he}},unhandledRejection:function(ue,he,we){return{reason:he,promise:we}},rejectionHandled:ne},K=function(ue){var he=!1;try{he=te.apply(null,arguments)}catch(_e){v.throwLater(_e),he=!0}var we=!1;try{we=Z(ue,le[ue].apply(null,arguments))}catch(_e){v.throwLater(_e),we=!0}return we||he};function $(){return!1}function I(ue,he,we){var _e=this;try{ue(he,we,function(Ee){if(typeof Ee!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(Ee));_e._attachCancellationCallback(Ee)})}catch(Ee){return Ee}}function B(ue){if(!this._isCancellable())return this;var he=this._onCancel();he!==void 0?_.isArray(he)?he.push(ue):this._setOnCancel([he,ue]):this._setOnCancel(ue)}function ie(){return this._onCancelField}function W(ue){this._onCancelField=ue}function G(){this._cancellationParent=void 0,this._onCancelField=void 0}function re(ue,he){if(1&he){this._cancellationParent=ue;var we=ue._branchesRemainingToCancel;we===void 0&&(we=0),ue._branchesRemainingToCancel=we+1}2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)}c.config=function(ue){if("longStackTraces"in(ue=Object(ue))&&(ue.longStackTraces?c.longStackTraces():!ue.longStackTraces&&c.hasLongStackTraces()&&ee()),"warnings"in ue){var he=ue.warnings;Le.warnings=!!he,q=Le.warnings,_.isObject(he)&&"wForgottenReturn"in he&&(q=!!he.wForgottenReturn)}if("cancellation"in ue&&ue.cancellation&&!Le.cancellation){if(v.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=G,c.prototype._propagateFrom=re,c.prototype._onCancel=ie,c.prototype._setOnCancel=W,c.prototype._attachCancellationCallback=B,c.prototype._execute=I,se=re,Le.cancellation=!0}return"monitoring"in ue&&(ue.monitoring&&!Le.monitoring?(Le.monitoring=!0,c.prototype._fireEvent=K):!ue.monitoring&&Le.monitoring&&(Le.monitoring=!1,c.prototype._fireEvent=$)),c},c.prototype._fireEvent=$,c.prototype._execute=function(ue,he,we){try{ue(he,we)}catch(_e){return _e}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ue){},c.prototype._attachCancellationCallback=function(ue){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ue,he){};var se=function(ue,he){2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)};function me(){var ue=this._boundTo;return ue!==void 0&&ue instanceof c?ue.isFulfilled()?ue.value():void 0:ue}function O(){this._trace=new Ae(this._peekContext())}function R(ue,he){if(b(ue)){var we=this._trace;if(we!==void 0&&he&&(we=we._parent),we!==void 0)we.attachExtraTrace(ue);else if(!ue.__stackCleaned__){var _e=X(ue);_.notEnumerableProp(ue,"stack",_e.message+`
|
||
`+_e.stack.join(`
|
||
`)),_.notEnumerableProp(ue,"__stackCleaned__",!0)}}}function F(ue,he,we){if(Le.warnings){var _e,Ee=new w(ue);if(he)we._attachExtraTrace(Ee);else if(Le.longStackTraces&&(_e=c._peekContext()))_e.attachExtraTrace(Ee);else{var Me=X(Ee);Ee.stack=Me.message+`
|
||
`+Me.stack.join(`
|
||
`)}K("warning",Ee)||ae(Ee,"",!0)}}function Q(ue){for(var he=[],we=0;we<ue.length;++we){var _e=ue[we],Ee=_e===" (No stack trace)"||k.test(_e),Me=Ee&&ye(_e);Ee&&!Me&&(D&&_e.charAt(0)!==" "&&(_e=" "+_e),he.push(_e))}return he}function X(ue){var he=ue.stack,we=ue.toString();return he=typeof he=="string"&&he.length>0?function(_e){for(var Ee=_e.stack.replace(/\s+$/g,"").split(`
|
||
`),Me=0;Me<Ee.length;++Me){var Fe=Ee[Me];if(Fe===" (No stack trace)"||k.test(Fe))break}return Me>0&&_e.name!="SyntaxError"&&(Ee=Ee.slice(Me)),Ee}(ue):[" (No stack trace)"],{message:we,stack:ue.name=="SyntaxError"?he:Q(he)}}function ae(ue,he,we){if(typeof console<"u"){var _e;if(_.isObject(ue)){var Ee=ue.stack;_e=he+N(Ee,ue)}else _e=he+String(ue);typeof m=="function"?m(_e,we):typeof console.log!="function"&&typeof console.log!="object"||console.log(_e)}}function ve(ue,he,we,_e){var Ee=!1;try{typeof he=="function"&&(Ee=!0,ue==="rejectionHandled"?he(_e):he(we,_e))}catch(Me){v.throwLater(Me)}ue==="unhandledRejection"?K(ue,we,_e)||Ee||ae(we,"Unhandled rejection "):K(ue,_e)}function De(ue){var he;if(typeof ue=="function")he="[function "+(ue.name||"anonymous")+"]";else{if(he=ue&&typeof ue.toString=="function"?ue.toString():_.toString(ue),/\[object [a-zA-Z0-9$_]+\]/.test(he))try{he=JSON.stringify(ue)}catch{}he.length===0&&(he="(empty array)")}return"(<"+function(we){return we.length<41?we:we.substr(0,38)+"..."}(he)+">, no stack trace)"}function fe(){return typeof Ne=="function"}var ye=function(){return!1},be=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Oe(ue){var he=ue.match(be);if(he)return{fileName:he[1],line:parseInt(he[2],10)}}function Ae(ue){this._parent=ue,this._promisesCreated=0;var he=this._length=1+(ue===void 0?0:ue._length);Ne(this,Ae),he>32&&this.uncycle()}_.inherits(Ae,Error),f.CapturedTrace=Ae,Ae.prototype.uncycle=function(){var ue=this._length;if(!(ue<2)){for(var he=[],we={},_e=0,Ee=this;Ee!==void 0;++_e)he.push(Ee),Ee=Ee._parent;for(_e=(ue=this._length=_e)-1;_e>=0;--_e){var Me=he[_e].stack;we[Me]===void 0&&(we[Me]=_e)}for(_e=0;_e<ue;++_e){var Fe=we[he[_e].stack];if(Fe!==void 0&&Fe!==_e){Fe>0&&(he[Fe-1]._parent=void 0,he[Fe-1]._length=1),he[_e]._parent=void 0,he[_e]._length=1;var tt=_e>0?he[_e-1]:this;Fe<ue-1?(tt._parent=he[Fe+1],tt._parent.uncycle(),tt._length=tt._parent._length+1):(tt._parent=void 0,tt._length=1);for(var nt=tt._length+1,Ke=_e-2;Ke>=0;--Ke)he[Ke]._length=nt,nt++;return}}}},Ae.prototype.attachExtraTrace=function(ue){if(!ue.__stackCleaned__){this.uncycle();for(var he=X(ue),we=he.message,_e=[he.stack],Ee=this;Ee!==void 0;)_e.push(Q(Ee.stack.split(`
|
||
`))),Ee=Ee._parent;(function(Me){for(var Fe=Me[0],tt=1;tt<Me.length;++tt){for(var nt=Me[tt],Ke=Fe.length-1,qt=Fe[Ke],zt=-1,Sn=nt.length-1;Sn>=0;--Sn)if(nt[Sn]===qt){zt=Sn;break}for(Sn=zt;Sn>=0;--Sn){var or=nt[Sn];if(Fe[Ke]!==or)break;Fe.pop(),Ke--}Fe=nt}})(_e),function(Me){for(var Fe=0;Fe<Me.length;++Fe)(Me[Fe].length===0||Fe+1<Me.length&&Me[Fe][0]===Me[Fe+1][0])&&(Me.splice(Fe,1),Fe--)}(_e),_.notEnumerableProp(ue,"stack",function(Me,Fe){for(var tt=0;tt<Fe.length-1;++tt)Fe[tt].push("From previous event:"),Fe[tt]=Fe[tt].join(`
|
||
`);return tt<Fe.length&&(Fe[tt]=Fe[tt].join(`
|
||
`)),Me+`
|
||
`+Fe.join(`
|
||
`)}(we,_e)),_.notEnumerableProp(ue,"__stackCleaned__",!0)}};var Ne=function(){var ue=/^\s*at\s*/,he=function(Me,Fe){return typeof Me=="string"?Me:Fe.name!==void 0&&Fe.message!==void 0?Fe.toString():De(Fe)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,k=ue,N=he;var we=Error.captureStackTrace;return ye=function(Me){return x.test(Me)},function(Me,Fe){Error.stackTraceLimit+=6,we(Me,Fe),Error.stackTraceLimit-=6}}var _e,Ee=new Error;if(typeof Ee.stack=="string"&&Ee.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return k=/@/,N=he,D=!0,function(Me){Me.stack=new Error().stack};try{throw new Error}catch(Me){_e="stack"in Me}return"stack"in Ee||!_e||typeof Error.stackTraceLimit!="number"?(N=function(Me,Fe){return typeof Me=="string"?Me:typeof Fe!="object"&&typeof Fe!="function"||Fe.name===void 0||Fe.message===void 0?De(Fe):Fe.toString()},null):(k=ue,N=he,function(Me){Error.stackTraceLimit+=6;try{throw new Error}catch(Fe){Me.stack=Fe.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ue){console.warn(ue)},_.isNode&&r.stderr.isTTY?m=function(ue,he){var we=he?"\x1B[33m":"\x1B[31m";console.warn(we+ue+`\x1B[0m
|
||
`)}:_.isNode||typeof new Error().stack!="string"||(m=function(ue,he){console.warn("%c"+ue,he?"color: darkorange":"color: red")}));var Le={warnings:A,longStackTraces:!1,cancellation:!1,monitoring:!1};return Y&&c.longStackTraces(),{longStackTraces:function(){return Le.longStackTraces},warnings:function(){return Le.warnings},cancellation:function(){return Le.cancellation},monitoring:function(){return Le.monitoring},propagateFromFunction:function(){return se},boundValueFunction:function(){return me},checkForgottenReturns:function(ue,he,we,_e,Ee){if(ue===void 0&&he!==null&&q){if(Ee!==void 0&&Ee._returnedNonUndefined()||!(65535&_e._bitField))return;we&&(we+=" ");var Me="",Fe="";if(he._trace){for(var tt=he._trace.stack.split(`
|
||
`),nt=Q(tt),Ke=nt.length-1;Ke>=0;--Ke){var qt=nt[Ke];if(!E.test(qt)){var zt=qt.match(P);zt&&(Me="at "+zt[1]+":"+zt[2]+":"+zt[3]+" ");break}}if(nt.length>0){var Sn=nt[0];for(Ke=0;Ke<tt.length;++Ke)if(tt[Ke]===Sn){Ke>0&&(Fe=`
|
||
`+tt[Ke-1]);break}}}var or="a promise was created in a "+we+"handler "+Me+"but was not returned from it, see http://goo.gl/rRqMUw"+Fe;_e._warn(or,!0,he)}},setBounds:function(ue,he){if(fe()){for(var we,_e,Ee=ue.stack.split(`
|
||
`),Me=he.stack.split(`
|
||
`),Fe=-1,tt=-1,nt=0;nt<Ee.length;++nt)if(Ke=Oe(Ee[nt])){we=Ke.fileName,Fe=Ke.line;break}for(nt=0;nt<Me.length;++nt){var Ke;if(Ke=Oe(Me[nt])){_e=Ke.fileName,tt=Ke.line;break}}Fe<0||tt<0||!we||!_e||we!==_e||Fe>=tt||(ye=function(qt){if(x.test(qt))return!0;var zt=Oe(qt);return!!(zt&&zt.fileName===we&&Fe<=zt.line&&zt.line<=tt)})}},warn:F,deprecated:function(ue,he){var we=ue+" is deprecated and will be removed in a future version.";return he&&(we+=" Use "+he+" instead."),F(we)},CapturedTrace:Ae,fireDomEvent:Z,fireGlobalEvent:te}}},{"./errors":12,"./util":36}],10:[function(s,a,l){a.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 m=arguments[1];return this.caught(p,function(){throw m})},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 m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(s,a,l){a.exports=function(c,f){var h=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(g){return h(this,g,f,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(g){return h(this,g,f,f)},c.each=function(g,v){return h(g,v,f,0)._then(m,void 0,void 0,g,void 0)},c.mapSeries=function(g,v){return h(g,v,f,f)}}},{}],12:[function(s,a,l){var c,f,h=s("./es5"),p=h.freeze,m=s("./util"),g=m.inherits,v=m.notEnumerableProp;function w(A,Y){function q(ee){if(!(this instanceof q))return new q(ee);v(this,"message",typeof ee=="string"?ee:Y),v(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return g(q,Error),q}var _=w("Warning","warning"),b=w("CancellationError","cancellation error"),x=w("TimeoutError","timeout error"),E=w("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=w("TypeError","type error"),f=w("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k<P.length;++k)typeof Array.prototype[P[k]]=="function"&&(E.prototype[P[k]]=Array.prototype[P[k]]);h.defineProperty(E.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),E.prototype.isOperational=!0;var N=0;function D(A){if(!(this instanceof D))return new D(A);v(this,"name","OperationalError"),v(this,"message",A),this.cause=A,this.isOperational=!0,A instanceof Error?(v(this,"message",A.message),v(this,"stack",A.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}E.prototype.toString=function(){var A=Array(4*N+1).join(" "),Y=`
|
||
`+A+`AggregateError of:
|
||
`;N++,A=Array(4*N+1).join(" ");for(var q=0;q<this.length;++q){for(var ee=this[q]===this?"[Circular AggregateError]":this[q]+"",Z=ee.split(`
|
||
`),te=0;te<Z.length;++te)Z[te]=A+Z[te];Y+=(ee=Z.join(`
|
||
`))+`
|
||
`}return N--,Y},g(D,Error);var U=Error.__BluebirdErrorTypes__;U||(U=p({CancellationError:b,TimeoutError:x,OperationalError:D,RejectionError:D,AggregateError:E}),h.defineProperty(Error,"__BluebirdErrorTypes__",{value:U,writable:!1,enumerable:!1,configurable:!1})),a.exports={Error,TypeError:c,RangeError:f,CancellationError:U.CancellationError,OperationalError:U.OperationalError,TimeoutError:U.TimeoutError,AggregateError:U.AggregateError,Warning:_}},{"./es5":13,"./util":36}],13:[function(s,a,l){var c=function(){return this===void 0}();if(c)a.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(g,v){var w=Object.getOwnPropertyDescriptor(g,v);return!(w&&!w.writable&&!w.set)}};else{var f={}.hasOwnProperty,h={}.toString,p={}.constructor.prototype,m=function(g){var v=[];for(var w in g)f.call(g,w)&&v.push(w);return v};a.exports={isArray:function(g){try{return h.call(g)==="[object Array]"}catch{return!1}},keys:m,names:m,defineProperty:function(g,v,w){return g[v]=w.value,g},getDescriptor:function(g,v){return{value:g[v]}},freeze:function(g){return g},getPrototypeOf:function(g){try{return Object(g).constructor.prototype}catch{return p}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(s,a,l){a.exports=function(c,f){var h=c.map;c.prototype.filter=function(p,m){return h(this,p,m,f)},c.filter=function(p,m,g){return h(p,m,g,f)}}},{}],15:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.CancellationError,g=p.errorObj,v=s("./catch_filter")(h);function w(k,N,D){this.promise=k,this.type=N,this.handler=D,this.called=!1,this.cancelPromise=null}function _(k){this.finallyHandler=k}function b(k,N){return k.cancelPromise!=null&&(arguments.length>1?k.cancelPromise._reject(N):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function x(){return P.call(this,this.promise._target()._settledValue())}function E(k){if(!b(this,k))return g.e=k,g}function P(k){var N=this.promise,D=this.handler;if(!this.called){this.called=!0;var U=this.isFinallyHandler()?D.call(N._boundValue()):D.call(N._boundValue(),k);if(U===h)return U;if(U!==void 0){N._setReturnedNonUndefined();var A=f(U,N);if(A instanceof c){if(this.cancelPromise!=null){if(A._isCancelled()){var Y=new m("late cancellation observer");return N._attachExtraTrace(Y),g.e=Y,g}A.isPending()&&A._attachCancellationCallback(new _(this))}return A._then(x,E,void 0,this,void 0)}}}return N.isRejected()?(b(this),g.e=k,g):(b(this),k)}return w.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){b(this.finallyHandler)},c.prototype._passThrough=function(k,N,D,U){return typeof k!="function"?this.then():this._then(D,U,void 0,new w(this,N,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,P,P)},c.prototype.tap=function(k){return this._passThrough(k,1,P)},c.prototype.tapCatch=function(k){var N=arguments.length;if(N===1)return this._passThrough(k,1,void 0,P);var D,U=new Array(N-1),A=0;for(D=0;D<N-1;++D){var Y=arguments[D];if(!p.isObject(Y))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(Y)));U[A++]=Y}U.length=A;var q=arguments[D];return this._passThrough(v(U,q,this),1,void 0,P)},w}},{"./catch_filter":7,"./util":36}],16:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=s("./errors").TypeError,w=s("./util"),_=w.errorObj,b=w.tryCatch,x=[];function E(P,k,N,D){if(g.cancellation()){var U=new c(h),A=this._finallyPromise=new c(h);this._promise=U.lastly(function(){return A}),U._captureStackTrace(),U._setOnCancel(this)}else(this._promise=new c(h))._captureStackTrace();this._stack=D,this._generatorFunction=P,this._receiver=k,this._generator=void 0,this._yieldHandlers=typeof N=="function"?[N].concat(x):x,this._yieldedPromise=null,this._cancellationPhase=!1}w.inherits(E,m),E.prototype._isResolved=function(){return this._promise===null},E.prototype._cleanup=function(){this._promise=this._generator=null,g.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},E.prototype._promiseCancelled=function(){if(!this._isResolved()){var P;if(this._generator.return!==void 0)this._promise._pushContext(),P=b(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var k=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=k,this._promise._attachExtraTrace(k),this._promise._pushContext(),P=b(this._generator.throw).call(this._generator,k),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(P)}},E.prototype._promiseFulfilled=function(P){this._yieldedPromise=null,this._promise._pushContext();var k=b(this._generator.next).call(this._generator,P);this._promise._popContext(),this._continue(k)},E.prototype._promiseRejected=function(P){this._yieldedPromise=null,this._promise._attachExtraTrace(P),this._promise._pushContext();var k=b(this._generator.throw).call(this._generator,P);this._promise._popContext(),this._continue(k)},E.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var P=this._yieldedPromise;this._yieldedPromise=null,P.cancel()}},E.prototype.promise=function(){return this._promise},E.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},E.prototype._continue=function(P){var k=this._promise;if(P===_)return this._cleanup(),this._cancellationPhase?k.cancel():k._rejectCallback(P.e,!1);var N=P.value;if(P.done===!0)return this._cleanup(),this._cancellationPhase?k.cancel():k._resolveCallback(N);var D=p(N,this._promise);if(D instanceof c||(D=function(A,Y,q){for(var ee=0;ee<Y.length;++ee){q._pushContext();var Z=b(Y[ee])(A);if(q._popContext(),Z===_){q._pushContext();var te=c.reject(_.e);return q._popContext(),te}var ne=p(Z,q);if(ne instanceof c)return ne}return null}(D,this._yieldHandlers,this._promise))!==null){var U=(D=D._target())._bitField;50397184&U?33554432&U?c._async.invoke(this._promiseFulfilled,this,D._value()):16777216&U?c._async.invoke(this._promiseRejected,this,D._reason()):this._promiseCancelled():(this._yieldedPromise=D,D._proxy(this,null))}else this._promiseRejected(new v(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(N))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},c.coroutine=function(P,k){if(typeof P!="function")throw new v(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var N=Object(k).yieldHandler,D=E,U=new Error().stack;return function(){var A=P.apply(this,arguments),Y=new D(void 0,void 0,N,U),q=Y.promise();return Y._generator=A,Y._promiseFulfilled(void 0),q}},c.coroutine.addYieldHandler=function(P){if(typeof P!="function")throw new v("expecting a function but got "+w.classString(P));x.push(P)},c.spawn=function(P){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),typeof P!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var k=new E(P,this),N=k.promise();return k._run(c.spawn),N}}},{"./errors":12,"./util":36}],17:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=s("./util");v.canEvaluate,v.tryCatch,v.errorObj,c.join=function(){var w,_=arguments.length-1;_>0&&typeof arguments[_]=="function"&&(w=arguments[_]);var b=[].slice.call(arguments);w&&b.pop();var x=new f(b).promise();return w!==void 0?x.spread(w):x}}},{"./util":36}],18:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=c._getDomain,w=s("./util"),_=w.tryCatch,b=w.errorObj,x=c._async;function E(k,N,D,U){this.constructor$(k),this._promise._captureStackTrace();var A=v();this._callback=A===null?N:w.domainBind(A,N),this._preservedValues=U===m?new Array(this.length()):null,this._limit=D,this._inFlight=0,this._queue=[],x.invoke(this._asyncInit,this,void 0)}function P(k,N,D,U){if(typeof N!="function")return h("expecting a function but got "+w.classString(N));var A=0;if(D!==void 0){if(typeof D!="object"||D===null)return c.reject(new TypeError("options argument must be an object but it is "+w.classString(D)));if(typeof D.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(D.concurrency)));A=D.concurrency}return new E(k,N,A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,U).promise()}w.inherits(E,f),E.prototype._asyncInit=function(){this._init$(void 0,-2)},E.prototype._init=function(){},E.prototype._promiseFulfilled=function(k,N){var D=this._values,U=this.length(),A=this._preservedValues,Y=this._limit;if(N<0){if(D[N=-1*N-1]=k,Y>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(Y>=1&&this._inFlight>=Y)return D[N]=k,this._queue.push(N),!1;A!==null&&(A[N]=k);var q=this._promise,ee=this._callback,Z=q._boundValue();q._pushContext();var te=_(ee).call(Z,k,N,U),ne=q._popContext();if(g.checkForgottenReturns(te,ne,A!==null?"Promise.filter":"Promise.map",q),te===b)return this._reject(te.e),!0;var le=p(te,this._promise);if(le instanceof c){var K=(le=le._target())._bitField;if(!(50397184&K))return Y>=1&&this._inFlight++,D[N]=le,le._proxy(this,-1*(N+1)),!1;if(!(33554432&K))return 16777216&K?(this._reject(le._reason()),!0):(this._cancel(),!0);te=le._value()}D[N]=te}return++this._totalResolved>=U&&(A!==null?this._filter(D,A):this._resolve(D),!0)},E.prototype._drainQueue=function(){for(var k=this._queue,N=this._limit,D=this._values;k.length>0&&this._inFlight<N;){if(this._isResolved())return;var U=k.pop();this._promiseFulfilled(D[U],U)}},E.prototype._filter=function(k,N){for(var D=N.length,U=new Array(D),A=0,Y=0;Y<D;++Y)k[Y]&&(U[A++]=N[Y]);U.length=A,this._resolve(U)},E.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(k,N){return P(this,k,N,null)},c.map=function(k,N,D,U){return P(k,N,D,U)}}},{"./util":36}],19:[function(s,a,l){a.exports=function(c,f,h,p,m){var g=s("./util"),v=g.tryCatch;c.method=function(w){if(typeof w!="function")throw new c.TypeError("expecting a function but got "+g.classString(w));return function(){var _=new c(f);_._captureStackTrace(),_._pushContext();var b=v(w).apply(this,arguments),x=_._popContext();return m.checkForgottenReturns(b,x,"Promise.method",_),_._resolveFromSyncValue(b),_}},c.attempt=c.try=function(w){if(typeof w!="function")return p("expecting a function but got "+g.classString(w));var _,b=new c(f);if(b._captureStackTrace(),b._pushContext(),arguments.length>1){m.deprecated("calling Promise.try with more than 1 argument");var x=arguments[1],E=arguments[2];_=g.isArray(x)?v(w).apply(E,x):v(w).call(E,x)}else _=v(w)();var P=b._popContext();return m.checkForgottenReturns(_,P,"Promise.try",b),b._resolveFromSyncValue(_),b},c.prototype._resolveFromSyncValue=function(w){w===g.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(s,a,l){var c=s("./util"),f=c.maybeWrapAsError,h=s("./errors").OperationalError,p=s("./es5"),m=/^(?:name|message|stack|cause)$/;function g(v){var w;if(function(E){return E instanceof Error&&p.getPrototypeOf(E)===Error.prototype}(v)){(w=new h(v)).name=v.name,w.message=v.message,w.stack=v.stack;for(var _=p.keys(v),b=0;b<_.length;++b){var x=_[b];m.test(x)||(w[x]=v[x])}return w}return c.markAsOriginatingFromRejection(v),v}a.exports=function(v,w){return function(_,b){if(v!==null){if(_){var x=g(f(_));v._attachExtraTrace(x),v._reject(x)}else if(w){var E=[].slice.call(arguments,1);v._fulfill(E)}else v._fulfill(b);v=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=c._async,p=f.tryCatch,m=f.errorObj;function g(_,b){if(!f.isArray(_))return v.call(this,_,b);var x=p(b).apply(this._boundValue(),[null].concat(_));x===m&&h.throwLater(x.e)}function v(_,b){var x=this._boundValue(),E=_===void 0?p(b).call(x,null):p(b).call(x,null,_);E===m&&h.throwLater(E.e)}function w(_,b){if(!_){var x=new Error(_+"");x.cause=_,_=x}var E=p(b).call(this._boundValue(),_);E===m&&h.throwLater(E.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,b){if(typeof _=="function"){var x=v;b!==void 0&&Object(b).spread&&(x=g),this._then(x,w,void 0,this,_)}return this}}},{"./util":36}],22:[function(s,a,l){a.exports=function(){var c=function(){return new E(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},f=function(){return new $.PromiseInspection(this._target())},h=function(W){return $.reject(new E(W))};function p(){}var m,g={},v=s("./util");m=v.isNode?function(){var W=r.domain;return W===void 0&&(W=null),W}:function(){return null},v.notEnumerableProp($,"_getDomain",m);var w=s("./es5"),_=s("./async"),b=new _;w.defineProperty($,"_async",{value:b});var x=s("./errors"),E=$.TypeError=x.TypeError;$.RangeError=x.RangeError;var P=$.CancellationError=x.CancellationError;$.TimeoutError=x.TimeoutError,$.OperationalError=x.OperationalError,$.RejectionError=x.OperationalError,$.AggregateError=x.AggregateError;var k=function(){},N={},D={},U=s("./thenables")($,k),A=s("./promise_array")($,k,U,h,p),Y=s("./context")($),q=Y.create,ee=s("./debuggability")($,Y),Z=(ee.CapturedTrace,s("./finally")($,U,D)),te=s("./catch_filter")(D),ne=s("./nodeback"),le=v.errorObj,K=v.tryCatch;function $(W){W!==k&&function(G,re){if(G==null||G.constructor!==$)throw new E(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof re!="function")throw new E("expecting a function but got "+v.classString(re))}(this,W),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(W),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function I(W){this.promise._resolveCallback(W)}function B(W){this.promise._rejectCallback(W,!1)}function ie(W){var G=new $(k);G._fulfillmentHandler0=W,G._rejectionHandler0=W,G._promise0=W,G._receiver0=W}return $.prototype.toString=function(){return"[object Promise]"},$.prototype.caught=$.prototype.catch=function(W){var G=arguments.length;if(G>1){var re,se=new Array(G-1),me=0;for(re=0;re<G-1;++re){var O=arguments[re];if(!v.isObject(O))return h("Catch statement predicate: expecting an object but got "+v.classString(O));se[me++]=O}return se.length=me,W=arguments[re],this.then(void 0,te(se,W,this))}return this.then(void 0,W)},$.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},$.prototype.then=function(W,G){if(ee.warnings()&&arguments.length>0&&typeof W!="function"&&typeof G!="function"){var re=".then() only accepts functions but was passed: "+v.classString(W);arguments.length>1&&(re+=", "+v.classString(G)),this._warn(re)}return this._then(W,G,void 0,void 0,void 0)},$.prototype.done=function(W,G){this._then(W,G,void 0,void 0,void 0)._setIsFinal()},$.prototype.spread=function(W){return typeof W!="function"?h("expecting a function but got "+v.classString(W)):this.all()._then(W,void 0,void 0,N,void 0)},$.prototype.toJSON=function(){var W={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(W.fulfillmentValue=this.value(),W.isFulfilled=!0):this.isRejected()&&(W.rejectionReason=this.reason(),W.isRejected=!0),W},$.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},$.prototype.error=function(W){return this.caught(v.originatesFromRejection,W)},$.getNewLibraryCopy=a.exports,$.is=function(W){return W instanceof $},$.fromNode=$.fromCallback=function(W){var G=new $(k);G._captureStackTrace();var re=arguments.length>1&&!!Object(arguments[1]).multiArgs,se=K(W)(ne(G,re));return se===le&&G._rejectCallback(se.e,!0),G._isFateSealed()||G._setAsyncGuaranteed(),G},$.all=function(W){return new A(W).promise()},$.cast=function(W){var G=U(W);return G instanceof $||((G=new $(k))._captureStackTrace(),G._setFulfilled(),G._rejectionHandler0=W),G},$.resolve=$.fulfilled=$.cast,$.reject=$.rejected=function(W){var G=new $(k);return G._captureStackTrace(),G._rejectCallback(W,!0),G},$.setScheduler=function(W){if(typeof W!="function")throw new E("expecting a function but got "+v.classString(W));return b.setScheduler(W)},$.prototype._then=function(W,G,re,se,me){var O=me!==void 0,R=O?me:new $(k),F=this._target(),Q=F._bitField;O||(R._propagateFrom(this,3),R._captureStackTrace(),se===void 0&&2097152&this._bitField&&(se=50397184&Q?this._boundValue():F===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var X=m();if(50397184&Q){var ae,ve,De=F._settlePromiseCtx;33554432&Q?(ve=F._rejectionHandler0,ae=W):16777216&Q?(ve=F._fulfillmentHandler0,ae=G,F._unsetRejectionIsUnhandled()):(De=F._settlePromiseLateCancellationObserver,ve=new P("late cancellation observer"),F._attachExtraTrace(ve),ae=G),b.invoke(De,F,{handler:X===null?ae:typeof ae=="function"&&v.domainBind(X,ae),promise:R,receiver:se,value:ve})}else F._addCallbacks(W,G,R,se,X);return R},$.prototype._length=function(){return 65535&this._bitField},$.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},$.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},$.prototype._setLength=function(W){this._bitField=-65536&this._bitField|65535&W},$.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},$.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},$.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},$.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},$.prototype._isFinal=function(){return(4194304&this._bitField)>0},$.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},$.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},$.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},$.prototype._setAsyncGuaranteed=function(){b.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},$.prototype._receiverAt=function(W){var G=W===0?this._receiver0:this[4*W-4+3];if(G!==g)return G===void 0&&this._isBound()?this._boundValue():G},$.prototype._promiseAt=function(W){return this[4*W-4+2]},$.prototype._fulfillmentHandlerAt=function(W){return this[4*W-4+0]},$.prototype._rejectionHandlerAt=function(W){return this[4*W-4+1]},$.prototype._boundValue=function(){},$.prototype._migrateCallback0=function(W){W._bitField;var G=W._fulfillmentHandler0,re=W._rejectionHandler0,se=W._promise0,me=W._receiverAt(0);me===void 0&&(me=g),this._addCallbacks(G,re,se,me,null)},$.prototype._migrateCallbackAt=function(W,G){var re=W._fulfillmentHandlerAt(G),se=W._rejectionHandlerAt(G),me=W._promiseAt(G),O=W._receiverAt(G);O===void 0&&(O=g),this._addCallbacks(re,se,me,O,null)},$.prototype._addCallbacks=function(W,G,re,se,me){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=re,this._receiver0=se,typeof W=="function"&&(this._fulfillmentHandler0=me===null?W:v.domainBind(me,W)),typeof G=="function"&&(this._rejectionHandler0=me===null?G:v.domainBind(me,G));else{var R=4*O-4;this[R+2]=re,this[R+3]=se,typeof W=="function"&&(this[R+0]=me===null?W:v.domainBind(me,W)),typeof G=="function"&&(this[R+1]=me===null?G:v.domainBind(me,G))}return this._setLength(O+1),O},$.prototype._proxy=function(W,G){this._addCallbacks(void 0,void 0,G,W,null)},$.prototype._resolveCallback=function(W,G){if(!(117506048&this._bitField)){if(W===this)return this._rejectCallback(c(),!1);var re=U(W,this);if(!(re instanceof $))return this._fulfill(W);G&&this._propagateFrom(re,2);var se=re._target();if(se!==this){var me=se._bitField;if(50397184&me)if(33554432&me)this._fulfill(se._value());else if(16777216&me)this._reject(se._reason());else{var F=new P("late cancellation observer");se._attachExtraTrace(F),this._reject(F)}else{var O=this._length();O>0&&se._migrateCallback0(this);for(var R=1;R<O;++R)se._migrateCallbackAt(this,R);this._setFollowing(),this._setLength(0),this._setFollowee(se)}}else this._reject(c())}},$.prototype._rejectCallback=function(W,G,re){var se=v.ensureErrorObject(W),me=se===W;if(!me&&!re&&ee.warnings()){var O="a promise was rejected with a non-error: "+v.classString(W);this._warn(O,!0)}this._attachExtraTrace(se,!!G&&me),this._reject(W)},$.prototype._resolveFromExecutor=function(W){if(W!==k){var G=this;this._captureStackTrace(),this._pushContext();var re=!0,se=this._execute(W,function(me){G._resolveCallback(me)},function(me){G._rejectCallback(me,re)});re=!1,this._popContext(),se!==void 0&&G._rejectCallback(se,!0)}},$.prototype._settlePromiseFromHandler=function(W,G,re,se){var me=se._bitField;if(!(65536&me)){var O;se._pushContext(),G===N?re&&typeof re.length=="number"?O=K(W).apply(this._boundValue(),re):(O=le).e=new E("cannot .spread() a non-array: "+v.classString(re)):O=K(W).call(G,re);var R=se._popContext();!(65536&(me=se._bitField))&&(O===D?se._reject(re):O===le?se._rejectCallback(O.e,!1):(ee.checkForgottenReturns(O,R,"",se,this),se._resolveCallback(O)))}},$.prototype._target=function(){for(var W=this;W._isFollowing();)W=W._followee();return W},$.prototype._followee=function(){return this._rejectionHandler0},$.prototype._setFollowee=function(W){this._rejectionHandler0=W},$.prototype._settlePromise=function(W,G,re,se){var me=W instanceof $,O=this._bitField,R=(134217728&O)!=0;65536&O?(me&&W._invokeInternalOnCancel(),re instanceof Z&&re.isFinallyHandler()?(re.cancelPromise=W,K(G).call(re,se)===le&&W._reject(le.e)):G===f?W._fulfill(f.call(re)):re instanceof p?re._promiseCancelled(W):me||W instanceof A?W._cancel():re.cancel()):typeof G=="function"?me?(R&&W._setAsyncGuaranteed(),this._settlePromiseFromHandler(G,re,se,W)):G.call(re,se,W):re instanceof p?re._isResolved()||(33554432&O?re._promiseFulfilled(se,W):re._promiseRejected(se,W)):me&&(R&&W._setAsyncGuaranteed(),33554432&O?W._fulfill(se):W._reject(se))},$.prototype._settlePromiseLateCancellationObserver=function(W){var G=W.handler,re=W.promise,se=W.receiver,me=W.value;typeof G=="function"?re instanceof $?this._settlePromiseFromHandler(G,se,me,re):G.call(se,me,re):re instanceof $&&re._reject(me)},$.prototype._settlePromiseCtx=function(W){this._settlePromise(W.promise,W.handler,W.receiver,W.value)},$.prototype._settlePromise0=function(W,G,re){var se=this._promise0,me=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(se,W,me,G)},$.prototype._clearCallbackDataAtIndex=function(W){var G=4*W-4;this[G+2]=this[G+3]=this[G+0]=this[G+1]=void 0},$.prototype._fulfill=function(W){var G=this._bitField;if(!((117506048&G)>>>16)){if(W===this){var re=c();return this._attachExtraTrace(re),this._reject(re)}this._setFulfilled(),this._rejectionHandler0=W,(65535&G)>0&&(134217728&G?this._settlePromises():b.settlePromises(this))}},$.prototype._reject=function(W){var G=this._bitField;if(!((117506048&G)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=W,this._isFinal())return b.fatalError(W,v.isNode);(65535&G)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},$.prototype._fulfillPromises=function(W,G){for(var re=1;re<W;re++){var se=this._fulfillmentHandlerAt(re),me=this._promiseAt(re),O=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(me,se,O,G)}},$.prototype._rejectPromises=function(W,G){for(var re=1;re<W;re++){var se=this._rejectionHandlerAt(re),me=this._promiseAt(re),O=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(me,se,O,G)}},$.prototype._settlePromises=function(){var W=this._bitField,G=65535&W;if(G>0){if(16842752&W){var re=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,re,W),this._rejectPromises(G,re)}else{var se=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,se,W),this._fulfillPromises(G,se)}this._setLength(0)}this._clearCancellationData()},$.prototype._settledValue=function(){var W=this._bitField;return 33554432&W?this._rejectionHandler0:16777216&W?this._fulfillmentHandler0:void 0},$.defer=$.pending=function(){return ee.deprecated("Promise.defer","new Promise"),{promise:new $(k),resolve:I,reject:B}},v.notEnumerableProp($,"_makeSelfResolutionError",c),s("./method")($,k,U,h,ee),s("./bind")($,k,U,ee),s("./cancel")($,A,h,ee),s("./direct_resolve")($),s("./synchronous_inspection")($),s("./join")($,A,U,k,b,m),$.Promise=$,$.version="3.5.1",s("./map.js")($,A,h,U,k,ee),s("./call_get.js")($),s("./using.js")($,h,U,q,k,ee),s("./timers.js")($,k,ee),s("./generators.js")($,h,k,U,p,ee),s("./nodeify.js")($),s("./promisify.js")($,k),s("./props.js")($,A,U,h),s("./race.js")($,k,U,h),s("./reduce.js")($,A,h,U,k,ee),s("./settle.js")($,A,ee),s("./some.js")($,A,h),s("./filter.js")($,k),s("./each.js")($,k),s("./any.js")($),v.toFastProperties($),v.toFastProperties($.prototype),ie({a:1}),ie({b:2}),ie({c:3}),ie(1),ie(function(){}),ie(void 0),ie(!1),ie(new $(k)),ee.setBounds(_.firstLineError,v.lastLineError),$}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,a,l){a.exports=function(c,f,h,p,m){var g=s("./util");function v(w){var _=this._promise=new c(f);w instanceof c&&_._propagateFrom(w,3),_._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return g.isArray,g.inherits(v,m),v.prototype.length=function(){return this._length},v.prototype.promise=function(){return this._promise},v.prototype._init=function w(_,b){var x=h(this._values,this._promise);if(x instanceof c){var E=(x=x._target())._bitField;if(this._values=x,(50397184&E)==0)return this._promise._setAsyncGuaranteed(),x._then(w,this._reject,void 0,this,b);if(!(33554432&E))return 16777216&E?this._reject(x._reason()):this._cancel();x=x._value()}if((x=g.asArray(x))!==null)x.length!==0?this._iterate(x):b===-5?this._resolveEmptyArray():this._resolve(function(k){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=p("expecting an array or an iterable object but got "+g.classString(x)).reason();this._promise._rejectCallback(P,!1)}},v.prototype._iterate=function(w){var _=this.getActualLength(w.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var b=this._promise,x=!1,E=null,P=0;P<_;++P){var k=h(w[P],b);E=k instanceof c?(k=k._target())._bitField:null,x?E!==null&&k.suppressUnhandledRejections():E!==null?50397184&E?x=33554432&E?this._promiseFulfilled(k._value(),P):16777216&E?this._promiseRejected(k._reason(),P):this._promiseCancelled(P):(k._proxy(this,P),this._values[P]=k):x=this._promiseFulfilled(k,P)}x||b._setAsyncGuaranteed()},v.prototype._isResolved=function(){return this._values===null},v.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},v.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},v.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},v.prototype._promiseFulfilled=function(w,_){return this._values[_]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseCancelled=function(){return this._cancel(),!0},v.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},v.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof c)w.cancel();else for(var _=0;_<w.length;++_)w[_]instanceof c&&w[_].cancel()}},v.prototype.shouldCopyValues=function(){return!0},v.prototype.getActualLength=function(w){return w},v}},{"./util":36}],24:[function(s,a,l){a.exports=function(c,f){var h={},p=s("./util"),m=s("./nodeback"),g=p.withAppended,v=p.maybeWrapAsError,w=p.canEvaluate,_=s("./errors").TypeError,b={__isPromisified__:!0},x=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),E=function(q){return p.isIdentifier(q)&&q.charAt(0)!=="_"&&q!=="constructor"};function P(q){return!x.test(q)}function k(q){try{return q.__isPromisified__===!0}catch{return!1}}function N(q,ee,Z){var te=p.getDataPropertyOrDefault(q,ee+Z,b);return!!te&&k(te)}function D(q,ee,Z,te){for(var ne=p.inheritedDataKeys(q),le=[],K=0;K<ne.length;++K){var $=ne[K],I=q[$],B=te===E||E($);typeof I!="function"||k(I)||N(q,$,ee)||!te($,I,q,B)||le.push($,I)}return function(ie,W,G){for(var re=0;re<ie.length;re+=2){var se=ie[re];if(G.test(se)){for(var me=se.replace(G,""),O=0;O<ie.length;O+=2)if(ie[O]===me)throw new _(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",W))}}}(le,ee,Z),le}var U=function(q){return q.replace(/([$])/,"\\$")},A=w?void 0:function(q,ee,Z,te,ne,le){var K=function(){return this}(),$=q;function I(){var B=ee;ee===h&&(B=this);var ie=new c(f);ie._captureStackTrace();var W=typeof $=="string"&&this!==K?this[$]:q,G=m(ie,le);try{W.apply(B,g(arguments,G))}catch(re){ie._rejectCallback(v(re),!0,!0)}return ie._isFateSealed()||ie._setAsyncGuaranteed(),ie}return typeof $=="string"&&(q=te),p.notEnumerableProp(I,"__isPromisified__",!0),I};function Y(q,ee,Z,te,ne){for(var le=new RegExp(U(ee)+"$"),K=D(q,ee,le,Z),$=0,I=K.length;$<I;$+=2){var B=K[$],ie=K[$+1],W=B+ee;if(te===A)q[W]=A(B,h,B,ie,ee,ne);else{var G=te(ie,function(){return A(B,h,B,ie,ee,ne)});p.notEnumerableProp(G,"__isPromisified__",!0),q[W]=G}}return p.toFastProperties(q),q}c.promisify=function(q,ee){if(typeof q!="function")throw new _("expecting a function but got "+p.classString(q));if(k(q))return q;var Z=(ee=Object(ee)).context===void 0?h:ee.context,te=!!ee.multiArgs,ne=function(le,K,$){return A(le,K,void 0,le,null,te)}(q,Z);return p.copyDescriptors(q,ne,P),ne},c.promisifyAll=function(q,ee){if(typeof q!="function"&&typeof q!="object")throw new _(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Z=!!(ee=Object(ee)).multiArgs,te=ee.suffix;typeof te!="string"&&(te="Async");var ne=ee.filter;typeof ne!="function"&&(ne=E);var le=ee.promisifier;if(typeof le!="function"&&(le=A),!p.isIdentifier(te))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var K=p.inheritedDataKeys(q),$=0;$<K.length;++$){var I=q[K[$]];K[$]!=="constructor"&&p.isClass(I)&&(Y(I.prototype,te,ne,le,Z),Y(I,te,ne,le,Z))}return Y(q,te,ne,le,Z)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,a,l){a.exports=function(c,f,h,p){var m,g=s("./util"),v=g.isObject,w=s("./es5");typeof Map=="function"&&(m=Map);var _=function(){var E=0,P=0;function k(N,D){this[E]=N,this[E+P]=D,E++}return function(N){P=N.size,E=0;var D=new Array(2*N.size);return N.forEach(k,D),D}}();function b(E){var P,k=!1;if(m!==void 0&&E instanceof m)P=_(E),k=!0;else{var N=w.keys(E),D=N.length;P=new Array(2*D);for(var U=0;U<D;++U){var A=N[U];P[U]=E[A],P[U+D]=A}}this.constructor$(P),this._isMap=k,this._init$(void 0,k?-6:-3)}function x(E){var P,k=h(E);return v(k)?(P=k instanceof c?k._then(c.props,void 0,void 0,void 0,void 0):new b(k).promise(),k instanceof c&&P._propagateFrom(k,2),P):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}g.inherits(b,f),b.prototype._init=function(){},b.prototype._promiseFulfilled=function(E,P){if(this._values[P]=E,++this._totalResolved>=this._length){var k;if(this._isMap)k=function(A){for(var Y=new m,q=A.length/2|0,ee=0;ee<q;++ee){var Z=A[q+ee],te=A[ee];Y.set(Z,te)}return Y}(this._values);else{k={};for(var N=this.length(),D=0,U=this.length();D<U;++D)k[this._values[D+N]]=this._values[D]}return this._resolve(k),!0}return!1},b.prototype.shouldCopyValues=function(){return!1},b.prototype.getActualLength=function(E){return E>>1},c.prototype.props=function(){return x(this)},c.props=function(E){return x(E)}}},{"./es5":13,"./util":36}],26:[function(s,a,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 m=this.length()+3;if(this._willBeOverCapacity(m))return this._pushOne(f),this._pushOne(h),void this._pushOne(p);var g=this._front+m-3;this._checkCapacity(m);var v=this._capacity-1;this[g+0&v]=f,this[g+1&v]=h,this[g+2&v]=p,this._length=m},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,m,g,v,w){for(var _=0;_<w;++_)g[_+v]=p[_+0],p[_+0]=void 0}(this,0,this,h,this._front+this._length&h-1)},a.exports=c},{}],27:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),g=function(w){return w.then(function(_){return v(_,w)})};function v(w,_){var b=h(w);if(b instanceof c)return g(b);if((w=m.asArray(w))===null)return p("expecting an array or an iterable object but got "+m.classString(w));var x=new c(f);_!==void 0&&x._propagateFrom(_,3);for(var E=x._fulfill,P=x._reject,k=0,N=w.length;k<N;++k){var D=w[k];(D!==void 0||k in w)&&c.cast(D)._then(E,P,void 0,x,null)}return x}c.race=function(w){return v(w,void 0)},c.prototype.race=function(){return v(this,void 0)}}},{"./util":36}],28:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=c._getDomain,w=s("./util"),_=w.tryCatch;function b(N,D,U,A){this.constructor$(N);var Y=v();this._fn=Y===null?D:w.domainBind(Y,D),U!==void 0&&(U=c.resolve(U))._attachCancellationCallback(this),this._initialValue=U,this._currentCancellable=null,this._eachValues=A===m?Array(this._length):A===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function x(N,D){this.isFulfilled()?D._resolve(N):D._reject(N)}function E(N,D,U,A){return typeof D!="function"?h("expecting a function but got "+w.classString(D)):new b(N,D,U,A).promise()}function P(N){this.accum=N,this.array._gotAccum(N);var D=p(this.value,this.array._promise);return D instanceof c?(this.array._currentCancellable=D,D._then(k,void 0,void 0,this,void 0)):k.call(this,D)}function k(N){var D,U=this.array,A=U._promise,Y=_(U._fn);A._pushContext(),(D=U._eachValues!==void 0?Y.call(A._boundValue(),N,this.index,this.length):Y.call(A._boundValue(),this.accum,N,this.index,this.length))instanceof c&&(U._currentCancellable=D);var q=A._popContext();return g.checkForgottenReturns(D,q,U._eachValues!==void 0?"Promise.each":"Promise.reduce",A),D}w.inherits(b,f),b.prototype._gotAccum=function(N){this._eachValues!==void 0&&this._eachValues!==null&&N!==m&&this._eachValues.push(N)},b.prototype._eachComplete=function(N){return this._eachValues!==null&&this._eachValues.push(N),this._eachValues},b.prototype._init=function(){},b.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},b.prototype.shouldCopyValues=function(){return!1},b.prototype._resolve=function(N){this._promise._resolveCallback(N),this._values=null},b.prototype._resultCancelled=function(N){if(N===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},b.prototype._iterate=function(N){var D,U;this._values=N;var A=N.length;if(this._initialValue!==void 0?(D=this._initialValue,U=0):(D=c.resolve(N[0]),U=1),this._currentCancellable=D,!D.isRejected())for(;U<A;++U){var Y={accum:null,value:N[U],index:U,length:A,array:this};D=D._then(P,void 0,void 0,Y,void 0)}this._eachValues!==void 0&&(D=D._then(this._eachComplete,void 0,void 0,this,void 0)),D._then(x,x,void 0,D,this)},c.prototype.reduce=function(N,D){return E(this,N,D,null)},c.reduce=function(N,D,U,A){return E(N,D,U,A)}}},{"./util":36}],29:[function(s,a,l){var c,f=s("./util"),h=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,m=r.nextTick;c=f.isRecentNode?function(v){p.call(i,v)}:function(v){m.call(r,v)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var g=h.resolve();c=function(v){g.then(v)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(v){o(v)}:typeof setTimeout<"u"?function(v){setTimeout(v,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var v=document.createElement("div"),w={attributes:!0},_=!1,b=document.createElement("div");return new MutationObserver(function(){v.classList.toggle("foo"),_=!1}).observe(b,w),function(x){var E=new MutationObserver(function(){E.disconnect(),x()});E.observe(v,w),_||(_=!0,b.classList.toggle("foo"))}}();a.exports=c},{"./util":36}],30:[function(s,a,l){a.exports=function(c,f,h){var p=c.PromiseInspection;function m(g){this.constructor$(g)}s("./util").inherits(m,f),m.prototype._promiseResolved=function(g,v){return this._values[g]=v,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(g,v){var w=new p;return w._bitField=33554432,w._settledValueField=g,this._promiseResolved(v,w)},m.prototype._promiseRejected=function(g,v){var w=new p;return w._bitField=16777216,w._settledValueField=g,this._promiseResolved(v,w)},c.settle=function(g){return h.deprecated(".settle()",".reflect()"),new m(g).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=s("./errors").RangeError,g=s("./errors").AggregateError,v=p.isArray,w={};function _(x){this.constructor$(x),this._howMany=0,this._unwrap=!1,this._initialized=!1}function b(x,E){if((0|E)!==E||E<0)return h(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=new _(x),k=P.promise();return P.setHowMany(E),P.init(),k}p.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var x=v(this._values);!this._isResolved()&&x&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.prototype.init=function(){this._initialized=!0,this._init()},_.prototype.setUnwrap=function(){this._unwrap=!0},_.prototype.howMany=function(){return this._howMany},_.prototype.setHowMany=function(x){this._howMany=x},_.prototype._promiseFulfilled=function(x){return this._addFulfilled(x),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},_.prototype._promiseRejected=function(x){return this._addRejected(x),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var x=new g,E=this.length();E<this._values.length;++E)this._values[E]!==w&&x.push(this._values[E]);return x.length>0?this._reject(x):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(x){this._values.push(x)},_.prototype._addFulfilled=function(x){this._values[this._totalResolved++]=x},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(x){var E="Input array must contain at least "+this._howMany+" items but contains only "+x+" items";return new m(E)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(x,E){return b(x,E)},c.prototype.some=function(x){return b(this,x)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(s,a,l){a.exports=function(c){function f(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var 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()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},g=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},v=f.prototype.isPending=function(){return(50397184&this._bitField)==0},w=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 v.call(this._target())},c.prototype.isRejected=function(){return g.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return w.call(this._target())},c.prototype.value=function(){return h.call(this._target())},c.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),p.call(_)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(s,a,l){a.exports=function(c,f){var h=s("./util"),p=h.errorObj,m=h.isObject,g={}.hasOwnProperty;return function(v,w){if(m(v)){if(v instanceof c)return v;var _=function(x){try{return function(E){return E.then}(x)}catch(E){return p.e=E,p}}(v);if(_===p){w&&w._pushContext();var b=c.reject(_.e);return w&&w._popContext(),b}if(typeof _=="function")return function(x){try{return g.call(x,"_promise0")}catch{return!1}}(v)?(b=new c(f),v._then(b._fulfill,b._reject,void 0,b,null),b):function(x,E,P){var k=new c(f),N=k;P&&P._pushContext(),k._captureStackTrace(),P&&P._popContext();var D=!0,U=h.tryCatch(E).call(x,function(A){k&&(k._resolveCallback(A),k=null)},function(A){k&&(k._rejectCallback(A,D,!0),k=null)});return D=!1,k&&U===p&&(k._rejectCallback(U.e,!0,!0),k=null),N}(v,_,w)}return v}}},{"./util":36}],34:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.TimeoutError;function g(x){this.handle=x}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var v=function(x){return w(+this).thenReturn(x)},w=c.delay=function(x,E){var P,k;return E!==void 0?(P=c.resolve(E)._then(v,null,null,x,void 0),h.cancellation()&&E instanceof c&&P._setOnCancel(E)):(P=new c(f),k=setTimeout(function(){P._fulfill()},+x),h.cancellation()&&P._setOnCancel(new g(k)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function _(x){return clearTimeout(this.handle),x}function b(x){throw clearTimeout(this.handle),x}c.prototype.delay=function(x){return w(x,this)},c.prototype.timeout=function(x,E){var P,k;x=+x;var N=new g(setTimeout(function(){P.isPending()&&function(D,U,A){var Y;Y=typeof U!="string"?U instanceof Error?U:new m("operation timed out"):new m(U),p.markAsOriginatingFromRejection(Y),D._attachExtraTrace(Y),D._reject(Y),A!=null&&A.cancel()}(P,E,k)},x));return h.cancellation()?(k=this.then(),(P=k._then(_,b,void 0,N,void 0))._setOnCancel(N)):P=this._then(_,b,void 0,N,void 0),P}}},{"./util":36}],35:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=s("./util"),w=s("./errors").TypeError,_=s("./util").inherits,b=v.errorObj,x=v.tryCatch,E={};function P(Y){setTimeout(function(){throw Y},0)}function k(Y,q){var ee=0,Z=Y.length,te=new c(m);return function ne(){if(ee>=Z)return te._fulfill();var le=function(K){var $=h(K);return $!==K&&typeof K._isDisposable=="function"&&typeof K._getDisposer=="function"&&K._isDisposable()&&$._setDisposable(K._getDisposer()),$}(Y[ee++]);if(le instanceof c&&le._isDisposable()){try{le=h(le._getDisposer().tryDispose(q),Y.promise)}catch(K){return P(K)}if(le instanceof c)return le._then(ne,P,null,null,null)}ne()}(),te}function N(Y,q,ee){this._data=Y,this._promise=q,this._context=ee}function D(Y,q,ee){this.constructor$(Y,q,ee)}function U(Y){return N.isDisposer(Y)?(this.resources[this.index]._setDisposable(Y),Y.promise()):Y}function A(Y){this.length=Y,this.promise=null,this[Y-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():E},N.prototype.tryDispose=function(Y){var q=this.resource(),ee=this._context;ee!==void 0&&ee._pushContext();var Z=q!==E?this.doDispose(q,Y):null;return ee!==void 0&&ee._popContext(),this._promise._unsetDisposable(),this._data=null,Z},N.isDisposer=function(Y){return Y!=null&&typeof Y.resource=="function"&&typeof Y.tryDispose=="function"},_(D,N),D.prototype.doDispose=function(Y,q){return this.data().call(Y,Y,q)},A.prototype._resultCancelled=function(){for(var Y=this.length,q=0;q<Y;++q){var ee=this[q];ee instanceof c&&ee.cancel()}},c.using=function(){var Y=arguments.length;if(Y<2)return f("you must pass at least 2 arguments to Promise.using");var q,ee=arguments[Y-1];if(typeof ee!="function")return f("expecting a function but got "+v.classString(ee));var Z=!0;Y===2&&Array.isArray(arguments[0])?(Y=(q=arguments[0]).length,Z=!1):(q=arguments,Y--);for(var te=new A(Y),ne=0;ne<Y;++ne){var le=q[ne];if(N.isDisposer(le)){var K=le;(le=le.promise())._setDisposable(K)}else{var $=h(le);$ instanceof c&&(le=$._then(U,null,null,{resources:te,index:ne},void 0))}te[ne]=le}var I=new Array(te.length);for(ne=0;ne<I.length;++ne)I[ne]=c.resolve(te[ne]).reflect();var B=c.all(I).then(function(W){for(var G=0;G<W.length;++G){var re=W[G];if(re.isRejected())return b.e=re.error(),b;if(!re.isFulfilled())return void B.cancel();W[G]=re.value()}ie._pushContext(),ee=x(ee);var se=Z?ee.apply(void 0,W):ee(W),me=ie._popContext();return g.checkForgottenReturns(se,me,"Promise.using",ie),se}),ie=B.lastly(function(){var W=new c.PromiseInspection(B);return k(te,W)});return te.promise=ie,ie._setOnCancel(te),ie},c.prototype._setDisposable=function(Y){this._bitField=131072|this._bitField,this._disposer=Y},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(Y){if(typeof Y=="function")return new D(Y,this,p());throw new w}}},{"./errors":12,"./util":36}],36:[function(s,a,l){var c,f=s("./es5"),h=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function g(){try{var Z=c;return c=null,Z.apply(this,arguments)}catch(te){return p.e=te,p}}function v(Z){return Z==null||Z===!0||Z===!1||typeof Z=="string"||typeof Z=="number"}function w(Z,te,ne){if(v(Z))return Z;var le={value:ne,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(Z,te,le),Z}var _=function(){var Z=[Array.prototype,Object.prototype,Function.prototype],te=function(K){for(var $=0;$<Z.length;++$)if(Z[$]===K)return!0;return!1};if(f.isES5){var ne=Object.getOwnPropertyNames;return function(K){for(var $=[],I=Object.create(null);K!=null&&!te(K);){var B;try{B=ne(K)}catch{return $}for(var ie=0;ie<B.length;++ie){var W=B[ie];if(!I[W]){I[W]=!0;var G=Object.getOwnPropertyDescriptor(K,W);G!=null&&G.get==null&&G.set==null&&$.push(W)}}K=f.getPrototypeOf(K)}return $}}var le={}.hasOwnProperty;return function(K){if(te(K))return[];var $=[];e:for(var I in K)if(le.call(K,I))$.push(I);else{for(var B=0;B<Z.length;++B)if(le.call(Z[B],I))continue e;$.push(I)}return $}}(),b=/this\s*\.\s*\S+\s*=/,x=/^[a-z$_][a-z$_0-9]*$/i;function E(Z){try{return Z+""}catch{return"[no string representation]"}}function P(Z){return Z instanceof Error||Z!==null&&typeof Z=="object"&&typeof Z.message=="string"&&typeof Z.name=="string"}function k(Z){return P(Z)&&f.propertyIsWritable(Z,"stack")}var N="stack"in new Error?function(Z){return k(Z)?Z:new Error(E(Z))}:function(Z){if(k(Z))return Z;try{throw new Error(E(Z))}catch(te){return te}};function D(Z){return{}.toString.call(Z)}var U=function(Z){return f.isArray(Z)?Z:null};if(typeof Symbol<"u"&&Symbol.iterator){var A=typeof Array.from=="function"?function(Z){return Array.from(Z)}:function(Z){for(var te,ne=[],le=Z[Symbol.iterator]();!(te=le.next()).done;)ne.push(te.value);return ne};U=function(Z){return f.isArray(Z)?Z:Z!=null&&typeof Z[Symbol.iterator]=="function"?A(Z):null}}var Y=r!==void 0&&D(r).toLowerCase()==="[object process]",q=r!==void 0&&r.env!==void 0,ee={isClass:function(Z){try{if(typeof Z=="function"){var te=f.names(Z.prototype),ne=f.isES5&&te.length>1,le=te.length>0&&!(te.length===1&&te[0]==="constructor"),K=b.test(Z+"")&&f.names(Z).length>0;if(ne||le||K)return!0}return!1}catch{return!1}},isIdentifier:function(Z){return x.test(Z)},inheritedDataKeys:_,getDataPropertyOrDefault:function(Z,te,ne){if(!f.isES5)return{}.hasOwnProperty.call(Z,te)?Z[te]:void 0;var le=Object.getOwnPropertyDescriptor(Z,te);return le!=null?le.get==null&&le.set==null?le.value:ne:void 0},thrower:function(Z){throw Z},isArray:f.isArray,asArray:U,notEnumerableProp:w,isPrimitive:v,isObject:function(Z){return typeof Z=="function"||typeof Z=="object"&&Z!==null},isError:P,canEvaluate:h,errorObj:p,tryCatch:function(Z){return c=Z,g},inherits:function(Z,te){var ne={}.hasOwnProperty;function le(){for(var K in this.constructor=Z,this.constructor$=te,te.prototype)ne.call(te.prototype,K)&&K.charAt(K.length-1)!=="$"&&(this[K+"$"]=te.prototype[K])}return le.prototype=te.prototype,Z.prototype=new le,Z.prototype},withAppended:function(Z,te){var ne,le=Z.length,K=new Array(le+1);for(ne=0;ne<le;++ne)K[ne]=Z[ne];return K[ne]=te,K},maybeWrapAsError:function(Z){return v(Z)?new Error(E(Z)):Z},toFastProperties:function(Z){return Z},filledRange:function(Z,te,ne){for(var le=new Array(Z),K=0;K<Z;++K)le[K]=te+K+ne;return le},toString:E,canAttachTrace:k,ensureErrorObject:N,originatesFromRejection:function(Z){return Z!=null&&(Z instanceof Error.__BluebirdErrorTypes__.OperationalError||Z.isOperational===!0)},markAsOriginatingFromRejection:function(Z){try{w(Z,"isOperational",!0)}catch{}},classString:D,copyDescriptors:function(Z,te,ne){for(var le=f.names(Z),K=0;K<le.length;++K){var $=le[K];if(ne($))try{f.defineProperty(te,$,f.getDescriptor(Z,$))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:Y,hasEnvVariables:q,env:function(Z){return q?r.env[Z]:void 0},global:m,getNativePromise:function(){if(typeof Promise=="function")try{var Z=new Promise(function(){});if({}.toString.call(Z)==="[object Promise]")return Promise}catch{}},domainBind:function(Z,te){return Z.bind(te)}};ee.isRecentNode=ee.isNode&&function(){var Z=r.versions.node.split(".").map(Number);return Z[0]===0&&Z[1]>10||Z[0]>0}(),ee.isNode&&ee.toFastProperties(r);try{throw new Error}catch(Z){ee.lastLineError=Z}a.exports=ee},{"./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,s=r.length;o<s;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,s){var a=i(o,s);return r(a)?a: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=E;var s,a=n(37);E.ReadableState=x,n(12).EventEmitter;var l=function(I,B){return I.listeners(B).length},c=n(24),f=n(7).Buffer,h=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var m=n(41),g=void 0;g=m&&m.debuglog?m.debuglog("stream"):function(){};var v,w=n(42),_=n(25);p.inherits(E,c);var b=["error","close","destroy","pause","resume"];function x(I,B){s=s||n(1),I=I||{};var ie=B instanceof s;this.objectMode=!!I.objectMode,ie&&(this.objectMode=this.objectMode||!!I.readableObjectMode);var W=I.highWaterMark,G=I.readableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=W||W===0?W:ie&&(G||G===0)?G:re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,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=I.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I.encoding&&(v||(v=n(26).StringDecoder),this.decoder=new v(I.encoding),this.encoding=I.encoding)}function E(I){if(s=s||n(1),!(this instanceof E))return new E(I);this._readableState=new x(I,this),this.readable=!0,I&&(typeof I.read=="function"&&(this._read=I.read),typeof I.destroy=="function"&&(this._destroy=I.destroy)),c.call(this)}function P(I,B,ie,W,G){var re,se=I._readableState;return B===null?(se.reading=!1,function(me,O){if(!O.ended){if(O.decoder){var R=O.decoder.end();R&&R.length&&(O.buffer.push(R),O.length+=O.objectMode?1:R.length)}O.ended=!0,U(me)}}(I,se)):(G||(re=function(me,O){var R;return function(F){return f.isBuffer(F)||F instanceof h}(O)||typeof O=="string"||O===void 0||me.objectMode||(R=new TypeError("Invalid non-string/buffer chunk")),R}(se,B)),re?I.emit("error",re):se.objectMode||B&&B.length>0?(typeof B=="string"||se.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(me){return f.from(me)}(B)),W?se.endEmitted?I.emit("error",new Error("stream.unshift() after end event")):k(I,se,B,!0):se.ended?I.emit("error",new Error("stream.push() after EOF")):(se.reading=!1,se.decoder&&!ie?(B=se.decoder.write(B),se.objectMode||B.length!==0?k(I,se,B,!1):Y(I,se)):k(I,se,B,!1))):W||(se.reading=!1)),function(me){return!me.ended&&(me.needReadable||me.length<me.highWaterMark||me.length===0)}(se)}function k(I,B,ie,W){B.flowing&&B.length===0&&!B.sync?(I.emit("data",ie),I.read(0)):(B.length+=B.objectMode?1:ie.length,W?B.buffer.unshift(ie):B.buffer.push(ie),B.needReadable&&U(I)),Y(I,B)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),E.prototype.destroy=_.destroy,E.prototype._undestroy=_.undestroy,E.prototype._destroy=function(I,B){this.push(null),B(I)},E.prototype.push=function(I,B){var ie,W=this._readableState;return W.objectMode?ie=!0:typeof I=="string"&&((B=B||W.defaultEncoding)!==W.encoding&&(I=f.from(I,B),B=""),ie=!0),P(this,I,B,!1,ie)},E.prototype.unshift=function(I){return P(this,I,null,!0,!1)},E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(I){return v||(v=n(26).StringDecoder),this._readableState.decoder=new v(I),this._readableState.encoding=I,this};var N=8388608;function D(I,B){return I<=0||B.length===0&&B.ended?0:B.objectMode?1:I!=I?B.flowing&&B.length?B.buffer.head.data.length:B.length:(I>B.highWaterMark&&(B.highWaterMark=function(ie){return ie>=N?ie=N:(ie--,ie|=ie>>>1,ie|=ie>>>2,ie|=ie>>>4,ie|=ie>>>8,ie|=ie>>>16,ie++),ie}(I)),I<=B.length?I:B.ended?B.length:(B.needReadable=!0,0))}function U(I){var B=I._readableState;B.needReadable=!1,B.emittedReadable||(g("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(A,I):A(I))}function A(I){g("emit readable"),I.emit("readable"),te(I)}function Y(I,B){B.readingMore||(B.readingMore=!0,o.nextTick(q,I,B))}function q(I,B){for(var ie=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(g("maybeReadMore read 0"),I.read(0),ie!==B.length);)ie=B.length;B.readingMore=!1}function ee(I){g("readable nexttick read 0"),I.read(0)}function Z(I,B){B.reading||(g("resume read 0"),I.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,I.emit("resume"),te(I),B.flowing&&!B.reading&&I.read(0)}function te(I){var B=I._readableState;for(g("flow",B.flowing);B.flowing&&I.read()!==null;);}function ne(I,B){return B.length===0?null:(B.objectMode?ie=B.buffer.shift():!I||I>=B.length?(ie=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):ie=function(W,G,re){var se;return W<G.head.data.length?(se=G.head.data.slice(0,W),G.head.data=G.head.data.slice(W)):se=W===G.head.data.length?G.shift():re?function(me,O){var R=O.head,F=1,Q=R.data;for(me-=Q.length;R=R.next;){var X=R.data,ae=me>X.length?X.length:me;if(ae===X.length?Q+=X:Q+=X.slice(0,me),(me-=ae)==0){ae===X.length?(++F,R.next?O.head=R.next:O.head=O.tail=null):(O.head=R,R.data=X.slice(ae));break}++F}return O.length-=F,Q}(W,G):function(me,O){var R=f.allocUnsafe(me),F=O.head,Q=1;for(F.data.copy(R),me-=F.data.length;F=F.next;){var X=F.data,ae=me>X.length?X.length:me;if(X.copy(R,R.length-me,0,ae),(me-=ae)==0){ae===X.length?(++Q,F.next?O.head=F.next:O.head=O.tail=null):(O.head=F,F.data=X.slice(ae));break}++Q}return O.length-=Q,R}(W,G),se}(I,B.buffer,B.decoder),ie);var ie}function le(I){var B=I._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(K,B,I))}function K(I,B){I.endEmitted||I.length!==0||(I.endEmitted=!0,B.readable=!1,B.emit("end"))}function $(I,B){for(var ie=0,W=I.length;ie<W;ie++)if(I[ie]===B)return ie;return-1}E.prototype.read=function(I){g("read",I),I=parseInt(I,10);var B=this._readableState,ie=I;if(I!==0&&(B.emittedReadable=!1),I===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return g("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?le(this):U(this),null;if((I=D(I,B))===0&&B.ended)return B.length===0&&le(this),null;var W,G=B.needReadable;return g("need readable",G),(B.length===0||B.length-I<B.highWaterMark)&&g("length less than watermark",G=!0),B.ended||B.reading?g("reading or ended",G=!1):G&&(g("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(I=D(ie,B))),(W=I>0?ne(I,B):null)===null?(B.needReadable=!0,I=0):B.length-=I,B.length===0&&(B.ended||(B.needReadable=!0),ie!==I&&B.ended&&le(this)),W!==null&&this.emit("data",W),W},E.prototype._read=function(I){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(I,B){var ie=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=I;break;case 1:W.pipes=[W.pipes,I];break;default:W.pipes.push(I)}W.pipesCount+=1,g("pipe count=%d opts=%j",W.pipesCount,B);var G=B&&B.end===!1||I===i.stdout||I===i.stderr?ae:re;function re(){g("onend"),I.end()}W.endEmitted?o.nextTick(G):ie.once("end",G),I.on("unpipe",function ve(De,fe){g("onunpipe"),De===ie&&fe&&fe.hasUnpiped===!1&&(fe.hasUnpiped=!0,g("cleanup"),I.removeListener("close",Q),I.removeListener("finish",X),I.removeListener("drain",se),I.removeListener("error",F),I.removeListener("unpipe",ve),ie.removeListener("end",re),ie.removeListener("end",ae),ie.removeListener("data",R),me=!0,!W.awaitDrain||I._writableState&&!I._writableState.needDrain||se())});var se=function(ve){return function(){var De=ve._readableState;g("pipeOnDrain",De.awaitDrain),De.awaitDrain&&De.awaitDrain--,De.awaitDrain===0&&l(ve,"data")&&(De.flowing=!0,te(ve))}}(ie);I.on("drain",se);var me=!1,O=!1;function R(ve){g("ondata"),O=!1,I.write(ve)!==!1||O||((W.pipesCount===1&&W.pipes===I||W.pipesCount>1&&$(W.pipes,I)!==-1)&&!me&&(g("false write response, pause",ie._readableState.awaitDrain),ie._readableState.awaitDrain++,O=!0),ie.pause())}function F(ve){g("onerror",ve),ae(),I.removeListener("error",F),l(I,"error")===0&&I.emit("error",ve)}function Q(){I.removeListener("finish",X),ae()}function X(){g("onfinish"),I.removeListener("close",Q),ae()}function ae(){g("unpipe"),ie.unpipe(I)}return ie.on("data",R),function(ve,De,fe){if(typeof ve.prependListener=="function")return ve.prependListener(De,fe);ve._events&&ve._events[De]?a(ve._events[De])?ve._events[De].unshift(fe):ve._events[De]=[fe,ve._events[De]]:ve.on(De,fe)}(I,"error",F),I.once("close",Q),I.once("finish",X),I.emit("pipe",ie),W.flowing||(g("pipe resume"),ie.resume()),I},E.prototype.unpipe=function(I){var B=this._readableState,ie={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return I&&I!==B.pipes?this:(I||(I=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,I&&I.emit("unpipe",this,ie),this);if(!I){var W=B.pipes,G=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var re=0;re<G;re++)W[re].emit("unpipe",this,ie);return this}var se=$(B.pipes,I);return se===-1?this:(B.pipes.splice(se,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),I.emit("unpipe",this,ie),this)},E.prototype.on=function(I,B){var ie=c.prototype.on.call(this,I,B);if(I==="data")this._readableState.flowing!==!1&&this.resume();else if(I==="readable"){var W=this._readableState;W.endEmitted||W.readableListening||(W.readableListening=W.needReadable=!0,W.emittedReadable=!1,W.reading?W.length&&U(this):o.nextTick(ee,this))}return ie},E.prototype.addListener=E.prototype.on,E.prototype.resume=function(){var I=this._readableState;return I.flowing||(g("resume"),I.flowing=!0,function(B,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,o.nextTick(Z,B,ie))}(this,I)),this},E.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},E.prototype.wrap=function(I){var B=this,ie=this._readableState,W=!1;for(var G in I.on("end",function(){if(g("wrapped end"),ie.decoder&&!ie.ended){var se=ie.decoder.end();se&&se.length&&B.push(se)}B.push(null)}),I.on("data",function(se){g("wrapped data"),ie.decoder&&(se=ie.decoder.write(se)),(!ie.objectMode||se!=null)&&(ie.objectMode||se&&se.length)&&(B.push(se)||(W=!0,I.pause()))}),I)this[G]===void 0&&typeof I[G]=="function"&&(this[G]=function(se){return function(){return I[se].apply(I,arguments)}}(G));for(var re=0;re<b.length;re++)I.on(b[re],this.emit.bind(this,b[re]));return this._read=function(se){g("wrapped _read",se),W&&(W=!1,I.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=ne}).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,s){o.emit("error",s)}e.exports={destroy:function(o,s){var a=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(s?s(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){!s&&f?(r.nextTick(i,a,f),a._writableState&&(a._writableState.errorEmitted=!0)):s&&s(f)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(g){var v;switch(this.encoding=function(w){var _=function(b){if(!b)return"utf8";for(var x;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(x)return;b=(""+b).toLowerCase(),x=!0}}(w);if(typeof _!="string"&&(r.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return _||w}(g),this.encoding){case"utf16le":this.text=l,this.end=c,v=4;break;case"utf8":this.fillLast=a,v=4;break;case"base64":this.text=f,this.end=h,v=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(v)}function s(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function a(g){var v=this.lastTotal-this.lastNeed,w=function(_,b,x){if((192&b[0])!=128)return _.lastNeed=0,"<22>";if(_.lastNeed>1&&b.length>1){if((192&b[1])!=128)return _.lastNeed=1,"<22>";if(_.lastNeed>2&&b.length>2&&(192&b[2])!=128)return _.lastNeed=2,"<22>"}}(this,g);return w!==void 0?w:this.lastNeed<=g.length?(g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,v,0,g.length),void(this.lastNeed-=g.length))}function l(g,v){if((g.length-v)%2==0){var w=g.toString("utf16le",v);if(w){var _=w.charCodeAt(w.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function c(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,w)}return v}function f(g,v){var w=(g.length-v)%3;return w===0?g.toString("base64",v):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-w))}function h(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function p(g){return g.toString(this.encoding)}function m(g){return g&&g.length?this.write(g):""}t.StringDecoder=o,o.prototype.write=function(g){if(g.length===0)return"";var v,w;if(this.lastNeed){if((v=this.fillLast(g))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<g.length?v?v+this.text(g,w):this.text(g,w):v||""},o.prototype.end=function(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+"<22>":v},o.prototype.text=function(g,v){var w=function(b,x,E){var P=x.length-1;if(P<E)return 0;var k=s(x[P]);return k>=0?(k>0&&(b.lastNeed=k-1),k):--P<E||k===-2?0:(k=s(x[P]))>=0?(k>0&&(b.lastNeed=k-2),k):--P<E||k===-2?0:(k=s(x[P]))>=0?(k>0&&(k===2?k=0:b.lastNeed=k-3),k):0}(this,g,v);if(!this.lastNeed)return g.toString("utf8",v);this.lastTotal=w;var _=g.length-(w-this.lastNeed);return g.copy(this.lastChar,0,_),g.toString("utf8",v,_)},o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:function(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 m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.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",s)}function s(){var l=this;typeof this._flush=="function"?this._flush(function(c,f){a(l,c,f)}):a(this,null,null)}function a(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),s=r.allocUnsafe?r.allocUnsafe(o):new r(o);return s.write(i),s},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var s=[],a=0;a<i.length;a++)o.indexOf(a)>-1&&s.push(i[a]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l])};return function(s,a){function l(){this.constructor=s}o(s,a),s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(a,l,c){var f=o.call(this,"Error: "+a+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=a,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(s,o),s.column_mismatched=function(a,l){return new s("column_mismatched",a,l)},s.unclosed_quote=function(a,l){return new s("unclosed_quote",a,l)},s.fromJSON=function(a){return new s(a.err,a.line,a.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":s&&s in Object(a)?i(a):o(a)}},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,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var w in v)v.hasOwnProperty(w)&&(g[w]=v[w])};return function(g,v){function w(){this.constructor=g}m(g,v),g.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),a=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(m){function g(v,w){w===void 0&&(w={});var _=m.call(this,w)||this;return _.options=w,_.params=a.mergeParams(v),_.runtime=l.initParseRuntime(_),_.result=new h.Result(_),_.processor=new f.ProcessorLocal(_),_.once("error",function(b){r(function(){_.result.processError(b),_.emit("done",b)})}),_.once("done",function(){_.processor.destroy()}),_}return i(g,m),g.prototype.preRawData=function(v){return this.runtime.preRawDataHook=v,this},g.prototype.preFileLine=function(v){return this.runtime.preFileLineHook=v,this},g.prototype.subscribe=function(v,w,_){return this.parseRuntime.subscribe={onNext:v,onError:w,onCompleted:_},this},g.prototype.fromFile=function(v,w){var _=this,b=n(!function(){var x=new Error("Cannot find module 'fs'");throw x.code="MODULE_NOT_FOUND",x}());return b.exists(v,function(x){x?b.createReadStream(v,w).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},g.prototype.fromStream=function(v){return v.pipe(this),this},g.prototype.fromString=function(v){v.toString();var w=new s.Readable,_=0;return w._read=function(b){if(_>=v.length)this.push(null);else{var x=v.substr(_,b);this.push(x),_+=b}},this.fromStream(w)},g.prototype.then=function(v,w){var _=this;return new c.default(function(b,x){_.parseRuntime.then={onfulfilled:function(E){b(v?v(E):E)},onrejected:function(E){w?b(w(E)):x(E)}}})},Object.defineProperty(g.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),g.prototype._transform=function(v,w,_){var b=this;this.processor.process(v).then(function(x){if(x.length>0)return b.runtime.started=!0,b.result.processResult(x)}).then(function(){b.emit("drained"),_()},function(x){b.runtime.hasError=!0,b.runtime.error=x,b.emit("error",x),_()})},g.prototype._flush=function(v){var w=this;this.processor.flush().then(function(_){if(_.length>0)return w.result.processResult(_)}).then(function(){w.processEnd(v)},function(_){w.emit("error",_),v()})},g.prototype.processEnd=function(v){this.result.endProcess(),this.emit("done"),v()},Object.defineProperty(g.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),g}(s.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var a,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]"?a=function(v){i.nextTick(function(){g(v)})}:function(){if(o.postMessage&&!o.importScripts){var v=!0,w=o.onmessage;return o.onmessage=function(){v=!1},o.postMessage("","*"),o.onmessage=w,v}}()?function(){var v="setImmediate$"+Math.random()+"$",w=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(v)===0&&g(+_.data.slice(v.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),a=function(_){o.postMessage(v+_,"*")}}():o.MessageChannel?function(){var v=new MessageChannel;v.port1.onmessage=function(w){g(w.data)},a=function(w){v.port2.postMessage(w)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var v=h.documentElement;a=function(w){var _=h.createElement("script");_.onreadystatechange=function(){g(w),_.onreadystatechange=null,v.removeChild(_),_=null},v.appendChild(_)}}():a=function(v){setTimeout(g,0,v)},p.setImmediate=function(v){typeof v!="function"&&(v=new Function(""+v));for(var w=new Array(arguments.length-1),_=0;_<w.length;_++)w[_]=arguments[_+1];var b={callback:v,args:w};return c[l]=b,a(l),l++},p.clearImmediate=m}function m(v){delete c[v]}function g(v){if(f)setTimeout(g,0,v);else{var w=c[v];if(w){f=!0;try{(function(_){var b=_.callback,x=_.args;switch(x.length){case 0:b();break;case 1:b(x[0]);break;case 2:b(x[0],x[1]);break;case 3:b(x[0],x[1],x[2]);break;default:b.apply(s,x)}})(w)}finally{m(v),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,s){var a=this;function l(v){o.writable&&o.write(v)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",l),o.on("drain",c),o._isStdio||s&&s.end===!1||(a.on("end",h),a.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 m(v){if(g(),r.listenerCount(this,"error")===0)throw v}function g(){a.removeListener("data",l),o.removeListener("drain",c),a.removeListener("end",h),a.removeListener("close",p),a.removeListener("error",m),o.removeListener("error",m),a.removeListener("end",g),a.removeListener("close",g),o.removeListener("close",g)}return a.on("error",m),o.on("error",m),a.on("end",g),a.on("close",g),o.on("close",g),o.emit("pipe",a),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 m=c(p),g=m[0],v=m[1];return 3*(g+v)/4-v},t.toByteArray=function(p){for(var m,g=c(p),v=g[0],w=g[1],_=new o(3*(v+w)/4-w),b=0,x=w>0?v-4:v,E=0;E<x;E+=4)m=i[p.charCodeAt(E)]<<18|i[p.charCodeAt(E+1)]<<12|i[p.charCodeAt(E+2)]<<6|i[p.charCodeAt(E+3)],_[b++]=m>>16&255,_[b++]=m>>8&255,_[b++]=255&m;return w===2&&(m=i[p.charCodeAt(E)]<<2|i[p.charCodeAt(E+1)]>>4,_[b++]=255&m),w===1&&(m=i[p.charCodeAt(E)]<<10|i[p.charCodeAt(E+1)]<<4|i[p.charCodeAt(E+2)]>>2,_[b++]=m>>8&255,_[b++]=255&m),_},t.fromByteArray=function(p){for(var m,g=p.length,v=g%3,w=[],_=0,b=g-v;_<b;_+=16383)w.push(h(p,_,_+16383>b?b:_+16383));return v===1?(m=p[g-1],w.push(r[m>>2]+r[m<<4&63]+"==")):v===2&&(m=(p[g-2]<<8)+p[g-1],w.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");return g===-1&&(g=m),[g,g===m?0:4-g%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,m,g){for(var v,w=[],_=m;_<g;_+=3)v=(p[_]<<16&16711680)+(p[_+1]<<8&65280)+(255&p[_+2]),w.push(f(v));return w.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(n,r,i,o,s){var a,l,c=8*s-o-1,f=(1<<c)-1,h=f>>1,p=-7,m=i?s-1:0,g=i?-1:1,v=n[r+m];for(m+=g,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=256*a+n[r+m],m+=g,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=g,p-=8);if(a===0)a=1-h;else{if(a===f)return l?NaN:1/0*(v?-1:1);l+=Math.pow(2,o),a-=h}return(v?-1:1)*l*Math.pow(2,a-o)},t.write=function(n,r,i,o,s,a){var l,c,f,h=8*a-s-1,p=(1<<h)-1,m=p>>1,g=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:a-1,w=o?1:-1,_=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+m>=1?g/f:g*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*f-1)*Math.pow(2,s),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;n[i+v]=255&c,v+=w,c/=256,s-=8);for(l=l<<s|c,h+=s;h>0;n[i+v]=255&l,v+=w,l/=256,h-=8);n[i+v-w]|=128*_}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(s,a,l){s.copy(a,l)}e.exports=function(){function s(){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var l={data:a,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},s.prototype.unshift=function(a){var l={data:a,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=a+l.data;return c},s.prototype.concat=function(a){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(a>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var a=!1;return function(){if(!a){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),a=!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(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,a,l){l(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var 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 w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var x in b)b.hasOwnProperty(x)&&(_[x]=b[x])};return function(_,b){function x(){this.constructor=_}w(_,b),_.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),a=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),m=o(n(59)),g=o(n(29)),v=function(w){function _(){var b=w!==null&&w.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(_,w),_.prototype.flush=function(){var b=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var x=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(x,!0).then(function(E){return b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?a.default.reject(g.default.unclosed_quote(b.runtime.parsedLineNumber,b.runtime.csvLineBuffer.toString())):a.default.resolve(E)})}return a.default.resolve([])},_.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(_.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),_.prototype.process=function(b,x){var E,P=this;return x===void 0&&(x=!1),E=x?b.toString():l.prepareData(b,this.converter.parseRuntime),a.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(E):E}).then(function(k){return k&&k.length>0?P.processCSV(k,x):a.default.resolve([])})},_.prototype.processCSV=function(b,x){var E=this,P=this.params,k=this.runtime;k.eol||c.default(b,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),P.ignoreEmpty&&!k.started&&(b=h.trimLeft(b));var N=f.stringToLines(b,k);return x?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(h.bufFromString(N.partial)),N.lines.length>0?(k.preFileLineHook?this.runPreLineHook(N.lines):a.default.resolve(N.lines)).then(function(D){return k.started||E.runtime.headers?E.processCSVBody(D):E.processDataWithHead(D)}):a.default.resolve([])},_.prototype.processDataWithHead=function(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var x="",E=[];b.length;){var P=x+b.shift(),k=this.rowSplit.parse(P);if(k.closed){E=k.cells,x="";break}x=P+c.default(P,this.runtime)}if(this.prependLeftBuf(h.bufFromString(x)),E.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=E}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(b)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var b=this.runtime.headers,x=0;x<b.length;x++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(b[x])){if(!this.params.includeColumns||!this.params.includeColumns.test(b[x]))continue;this.runtime.selectedColumns.push(x)}else this.runtime.selectedColumns.push(x);else this.params.includeColumns?this.params.includeColumns.test(b[x])&&this.runtime.selectedColumns.push(x):this.runtime.selectedColumns.push(x);this.runtime.headers=h.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},_.prototype.processCSVBody=function(b){if(this.params.output==="line")return b;var x=this.rowSplit.parseMultiLines(b);return this.prependLeftBuf(h.bufFromString(x.partial)),this.params.output==="csv"?x.rowsCells:m.default(x.rowsCells,this.converter)},_.prototype.prependLeftBuf=function(b){b&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([b,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=b)},_.prototype.runPreLineHook=function(b){var x=this;return new a.default(function(E,P){(function k(N,D,U,A){if(U>=N.length)A();else if(D.preFileLineHook){var Y=N[U],q=D.preFileLineHook(Y,D.parsedLineNumber+U);if(U++,q&&q.then)q.then(function(ee){N[U-1]=ee,k(N,D,U,A)});else{for(N[U-1]=q;U<N.length;)N[U]=D.preFileLineHook(N[U],D.parsedLineNumber+U),U++;A()}}else A()})(b,x.runtime,0,function(k){k?P(k):E(b)})})},_}(s.Processor);t.ProcessorLocal=v}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(s,a){var l=function(f,h){return h.csvLineBuffer&&h.csvLineBuffer.length>0?r.concat([h.csvLineBuffer,f]):f}(s,a);a.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,a).toString("utf8");return a.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,s){var a=i.default(o,s),l=o.split(a);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),s=[",","|"," ",";",":"],a=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,m=c.split(p);if(f==="off"){if(h)for(var g=0;g<m.length;g++)m[g]=m[g].trim();return{cells:m,closed:!0}}return this.toCSVRow(m,h,f,p)},l.prototype.toCSVRow=function(c,f,h,p){for(var m=[],g=!1,v="",w=0,_=c.length;w<_;w++){var b=c[w];!g&&f&&(b=o.trimLeft(b));var x=b.length;if(g)this.isQuoteClose(b)?(g=!1,v+=p+(b=b.substr(0,x-1)),v=this.escapeQuote(v),f&&(v=o.trimRight(v)),m.push(v),v=""):v+=p+b;else{if(x===2&&b===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(b)){if(b=b.substr(1),this.isQuoteClose(b)){b=b.substring(0,b.lastIndexOf(h)),b=this.escapeQuote(b),m.push(b);continue}if(b.indexOf(h)!==-1){for(var E=0,P="",k=0,N=b;k<N.length;k++){var D=N[k];D===h&&P!==this.escape?(E++,P=""):P=D}if(E%2==1){f&&(b=o.trimRight(b)),m.push(h+b);continue}g=!0,v+=b;continue}g=!0,v+=b;continue}f&&(b=o.trimRight(b)),m.push(b)}}return{cells:m,closed:!g}},l.prototype.getDelimiter=function(c){var f;if(this.conv.parseParam.delimiter==="auto")f=s;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(m){var g=c.split(m).length;g>h&&(p=m,h=g)}),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,m=c.length-1;c[m]===f||c[m]===h;)m--,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(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:f,partial:h}},l}();t.RowSplit=a},function(e,t,n){var r=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function a(_,b,x){if(b.parseParam.checkColumn&&b.parseRuntime.headers&&_.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.parseRuntime.parsedLineNumber+x);return function(E,P,k){for(var N=!1,D={},U=0,A=E.length;U<A;U++){var Y=E[U];if(!k.parseParam.ignoreEmpty||Y!==""){N=!0;var q=P[U];q&&q!==""||(q=P[U]="field"+(U+1));var ee=c(q,U,k);if(ee){var Z=ee(Y,q,D,E,U);Z!==void 0&&f(D,q,Z,k,U)}else k.parseParam.checkType&&(Y=m(Y,q,U,k)(Y)),Y!==void 0&&f(D,q,Y,k,U)}}return N?D:null}(_,b.parseRuntime.headers||[],b)||null}t.default=function(_,b){for(var x=[],E=0,P=_.length;E<P;E++){var k=a(_[E],b,E);k&&x.push(k)}return x};var l={string:v,number:g,omit:function(){}};function c(_,b,x){if(x.parseRuntime.columnConv[b]!==void 0)return x.parseRuntime.columnConv[b];var E=x.parseParam.colParser[_];if(E===void 0)return x.parseRuntime.columnConv[b]=null;if(typeof E=="object"&&(E=E.cellParser||"string"),typeof E=="string"){E=E.trim().toLowerCase();var P=l[E];return x.parseRuntime.columnConv[b]=P||null}return x.parseRuntime.columnConv[b]=typeof E=="function"?E:null}function f(_,b,x,E,P){if(!E.parseRuntime.columnValueSetter[P])if(E.parseParam.flatKeys)E.parseRuntime.columnValueSetter[P]=h;else if(b.indexOf(".")>-1){for(var k=b.split("."),N=!0;k.length>0;)if(k.shift().length===0){N=!1;break}!N||E.parseParam.colParser[b]&&E.parseParam.colParser[b].flat?E.parseRuntime.columnValueSetter[P]=h:E.parseRuntime.columnValueSetter[P]=p}else E.parseRuntime.columnValueSetter[P]=h;E.parseParam.nullObject===!0&&x==="null"&&(x=null),E.parseRuntime.columnValueSetter[P](_,b,x)}function h(_,b,x){_[b]=x}function p(_,b,x){o.default(_,b,x)}function m(_,b,x,E){return E.parseRuntime.headerType[x]?E.parseRuntime.headerType[x]:b.indexOf("number#!")>-1?E.parseRuntime.headerType[x]=g:b.indexOf("string#!")>-1?E.parseRuntime.headerType[x]=v:E.parseParam.checkType?E.parseRuntime.headerType[x]=w:E.parseRuntime.headerType[x]=v}function g(_){var b=parseFloat(_);return isNaN(b)?_:b}function v(_){return _.toString()}function w(_){var b=_.trim();return b===""?v(_):s.test(b)?g(_):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(x){var E=x.trim();return E.length!==5||E.toLowerCase()!=="false"}(_):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.length-1]==="]"?function(x){try{return JSON.parse(x)}catch{return x}}(_):v(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),a=n(104);e.exports=function(l,c,f,h){if(!s(l))return l;for(var p=-1,m=(c=i(c,l)).length,g=m-1,v=l;v!=null&&++p<m;){var w=a(c[p]),_=f;if(p!=g){var b=v[w];(_=h?h(b,w,v):void 0)===void 0&&(_=s(b)?b:o(c[p+1])?[]:{})}r(v,w,_),v=v[w]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(s,a,l){var c=s[a];o.call(s,a)&&i(c,l)&&(l!==void 0||a in s)||r(s,a,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,s){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[o]=s}},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),s=n(72),a=/^\[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(m){return!(!o(m)||i(m))&&(r(m)?p:a).test(s(m))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var s=r(o);return s=="[object Function]"||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(l){var c=o.call(l,a),f=l[a];try{l[a]=void 0;var h=!0}catch{}var p=s.call(l);return h&&(c?l[a]=f:delete l[a]),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),s=n(100);e.exports=function(a,l){return r(a)?a:i(a,l)?[a]:o(s(a))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(a,l){if(r(a))return!1;var c=typeof a;return!(c!="number"&&c!="symbol"&&c!="boolean"&&a!=null&&!i(a))||s.test(a)||!o.test(a)||l!=null&&a 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(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(r,function(l,c,f,h){a.push(f?h.replace(i,"$1"):c||l)}),a});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(a){return s.size===500&&s.clear(),a}),s=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new TypeError(i);var l=function(){var c=arguments,f=a?a.apply(this,c):c[0],h=l.cache;if(h.has(f))return h.get(f);var p=s.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),s=n(98),a=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=s,l.prototype.set=a,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),s=n(86),a=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=s,l.prototype.set=a,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 s=this.__data__;if(r){var a=s[o];return a==="__lodash_hash_undefined__"?void 0:a}return i.call(s,o)?s[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;return r?s[o]!==void 0:i.call(s,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),s=n(92),a=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=s,l.prototype.set=a,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 s=this.__data__,a=r(s,o);return!(a<0||(a==s.length-1?s.pop():i.call(s,a,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,s=r(o,i);return s<0?void 0:o[s][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,a=r(s,i);return a<0?(++this.size,s.push([i,o])):s[a][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 s=r(this,i),a=s.size;return s.set(i,o),this.size+=s.size==a?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),s=n(22),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(s(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,s=Array(o);++i<o;)s[i]=r(n[i],i,n);return s}},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),s=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&&a(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function g(v,w,_,b,x){if(_>=v.length)x();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var E=w.parseRuntime.subscribe.onNext,P=v[_],k=E(P,w.parseRuntime.parsedLineNumber+_);if(_++,k&&k.then)k.then(function(){(function(D,U,A,Y,q,ee,Z){q&&a(A,Z),g(D,A,Y,q,ee)})(v,0,w,_,b,x,P)},x);else{for(b&&a(w,P);_<v.length;){var N=v[_];E(N,w.parseRuntime.parsedLineNumber+_),_++,b&&a(w,N)}x()}}else{if(b)for(;_<v.length;)N=v[_++],a(w,N);x()}}(c,f.converter,0,f.needPushDownstream,function(g){g?m(g):(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"&&a(this.converter,"]"+o.EOL)},l}();function a(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=s},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
||
`,t.homedir=function(){return"/"}}]);const D_e=e=>new Promise(t=>{L_e().fromString(e).then(t)}),A_e=new N_e,I_e=e=>A_e.parse(e),F_e=6,bL="0123456789ABCDEF",$_e=128,{floor:j_e,random:B_e,sqrt:z_e,round:U_e}=Math,V_e=()=>`#${SE(F_e,()=>bL[j_e(B_e()*bL.length)]).join("")}`,wL=e=>e.toLowerCase().trim(),H_e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),W_e=(e=0,t=0,n=0)=>U_e(z_e(.299*e**2+.587*t**2+.114*n**2));class Y_e{constructor(t){Se(this,"colors");Se(this,"lights");Se(this,"getColorForKey",t=>{const n=wL(t),r=this.colors[n];return r||this.setColorForKey(n,V_e())});Se(this,"setColorForKey",(t,n)=>{const r=wL(t);return this.colors[r]=n,this.storage.set("colors",this.colors),n});Se(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if($o(this.lights[n])){const r=H_e(n);this.lights[n]=W_e(...r)>=$_e}return this.lights[n]});this.storage=t,this.colors=this.storage.get("colors")??{},this.lights={}}}const q_e="shlink",xL=e=>`${q_e}.${e}`;class G_e{constructor(t){Se(this,"get",t=>{const n=this.localStorage.getItem(xL(t));return n?JSON.parse(n):void 0});Se(this,"set",(t,n)=>this.localStorage.setItem(xL(t),JSON.stringify(n)));this.localStorage=t}}const Z_e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",G_e,"localStorage"),e.service("ColorGenerator",Y_e,"Storage"),e.constant("csvToJson",D_e),e.constant("jsonToCsv",I_e),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",xoe,"setTimeout","clearTimeout")},aT=e=>e.visitedUrl!==void 0,K_e=e=>e.visitedUrl!==void 0,X_e=It(iZ(e=>aT(e.visit)?"orphanVisits":"regularVisits"),e=>({orphanVisits:[],regularVisits:[],...e})),$p=(e,t)=>CI(ct(t),e),ph=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Hs(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Hs(r==null?void 0:r.endDate))??void 0,s=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:s}},mh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>C("header",{children:V(Cr,{body:!0,children:[V("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[C(mt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:C(je,{icon:XI})}),C("span",{className:"text-center d-none d-sm-block",children:C("small",{children:i})}),V("span",{className:"badge badge-main ms-3",children:["Visits:"," ",C(q8,{visitsCount:e.length,shortUrl:n})]})]}),C("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:C("small",{children:i})}),r&&C("div",{className:"mt-md-2",children:r})]})});const DF=({title:e,footer:t,children:n})=>V(Cr,{role:"document",children:[C(rl,{className:"chart-card__header",children:typeof e=="function"?e():e}),C(nl,{children:n}),t&&C(JC,{className:"chart-card__footer--sticky",children:t})]}),AF="label";function SL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Q_e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function IF(e,t){e.labels=t}function FF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:AF;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function J_e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AF;const n={labels:[],datasets:[]};return IF(n,e.labels),FF(n,e.datasets,t),n}function $F(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function e0e(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e,m=H.useRef(null),g=H.useRef(),v=()=>{m.current&&(g.current=new py(m.current,{type:s,data:J_e(a,o),options:l&&{...l},plugins:c}),SL(t,g.current))},w=()=>{SL(t,null),g.current&&(g.current.destroy(),g.current=null)};return H.useEffect(()=>{!i&&g.current&&l&&Q_e(g.current,l)},[i,l]),H.useEffect(()=>{!i&&g.current&&IF(g.current.config.data,a.labels)},[i,a.labels]),H.useEffect(()=>{!i&&g.current&&a.datasets&&FF(g.current.config.data,a.datasets,o)},[i,a.datasets]),H.useEffect(()=>{g.current&&(i?(w(),setTimeout(v)):g.current.update(h))},[i,l,a.labels,a.datasets,h]),H.useEffect(()=>{g.current&&(w(),setTimeout(v))},[s]),H.useEffect(()=>(v(),()=>w()),[]),z.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),f)}const t0e=H.forwardRef(e0e);function lT(e,t){return py.register(t),H.forwardRef((n,r)=>z.createElement(t0e,Object.assign({},n,{ref:r,type:e})))}const n0e=lT("line",af),r0e=lT("bar",sf),i0e=lT("doughnut",ls),jF=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},BF=({dataset:e,raw:t})=>`${e.label}: ${bn(`${t}`)}`,o0e=({label:e,raw:t})=>`${e}: ${bn(`${t}`)}`;const s0e=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return C("ul",{className:"doughnut-chart-legend",children:n.map((s,a)=>V("li",{className:"doughnut-chart-legend__item d-flex",children:[C("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[a]??o}}),C("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},a0e=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:Loe()?Noe:Roe,borderWidth:2}],l0e=(e,t)=>({labels:e,datasets:a0e(t)}),c0e=H.memo(({stats:e})=>{const[t,n]=H.useState(),r=Ji(e),i=Kc(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:o0e}}}},s=l0e(r,i);return V("div",{className:"row",children:[C("div",{className:"col-sm-12 col-md-7",children:C(i0e,{height:300,data:s,options:o,ref:a=>{n(a??void 0)}})}),C("div",{className:"col-sm-12 col-md-5",children:t&&C(s0e,{chart:t})})]})}),CL=({title:e,stats:t})=>C(DF,{title:e,children:C(c0e,{stats:t})}),u0e={"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"},zF={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"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ar={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"},Xo={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class xe{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=xe.getVersionPrecision(t),o=xe.getVersionPrecision(n);let s=Math.max(i,o),a=0;const l=xe.map([t,n],c=>{const f=s-xe.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return xe.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]<l[1][s])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const 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 s=n[i];typeof s=="object"&&s!==null&&Object.keys(s).forEach(l=>{r[l]=s[l]})}return t}static getBrowserAlias(t){return u0e[t]}static getBrowserTypeByAlias(t){return zF[t]||""}}const Ct=/version\/(\d+(\.?_?\d+)+)/i,f0e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=xe.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=xe.getFirstMatch(Ct,e)||xe.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=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=xe.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=xe.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=xe.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=xe.getFirstMatch(Ct,e)||xe.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=xe.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=xe.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=xe.getFirstMatch(Ct,e)||xe.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=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=xe.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,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=xe.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=xe.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=xe.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=xe.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=xe.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=xe.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=xe.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=xe.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=xe.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=xe.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=xe.getFirstMatch(Ct,e)||xe.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=xe.getFirstMatch(Ct,e)||xe.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=xe.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=xe.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=xe.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=xe.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=xe.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=xe.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=xe.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=xe.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=xe.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=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:xe.getFirstMatch(i,e),version:xe.getSecondMatch(i,e)}}}],d0e=[{test:[/Roku\/DVP/],describe(e){const t=xe.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ar.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=xe.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ar.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=xe.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=xe.getWindowsVersionName(t);return{name:ar.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ar.iOS},n=xe.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=xe.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=xe.getMacOSVersionName(t),r={name:ar.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=xe.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ar.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=xe.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=xe.getAndroidVersionName(t),r={name:ar.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=xe.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ar.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=xe.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||xe.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||xe.getFirstMatch(/\bbb(\d+)/i,e);return{name:ar.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=xe.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ar.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=xe.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ar.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ar.Linux}}},{test:[/CrOS/],describe(){return{name:ar.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=xe.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ar.PlayStation4,version:t}}}],h0e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=xe.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=xe.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],p0e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Xo.Blink};const n=xe.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Xo.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Xo.Trident},n=xe.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Xo.Presto},n=xe.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:Xo.Gecko},n=xe.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Xo.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Xo.WebKit},n=xe.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class EL{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=xe.find(f0e,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=xe.find(d0e,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=xe.find(h0e,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=xe.find(p0e,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 xe.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const l=t[a];typeof l=="string"?(i[a]=l,o+=1):typeof l=="object"&&(n[a]=l,r+=1)}),r>0){const a=Object.keys(n),l=xe.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=xe.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const a=Object.keys(i),l=xe.find(a,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=xe.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(xe.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 m0e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new EL(t,n)}static parse(t){return new EL(t).getResult()}static get BROWSER_MAP(){return zF}static get ENGINE_MAP(){return Xo}static get OS_MAP(){return ar}static get PLATFORMS_MAP(){return nn}}const jp="Others",g0e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],v0e=e=>{if(!yi(e))return{browser:jp,os:jp};const{browser:{name:t},os:{name:n}}=m0e.parse(e);return{os:n??jp,browser:t&&g0e.includes(t)?t:jp}},y0e=e=>{var t;return yi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},cT=(e,t)=>Object.values({...kI(t,t.map(()=>0)),...e});const TL={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},_0e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},b0e={hourly:Iae,daily:kE,weekly:Bae,monthly:_v},uT={hourly:e=>vo(e,"yyyy-MM-dd HH:00"),daily:e=>vo(e,Pf),weekly(e){const t=vo(Sd(e),Pf),n=vo(Hae(e),Pf);return`${t} - ${n}`},monthly:e=>vo(e,"yyyy-MM")},w0e=e=>{const t=new Date,n=Do(e);return i_([[()=>kE(t,n)<=2,X0("hourly")],[()=>_v(t,n)<=1,X0("daily")],[()=>_v(t,n)<=6,X0("weekly")]])()??"monthly"},OL=(e,t)=>CI(n=>uT[e](Do(n.date)),t),x0e=(e,t)=>t.reduce((n,r)=>{const i=uT[e](Do(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),S0e=(e,t)=>{const n=b0e[e],r=uT[e],i=Do(t[0].date),o=Do(t[t.length-1].date),s=n(i,o),a=_0e[e];return[r(o),...SE(s,l=>r(Eae(o,a(l))))]},C0e=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=S0e(n,e);return[i,cT(t,i)]},PL=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let Kb=null;const E0e=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;Kb===e[i]?(r([]),Kb=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),Kb=e[i]??null)},T0e=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=H.useState(t.length>0?w0e(t[t.length-1].date):"monthly"),[a,l]=jt(!0),c=H.useRef(null),f=H.useRef(null),h=H.useMemo(()=>x0e(o,t),[o,t]),p=H.useMemo(()=>OL(o,hw(t)),[o,t]),[m,g]=H.useMemo(()=>C0e(t,p,o,a),[t,o,a]),v=H.useMemo(()=>cT(OL(o,hw(n)),m),[n,o,m]),w=()=>{const E=PL(g,"Visits",hE);if(n.length===0)return[E];const P=PL(v,r,x5);return[E,P]},_=()=>({labels:m,datasets:w()}),b={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:BF}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:bn}},x:{title:{display:!0,text:TL[o]}}},onHover:jF},x=E=>C(n0e,{ref:E,data:_(),options:b,onClick:P=>E0e(m,h,$F(E.current,P),i)});return V(Cr,{children:[V(rl,{role:"heading",children:[e,C("div",{className:"float-end",children:V(Jd,{children:[C(eu,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),C(hl,{end:!0,children:Object.entries(TL).map(([E,P])=>C(Ve,{active:o===E,onClick:()=>s(E),children:P},E))})]})}),C("div",{className:"float-end me-2",children:C(Uc,{checked:a,onChange:l,children:C("small",{children:"Skip dates with no visits"})})})]}),V(nl,{className:"line-chart-card__body",children:[n.length>0&&x(c),n.length===0&&x(f)]})]})},O0e=({toggleClassName:e,ranges:t,value:n,setValue:r})=>V(Jd,{children:[C(eu,{caret:!0,color:"link",className:e,children:"Paginate"}),V(hl,{end:!0,children:[t.map(i=>V(Ve,{active:i===n,onClick:()=>r(i),children:[C("b",{children:i})," items per page"]},i)),C(Ve,{divider:!0}),C(Ve,{disabled:n===1/0,onClick:()=>r(1/0),children:C("i",{children:"Clear pagination"})})]})]}),P0e=e=>e.startsWith("hidden")?"":e,k0e=e=>!!e&&Object.keys(e).length>0,M0e=e=>e.length>20?e.length*10:void 0,R0e=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:koe,borderColor:hE,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:Moe,borderColor:x5,borderWidth:2}]},N0e=(e,t,n,r)=>({labels:e,datasets:R0e(t,n,r)}),L0e=(e,[t],n)=>{!n||!t||n(e[t.index])},D0e=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=Ji(e).map(P0e),s=Kc(k0e(t)?Ji(t).reduce((g,v)=>(g[v]&&(g[v]-=t[v]),g),{...e}):e),a=cT(t??{},o),l=H.useRef(null),c=H.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:g})=>g!=="",callbacks:{label:BF}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:bn}},y:{stacked:!0}},onHover:jF,indexAxis:"y"},h=N0e(o,s,a,n),p=M0e(o),m=(g,v)=>C(r0e,{ref:v,data:h,options:f,height:p,onClick:w=>L0e(o,$F(v.current,w),r)},`${p}_${g}`);return V(Ye,{children:[t!==void 0&&m("with_stats",l),t===void 0&&m("without_stats",c)]})},A0e=e=>Gg(e)==="String"?OZ(e):e,kL=([e])=>e,ML=([,e])=>e,Bp=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[a,l]=H.useState({}),[c,f]=H.useState(1),[h,p]=H.useState(50),m=(N,D)=>{const U=Kg(N),A=a.field?CZ(It(a.field===Object.keys(D)[0]?kL:ML,A0e),U):U;return!a.dir||a.dir==="ASC"?A:hw(A)},g=N=>{const D=N[c-1];if(c<N.length)return D;const U=N[0].length;return[...D,...SE(U-D.length,A=>[`hidden_${A}`,0])]},v=N=>C(tT,{currentPage:c,pagesCount:N,setCurrentPage:f}),w=(N,D,U)=>{const A=m(N,D),Y=A.map(kL),q=U&&Kg({...kI(Y,Y.map(()=>0)),...U});if(A.length<=h)return{currentPageStats:Gu(A),currentPageHighlightedStats:q&&Gu(q)};const ee=ld(h,A),Z=q&&ld(h,q);return{currentPageStats:Gu(g(ee)),currentPageHighlightedStats:Z&&Gu(g(Z)),pagination:v(ee.length),max:Bpe(Math.max(...A.map(ML)))}},{currentPageStats:_,currentPageHighlightedStats:b,pagination:x,max:E}=w(e,r,t&&Object.keys(t).length>0?t:void 0),P=Object.keys(_);return C(DF,{title:()=>V(Ye,{children:[n,C("div",{className:"float-end",children:C(hh,{isButton:!1,right:!0,items:r,order:a,onChange:(N,D)=>{l({field:N,dir:D}),f(1)}})}),o&&Object.keys(e).length>50&&C("div",{className:"float-end",children:C(O0e,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:N=>{p(N),f(1)}})}),i&&C("div",{className:"float-end",children:i(x?P:void 0)})]}),footer:x,children:C(D0e,{stats:_,highlightedStats:b,max:E,...s})})},I0e=()=>{const e=Fo(),{search:t}=Mn(),{filtering:n,domain:r}=H.useMemo(It(()=>dl(t),({startDate:o,endDate:s,orphanVisitsType:a,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||s!=null?E8(o,s):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:$o(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:s,visitsFilter:a}=TI(n,o),{excludeBots:l,orphanVisitsType:c}=a,f={startDate:(s==null?void 0:s.startDate)&&Hs(s.startDate)||"",endDate:(s==null?void 0:s.endDate)&&Hs(s.endDate)||"",excludeBots:l===void 0?void 0:Y5(l),orphanVisitsType:c,domain:r},h=Hd(f),p=qn(h)?"":`?${h}`;e(p,{replace:!0,relative:"route"})}]};function UF(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 F0e=1;function $0e(e){return Object.freeze({__version:F0e,map:e})}function j0e(e,t){return Object.freeze({...e,...t})}const VF=H.createContext(null),HF=VF.Provider;function WF(){const e=H.useContext(VF);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function B0e(e){function t(n,r){const{instance:i,context:o}=e(n).current;return H.useImperativeHandle(r,()=>i),n.children==null?null:z.createElement(HF,{value:o},n.children)}return H.forwardRef(t)}function z0e(e){function t(n,r){const[i,o]=H.useState(!1),{instance:s}=e(n,o).current;H.useImperativeHandle(r,()=>s),H.useEffect(function(){i&&s.update()},[s,i,n.children]);const a=s._contentNode;return a?Ya.createPortal(n.children,a):null}return H.forwardRef(t)}function U0e(e){function t(n,r){const{instance:i}=e(n).current;return H.useImperativeHandle(r,()=>i),null}return H.forwardRef(t)}function YF(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 fT(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function V0e(e,t){return function(r,i){const o=WF(),s=e(fT(r,o),o);return UF(o.map,r.attribution),YF(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var Ws={},H0e={get exports(){return Ws},set exports(e){Ws=e}};/* @preserve
|
||
* Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/(function(e,t){(function(n,r){r(t)})(Bl,function(n){var r="1.9.3";function i(u){var d,y,T,M;for(y=1,T=arguments.length;y<T;y++){M=arguments[y];for(d in M)u[d]=M[d]}return u}var o=Object.create||function(){function u(){}return function(d){return u.prototype=d,new u}}();function s(u,d){var y=Array.prototype.slice;if(u.bind)return u.bind.apply(u,y.call(arguments,1));var T=y.call(arguments,2);return function(){return u.apply(d,T.length?T.concat(y.call(arguments)):arguments)}}var a=0;function l(u){return"_leaflet_id"in u||(u._leaflet_id=++a),u._leaflet_id}function c(u,d,y){var T,M,j,J;return J=function(){T=!1,M&&(j.apply(y,M),M=!1)},j=function(){T?M=arguments:(u.apply(y,arguments),setTimeout(J,d),T=!0)},j}function f(u,d,y){var T=d[1],M=d[0],j=T-M;return u===T&&y?u:((u-M)%j+j)%j+M}function h(){return!1}function p(u,d){if(d===!1)return u;var y=Math.pow(10,d===void 0?6:d);return Math.round(u*y)/y}function m(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function g(u){return m(u).split(/\s+/)}function v(u,d){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var y in d)u.options[y]=d[y];return u.options}function w(u,d,y){var T=[];for(var M in u)T.push(encodeURIComponent(y?M.toUpperCase():M)+"="+encodeURIComponent(u[M]));return(!d||d.indexOf("?")===-1?"?":"&")+T.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function b(u,d){return u.replace(_,function(y,T){var M=d[T];if(M===void 0)throw new Error("No value provided for variable "+y);return typeof M=="function"&&(M=M(d)),M})}var x=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function E(u,d){for(var y=0;y<u.length;y++)if(u[y]===d)return y;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var N=0;function D(u){var d=+new Date,y=Math.max(0,16-(d-N));return N=d+y,window.setTimeout(u,y)}var U=window.requestAnimationFrame||k("RequestAnimationFrame")||D,A=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function Y(u,d,y){if(y&&U===D)u.call(d);else return U.call(window,s(u,d))}function q(u){u&&A.call(window,u)}var ee={__proto__:null,extend:i,create:o,bind:s,get lastId(){return a},stamp:l,throttle:c,wrapNum:f,falseFn:h,formatNum:p,trim:m,splitWords:g,setOptions:v,getParamString:w,template:b,isArray:x,indexOf:E,emptyImageUrl:P,requestFn:U,cancelFn:A,requestAnimFrame:Y,cancelAnimFrame:q};function Z(){}Z.extend=function(u){var d=function(){v(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},y=d.__super__=this.prototype,T=o(y);T.constructor=d,d.prototype=T;for(var M in this)Object.prototype.hasOwnProperty.call(this,M)&&M!=="prototype"&&M!=="__super__"&&(d[M]=this[M]);return u.statics&&i(d,u.statics),u.includes&&(te(u.includes),i.apply(null,[T].concat(u.includes))),i(T,u),delete T.statics,delete T.includes,T.options&&(T.options=y.options?o(y.options):{},i(T.options,u.options)),T._initHooks=[],T.callInitHooks=function(){if(!this._initHooksCalled){y.callInitHooks&&y.callInitHooks.call(this),this._initHooksCalled=!0;for(var j=0,J=T._initHooks.length;j<J;j++)T._initHooks[j].call(this)}},d},Z.include=function(u){var d=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=d,this.mergeOptions(u.options)),this},Z.mergeOptions=function(u){return i(this.prototype.options,u),this},Z.addInitHook=function(u){var d=Array.prototype.slice.call(arguments,1),y=typeof u=="function"?u:function(){this[u].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(y),this};function te(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=x(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 ne={on:function(u,d,y){if(typeof u=="object")for(var T in u)this._on(T,u[T],d);else{u=g(u);for(var M=0,j=u.length;M<j;M++)this._on(u[M],d,y)}return this},off:function(u,d,y){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var T in u)this._off(T,u[T],d);else{u=g(u);for(var M=arguments.length===1,j=0,J=u.length;j<J;j++)M?this._off(u[j]):this._off(u[j],d,y)}return this},_on:function(u,d,y,T){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(u,d,y)===!1){y===this&&(y=void 0);var M={fn:d,ctx:y};T&&(M.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(M)}},_off:function(u,d,y){var T,M,j;if(this._events&&(T=this._events[u],!!T)){if(arguments.length===1){if(this._firingCount)for(M=0,j=T.length;M<j;M++)T[M].fn=h;delete this._events[u];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var J=this._listens(u,d,y);if(J!==!1){var de=T[J];this._firingCount&&(de.fn=h,this._events[u]=T=T.slice()),T.splice(J,1)}}},fire:function(u,d,y){if(!this.listens(u,y))return this;var T=i({},d,{type:u,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var M=this._events[u];if(M){this._firingCount=this._firingCount+1||1;for(var j=0,J=M.length;j<J;j++){var de=M[j],pe=de.fn;de.once&&this.off(u,pe,de.ctx),pe.call(de.ctx||this,T)}this._firingCount--}}return y&&this._propagateEvent(T),this},listens:function(u,d,y,T){typeof u!="string"&&console.warn('"string" type argument expected');var M=d;typeof d!="function"&&(T=!!d,M=void 0,y=void 0);var j=this._events&&this._events[u];if(j&&j.length&&this._listens(u,M,y)!==!1)return!0;if(T){for(var J in this._eventParents)if(this._eventParents[J].listens(u,d,y,T))return!0}return!1},_listens:function(u,d,y){if(!this._events)return!1;var T=this._events[u]||[];if(!d)return!!T.length;y===this&&(y=void 0);for(var M=0,j=T.length;M<j;M++)if(T[M].fn===d&&T[M].ctx===y)return M;return!1},once:function(u,d,y){if(typeof u=="object")for(var T in u)this._on(T,u[T],d,!0);else{u=g(u);for(var M=0,j=u.length;M<j;M++)this._on(u[M],d,y,!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)}};ne.addEventListener=ne.on,ne.removeEventListener=ne.clearAllEventListeners=ne.off,ne.addOneTimeEventListener=ne.once,ne.fireEvent=ne.fire,ne.hasEventListeners=ne.listens;var le=Z.extend(ne);function K(u,d,y){this.x=y?Math.round(u):u,this.y=y?Math.round(d):d}var $=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};K.prototype={clone:function(){return new K(this.x,this.y)},add:function(u){return this.clone()._add(I(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(I(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 K(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new K(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=$(this.x),this.y=$(this.y),this},distanceTo:function(u){u=I(u);var d=u.x-this.x,y=u.y-this.y;return Math.sqrt(d*d+y*y)},equals:function(u){return u=I(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=I(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 I(u,d,y){return u instanceof K?u:x(u)?new K(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new K(u.x,u.y):new K(u,d,y)}function B(u,d){if(u)for(var y=d?[u,d]:u,T=0,M=y.length;T<M;T++)this.extend(y[T])}B.prototype={extend:function(u){var d,y;if(!u)return this;if(u instanceof K||typeof u[0]=="number"||"x"in u)d=y=I(u);else if(u=ie(u),d=u.min,y=u.max,!d||!y)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=y.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(y.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(y.y,this.max.y)),this},getCenter:function(u){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(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,y;return typeof u[0]=="number"||u instanceof K?u=I(u):u=ie(u),u instanceof B?(d=u.min,y=u.max):d=y=u,d.x>=this.min.x&&y.x<=this.max.x&&d.y>=this.min.y&&y.y<=this.max.y},intersects:function(u){u=ie(u);var d=this.min,y=this.max,T=u.min,M=u.max,j=M.x>=d.x&&T.x<=y.x,J=M.y>=d.y&&T.y<=y.y;return j&&J},overlaps:function(u){u=ie(u);var d=this.min,y=this.max,T=u.min,M=u.max,j=M.x>d.x&&T.x<y.x,J=M.y>d.y&&T.y<y.y;return j&&J},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,y=this.max,T=Math.abs(d.x-y.x)*u,M=Math.abs(d.y-y.y)*u;return ie(I(d.x-T,d.y-M),I(y.x+T,y.y+M))},equals:function(u){return u?(u=ie(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function ie(u,d){return!u||u instanceof B?u:new B(u,d)}function W(u,d){if(u)for(var y=d?[u,d]:u,T=0,M=y.length;T<M;T++)this.extend(y[T])}W.prototype={extend:function(u){var d=this._southWest,y=this._northEast,T,M;if(u instanceof re)T=u,M=u;else if(u instanceof W){if(T=u._southWest,M=u._northEast,!T||!M)return this}else return u?this.extend(se(u)||G(u)):this;return!d&&!y?(this._southWest=new re(T.lat,T.lng),this._northEast=new re(M.lat,M.lng)):(d.lat=Math.min(T.lat,d.lat),d.lng=Math.min(T.lng,d.lng),y.lat=Math.max(M.lat,y.lat),y.lng=Math.max(M.lng,y.lng)),this},pad:function(u){var d=this._southWest,y=this._northEast,T=Math.abs(d.lat-y.lat)*u,M=Math.abs(d.lng-y.lng)*u;return new W(new re(d.lat-T,d.lng-M),new re(y.lat+T,y.lng+M))},getCenter:function(){return new re((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 re(this.getNorth(),this.getWest())},getSouthEast:function(){return new re(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 re||"lat"in u?u=se(u):u=G(u);var d=this._southWest,y=this._northEast,T,M;return u instanceof W?(T=u.getSouthWest(),M=u.getNorthEast()):T=M=u,T.lat>=d.lat&&M.lat<=y.lat&&T.lng>=d.lng&&M.lng<=y.lng},intersects:function(u){u=G(u);var d=this._southWest,y=this._northEast,T=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>=d.lat&&T.lat<=y.lat,J=M.lng>=d.lng&&T.lng<=y.lng;return j&&J},overlaps:function(u){u=G(u);var d=this._southWest,y=this._northEast,T=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>d.lat&&T.lat<y.lat,J=M.lng>d.lng&&T.lng<y.lng;return j&&J},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=G(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function G(u,d){return u instanceof W?u:new W(u,d)}function re(u,d,y){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,y!==void 0&&(this.alt=+y)}re.prototype={equals:function(u,d){if(!u)return!1;u=se(u);var y=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return y<=(d===void 0?1e-9:d)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return O.distance(this,se(u))},wrap:function(){return O.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,y=d/Math.cos(Math.PI/180*this.lat);return G([this.lat-d,this.lng-y],[this.lat+d,this.lng+y])},clone:function(){return new re(this.lat,this.lng,this.alt)}};function se(u,d,y){return u instanceof re?u:x(u)&&typeof u[0]!="object"?u.length===3?new re(u[0],u[1],u[2]):u.length===2?new re(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new re(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new re(u,d,y)}var me={latLngToPoint:function(u,d){var y=this.projection.project(u),T=this.scale(d);return this.transformation._transform(y,T)},pointToLatLng:function(u,d){var y=this.scale(d),T=this.transformation.untransform(u,y);return this.projection.unproject(T)},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,y=this.scale(u),T=this.transformation.transform(d.min,y),M=this.transformation.transform(d.max,y);return new B(T,M)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,y=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,T=u.alt;return new re(y,d,T)},wrapLatLngBounds:function(u){var d=u.getCenter(),y=this.wrapLatLng(d),T=d.lat-y.lat,M=d.lng-y.lng;if(T===0&&M===0)return u;var j=u.getSouthWest(),J=u.getNorthEast(),de=new re(j.lat-T,j.lng-M),pe=new re(J.lat-T,J.lng-M);return new W(de,pe)}},O=i({},me,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var y=Math.PI/180,T=u.lat*y,M=d.lat*y,j=Math.sin((d.lat-u.lat)*y/2),J=Math.sin((d.lng-u.lng)*y/2),de=j*j+Math.cos(T)*Math.cos(M)*J*J,pe=2*Math.atan2(Math.sqrt(de),Math.sqrt(1-de));return this.R*pe}}),R=6378137,F={R,MAX_LATITUDE:85.0511287798,project:function(u){var d=Math.PI/180,y=this.MAX_LATITUDE,T=Math.max(Math.min(y,u.lat),-y),M=Math.sin(T*d);return new K(this.R*u.lng*d,this.R*Math.log((1+M)/(1-M))/2)},unproject:function(u){var d=180/Math.PI;return new re((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*d,u.x*d/this.R)},bounds:function(){var u=R*Math.PI;return new B([-u,-u],[u,u])}()};function Q(u,d,y,T){if(x(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=y,this._d=T}Q.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 K((u.x/d-this._b)/this._a,(u.y/d-this._d)/this._c)}};function X(u,d,y,T){return new Q(u,d,y,T)}var ae=i({},O,{code:"EPSG:3857",projection:F,transformation:function(){var u=.5/(Math.PI*F.R);return X(u,.5,-u,.5)}()}),ve=i({},ae,{code:"EPSG:900913"});function De(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function fe(u,d){var y="",T,M,j,J,de,pe;for(T=0,j=u.length;T<j;T++){for(de=u[T],M=0,J=de.length;M<J;M++)pe=de[M],y+=(M?"L":"M")+pe.x+" "+pe.y;y+=d?We.svg?"z":"x":""}return y||"M0 0"}var ye=document.documentElement.style,be="ActiveXObject"in window,Oe=be&&!document.addEventListener,Ae="msLaunchUri"in navigator&&!("documentMode"in document),Ne=$n("webkit"),Le=$n("android"),ue=$n("android 2")||$n("android 3"),he=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),we=Le&&$n("Google")&&he<537&&!("AudioNode"in window),_e=!!window.opera,Ee=!Ae&&$n("chrome"),Me=$n("gecko")&&!Ne&&!_e&&!be,Fe=!Ee&&$n("safari"),tt=$n("phantom"),nt="OTransition"in ye,Ke=navigator.platform.indexOf("Win")===0,qt=be&&"transition"in ye,zt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ue,Sn="MozPerspective"in ye,or=!window.L_DISABLE_3D&&(qt||zt||Sn)&&!nt&&!tt,Ri=typeof orientation<"u"||$n("mobile"),An=Ri&&Ne,ou=Ri&&zt,Ni=!window.PointerEvent&&window.MSPointerEvent,vh=!!(window.PointerEvent||Ni),yh="ontouchstart"in window||!!window.TouchEvent,_h=!window.L_NO_TOUCH&&(yh||vh),su=Ri&&_e,oa=Ri&&Me,cn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,en=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}(),sr=function(){return!!document.createElement("canvas").getContext}(),In=!!(document.createElementNS&&De("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"}(),mn=!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}}(),li=navigator.platform.indexOf("Mac")===0,ci=navigator.platform.indexOf("Linux")===0;function $n(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var We={ie:be,ielt9:Oe,edge:Ae,webkit:Ne,android:Le,android23:ue,androidStock:we,opera:_e,chrome:Ee,gecko:Me,safari:Fe,phantom:tt,opera12:nt,win:Ke,ie3d:qt,webkit3d:zt,gecko3d:Sn,any3d:or,mobile:Ri,mobileWebkit:An,mobileWebkit3d:ou,msPointer:Ni,pointer:vh,touch:_h,touchNative:yh,mobileOpera:su,mobileGecko:oa,retina:cn,passiveEvents:en,canvas:sr,svg:In,vml:mn,inlineSvg:Fn,mac:li,linux:ci},gT=We.msPointer?"MSPointerDown":"pointerdown",vT=We.msPointer?"MSPointerMove":"pointermove",yT=We.msPointer?"MSPointerUp":"pointerup",_T=We.msPointer?"MSPointerCancel":"pointercancel",F_={touchstart:gT,touchmove:vT,touchend:yT,touchcancel:_T},bT={touchstart:d$,touchmove:bh,touchend:bh,touchcancel:bh},gl={},wT=!1;function a$(u,d,y){return d==="touchstart"&&f$(),bT[d]?(y=bT[d].bind(this,y),u.addEventListener(F_[d],y,!1),y):(console.warn("wrong event specified:",d),h)}function l$(u,d,y){if(!F_[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(F_[d],y,!1)}function c$(u){gl[u.pointerId]=u}function u$(u){gl[u.pointerId]&&(gl[u.pointerId]=u)}function xT(u){delete gl[u.pointerId]}function f$(){wT||(document.addEventListener(gT,c$,!0),document.addEventListener(vT,u$,!0),document.addEventListener(yT,xT,!0),document.addEventListener(_T,xT,!0),wT=!0)}function bh(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var y in gl)d.touches.push(gl[y]);d.changedTouches=[d],u(d)}}function d$(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&jn(d),bh(u,d)}function h$(u){var d={},y,T;for(T in u)y=u[T],d[T]=y&&y.bind?y.bind(u):y;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var p$=200;function m$(u,d){u.addEventListener("dblclick",d);var y=0,T;function M(j){if(j.detail!==1){T=j.detail;return}if(!(j.pointerType==="mouse"||j.sourceCapabilities&&!j.sourceCapabilities.firesTouchEvents)){var J=OT(j);if(!(J.some(function(pe){return pe instanceof HTMLLabelElement&&pe.attributes.for})&&!J.some(function(pe){return pe instanceof HTMLInputElement||pe instanceof HTMLSelectElement}))){var de=Date.now();de-y<=p$?(T++,T===2&&d(h$(j))):T=1,y=de}}}return u.addEventListener("click",M),{dblclick:d,simDblclick:M}}function g$(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var $_=Sh(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),au=Sh(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ST=au==="webkitTransition"||au==="OTransition"?au+"End":"transitionend";function CT(u){return typeof u=="string"?document.getElementById(u):u}function lu(u,d){var y=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!y||y==="auto")&&document.defaultView){var T=document.defaultView.getComputedStyle(u,null);y=T?T[d]:null}return y==="auto"?null:y}function ht(u,d,y){var T=document.createElement(u);return T.className=d||"",y&&y.appendChild(T),T}function Ut(u){var d=u.parentNode;d&&d.removeChild(u)}function wh(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function vl(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function yl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function j_(u,d){if(u.classList!==void 0)return u.classList.contains(d);var y=xh(u);return y.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(y)}function Je(u,d){if(u.classList!==void 0)for(var y=g(d),T=0,M=y.length;T<M;T++)u.classList.add(y[T]);else if(!j_(u,d)){var j=xh(u);B_(u,(j?j+" ":"")+d)}}function tn(u,d){u.classList!==void 0?u.classList.remove(d):B_(u,m((" "+xh(u)+" ").replace(" "+d+" "," ")))}function B_(u,d){u.className.baseVal===void 0?u.className=d:u.className.baseVal=d}function xh(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&&v$(u,d)}function v$(u,d){var y=!1,T="DXImageTransform.Microsoft.Alpha";try{y=u.filters.item(T)}catch{if(d===1)return}d=Math.round(d*100),y?(y.Enabled=d!==100,y.Opacity=d):u.style.filter+=" progid:"+T+"(opacity="+d+")"}function Sh(u){for(var d=document.documentElement.style,y=0;y<u.length;y++)if(u[y]in d)return u[y];return!1}function sa(u,d,y){var T=d||new K(0,0);u.style[$_]=(We.ie3d?"translate("+T.x+"px,"+T.y+"px)":"translate3d("+T.x+"px,"+T.y+"px,0)")+(y?" scale("+y+")":"")}function un(u,d){u._leaflet_pos=d,We.any3d?sa(u,d):(u.style.left=d.x+"px",u.style.top=d.y+"px")}function aa(u){return u._leaflet_pos||new K(0,0)}var cu,uu,z_;if("onselectstart"in document)cu=function(){Xe(window,"selectstart",jn)},uu=function(){Et(window,"selectstart",jn)};else{var fu=Sh(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);cu=function(){if(fu){var u=document.documentElement.style;z_=u[fu],u[fu]="none"}},uu=function(){fu&&(document.documentElement.style[fu]=z_,z_=void 0)}}function U_(){Xe(window,"dragstart",jn)}function V_(){Et(window,"dragstart",jn)}var Ch,H_;function W_(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Eh(),Ch=u,H_=u.style.outline,u.style.outline="none",Xe(window,"keydown",Eh))}function Eh(){Ch&&(Ch.style.outline=H_,Ch=void 0,H_=void 0,Et(window,"keydown",Eh))}function ET(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Y_(u){var d=u.getBoundingClientRect();return{x:d.width/u.offsetWidth||1,y:d.height/u.offsetHeight||1,boundingClientRect:d}}var y$={__proto__:null,TRANSFORM:$_,TRANSITION:au,TRANSITION_END:ST,get:CT,getStyle:lu,create:ht,remove:Ut,empty:wh,toFront:vl,toBack:yl,hasClass:j_,addClass:Je,removeClass:tn,setClass:B_,getClass:xh,setOpacity:zr,testProp:Sh,setTransform:sa,setPosition:un,getPosition:aa,get disableTextSelection(){return cu},get enableTextSelection(){return uu},disableImageDrag:U_,enableImageDrag:V_,preventOutline:W_,restoreOutline:Eh,getSizedParentNode:ET,getScale:Y_};function Xe(u,d,y,T){if(d&&typeof d=="object")for(var M in d)G_(u,M,d[M],y);else{d=g(d);for(var j=0,J=d.length;j<J;j++)G_(u,d[j],y,T)}return this}var Li="_leaflet_events";function Et(u,d,y,T){if(arguments.length===1)TT(u),delete u[Li];else if(d&&typeof d=="object")for(var M in d)Z_(u,M,d[M],y);else if(d=g(d),arguments.length===2)TT(u,function(de){return E(d,de)!==-1});else for(var j=0,J=d.length;j<J;j++)Z_(u,d[j],y,T);return this}function TT(u,d){for(var y in u[Li]){var T=y.split(/\d/)[0];(!d||d(T))&&Z_(u,T,null,null,y)}}var q_={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function G_(u,d,y,T){var M=d+l(y)+(T?"_"+l(T):"");if(u[Li]&&u[Li][M])return this;var j=function(de){return y.call(T||u,de||window.event)},J=j;!We.touchNative&&We.pointer&&d.indexOf("touch")===0?j=a$(u,d,j):We.touch&&d==="dblclick"?j=m$(u,j):"addEventListener"in u?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?u.addEventListener(q_[d]||d,j,We.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(j=function(de){de=de||window.event,X_(u,de)&&J(de)},u.addEventListener(q_[d],j,!1)):u.addEventListener(d,J,!1):u.attachEvent("on"+d,j),u[Li]=u[Li]||{},u[Li][M]=j}function Z_(u,d,y,T,M){M=M||d+l(y)+(T?"_"+l(T):"");var j=u[Li]&&u[Li][M];if(!j)return this;!We.touchNative&&We.pointer&&d.indexOf("touch")===0?l$(u,d,j):We.touch&&d==="dblclick"?g$(u,j):"removeEventListener"in u?u.removeEventListener(q_[d]||d,j,!1):u.detachEvent("on"+d,j),u[Li][M]=null}function la(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function K_(u){return G_(u,"wheel",la),this}function du(u){return Xe(u,"mousedown touchstart dblclick contextmenu",la),u._leaflet_disable_click=!0,this}function jn(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function ca(u){return jn(u),la(u),this}function OT(u){if(u.composedPath)return u.composedPath();for(var d=[],y=u.target;y;)d.push(y),y=y.parentNode;return d}function PT(u,d){if(!d)return new K(u.clientX,u.clientY);var y=Y_(d),T=y.boundingClientRect;return new K((u.clientX-T.left)/y.x-d.clientLeft,(u.clientY-T.top)/y.y-d.clientTop)}var _$=We.linux&&We.chrome?window.devicePixelRatio:We.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function kT(u){return We.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/_$: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 X_(u,d){var y=d.relatedTarget;if(!y)return!0;try{for(;y&&y!==u;)y=y.parentNode}catch{return!1}return y!==u}var b$={__proto__:null,on:Xe,off:Et,stopPropagation:la,disableScrollPropagation:K_,disableClickPropagation:du,preventDefault:jn,stop:ca,getPropagationPath:OT,getMousePosition:PT,getWheelDelta:kT,isExternalTarget:X_,addListener:Xe,removeListener:Et},MT=le.extend({run:function(u,d,y,T){this.stop(),this._el=u,this._inProgress=!0,this._duration=y||.25,this._easeOutPower=1/Math.max(T||.5,.2),this._startPos=aa(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=Y(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,y=this._duration*1e3;d<y?this._runFrame(this._easeOut(d/y),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var y=this._startPos.add(this._offset.multiplyBy(u));d&&y._round(),un(this._el,y),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),at=le.extend({options:{crs:ae,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,d){d=v(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=s(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(se(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=au&&We.any3d&&!We.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Xe(this._proxy,ST,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,y){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(se(u),d,this.options.maxBounds),y=y||{},this._stop(),this._loaded&&!y.reset&&y!==!0){y.animate!==void 0&&(y.zoom=i({animate:y.animate},y.zoom),y.pan=i({animate:y.animate,duration:y.duration},y.pan));var T=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,y.zoom):this._tryAnimatedPan(u,y.pan);if(T)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,y.pan&&y.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||(We.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(We.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,y){var T=this.getZoomScale(d),M=this.getSize().divideBy(2),j=u instanceof K?u:this.latLngToContainerPoint(u),J=j.subtract(M).multiplyBy(1-1/T),de=this.containerPointToLatLng(M.add(J));return this.setView(de,d,{zoom:y})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():G(u);var y=I(d.paddingTopLeft||d.padding||[0,0]),T=I(d.paddingBottomRight||d.padding||[0,0]),M=this.getBoundsZoom(u,!1,y.add(T));if(M=typeof d.maxZoom=="number"?Math.min(d.maxZoom,M):M,M===1/0)return{center:u.getCenter(),zoom:M};var j=T.subtract(y).divideBy(2),J=this.project(u.getSouthWest(),M),de=this.project(u.getNorthEast(),M),pe=this.unproject(J.add(de).divideBy(2).add(j),M);return{center:pe,zoom:M}},fitBounds:function(u,d){if(u=G(u),!u.isValid())throw new Error("Bounds are not valid.");var y=this._getBoundsCenterZoom(u,d);return this.setView(y.center,y.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=I(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 MT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Je(this._mapPane,"leaflet-pan-anim");var y=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,y,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,y){if(y=y||{},y.animate===!1||!We.any3d)return this.setView(u,d,y);this._stop();var T=this.project(this.getCenter()),M=this.project(u),j=this.getSize(),J=this._zoom;u=se(u),d=d===void 0?J:d;var de=Math.max(j.x,j.y),pe=de*this.getZoomScale(J,d),Ce=M.distanceTo(T)||1,Ie=1.42,Ge=Ie*Ie;function it(fn){var $h=fn?-1:1,l7=fn?pe:de,c7=pe*pe-de*de+$h*Ge*Ge*Ce*Ce,u7=2*l7*Ge*Ce,l0=c7/u7,uO=Math.sqrt(l0*l0+1)-l0,f7=uO<1e-9?-18:Math.log(uO);return f7}function Vr(fn){return(Math.exp(fn)-Math.exp(-fn))/2}function fa(fn){return(Math.exp(fn)+Math.exp(-fn))/2}function Fh(fn){return Vr(fn)/fa(fn)}var Yo=it(0);function a0(fn){return de*(fa(Yo)/fa(Yo+Ie*fn))}function i7(fn){return de*(fa(Yo)*Fh(Yo+Ie*fn)-Vr(Yo))/Ge}function o7(fn){return 1-Math.pow(1-fn,1.5)}var s7=Date.now(),lO=(it(1)-Yo)/Ie,a7=y.duration?1e3*y.duration:1e3*lO*.8;function cO(){var fn=(Date.now()-s7)/a7,$h=o7(fn)*lO;fn<=1?(this._flyToFrame=Y(cO,this),this._move(this.unproject(T.add(M.subtract(T).multiplyBy(i7($h)/Ce)),J),this.getScaleZoom(de/a0($h),J),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,y.noMoveStart),cO.call(this),this},flyToBounds:function(u,d){var y=this._getBoundsCenterZoom(u,d);return this.flyTo(y.center,y.zoom,d)},setMaxBounds:function(u){return u=G(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 y=this.getCenter(),T=this._limitCenter(y,this._zoom,G(u));return y.equals(T)||this.panTo(T,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var y=I(d.paddingTopLeft||d.padding||[0,0]),T=I(d.paddingBottomRight||d.padding||[0,0]),M=this.project(this.getCenter()),j=this.project(u),J=this.getPixelBounds(),de=ie([J.min.add(y),J.max.subtract(T)]),pe=de.getSize();if(!de.contains(j)){this._enforcingBounds=!0;var Ce=j.subtract(de.getCenter()),Ie=de.extend(j).getSize().subtract(pe);M.x+=Ce.x<0?-Ie.x:Ie.x,M.y+=Ce.y<0?-Ie.y:Ie.y,this.panTo(this.unproject(M),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 y=this.getSize(),T=d.divideBy(2).round(),M=y.divideBy(2).round(),j=T.subtract(M);return!j.x&&!j.y?this:(u.animate&&u.pan?this.panBy(j):(u.pan&&this._rawPanBy(j),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:y}))},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=s(this._handleGeolocationResponse,this),y=s(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,y,u):navigator.geolocation.getCurrentPosition(d,y,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,y=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: "+y+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,y=u.coords.longitude,T=new re(d,y),M=T.toBounds(u.coords.accuracy*2),j=this._locateOptions;if(j.setView){var J=this.getBoundsZoom(M);this.setView(T,j.maxZoom?Math.min(J,j.maxZoom):J)}var de={latlng:T,bounds:M,timestamp:u.timestamp};for(var pe in u.coords)typeof u.coords[pe]=="number"&&(de[pe]=u.coords[pe]);this.fire("locationfound",de)}},addHandler:function(u,d){if(!d)return this;var y=this[u]=new d(this);return this._handlers.push(y),this.options[u]&&y.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(),Ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(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)Ut(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var y="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),T=ht("div",y,d||this._mapPane);return u&&(this._panes[u]=T),T},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()),y=this.unproject(u.getTopRight());return new W(d,y)},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,y){u=G(u),y=I(y||[0,0]);var T=this.getZoom()||0,M=this.getMinZoom(),j=this.getMaxZoom(),J=u.getNorthWest(),de=u.getSouthEast(),pe=this.getSize().subtract(y),Ce=ie(this.project(de,T),this.project(J,T)).getSize(),Ie=We.any3d?this.options.zoomSnap:1,Ge=pe.x/Ce.x,it=pe.y/Ce.y,Vr=d?Math.max(Ge,it):Math.min(Ge,it);return T=this.getScaleZoom(Vr,T),Ie&&(T=Math.round(T/(Ie/100))*(Ie/100),T=d?Math.ceil(T/Ie)*Ie:Math.floor(T/Ie)*Ie),Math.max(M,Math.min(j,T))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new K(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var y=this._getTopLeftPoint(u,d);return new B(y,y.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 y=this.options.crs;return d=d===void 0?this._zoom:d,y.scale(u)/y.scale(d)},getScaleZoom:function(u,d){var y=this.options.crs;d=d===void 0?this._zoom:d;var T=y.zoom(u*y.scale(d));return isNaN(T)?1/0:T},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(se(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(I(u),d)},layerPointToLatLng:function(u){var d=I(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(se(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(se(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(G(u))},distance:function(u,d){return this.options.crs.distance(se(u),se(d))},containerPointToLayerPoint:function(u){return I(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return I(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(I(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(u)))},mouseEventToContainerPoint:function(u){return PT(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=CT(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Xe(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&We.any3d,Je(u,"leaflet-container"+(We.touch?" leaflet-touch":"")+(We.retina?" leaflet-retina":"")+(We.ielt9?" leaflet-oldie":"")+(We.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=lu(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),un(this._mapPane,new K(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Je(u.markerPane,"leaflet-zoom-hide"),Je(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,y){un(this._mapPane,new K(0,0));var T=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var M=this._zoom!==d;this._moveStart(M,y)._move(u,d)._moveEnd(M),this.fire("viewreset"),T&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,y,T){d===void 0&&(d=this._zoom);var M=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),T?y&&y.pinch&&this.fire("zoom",y):((M||y&&y.pinch)&&this.fire("zoom",y),this.fire("move",y)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){un(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?Et:Xe;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),We.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Y(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 y=[],T,M=d==="mouseout"||d==="mouseover",j=u.target||u.srcElement,J=!1;j;){if(T=this._targets[l(j)],T&&(d==="click"||d==="preclick")&&this._draggableMoved(T)){J=!0;break}if(T&&T.listens(d,!0)&&(M&&!X_(j,u)||(y.push(T),M))||j===this._container)break;j=j.parentNode}return!y.length&&!J&&!M&&this.listens(d,!0)&&(y=[this]),y},_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 y=u.type;y==="mousedown"&&W_(d),this._fireDOMEvent(u,y)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,y){if(u.type==="click"){var T=i({},u);T.type="preclick",this._fireDOMEvent(T,T.type,y)}var M=this._findEventTargets(u,d);if(y){for(var j=[],J=0;J<y.length;J++)y[J].listens(d,!0)&&j.push(y[J]);M=j.concat(M)}if(M.length){d==="contextmenu"&&jn(u);var de=M[0],pe={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var Ce=de.getLatLng&&(!de._radius||de._radius<=10);pe.containerPoint=Ce?this.latLngToContainerPoint(de.getLatLng()):this.mouseEventToContainerPoint(u),pe.layerPoint=this.containerPointToLayerPoint(pe.containerPoint),pe.latlng=Ce?de.getLatLng():this.layerPointToLatLng(pe.layerPoint)}for(J=0;J<M.length;J++)if(M[J].fire(d,pe,!0),pe.originalEvent._stopped||M[J].options.bubblingMouseEvents===!1&&E(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 aa(this._mapPane)||new K(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,d){var y=u&&d!==void 0?this._getNewPixelOrigin(u,d):this.getPixelOrigin();return y.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,d){var y=this.getSize()._divideBy(2);return this.project(u,d)._subtract(y)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,d,y){var T=this._getNewPixelOrigin(y,d);return this.project(u,d)._subtract(T)},_latLngBoundsToNewLayerBounds:function(u,d,y){var T=this._getNewPixelOrigin(y,d);return ie([this.project(u.getSouthWest(),d)._subtract(T),this.project(u.getNorthWest(),d)._subtract(T),this.project(u.getSouthEast(),d)._subtract(T),this.project(u.getNorthEast(),d)._subtract(T)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,d,y){if(!y)return u;var T=this.project(u,d),M=this.getSize().divideBy(2),j=new B(T.subtract(M),T.add(M)),J=this._getBoundsOffset(j,y,d);return Math.abs(J.x)<=1&&Math.abs(J.y)<=1?u:this.unproject(T.add(J),d)},_limitOffset:function(u,d){if(!d)return u;var y=this.getPixelBounds(),T=new B(y.min.add(u),y.max.add(u));return u.add(this._getBoundsOffset(T,d))},_getBoundsOffset:function(u,d,y){var T=ie(this.project(d.getNorthEast(),y),this.project(d.getSouthWest(),y)),M=T.min.subtract(u.min),j=T.max.subtract(u.max),J=this._rebound(M.x,-j.x),de=this._rebound(M.y,-j.y);return new K(J,de)},_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(),y=this.getMaxZoom(),T=We.any3d?this.options.zoomSnap:1;return T&&(u=Math.round(u/T)*T),Math.max(d,Math.min(y,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var y=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(y)?!1:(this.panBy(y,d),!0)},_createAnimProxy:function(){var u=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var y=$_,T=this._proxy.style[y];sa(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),T===this._proxy.style[y]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ut(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();sa(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,y){if(this._animatingZoom)return!0;if(y=y||{},!this._zoomAnimated||y.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var T=this.getZoomScale(d),M=this._getCenterOffset(u)._divideBy(1-1/T);return y.animate!==!0&&!this.getSize().contains(M)?!1:(Y(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,y,T){this._mapPane&&(y&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,Je(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:T}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function w$(u,d){return new at(u,d)}var ui=Z.extend({options:{position:"topright"},initialize:function(u){v(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),y=this.getPosition(),T=u._controlCorners[y];return Je(d,"leaflet-control"),y.indexOf("bottom")!==-1?T.insertBefore(d,T.firstChild):T.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ut(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()}}),hu=function(u){return new ui(u)};at.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",y=this._controlContainer=ht("div",d+"control-container",this._container);function T(M,j){var J=d+M+" "+d+j;u[M+j]=ht("div",J,y)}T("top","left"),T("top","right"),T("bottom","left"),T("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Ut(this._controlCorners[u]);Ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var RT=ui.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,y,T){return y<T?-1:T<y?1:0}},initialize:function(u,d,y){v(this,y),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var T in u)this._addLayer(u[T],T);for(T in d)this._addLayer(d[T],T,!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 ui.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(){Je(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?(Je(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):tn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",d=this._container=ht("div",u),y=this.options.collapsed;d.setAttribute("aria-haspopup",!0),du(d),K_(d);var T=this._section=ht("section",u+"-list");y&&(this._map.on("click",this.collapse,this),Xe(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var M=this._layersLink=ht("a",u+"-toggle",d);M.href="#",M.title="Layers",M.setAttribute("role","button"),Xe(M,{keydown:function(j){j.keyCode===13&&this._expandSafely()},click:function(j){jn(j),this._expandSafely()}},this),y||this.expand(),this._baseLayersList=ht("div",u+"-base",T),this._separator=ht("div",u+"-separator",T),this._overlaysList=ht("div",u+"-overlays",T),d.appendChild(T)},_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,y){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:d,overlay:y}),this.options.sortLayers&&this._layers.sort(s(function(T,M){return this.options.sortFunction(T.layer,M.layer,T.name,M.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;wh(this._baseLayersList),wh(this._overlaysList),this._layerControlInputs=[];var u,d,y,T,M=0;for(y=0;y<this._layers.length;y++)T=this._layers[y],this._addItem(T),d=d||T.overlay,u=u||!T.overlay,M+=T.overlay?0:1;return this.options.hideSingleBase&&(u=u&&M>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)),y=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;y&&this._map.fire(y,d)},_createRadioElement:function(u,d){var y='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(d?' checked="checked"':"")+"/>",T=document.createElement("div");return T.innerHTML=y,T.firstChild},_addItem:function(u){var d=document.createElement("label"),y=this._map.hasLayer(u.layer),T;u.overlay?(T=document.createElement("input"),T.type="checkbox",T.className="leaflet-control-layers-selector",T.defaultChecked=y):T=this._createRadioElement("leaflet-base-layers_"+l(this),y),this._layerControlInputs.push(T),T.layerId=l(u.layer),Xe(T,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+u.name;var j=document.createElement("span");d.appendChild(j),j.appendChild(T),j.appendChild(M);var J=u.overlay?this._overlaysList:this._baseLayersList;return J.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,y,T=[],M=[];this._handlingClick=!0;for(var j=u.length-1;j>=0;j--)d=u[j],y=this._getLayer(d.layerId).layer,d.checked?T.push(y):d.checked||M.push(y);for(j=0;j<M.length;j++)this._map.hasLayer(M[j])&&this._map.removeLayer(M[j]);for(j=0;j<T.length;j++)this._map.hasLayer(T[j])||this._map.addLayer(T[j]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,d,y,T=this._map.getZoom(),M=u.length-1;M>=0;M--)d=u[M],y=this._getLayer(d.layerId).layer,d.disabled=y.options.minZoom!==void 0&&T<y.options.minZoom||y.options.maxZoom!==void 0&&T>y.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Xe(u,"click",jn),this.expand(),setTimeout(function(){Et(u,"click",jn)})}}),x$=function(u,d,y){return new RT(u,d,y)},Q_=ui.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",y=ht("div",d+" leaflet-bar"),T=this.options;return this._zoomInButton=this._createButton(T.zoomInText,T.zoomInTitle,d+"-in",y,this._zoomIn),this._zoomOutButton=this._createButton(T.zoomOutText,T.zoomOutTitle,d+"-out",y,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),y},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,y,T,M){var j=ht("a",y,T);return j.innerHTML=u,j.href="#",j.title=d,j.setAttribute("role","button"),j.setAttribute("aria-label",d),du(j),Xe(j,"click",ca),Xe(j,"click",M,this),Xe(j,"click",this._refocusOnMap,this),j},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";tn(this._zoomInButton,d),tn(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Je(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Je(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});at.mergeOptions({zoomControl:!0}),at.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Q_,this.addControl(this.zoomControl))});var S$=function(u){return new Q_(u)},NT=ui.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",y=ht("div",d),T=this.options;return this._addScales(T,d+"-line",y),u.on(T.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),y},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,y){u.metric&&(this._mScale=ht("div",d,y)),u.imperial&&(this._iScale=ht("div",d,y))},_update:function(){var u=this._map,d=u.getSize().y/2,y=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(y)},_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),y=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,y,d/u)},_updateImperial:function(u){var d=u*3.2808399,y,T,M;d>5280?(y=d/5280,T=this._getRoundNum(y),this._updateScale(this._iScale,T+" mi",T/y)):(M=this._getRoundNum(d),this._updateScale(this._iScale,M+" ft",M/d))},_updateScale:function(u,d,y){u.style.width=Math.round(this.options.maxWidth*y)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),y=u/d;return y=y>=10?10:y>=5?5:y>=3?3:y>=2?2:1,d*y}}),C$=function(u){return new NT(u)},E$='<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>',J_=ui.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(We.inlineSvg?E$+" ":"")+"Leaflet</a>"},initialize:function(u){v(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),du(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 y=[];this.options.prefix&&y.push(this.options.prefix),u.length&&y.push(u.join(", ")),this._container.innerHTML=y.join(' <span aria-hidden="true">|</span> ')}}});at.mergeOptions({attributionControl:!0}),at.addInitHook(function(){this.options.attributionControl&&new J_().addTo(this)});var T$=function(u){return new J_(u)};ui.Layers=RT,ui.Zoom=Q_,ui.Scale=NT,ui.Attribution=J_,hu.layers=x$,hu.zoom=S$,hu.scale=C$,hu.attribution=T$;var Di=Z.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}});Di.addTo=function(u,d){return u.addHandler(d,this),this};var O$={Events:ne},LT=We.touch?"touchstart mousedown":"mousedown",Ho=le.extend({options:{clickTolerance:3},initialize:function(u,d,y,T){v(this,T),this._element=u,this._dragStartTarget=d||u,this._preventOutline=y},enable:function(){this._enabled||(Xe(this._dragStartTarget,LT,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ho._dragging===this&&this.finishDrag(!0),Et(this._dragStartTarget,LT,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!j_(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Ho._dragging===this&&this.finishDrag();return}if(!(Ho._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Ho._dragging=this,this._preventOutline&&W_(this._element),U_(),cu(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,y=ET(this._element);this._startPoint=new K(d.clientX,d.clientY),this._startPos=aa(this._element),this._parentScale=Y_(y);var T=u.type==="mousedown";Xe(document,T?"mousemove":"touchmove",this._onMove,this),Xe(document,T?"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,y=new K(d.clientX,d.clientY)._subtract(this._startPoint);!y.x&&!y.y||Math.abs(y.x)+Math.abs(y.y)<this.options.clickTolerance||(y.x/=this._parentScale.x,y.y/=this._parentScale.y,jn(u),this._moved||(this.fire("dragstart"),this._moved=!0,Je(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Je(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(y),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),un(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){tn(document.body,"leaflet-dragging"),this._lastTarget&&(tn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Et(document,"mousemove touchmove",this._onMove,this),Et(document,"mouseup touchend touchcancel",this._onUp,this),V_(),uu(),this._moved&&this._moving&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,Ho._dragging=!1}});function DT(u,d){if(!d||!u.length)return u.slice();var y=d*d;return u=M$(u,y),u=k$(u,y),u}function AT(u,d,y){return Math.sqrt(pu(u,d,y,!0))}function P$(u,d,y){return pu(u,d,y)}function k$(u,d){var y=u.length,T=typeof Uint8Array!=void 0+""?Uint8Array:Array,M=new T(y);M[0]=M[y-1]=1,e0(u,M,d,0,y-1);var j,J=[];for(j=0;j<y;j++)M[j]&&J.push(u[j]);return J}function e0(u,d,y,T,M){var j=0,J,de,pe;for(de=T+1;de<=M-1;de++)pe=pu(u[de],u[T],u[M],!0),pe>j&&(J=de,j=pe);j>y&&(d[J]=1,e0(u,d,y,T,J),e0(u,d,y,J,M))}function M$(u,d){for(var y=[u[0]],T=1,M=0,j=u.length;T<j;T++)R$(u[T],u[M])>d&&(y.push(u[T]),M=T);return M<j-1&&y.push(u[j-1]),y}var IT;function FT(u,d,y,T,M){var j=T?IT:ua(u,y),J=ua(d,y),de,pe,Ce;for(IT=J;;){if(!(j|J))return[u,d];if(j&J)return!1;de=j||J,pe=Th(u,d,de,y,M),Ce=ua(pe,y),de===j?(u=pe,j=Ce):(d=pe,J=Ce)}}function Th(u,d,y,T,M){var j=d.x-u.x,J=d.y-u.y,de=T.min,pe=T.max,Ce,Ie;return y&8?(Ce=u.x+j*(pe.y-u.y)/J,Ie=pe.y):y&4?(Ce=u.x+j*(de.y-u.y)/J,Ie=de.y):y&2?(Ce=pe.x,Ie=u.y+J*(pe.x-u.x)/j):y&1&&(Ce=de.x,Ie=u.y+J*(de.x-u.x)/j),new K(Ce,Ie,M)}function ua(u,d){var y=0;return u.x<d.min.x?y|=1:u.x>d.max.x&&(y|=2),u.y<d.min.y?y|=4:u.y>d.max.y&&(y|=8),y}function R$(u,d){var y=d.x-u.x,T=d.y-u.y;return y*y+T*T}function pu(u,d,y,T){var M=d.x,j=d.y,J=y.x-M,de=y.y-j,pe=J*J+de*de,Ce;return pe>0&&(Ce=((u.x-M)*J+(u.y-j)*de)/pe,Ce>1?(M=y.x,j=y.y):Ce>0&&(M+=J*Ce,j+=de*Ce)),J=u.x-M,de=u.y-j,T?J*J+de*de:new K(M,j)}function Ur(u){return!x(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function $T(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ur(u)}function jT(u,d){var y,T,M,j,J,de,pe,Ce;if(!u||u.length===0)throw new Error("latlngs not passed");Ur(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ie=[];for(var Ge in u)Ie.push(d.project(se(u[Ge])));var it=Ie.length;for(y=0,T=0;y<it-1;y++)T+=Ie[y].distanceTo(Ie[y+1])/2;if(T===0)Ce=Ie[0];else for(y=0,j=0;y<it-1;y++)if(J=Ie[y],de=Ie[y+1],M=J.distanceTo(de),j+=M,j>T){pe=(j-T)/M,Ce=[de.x-pe*(de.x-J.x),de.y-pe*(de.y-J.y)];break}return d.unproject(I(Ce))}var N$={__proto__:null,simplify:DT,pointToSegmentDistance:AT,closestPointOnSegment:P$,clipSegment:FT,_getEdgeIntersection:Th,_getBitCode:ua,_sqClosestPointOnSegment:pu,isFlat:Ur,_flat:$T,polylineCenter:jT};function BT(u,d,y){var T,M=[1,4,2,8],j,J,de,pe,Ce,Ie,Ge,it;for(j=0,Ie=u.length;j<Ie;j++)u[j]._code=ua(u[j],d);for(de=0;de<4;de++){for(Ge=M[de],T=[],j=0,Ie=u.length,J=Ie-1;j<Ie;J=j++)pe=u[j],Ce=u[J],pe._code&Ge?Ce._code&Ge||(it=Th(Ce,pe,Ge,d,y),it._code=ua(it,d),T.push(it)):(Ce._code&Ge&&(it=Th(Ce,pe,Ge,d,y),it._code=ua(it,d),T.push(it)),T.push(pe));u=T}return u}function zT(u,d){var y,T,M,j,J,de,pe,Ce,Ie;if(!u||u.length===0)throw new Error("latlngs not passed");Ur(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ge=[];for(var it in u)Ge.push(d.project(se(u[it])));var Vr=Ge.length;for(de=pe=Ce=0,y=0,T=Vr-1;y<Vr;T=y++)M=Ge[y],j=Ge[T],J=M.y*j.x-j.y*M.x,pe+=(M.x+j.x)*J,Ce+=(M.y+j.y)*J,de+=J*3;return de===0?Ie=Ge[0]:Ie=[pe/de,Ce/de],d.unproject(I(Ie))}var L$={__proto__:null,clipPolygon:BT,polygonCenter:zT},t0={project:function(u){return new K(u.lng,u.lat)},unproject:function(u){return new re(u.y,u.x)},bounds:new B([-180,-90],[180,90])},n0={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,y=this.R,T=u.lat*d,M=this.R_MINOR/y,j=Math.sqrt(1-M*M),J=j*Math.sin(T),de=Math.tan(Math.PI/4-T/2)/Math.pow((1-J)/(1+J),j/2);return T=-y*Math.log(Math.max(de,1e-10)),new K(u.lng*d*y,T)},unproject:function(u){for(var d=180/Math.PI,y=this.R,T=this.R_MINOR/y,M=Math.sqrt(1-T*T),j=Math.exp(-u.y/y),J=Math.PI/2-2*Math.atan(j),de=0,pe=.1,Ce;de<15&&Math.abs(pe)>1e-7;de++)Ce=M*Math.sin(J),Ce=Math.pow((1-Ce)/(1+Ce),M/2),pe=Math.PI/2-2*Math.atan(j*Ce)-J,J+=pe;return new re(J*d,u.x*d/y)}},D$={__proto__:null,LonLat:t0,Mercator:n0,SphericalMercator:F},A$=i({},O,{code:"EPSG:3395",projection:n0,transformation:function(){var u=.5/(Math.PI*n0.R);return X(u,.5,-u,.5)}()}),UT=i({},O,{code:"EPSG:4326",projection:t0,transformation:X(1/180,1,-1/180,.5)}),I$=i({},me,{projection:t0,transformation:X(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 y=d.lng-u.lng,T=d.lat-u.lat;return Math.sqrt(y*y+T*T)},infinite:!0});me.Earth=O,me.EPSG3395=A$,me.EPSG3857=ae,me.EPSG900913=ve,me.EPSG4326=UT,me.Simple=I$;var fi=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 y=this.getEvents();d.on(y,this),this.once("remove",function(){d.off(y,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});at.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 y in this._layers)u.call(d,this._layers[y]);return this},_addLayers:function(u){u=u?x(u)?u:[u]:[];for(var d=0,y=u.length;d<y;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,y=this._getZoomSpan();for(var T in this._zoomBoundLayers){var M=this._zoomBoundLayers[T].options;u=M.minZoom===void 0?u:Math.min(u,M.minZoom),d=M.maxZoom===void 0?d:Math.max(d,M.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=u===1/0?void 0:u,y!==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 _l=fi.extend({initialize:function(u,d){v(this,d),this._layers={};var y,T;if(u)for(y=0,T=u.length;y<T;y++)this.addLayer(u[y])},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),y,T;for(y in this._layers)T=this._layers[y],T[u]&&T[u].apply(T,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 y in this._layers)u.call(d,this._layers[y]);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)}}),F$=function(u,d){return new _l(u,d)},io=_l.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),_l.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),_l.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 W;for(var d in this._layers){var y=this._layers[d];u.extend(y.getBounds?y.getBounds():y.getLatLng())}return u}}),$$=function(u,d){return new io(u,d)},bl=Z.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){v(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,d){var y=this._getIconUrl(u);if(!y){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var T=this._createImg(y,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(T,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(T.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),T},_setIconStyles:function(u,d){var y=this.options,T=y[d+"Size"];typeof T=="number"&&(T=[T,T]);var M=I(T),j=I(d==="shadow"&&y.shadowAnchor||y.iconAnchor||M&&M.divideBy(2,!0));u.className="leaflet-marker-"+d+" "+(y.className||""),j&&(u.style.marginLeft=-j.x+"px",u.style.marginTop=-j.y+"px"),M&&(u.style.width=M.x+"px",u.style.height=M.y+"px")},_createImg:function(u,d){return d=d||document.createElement("img"),d.src=u,d},_getIconUrl:function(u){return We.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function j$(u){return new bl(u)}var mu=bl.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)+bl.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var d=function(y,T,M){var j=T.exec(y);return j&&j[M]};return u=d(u,/^url\((['"])?(.+)\1\)$/,2),u&&d(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=ht("div","leaflet-default-icon-path",document.body),d=lu(u,"background-image")||lu(u,"backgroundImage");if(document.body.removeChild(u),d=this._stripUrl(d),d)return d;var y=document.querySelector('link[href$="leaflet.css"]');return y?y.href.substring(0,y.href.length-11-1):""}}),VT=Di.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new Ho(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Je(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&&tn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var d=this._marker,y=d._map,T=this._marker.options.autoPanSpeed,M=this._marker.options.autoPanPadding,j=aa(d._icon),J=y.getPixelBounds(),de=y.getPixelOrigin(),pe=ie(J.min._subtract(de).add(M),J.max._subtract(de).subtract(M));if(!pe.contains(j)){var Ce=I((Math.max(pe.max.x,j.x)-pe.max.x)/(J.max.x-pe.max.x)-(Math.min(pe.min.x,j.x)-pe.min.x)/(J.min.x-pe.min.x),(Math.max(pe.max.y,j.y)-pe.max.y)/(J.max.y-pe.max.y)-(Math.min(pe.min.y,j.y)-pe.min.y)/(J.min.y-pe.min.y)).multiplyBy(T);y.panBy(Ce,{animate:!1}),this._draggable._newPos._add(Ce),this._draggable._startPos._add(Ce),un(d._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=Y(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&&(q(this._panRequest),this._panRequest=Y(this._adjustPan.bind(this,u)))},_onDrag:function(u){var d=this._marker,y=d._shadow,T=aa(d._icon),M=d._map.layerPointToLatLng(T);y&&un(y,T),d._latlng=M,u.latlng=M,u.oldLatLng=this._oldLatLng,d.fire("move",u).fire("drag",u)},_onDragEnd:function(u){q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Oh=fi.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){v(this,d),this._latlng=se(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=se(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"),y=u.icon.createIcon(this._icon),T=!1;y!==this._icon&&(this._icon&&this._removeIcon(),T=!0,u.title&&(y.title=u.title),y.tagName==="IMG"&&(y.alt=u.alt||"")),Je(y,d),u.keyboard&&(y.tabIndex="0",y.setAttribute("role","button")),this._icon=y,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Xe(y,"focus",this._panOnFocus,this);var M=u.icon.createShadow(this._shadow),j=!1;M!==this._shadow&&(this._removeShadow(),j=!0),M&&(Je(M,d),M.alt=""),this._shadow=M,u.opacity<1&&this._updateOpacity(),T&&this.getPane().appendChild(this._icon),this._initInteraction(),M&&j&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Et(this._icon,"focus",this._panOnFocus,this),Ut(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ut(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&un(this._icon,u),this._shadow&&un(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&&(Je(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),VT)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new VT(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,y=d.iconSize?I(d.iconSize):I(0,0),T=d.iconAnchor?I(d.iconAnchor):I(0,0);u.panInside(this._latlng,{paddingTopLeft:T,paddingBottomRight:y.subtract(T)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function B$(u,d){return new Oh(u,d)}var Wo=fi.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 v(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)}}),Ph=Wo.extend({options:{fill:!0,radius:10},initialize:function(u,d){v(this,d),this._latlng=se(u),this._radius=this.options.radius},setLatLng:function(u){var d=this._latlng;return this._latlng=se(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 Wo.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,y=this._clickTolerance(),T=[u+y,d+y];this._pxBounds=new B(this._point.subtract(T),this._point.add(T))},_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 z$(u,d){return new Ph(u,d)}var r0=Ph.extend({initialize:function(u,d,y){if(typeof d=="number"&&(d=i({},y,{radius:d})),v(this,d),this._latlng=se(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 W(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:Wo.prototype.setStyle,_project:function(){var u=this._latlng.lng,d=this._latlng.lat,y=this._map,T=y.options.crs;if(T.distance===O.distance){var M=Math.PI/180,j=this._mRadius/O.R/M,J=y.project([d+j,u]),de=y.project([d-j,u]),pe=J.add(de).divideBy(2),Ce=y.unproject(pe).lat,Ie=Math.acos((Math.cos(j*M)-Math.sin(d*M)*Math.sin(Ce*M))/(Math.cos(d*M)*Math.cos(Ce*M)))/M;(isNaN(Ie)||Ie===0)&&(Ie=j/Math.cos(Math.PI/180*d)),this._point=pe.subtract(y.getPixelOrigin()),this._radius=isNaN(Ie)?0:pe.x-y.project([Ce,u-Ie]).x,this._radiusY=pe.y-J.y}else{var Ge=T.unproject(T.project(this._latlng).subtract([this._mRadius,0]));this._point=y.latLngToLayerPoint(this._latlng),this._radius=this._point.x-y.latLngToLayerPoint(Ge).x}this._updateBounds()}});function U$(u,d,y){return new r0(u,d,y)}var oo=Wo.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,d){v(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,y=null,T=pu,M,j,J=0,de=this._parts.length;J<de;J++)for(var pe=this._parts[J],Ce=1,Ie=pe.length;Ce<Ie;Ce++){M=pe[Ce-1],j=pe[Ce];var Ge=T(u,M,j,!0);Ge<d&&(d=Ge,y=T(u,M,j))}return y&&(y.distance=Math.sqrt(d)),y},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return jT(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,d){return d=d||this._defaultShape(),u=se(u),d.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new W,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return Ur(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var d=[],y=Ur(u),T=0,M=u.length;T<M;T++)y?(d[T]=se(u[T]),this._bounds.extend(d[T])):d[T]=this._convertLatLngs(u[T]);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 K(u,u);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(u,d,y){var T=u[0]instanceof re,M=u.length,j,J;if(T){for(J=[],j=0;j<M;j++)J[j]=this._map.latLngToLayerPoint(u[j]),y.extend(J[j]);d.push(J)}else for(j=0;j<M;j++)this._projectLatlngs(u[j],d,y)},_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,y,T,M,j,J,de,pe;for(y=0,M=0,j=this._rings.length;y<j;y++)for(pe=this._rings[y],T=0,J=pe.length;T<J-1;T++)de=FT(pe[T],pe[T+1],u,T,!0),de&&(d[M]=d[M]||[],d[M].push(de[0]),(de[1]!==pe[T+1]||T===J-2)&&(d[M].push(de[1]),M++))}},_simplifyPoints:function(){for(var u=this._parts,d=this.options.smoothFactor,y=0,T=u.length;y<T;y++)u[y]=DT(u[y],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,d){var y,T,M,j,J,de,pe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(y=0,j=this._parts.length;y<j;y++)for(de=this._parts[y],T=0,J=de.length,M=J-1;T<J;M=T++)if(!(!d&&T===0)&&AT(u,de[M],de[T])<=pe)return!0;return!1}});function V$(u,d){return new oo(u,d)}oo._flat=$T;var wl=oo.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return zT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var d=oo.prototype._convertLatLngs.call(this,u),y=d.length;return y>=2&&d[0]instanceof re&&d[0].equals(d[y-1])&&d.pop(),d},_setLatLngs:function(u){oo.prototype._setLatLngs.call(this,u),Ur(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ur(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,y=new K(d,d);if(u=new B(u.min.subtract(y),u.max.add(y)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var T=0,M=this._rings.length,j;T<M;T++)j=BT(this._rings[T],u,!0),j.length&&this._parts.push(j)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var d=!1,y,T,M,j,J,de,pe,Ce;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(j=0,pe=this._parts.length;j<pe;j++)for(y=this._parts[j],J=0,Ce=y.length,de=Ce-1;J<Ce;de=J++)T=y[J],M=y[de],T.y>u.y!=M.y>u.y&&u.x<(M.x-T.x)*(u.y-T.y)/(M.y-T.y)+T.x&&(d=!d);return d||oo.prototype._containsPoint.call(this,u,!0)}});function H$(u,d){return new wl(u,d)}var so=io.extend({initialize:function(u,d){v(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=x(u)?u:u.features,y,T,M;if(d){for(y=0,T=d.length;y<T;y++)M=d[y],(M.geometries||M.geometry||M.features||M.coordinates)&&this.addData(M);return this}var j=this.options;if(j.filter&&!j.filter(u))return this;var J=kh(u,j);return J?(J.feature=Nh(u),J.defaultOptions=J.options,this.resetStyle(J),j.onEachFeature&&j.onEachFeature(u,J),this.addLayer(J)):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 kh(u,d){var y=u.type==="Feature"?u.geometry:u,T=y?y.coordinates:null,M=[],j=d&&d.pointToLayer,J=d&&d.coordsToLatLng||i0,de,pe,Ce,Ie;if(!T&&!y)return null;switch(y.type){case"Point":return de=J(T),HT(j,u,de,d);case"MultiPoint":for(Ce=0,Ie=T.length;Ce<Ie;Ce++)de=J(T[Ce]),M.push(HT(j,u,de,d));return new io(M);case"LineString":case"MultiLineString":return pe=Mh(T,y.type==="LineString"?0:1,J),new oo(pe,d);case"Polygon":case"MultiPolygon":return pe=Mh(T,y.type==="Polygon"?1:2,J),new wl(pe,d);case"GeometryCollection":for(Ce=0,Ie=y.geometries.length;Ce<Ie;Ce++){var Ge=kh({geometry:y.geometries[Ce],type:"Feature",properties:u.properties},d);Ge&&M.push(Ge)}return new io(M);case"FeatureCollection":for(Ce=0,Ie=y.features.length;Ce<Ie;Ce++){var it=kh(y.features[Ce],d);it&&M.push(it)}return new io(M);default:throw new Error("Invalid GeoJSON object.")}}function HT(u,d,y,T){return u?u(d,y):new Oh(y,T&&T.markersInheritOptions&&T)}function i0(u){return new re(u[1],u[0],u[2])}function Mh(u,d,y){for(var T=[],M=0,j=u.length,J;M<j;M++)J=d?Mh(u[M],d-1,y):(y||i0)(u[M]),T.push(J);return T}function o0(u,d){return u=se(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 Rh(u,d,y,T){for(var M=[],j=0,J=u.length;j<J;j++)M.push(d?Rh(u[j],Ur(u[j])?0:d-1,y,T):o0(u[j],T));return!d&&y&&M.push(M[0].slice()),M}function xl(u,d){return u.feature?i({},u.feature,{geometry:d}):Nh(d)}function Nh(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var s0={toGeoJSON:function(u){return xl(this,{type:"Point",coordinates:o0(this.getLatLng(),u)})}};Oh.include(s0),r0.include(s0),Ph.include(s0),oo.include({toGeoJSON:function(u){var d=!Ur(this._latlngs),y=Rh(this._latlngs,d?1:0,!1,u);return xl(this,{type:(d?"Multi":"")+"LineString",coordinates:y})}}),wl.include({toGeoJSON:function(u){var d=!Ur(this._latlngs),y=d&&!Ur(this._latlngs[0]),T=Rh(this._latlngs,y?2:d?1:0,!0,u);return d||(T=[T]),xl(this,{type:(y?"Multi":"")+"Polygon",coordinates:T})}}),_l.include({toMultiPoint:function(u){var d=[];return this.eachLayer(function(y){d.push(y.toGeoJSON(u).geometry.coordinates)}),xl(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 y=d==="GeometryCollection",T=[];return this.eachLayer(function(M){if(M.toGeoJSON){var j=M.toGeoJSON(u);if(y)T.push(j.geometry);else{var J=Nh(j);J.type==="FeatureCollection"?T.push.apply(T,J.features):T.push(J)}}}),y?xl(this,{geometries:T,type:"GeometryCollection"}):{type:"FeatureCollection",features:T}}});function WT(u,d){return new so(u,d)}var W$=WT,Lh=fi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,d,y){this._url=u,this._bounds=G(d),v(this,y)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Je(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ut(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&&vl(this._image),this},bringToBack:function(){return this._map&&yl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=G(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:ht("img");if(Je(d,"leaflet-image-layer"),this._zoomAnimated&&Je(d,"leaflet-zoom-animated"),this.options.className&&Je(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onload=s(this.fire,this,"load"),d.onerror=s(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),y=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;sa(this._image,y,d)},_reset:function(){var u=this._image,d=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),y=d.getSize();un(u,d.min),u.style.width=y.x+"px",u.style.height=y.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()}}),Y$=function(u,d,y){return new Lh(u,d,y)},YT=Lh.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:ht("video");if(Je(d,"leaflet-image-layer"),this._zoomAnimated&&Je(d,"leaflet-zoom-animated"),this.options.className&&Je(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onloadeddata=s(this.fire,this,"load"),u){for(var y=d.getElementsByTagName("source"),T=[],M=0;M<y.length;M++)T.push(y[M].src);this._url=y.length>0?T:[d.src];return}x(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 j=0;j<this._url.length;j++){var J=ht("source");J.src=this._url[j],d.appendChild(J)}}});function q$(u,d,y){return new YT(u,d,y)}var qT=Lh.extend({_initImage:function(){var u=this._image=this._url;Je(u,"leaflet-image-layer"),this._zoomAnimated&&Je(u,"leaflet-zoom-animated"),this.options.className&&Je(u,this.options.className),u.onselectstart=h,u.onmousemove=h}});function G$(u,d,y){return new qT(u,d,y)}var Ai=fi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,d){u&&(u instanceof re||x(u))?(this._latlng=se(u),v(this,d)):(v(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&&(Je(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(zr(this._container,0),this._removeTimeout=setTimeout(s(Ut,void 0,this._container),200)):Ut(this._container),this.options.interactive&&(tn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=se(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&&vl(this._container),this},bringToBack:function(){return this._map&&yl(this._container),this},_prepareOpen:function(u){var d=this._source;if(!d._map)return!1;if(d instanceof io){d=null;var y=this._source._layers;for(var T in y)if(y[T]._map){d=y[T];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=I(this.options.offset),y=this._getAnchor();this._zoomAnimated?un(this._container,u.add(y)):d=d.add(u).add(y);var T=this._containerBottom=-d.y,M=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=T+"px",this._container.style.left=M+"px"}},_getAnchor:function(){return[0,0]}});at.include({_initOverlay:function(u,d,y,T){var M=d;return M instanceof u||(M=new u(T).setContent(d)),y&&M.setLatLng(y),M}}),fi.include({_initOverlay:function(u,d,y,T){var M=y;return M instanceof u?(v(M,T),M._source=this):(M=d&&!T?d:new u(T,this),M.setContent(y)),M}});var Dh=Ai.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,Ai.prototype.openOn.call(this,u)},onAdd:function(u){Ai.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Wo||this._source.on("preclick",la))},onRemove:function(u){Ai.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Wo||this._source.off("preclick",la))},getEvents:function(){var u=Ai.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=ht("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),y=this._wrapper=ht("div",u+"-content-wrapper",d);if(this._contentNode=ht("div",u+"-content",y),du(d),K_(this._contentNode),Xe(d,"contextmenu",la),this._tipContainer=ht("div",u+"-tip-container",d),this._tip=ht("div",u+"-tip",this._tipContainer),this.options.closeButton){var T=this._closeButton=ht("a",u+"-close-button",d);T.setAttribute("role","button"),T.setAttribute("aria-label","Close popup"),T.href="#close",T.innerHTML='<span aria-hidden="true">×</span>',Xe(T,"click",function(M){jn(M),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,d=u.style;d.width="",d.whiteSpace="nowrap";var y=u.offsetWidth;y=Math.min(y,this.options.maxWidth),y=Math.max(y,this.options.minWidth),d.width=y+1+"px",d.whiteSpace="",d.height="";var T=u.offsetHeight,M=this.options.maxHeight,j="leaflet-popup-scrolled";M&&T>M?(d.height=M+"px",Je(u,j)):tn(u,j),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),y=this._getAnchor();un(this._container,d.add(y))},_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(lu(this._container,"marginBottom"),10)||0,y=this._container.offsetHeight+d,T=this._containerWidth,M=new K(this._containerLeft,-y-this._containerBottom);M._add(aa(this._container));var j=u.layerPointToContainerPoint(M),J=I(this.options.autoPanPadding),de=I(this.options.autoPanPaddingTopLeft||J),pe=I(this.options.autoPanPaddingBottomRight||J),Ce=u.getSize(),Ie=0,Ge=0;j.x+T+pe.x>Ce.x&&(Ie=j.x+T-Ce.x+pe.x),j.x-Ie-de.x<0&&(Ie=j.x-de.x),j.y+y+pe.y>Ce.y&&(Ge=j.y+y-Ce.y+pe.y),j.y-Ge-de.y<0&&(Ge=j.y-de.y),(Ie||Ge)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Ie,Ge]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Z$=function(u,d){return new Dh(u,d)};at.mergeOptions({closePopupOnClick:!0}),at.include({openPopup:function(u,d,y){return this._initOverlay(Dh,u,d,y).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),fi.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Dh,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 io||(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)){ca(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof Wo)){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 Ah=Ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ai.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){Ai.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=Ai.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=ht("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,y,T=this._map,M=this._container,j=T.latLngToContainerPoint(T.getCenter()),J=T.layerPointToContainerPoint(u),de=this.options.direction,pe=M.offsetWidth,Ce=M.offsetHeight,Ie=I(this.options.offset),Ge=this._getAnchor();de==="top"?(d=pe/2,y=Ce):de==="bottom"?(d=pe/2,y=0):de==="center"?(d=pe/2,y=Ce/2):de==="right"?(d=0,y=Ce/2):de==="left"?(d=pe,y=Ce/2):J.x<j.x?(de="right",d=0,y=Ce/2):(de="left",d=pe+(Ie.x+Ge.x)*2,y=Ce/2),u=u.subtract(I(d,y,!0)).add(Ie).add(Ge),tn(M,"leaflet-tooltip-right"),tn(M,"leaflet-tooltip-left"),tn(M,"leaflet-tooltip-top"),tn(M,"leaflet-tooltip-bottom"),Je(M,"leaflet-tooltip-"+de),un(M,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 I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),K$=function(u,d){return new Ah(u,d)};at.include({openTooltip:function(u,d,y){return this._initOverlay(Ah,u,d,y).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),fi.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ah,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",y={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?y.add=this._openTooltip:(y.mouseover=this._openTooltip,y.mouseout=this.closeTooltip,y.click=this._openTooltip,this._map?this._addFocusListeners():y.add=this._addFocusListeners),this._tooltip.options.sticky&&(y.mousemove=this._moveTooltip),this[d](y),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof io||(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=u.getElement();d&&(Xe(d,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Xe(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var d=u.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0))},_moveTooltip:function(u){var d=u.latlng,y,T;this._tooltip.options.sticky&&u.originalEvent&&(y=this._map.mouseEventToContainerPoint(u.originalEvent),T=this._map.containerPointToLayerPoint(y),d=this._map.layerPointToLatLng(T)),this._tooltip.setLatLng(d)}});var GT=bl.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"),y=this.options;if(y.html instanceof Element?(wh(d),d.appendChild(y.html)):d.innerHTML=y.html!==!1?y.html:"",y.bgPos){var T=I(y.bgPos);d.style.backgroundPosition=-T.x+"px "+-T.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function X$(u){return new GT(u)}bl.Default=mu;var gu=fi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:We.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){v(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Ut(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(vl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(yl(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 K?u:new K(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,y=-u(-1/0,1/0),T=0,M=d.length,j;T<M;T++)j=d[T].style.zIndex,d[T]!==this._container&&j&&(y=u(y,+j));isFinite(y)&&(this.options.zIndex=y+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!We.ielt9){zr(this._container,this.options.opacity);var u=+new Date,d=!1,y=!1;for(var T in this._tiles){var M=this._tiles[T];if(!(!M.current||!M.loaded)){var j=Math.min(1,(u-M.loaded)/200);zr(M.el,j),j<1?d=!0:(M.active?y=!0:this._onOpaqueTile(M),M.active=!0)}}y&&!this._noPrune&&this._pruneTiles(),d&&(q(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=ht("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 y in this._levels)y=Number(y),this._levels[y].el.children.length||y===u?(this._levels[y].el.style.zIndex=d-Math.abs(u-y),this._onUpdateLevel(y)):(Ut(this._levels[y].el),this._removeTilesAtZoom(y),this._onRemoveLevel(y),delete this._levels[y]);var T=this._levels[u],M=this._map;return T||(T=this._levels[u]={},T.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),T.el.style.zIndex=d,T.origin=M.project(M.unproject(M.getPixelOrigin()),u).round(),T.zoom=u,this._setZoomTransform(T,M.getCenter(),M.getZoom()),h(T.el.offsetWidth),this._onCreateLevel(T)),this._level=T,T}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var u,d,y=this._map.getZoom();if(y>this.options.maxZoom||y<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 T=d.coords;this._retainParent(T.x,T.y,T.z,T.z-5)||this._retainChildren(T.x,T.y,T.z,T.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)Ut(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,d,y,T){var M=Math.floor(u/2),j=Math.floor(d/2),J=y-1,de=new K(+M,+j);de.z=+J;var pe=this._tileCoordsToKey(de),Ce=this._tiles[pe];return Ce&&Ce.active?(Ce.retain=!0,!0):(Ce&&Ce.loaded&&(Ce.retain=!0),J>T?this._retainParent(M,j,J,T):!1)},_retainChildren:function(u,d,y,T){for(var M=2*u;M<2*u+2;M++)for(var j=2*d;j<2*d+2;j++){var J=new K(M,j);J.z=y+1;var de=this._tileCoordsToKey(J),pe=this._tiles[de];if(pe&&pe.active){pe.retain=!0;continue}else pe&&pe.loaded&&(pe.retain=!0);y+1<T&&this._retainChildren(M,j,y+1,T)}},_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,y,T){var M=Math.round(d);this.options.maxZoom!==void 0&&M>this.options.maxZoom||this.options.minZoom!==void 0&&M<this.options.minZoom?M=void 0:M=this._clampZoom(M);var j=this.options.updateWhenZooming&&M!==this._tileZoom;(!T||j)&&(this._tileZoom=M,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),M!==void 0&&this._update(u),y||this._pruneTiles(),this._noPrune=!!y),this._setZoomTransforms(u,d)},_setZoomTransforms:function(u,d){for(var y in this._levels)this._setZoomTransform(this._levels[y],u,d)},_setZoomTransform:function(u,d,y){var T=this._map.getZoomScale(y,u.zoom),M=u.origin.multiplyBy(T).subtract(this._map._getNewPixelOrigin(d,y)).round();We.any3d?sa(u.el,M,T):un(u.el,M)},_resetGrid:function(){var u=this._map,d=u.options.crs,y=this._tileSize=this.getTileSize(),T=this._tileZoom,M=this._map.getPixelWorldBounds(this._tileZoom);M&&(this._globalTileRange=this._pxBoundsToTileRange(M)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,d.wrapLng[0]],T).x/y.x),Math.ceil(u.project([0,d.wrapLng[1]],T).x/y.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([d.wrapLat[0],0],T).y/y.x),Math.ceil(u.project([d.wrapLat[1],0],T).y/y.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var d=this._map,y=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),T=d.getZoomScale(y,this._tileZoom),M=d.project(u,this._tileZoom).floor(),j=d.getSize().divideBy(T*2);return new B(M.subtract(j),M.add(j))},_update:function(u){var d=this._map;if(d){var y=this._clampZoom(d.getZoom());if(u===void 0&&(u=d.getCenter()),this._tileZoom!==void 0){var T=this._getTiledPixelBounds(u),M=this._pxBoundsToTileRange(T),j=M.getCenter(),J=[],de=this.options.keepBuffer,pe=new B(M.getBottomLeft().subtract([de,-de]),M.getTopRight().add([de,-de]));if(!(isFinite(M.min.x)&&isFinite(M.min.y)&&isFinite(M.max.x)&&isFinite(M.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ce in this._tiles){var Ie=this._tiles[Ce].coords;(Ie.z!==this._tileZoom||!pe.contains(new K(Ie.x,Ie.y)))&&(this._tiles[Ce].current=!1)}if(Math.abs(y-this._tileZoom)>1){this._setView(u,y);return}for(var Ge=M.min.y;Ge<=M.max.y;Ge++)for(var it=M.min.x;it<=M.max.x;it++){var Vr=new K(it,Ge);if(Vr.z=this._tileZoom,!!this._isValidTile(Vr)){var fa=this._tiles[this._tileCoordsToKey(Vr)];fa?fa.current=!0:J.push(Vr)}}if(J.sort(function(Yo,a0){return Yo.distanceTo(j)-a0.distanceTo(j)}),J.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Fh=document.createDocumentFragment();for(it=0;it<J.length;it++)this._addTile(J[it],Fh);this._level.el.appendChild(Fh)}}}},_isValidTile:function(u){var d=this._map.options.crs;if(!d.infinite){var y=this._globalTileRange;if(!d.wrapLng&&(u.x<y.min.x||u.x>y.max.x)||!d.wrapLat&&(u.y<y.min.y||u.y>y.max.y))return!1}if(!this.options.bounds)return!0;var T=this._tileCoordsToBounds(u);return G(this.options.bounds).overlaps(T)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,y=this.getTileSize(),T=u.scaleBy(y),M=T.add(y),j=d.unproject(T,u.z),J=d.unproject(M,u.z);return[j,J]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),y=new W(d[0],d[1]);return this.options.noWrap||(y=this._map.wrapLatLngBounds(y)),y},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),y=new K(+d[0],+d[1]);return y.z=+d[2],y},_removeTile:function(u){var d=this._tiles[u];d&&(Ut(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Je(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,We.ielt9&&this.options.opacity<1&&zr(u,this.options.opacity)},_addTile:function(u,d){var y=this._getTilePos(u),T=this._tileCoordsToKey(u),M=this.createTile(this._wrapCoords(u),s(this._tileReady,this,u));this._initTile(M),this.createTile.length<2&&Y(s(this._tileReady,this,u,null,M)),un(M,y),this._tiles[T]={el:M,coords:u,current:!0},d.appendChild(M),this.fire("tileloadstart",{tile:M,coords:u})},_tileReady:function(u,d,y){d&&this.fire("tileerror",{error:d,tile:y,coords:u});var T=this._tileCoordsToKey(u);y=this._tiles[T],y&&(y.loaded=+new Date,this._map._fadeAnimated?(zr(y.el,0),q(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(y.active=!0,this._pruneTiles()),d||(Je(y.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:y.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),We.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new K(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 Q$(u){return new gu(u)}var Sl=gu.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=v(this,d),d.detectRetina&&We.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 y=document.createElement("img");return Xe(y,"load",s(this._tileOnLoad,this,d,y)),Xe(y,"error",s(this._tileOnError,this,d,y)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(y.referrerPolicy=this.options.referrerPolicy),y.alt="",y.src=this.getTileUrl(u),y},getTileUrl:function(u){var d={r:We.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var y=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=y),d["-y"]=y}return b(this._url,i(d,this.options))},_tileOnLoad:function(u,d){We.ielt9?setTimeout(s(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,y){var T=this.options.errorTileUrl;T&&d.getAttribute("src")!==T&&(d.src=T),u(y,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,y=this.options.zoomReverse,T=this.options.zoomOffset;return y&&(u=d-u),u+T},_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=P;var y=this._tiles[u].coords;Ut(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:y})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",P),gu.prototype._removeTile.call(this,u)},_tileReady:function(u,d,y){if(!(!this._map||y&&y.getAttribute("src")===P))return gu.prototype._tileReady.call(this,u,d,y)}});function ZT(u,d){return new Sl(u,d)}var KT=Sl.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 y=i({},this.defaultWmsParams);for(var T in d)T in this.options||(y[T]=d[T]);d=v(this,d);var M=d.detectRetina&&We.retina?2:1,j=this.getTileSize();y.width=j.x*M,y.height=j.y*M,this.wmsParams=y},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,Sl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),y=this._crs,T=ie(y.project(d[0]),y.project(d[1])),M=T.min,j=T.max,J=(this._wmsVersion>=1.3&&this._crs===UT?[M.y,M.x,j.y,j.x]:[M.x,M.y,j.x,j.y]).join(","),de=Sl.prototype.getTileUrl.call(this,u);return de+w(this.wmsParams,de,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+J},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function J$(u,d){return new KT(u,d)}Sl.WMS=KT,ZT.wms=J$;var ao=fi.extend({options:{padding:.1},initialize:function(u){v(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Je(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var 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 y=this._map.getZoomScale(d,this._zoom),T=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,d),j=T.multiplyBy(-y).add(M).subtract(this._map._getNewPixelOrigin(u,d));We.any3d?sa(this._container,j,y):un(this._container,j)},_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(),y=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(y,y.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),XT=ao.extend({options:{tolerance:0},getEvents:function(){var u=ao.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ao.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Xe(u,"mousemove",this._onMouseMove,this),Xe(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Xe(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,Ut(this._container),Et(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)){ao.prototype._update.call(this);var u=this._bounds,d=this._container,y=u.getSize(),T=We.retina?2:1;un(d,u.min),d.width=T*y.x,d.height=T*y.y,d.style.width=y.x+"px",d.style.height=y.y+"px",We.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){ao.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,y=d.next,T=d.prev;y?y.prev=T:this._drawLast=T,T?T.next=y:this._drawFirst=y,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(/[, ]+/),y=[],T,M;for(M=0;M<d.length;M++){if(T=Number(d[M]),isNaN(T))return;y.push(T)}u.options._dashArray=y}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||Y(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 y=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,y.x,y.y),this._ctx.clip()}this._drawing=!0;for(var T=this._drawFirst;T;T=T.next)u=T.layer,(!d||u._pxBounds&&u._pxBounds.intersects(d))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,d){if(this._drawing){var y,T,M,j,J=u._parts,de=J.length,pe=this._ctx;if(de){for(pe.beginPath(),y=0;y<de;y++){for(T=0,M=J[y].length;T<M;T++)j=J[y][T],pe[T?"lineTo":"moveTo"](j.x,j.y);d&&pe.closePath()}this._fillStroke(pe,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var d=u._point,y=this._ctx,T=Math.max(Math.round(u._radius),1),M=(Math.max(Math.round(u._radiusY),1)||T)/T;M!==1&&(y.save(),y.scale(1,M)),y.beginPath(),y.arc(d.x,d.y/M,T,0,Math.PI*2,!1),M!==1&&y.restore(),this._fillStroke(y,u)}},_fillStroke:function(u,d){var y=d.options;y.fill&&(u.globalAlpha=y.fillOpacity,u.fillStyle=y.fillColor||y.color,u.fill(y.fillRule||"evenodd")),y.stroke&&y.weight!==0&&(u.setLineDash&&u.setLineDash(d.options&&d.options._dashArray||[]),u.globalAlpha=y.opacity,u.lineWidth=y.weight,u.strokeStyle=y.color,u.lineCap=y.lineCap,u.lineJoin=y.lineJoin,u.stroke())},_onClick:function(u){for(var d=this._map.mouseEventToLayerPoint(u),y,T,M=this._drawFirst;M;M=M.next)y=M.layer,y.options.interactive&&y._containsPoint(d)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(y))&&(T=y);this._fireEvent(T?[T]:!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&&(tn(this._container,"leaflet-interactive"),this._fireEvent([d],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,d){if(!this._mouseHoverThrottled){for(var y,T,M=this._drawFirst;M;M=M.next)y=M.layer,y.options.interactive&&y._containsPoint(d)&&(T=y);T!==this._hoveredLayer&&(this._handleMouseOut(u),T&&(Je(this._container,"leaflet-interactive"),this._fireEvent([T],u,"mouseover"),this._hoveredLayer=T)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,d,y){this._map._fireDOMEvent(d,y||d.type,u)},_bringToFront:function(u){var d=u._order;if(d){var y=d.next,T=d.prev;if(y)y.prev=T;else return;T?T.next=y:y&&(this._drawFirst=y),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 y=d.next,T=d.prev;if(T)T.next=y;else return;y?y.prev=T:T&&(this._drawLast=T),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(u)}}});function QT(u){return We.canvas?new XT(u):null}var vu=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">')}}(),e7={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ao.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=vu("shape");Je(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=vu("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;Ut(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,y=u._fill,T=u.options,M=u._container;M.stroked=!!T.stroke,M.filled=!!T.fill,T.stroke?(d||(d=u._stroke=vu("stroke")),M.appendChild(d),d.weight=T.weight+"px",d.color=T.color,d.opacity=T.opacity,T.dashArray?d.dashStyle=x(T.dashArray)?T.dashArray.join(" "):T.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=T.lineCap.replace("butt","flat"),d.joinstyle=T.lineJoin):d&&(M.removeChild(d),u._stroke=null),T.fill?(y||(y=u._fill=vu("fill")),M.appendChild(y),y.color=T.fillColor||T.color,y.opacity=T.fillOpacity):y&&(M.removeChild(y),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),y=Math.round(u._radius),T=Math.round(u._radiusY||y);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+y+","+T+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){vl(u._container)},_bringToBack:function(u){yl(u._container)}},Ih=We.vml?vu:De,yu=ao.extend({_initContainer:function(){this._container=Ih("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ih("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ut(this._container),Et(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ao.prototype._update.call(this);var u=this._bounds,d=u.getSize(),y=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,y.setAttribute("width",d.x),y.setAttribute("height",d.y)),un(y,u.min),y.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Ih("path");u.options.className&&Je(d,u.options.className),u.options.interactive&&Je(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){Ut(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,y=u.options;d&&(y.stroke?(d.setAttribute("stroke",y.color),d.setAttribute("stroke-opacity",y.opacity),d.setAttribute("stroke-width",y.weight),d.setAttribute("stroke-linecap",y.lineCap),d.setAttribute("stroke-linejoin",y.lineJoin),y.dashArray?d.setAttribute("stroke-dasharray",y.dashArray):d.removeAttribute("stroke-dasharray"),y.dashOffset?d.setAttribute("stroke-dashoffset",y.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),y.fill?(d.setAttribute("fill",y.fillColor||y.color),d.setAttribute("fill-opacity",y.fillOpacity),d.setAttribute("fill-rule",y.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,fe(u._parts,d))},_updateCircle:function(u){var d=u._point,y=Math.max(Math.round(u._radius),1),T=Math.max(Math.round(u._radiusY),1)||y,M="a"+y+","+T+" 0 1,0 ",j=u._empty()?"M0 0":"M"+(d.x-y)+","+d.y+M+y*2+",0 "+M+-y*2+",0 ";this._setPath(u,j)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){vl(u._path)},_bringToBack:function(u){yl(u._path)}});We.vml&&yu.include(e7);function JT(u){return We.svg||We.vml?new yu(u):null}at.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&&QT(u)||JT(u)}});var eO=wl.extend({initialize:function(u,d){wl.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=G(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function t7(u,d){return new eO(u,d)}yu.create=Ih,yu.pointsToPath=fe,so.geometryToLayer=kh,so.coordsToLatLng=i0,so.coordsToLatLngs=Mh,so.latLngToCoords=o0,so.latLngsToCoords=Rh,so.getFeature=xl,so.asFeature=Nh,at.mergeOptions({boxZoom:!0});var tO=Di.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(){Xe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Et(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ut(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(),cu(),U_(),this._startPoint=this._map.mouseEventToContainerPoint(u),Xe(document,{contextmenu:ca,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),Je(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),y=d.getSize();un(this._box,d.min),this._box.style.width=y.x+"px",this._box.style.height=y.y+"px"},_finish:function(){this._moved&&(Ut(this._box),tn(this._container,"leaflet-crosshair")),uu(),V_(),Et(document,{contextmenu:ca,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(s(this._resetState,this),0);var d=new W(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())}});at.addInitHook("addHandler","boxZoom",tO),at.mergeOptions({doubleClickZoom:!0});var nO=Di.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,y=d.getZoom(),T=d.options.zoomDelta,M=u.originalEvent.shiftKey?y-T:y+T;d.options.doubleClickZoom==="center"?d.setZoom(M):d.setZoomAround(u.containerPoint,M)}});at.addInitHook("addHandler","doubleClickZoom",nO),at.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var rO=Di.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Ho(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))}Je(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tn(this._map._container,"leaflet-grab"),tn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=G(this._map.options.maxBounds);this._offsetLimit=ie(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,y=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(y),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),y=this._initialWorldOffset,T=this._draggable._newPos.x,M=(T-d+y)%u+d-y,j=(T+d+y)%u-d-y,J=Math.abs(M+y)<Math.abs(j+y)?M:j;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=J},_onDragEnd:function(u){var d=this._map,y=d.options,T=!y.inertia||u.noInertia||this._times.length<2;if(d.fire("dragend",u),T)d.fire("moveend");else{this._prunePositions(+new Date);var M=this._lastPos.subtract(this._positions[0]),j=(this._lastTime-this._times[0])/1e3,J=y.easeLinearity,de=M.multiplyBy(J/j),pe=de.distanceTo([0,0]),Ce=Math.min(y.inertiaMaxSpeed,pe),Ie=de.multiplyBy(Ce/pe),Ge=Ce/(y.inertiaDeceleration*J),it=Ie.multiplyBy(-Ge/2).round();!it.x&&!it.y?d.fire("moveend"):(it=d._limitOffset(it,d.options.maxBounds),Y(function(){d.panBy(it,{duration:Ge,easeLinearity:J,noMoveStart:!0,animate:!0})}))}}});at.addInitHook("addHandler","dragging",rO),at.mergeOptions({keyboard:!0,keyboardPanDelta:80});var iO=Di.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"),Xe(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(),Et(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,y=u.scrollTop||d.scrollTop,T=u.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(T,y)}},_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={},y=this.keyCodes,T,M;for(T=0,M=y.left.length;T<M;T++)d[y.left[T]]=[-1*u,0];for(T=0,M=y.right.length;T<M;T++)d[y.right[T]]=[u,0];for(T=0,M=y.down.length;T<M;T++)d[y.down[T]]=[0,u];for(T=0,M=y.up.length;T<M;T++)d[y.up[T]]=[0,-1*u]},_setZoomDelta:function(u){var d=this._zoomKeys={},y=this.keyCodes,T,M;for(T=0,M=y.zoomIn.length;T<M;T++)d[y.zoomIn[T]]=u;for(T=0,M=y.zoomOut.length;T<M;T++)d[y.zoomOut[T]]=-u},_addHooks:function(){Xe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Et(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var d=u.keyCode,y=this._map,T;if(d in this._panKeys){if(!y._panAnim||!y._panAnim._inProgress)if(T=this._panKeys[d],u.shiftKey&&(T=I(T).multiplyBy(3)),y.options.maxBounds&&(T=y._limitOffset(I(T),y.options.maxBounds)),y.options.worldCopyJump){var M=y.wrapLatLng(y.unproject(y.project(y.getCenter()).add(T)));y.panTo(M)}else y.panBy(T)}else if(d in this._zoomKeys)y.setZoom(y.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&y._popup&&y._popup.options.closeOnEscapeKey)y.closePopup();else return;ca(u)}}});at.addInitHook("addHandler","keyboard",iO),at.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var oO=Di.extend({addHooks:function(){Xe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Et(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var d=kT(u),y=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var T=Math.max(y-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),T),ca(u)},_performZoom:function(){var u=this._map,d=u.getZoom(),y=this._map.options.zoomSnap||0;u._stop();var T=this._delta/(this._map.options.wheelPxPerZoomLevel*4),M=4*Math.log(2/(1+Math.exp(-Math.abs(T))))/Math.LN2,j=y?Math.ceil(M/y)*y:M,J=u._limitZoom(d+(this._delta>0?j:-j))-d;this._delta=0,this._startTime=null,J&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+J):u.setZoomAround(this._lastMousePos,d+J))}});at.addInitHook("addHandler","scrollWheelZoom",oO);var n7=600;at.mergeOptions({tapHold:We.touchNative&&We.safari&&We.mobile,tapTolerance:15});var sO=Di.extend({addHooks:function(){Xe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Et(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 K(d.clientX,d.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Xe(document,"touchend",jn),Xe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),n7),Xe(document,"touchend touchcancel contextmenu",this._cancel,this),Xe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){Et(document,"touchend",jn),Et(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),Et(document,"touchend touchcancel contextmenu",this._cancel,this),Et(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new K(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var y=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});y._simulated=!0,d.target.dispatchEvent(y)}});at.addInitHook("addHandler","tapHold",sO),at.mergeOptions({touchZoom:We.touch,bounceAtZoomLimits:!0});var aO=Di.extend({addHooks:function(){Je(this._map._container,"leaflet-touch-zoom"),Xe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tn(this._map._container,"leaflet-touch-zoom"),Et(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 y=d.mouseEventToContainerPoint(u.touches[0]),T=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(y.add(T)._divideBy(2))),this._startDist=y.distanceTo(T),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Xe(document,"touchmove",this._onTouchMove,this),Xe(document,"touchend touchcancel",this._onTouchEnd,this),jn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,y=d.mouseEventToContainerPoint(u.touches[0]),T=d.mouseEventToContainerPoint(u.touches[1]),M=y.distanceTo(T)/this._startDist;if(this._zoom=d.getScaleZoom(M,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&M<1||this._zoom>d.getMaxZoom()&&M>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var j=y._add(T)._divideBy(2)._subtract(this._centerPoint);if(M===1&&j.x===0&&j.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(j),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var J=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Y(J,this,!0),jn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Et(document,"touchmove",this._onTouchMove,this),Et(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))}});at.addInitHook("addHandler","touchZoom",aO),at.BoxZoom=tO,at.DoubleClickZoom=nO,at.Drag=rO,at.Keyboard=iO,at.ScrollWheelZoom=oO,at.TapHold=sO,at.TouchZoom=aO,n.Bounds=B,n.Browser=We,n.CRS=me,n.Canvas=XT,n.Circle=r0,n.CircleMarker=Ph,n.Class=Z,n.Control=ui,n.DivIcon=GT,n.DivOverlay=Ai,n.DomEvent=b$,n.DomUtil=y$,n.Draggable=Ho,n.Evented=le,n.FeatureGroup=io,n.GeoJSON=so,n.GridLayer=gu,n.Handler=Di,n.Icon=bl,n.ImageOverlay=Lh,n.LatLng=re,n.LatLngBounds=W,n.Layer=fi,n.LayerGroup=_l,n.LineUtil=N$,n.Map=at,n.Marker=Oh,n.Mixin=O$,n.Path=Wo,n.Point=K,n.PolyUtil=L$,n.Polygon=wl,n.Polyline=oo,n.Popup=Dh,n.PosAnimation=MT,n.Projection=D$,n.Rectangle=eO,n.Renderer=ao,n.SVG=yu,n.SVGOverlay=qT,n.TileLayer=Sl,n.Tooltip=Ah,n.Transformation=Q,n.Util=ee,n.VideoOverlay=YT,n.bind=s,n.bounds=ie,n.canvas=QT,n.circle=U$,n.circleMarker=z$,n.control=hu,n.divIcon=X$,n.extend=i,n.featureGroup=$$,n.geoJSON=WT,n.geoJson=W$,n.gridLayer=Q$,n.icon=j$,n.imageOverlay=Y$,n.latLng=se,n.latLngBounds=G,n.layerGroup=F$,n.map=w$,n.marker=B$,n.point=I,n.polygon=H$,n.polyline=V$,n.popup=Z$,n.rectangle=t7,n.setOptions=v,n.stamp=l,n.svg=JT,n.svgOverlay=G$,n.tileLayer=ZT,n.tooltip=K$,n.transformation=X,n.version=r,n.videoOverlay=q$;var r7=window.L;n.noConflict=function(){return window.L=r7,this},window.L=n})})(H0e,Ws);const RL=Ws;function dT(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function hT(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 s=H.useRef(r),{instance:a}=o.current;return H.useEffect(function(){s.current!==r&&(t(a,r,s.current),s.current=r)},[a,r,i]),o}}function W0e(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 qF(e){return function(n){const r=WF(),i=e(fT(n,r),r);return UF(r.map,n.attribution),YF(i.current,n.eventHandlers),W0e(i.current,r),i}}function Y0e(e,t){const n=hT(e,t),r=qF(n);return B0e(r)}function q0e(e,t){const n=hT(e),r=V0e(n,t);return z0e(r)}function G0e(e,t){const n=hT(e,t),r=qF(n);return U0e(r)}function Z0e(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 Px(){return Px=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},Px.apply(this,arguments)}function K0e({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:a,whenReady:l,zoom:c,...f},h){const[p]=H.useState({className:i,id:o,style:a}),[m,g]=H.useState(null);H.useImperativeHandle(h,()=>(m==null?void 0:m.map)??null,[m]);const v=H.useCallback(_=>{if(_!==null&&m===null){const b=new Ws.Map(_,f);n!=null&&c!=null?b.setView(n,c):e!=null&&b.fitBounds(e,t),l!=null&&b.whenReady(l),g($0e(b))}},[]);H.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const w=m?z.createElement(HF,{value:m},r):s??null;return z.createElement("div",Px({},p,{ref:v}),w)}const X0e=H.forwardRef(K0e),Q0e=Y0e(function({position:t,...n},r){const i=new Ws.Marker(t,n);return dT(i,j0e(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())}),J0e=q0e(function(t,n){const r=new Ws.Popup(t,n.overlayContainer);return dT(r,n)},function(t,n,{position:r},i){H.useEffect(function(){const{instance:s}=t;function a(c){c.popup===s&&(s.update(),i(!0))}function l(c){c.popup===s&&i(!1)}return n.map.on({popupopen:a,popupclose:l}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){var f;n.map.off({popupopen:a,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),ebe=G0e(function({url:t,...n},r){const i=new Ws.TileLayer(t,fT(n,r));return dT(i,r)},function(t,n,r){Z0e(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});const tbe=()=>C(ebe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),nbe=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}},GF=({toggle:e,isOpen:t,title:n,locations:r=[]})=>C(Uo,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:V(Mi,{className:"map-modal__modal-body",children:[V("h3",{className:"map-modal__modal-title",children:[n,C("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),V(X0e,{...nbe(r),children:[C(tbe,{}),r.map(({cityName:i,latLong:o,count:s},a)=>C(Q0e,{position:o,children:V(J0e,{children:[C("b",{children:s})," visit",s>1?"s":""," from ",C("b",{children:i})]})},a))]})]})});const rbe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=jt(),[s,a,l]=jt(),[c,f]=H.useState([]),h=C_(),p=v=>t?v.filter(({cityName:w})=>t==null?void 0:t.includes(w)):v,m=()=>{if(!t){f(n),i();return}l()},g=v=>()=>{f(v?p(n):n),i()};return V(Ye,{children:[C(mt,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:m,children:C(je,{icon:ZI})}),C(Br,{placement:"left",target:h,children:"Show in map"}),C(Jc,{isOpen:s,toggle:a,inNavbar:!0,children:V(hl,{end:!0,children:[C(Ve,{onClick:g(!1),children:"Show all locations"}),C(Ve,{onClick:g(!0),children:"Show locations in current page"})]})}),C(GF,{toggle:o,isOpen:r,title:e,locations:c})]})},ibe=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,s=l=>({active:i===l,onClick:()=>e({...t,orphanVisitsType:l===(t==null?void 0:t.orphanVisitsType)?void 0:l})});return V(na,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Bots:"}),C(Ve,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&V(Ye,{children:[C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Orphan visits type:"}),C(Ve,{...s("base_url"),children:"Base URL"}),C(Ve,{...s("invalid_short_url"),children:"Invalid short URL"}),C(Ve,{...s("regular_404"),children:"Regular 404"})]}),C(Ve,{divider:!0}),C(Ve,{disabled:!yi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:C("i",{children:"Clear filters"})})]})},ZF=(e,t)=>!$o(e)&&yi(e[t]),NL=e=>typeof e=="number"?e:e?parseFloat(e):0,obe=(e,{os:t})=>{e[t]=(e[t]||0)+1},sbe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},abe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},KF=e=>(t,n)=>{const i=ZF(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},lbe=KF("country"),cbe=KF("city"),ube=(e,t)=>{if(!ZF(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[NL(r),NL(i)]};o.count+=1,e[n]=o},fbe=(e,t)=>{if(!K_e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},XF=e=>e.reduce((t,n)=>(obe(t.os,n),sbe(t.browsers,n),abe(t.referrers,n),lbe(t.countries,n),cbe(t.cities,n),ube(t.citiesForMap,n),fbe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),QF=zd(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,s={date:n,potentialBot:o,...v0e(t),referer:y0e(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 aT(e)?{...s,type:e.type,visitedUrl:e.visitedUrl}:s}),dbe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:QF,processStatsFromVisits:XF},Symbol.toStringTag,{value:"Module"}));const ef=20,hbe=({browser:e,os:t,referer:n,country:r,city:i,...o},s)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),pbe=(e,t)=>t.filter(n=>hbe(n,e)),mbe=(e,t)=>MI(t,e),gbe=(e,t,n)=>{const r=t?pbe(t,e):[...e],i=mbe(n,r),o=i.length;return{visitsGroups:ld(ef,i),total:o}},vbe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var k,N;const o="visits-table__header-cell visits-table__sticky",s=()=>r("(max-width: 767px)").matches,[a,l]=H.useState(s()),[c,f]=H.useState(void 0),[h,p]=H.useState({}),m=H.useMemo(()=>gbe(e,c,h),[c,h]),g=H.useRef(!0),[v,w]=H.useState(1),_=v*ef,b=_-ef,x=8+Number(i),E=D=>()=>p({field:D,dir:s_(D,h.field,h.dir)}),P=D=>C(Rf,{currentOrder:h,field:D,className:"visits-table__header-icon"});return H.useEffect(()=>{const D=()=>l(s());return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]),H.useEffect(()=>{w(1),!g.current&&n([]),g.current=!1},[c]),C("div",{className:"table-responsive-md",children:V("table",{className:"table table-bordered table-hover table-sm visits-table",children:[V("thead",{className:"visits-table__header",children:[V("tr",{children:[C("th",{className:`${o} text-center`,onClick:()=>n(t.length<m.total?m.visitsGroups.flat():[]),children:C(je,{icon:ud,className:ge({"text-primary":t.length>0})})}),V("th",{className:`${o} text-center`,onClick:E("potentialBot"),children:[C(je,{icon:P3}),P("potentialBot")]}),V("th",{className:o,onClick:E("date"),children:["Date",P("date")]}),V("th",{className:o,onClick:E("country"),children:["Country",P("country")]}),V("th",{className:o,onClick:E("city"),children:["City",P("city")]}),V("th",{className:o,onClick:E("browser"),children:["Browser",P("browser")]}),V("th",{className:o,onClick:E("os"),children:["OS",P("os")]}),V("th",{className:o,onClick:E("referer"),children:["Referrer",P("referer")]}),i&&V("th",{className:o,onClick:E("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),C("tr",{children:C("td",{colSpan:x,className:"p-0",children:C(sh,{noBorder:!0,large:!1,onChange:f})})})]}),V("tbody",{children:[!((k=m.visitsGroups[v-1])!=null&&k.length)&&C("tr",{children:C("td",{colSpan:x,className:"text-center",children:"No visits found with current filtering"})}),(N=m.visitsGroups[v-1])==null?void 0:N.map((D,U)=>{const A=t.includes(D);return V("tr",{style:{cursor:"pointer"},className:ge({"table-active":A}),onClick:()=>n(A?t.filter(Y=>Y!==D):[...t,D]),children:[C("td",{className:"text-center",children:A&&C(je,{icon:ud,className:"text-primary"})}),C("td",{className:"text-center",children:D.potentialBot&&V(Ye,{children:[C(je,{icon:P3,id:`botIcon${U}`}),C(Br,{placement:"right",target:`botIcon${U}`,children:"Potentially a visit from a bot or crawler"})]})}),C("td",{children:C(sy,{date:D.date})}),C("td",{children:D.country}),C("td",{children:D.city}),C("td",{children:D.browser}),C("td",{children:D.os}),C("td",{children:D.referer}),i&&C("td",{children:D.visitedUrl})]},U)})]}),m.total>ef&&C("tfoot",{children:C("tr",{children:C("td",{colSpan:x,className:"visits-table__footer-cell visits-table__sticky",children:V("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(tT,{pagesCount:Math.ceil(m.total/ef),currentPage:v,setCurrentPage:w,centered:a})}),C("div",{className:ge("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:V("div",{children:["Visits ",C("b",{children:bn(b+1)})," to"," ",C("b",{children:bn(OI(_,m.total))})," of"," ",C("b",{children:bn(m.total)})]})})]})})})})]})})},Fl={byTime:{title:"By time",subPath:"by-time",icon:HX},byContext:{title:"By context",subPath:"by-context",icon:_C},byLocation:{title:"By location",subPath:"by-location",icon:ZI},list:{title:"List",subPath:"list",icon:GI}};let zp;const gh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,settings:i,exportCsv:o,isOrphanVisits:s=!1})=>{var W;const{visits:a,loading:l,loadingLarge:c,error:f,errorData:h,progress:p,fallbackInterval:m}=t,[{dateRange:g,visitsFilter:v},w]=I0e(),_=It(({startDate:G,endDate:re})=>({dateRange:{startDate:G??void 0,endDate:re??void 0}}),w),b=H.useRef(g??m??((W=i.visits)==null?void 0:W.defaultInterval)??"last30Days"),[x,E]=H.useState([]),[P,k]=H.useState(),N=H.useRef(!0),{search:D}=Mn(),U=G=>G?`${G}${D}`:D,A=H.useMemo(()=>QF(a),[a]),{os:Y,browsers:q,referrers:ee,countries:Z,cities:te,citiesForMap:ne,visitedUrls:le}=H.useMemo(()=>XF(A),[A]),K=H.useMemo(()=>{var G;return{...v,excludeBots:v.excludeBots??((G=i.visits)==null?void 0:G.excludeBots)}},[v]),$=Kc(ne),I=G=>{zp=void 0,E(G)},B=G=>re=>{const se=`${G}_${re}`;zp===se?(E([]),k(void 0),zp=void 0):(E(A.filter(_Z(G,re))),k(re),zp=se)};H.useEffect(()=>r,[]),H.useEffect(()=>{const G=N.current?g??Khe(b.current):g;n({dateRange:G,filter:K},N.current),N.current=!1},[g,v]),H.useEffect(()=>{var G;m&&b.current===(((G=i.visits)==null?void 0:G.defaultInterval)??"last30Days")&&(b.current=m)},[m]);const ie=()=>c?V(So,{loading:!0,children:["This is going to take a while... :S",C(oE,{value:p,striped:p===100,className:"mt-3"})]}):l?C(So,{loading:!0}):f?C(Nr,{type:"error",children:C(Lo,{errorData:h,fallbackMessage:"An error occurred while loading visits :("})}):qn(a)?C(So,{children:"There are no visits matching current filter"}):V(Ye,{children:[C(F8,{fill:!0,children:Object.values(Fl).map(({title:G,icon:re,subPath:se},me)=>V(kf,{to:U(se),replace:!0,children:[C(je,{icon:re}),C("span",{className:"ms-2 d-none d-sm-inline",children:G})]},me))}),C(ur,{children:V(e_,{children:[C(yt,{path:Fl.byTime.subPath,element:C("div",{className:"col-12 mt-3",children:C(T0e,{title:"Visits during time",visits:A,highlightedVisits:x,highlightedLabel:P,setSelectedVisits:I})})}),C(yt,{path:Fl.byContext.subPath,element:V(Ye,{children:[C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(CL,{title:"Operating systems",stats:Y})}),C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(CL,{title:"Browsers",stats:q})}),C("div",{className:ge("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:C(Bp,{title:"Referrers",stats:ee,withPagination:!1,highlightedStats:$p(x,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:B("referer")})}),s&&C("div",{className:"mt-3 col-lg-6",children:C(Bp,{title:"Visited URLs",stats:le,highlightedLabel:P,highlightedStats:$p(x,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:B("visitedUrl")})})]})}),C(yt,{path:Fl.byLocation.subPath,element:V(Ye,{children:[C("div",{className:"col-lg-6 mt-3",children:C(Bp,{title:"Countries",stats:Z,highlightedStats:$p(x,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:B("country")})}),C("div",{className:"col-lg-6 mt-3",children:C(Bp,{title:"Cities",stats:te,highlightedStats:$p(x,"city"),highlightedLabel:P,extraHeaderContent:G=>$.length>0&&C(rbe,{modalTitle:"Cities",locations:$,activeCities:G}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:B("city")})})]})}),C(yt,{path:Fl.list.subPath,element:C("div",{className:"col-12",children:C(vbe,{visits:A,selectedVisits:x,setSelectedVisits:I,isOrphanVisits:s})})}),C(yt,{path:"*",element:C(ZS,{replace:!0,to:U(Fl.byTime.subPath)})})]})})]});return V(Ye,{children:[e,C("section",{className:"mt-3",children:V("div",{className:"row flex-md-row-reverse",children:[C("div",{className:"col-lg-7 col-xl-6",children:V("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(fF,{updatable:!0,disabled:l,initialDateRange:b.current,defaultText:"All visits",onDatesChange:_})}),C(ibe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:K,onChange:G=>w({visitsFilter:G})})]})}),a.length>0&&C("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:V("div",{className:"d-flex",children:[C(W8,{className:"btn-md-block",amount:A.length,onClick:()=>o(A)}),V(mt,{outline:!0,disabled:x.length===0,className:"btn-md-block ms-2",onClick:()=>I([]),children:["Clear selection ",x.length>0&&V(Ye,{children:["(",bn(x.length),")"]})]})]})})]})}),C("section",{className:"mt-3",children:ie()})]})},ybe=({exportVisits:e})=>ra(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r,settings:i})=>{const o=ta(),{domain:s=""}=Ks(),[a,l=a]=s.split("_");return C(gh,{getVisits:(h,p)=>t({domain:l,query:ph(h),doIntervalFallback:p}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:h=>e(`domain_${a}_visits.csv`,h),children:C(mh,{goBack:o,visits:n.visits,title:`"${a}" visits`})})},()=>[Jr.visits]),_be=({exportVisits:e})=>ra(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r,settings:i})=>{const o=ta();return C(gh,{getVisits:(l,c)=>t({query:ph(l),doIntervalFallback:c}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("non_orphan_visits.csv",l),children:C(mh,{title:"Non-orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.visits]),bbe=({exportVisits:e})=>ra(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r,settings:i})=>{const o=ta();return C(gh,{getVisits:(l,c)=>{var f;return t({query:ph(l),orphanVisitsType:(f=l.filter)==null?void 0:f.orphanVisitsType,doIntervalFallback:c})},cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("orphan_visits.csv",l),isOrphanVisits:!0,children:C(mh,{title:"Orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.orphanVisits]),JF="shlink/orphanVisits",wbe={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},xbe=e=>uh({typePrefix:`${JF}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1},r)=>{const{getNonOrphanVisits:i}=e(r),o=async(a,l)=>i({...t,page:a,itemsPerPage:l}),s=fh(n,i);return[o,s]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),Sbe=e=>dh({name:JF,initialState:wbe,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>ah(o.date,r,i))}}),e$="shlink/orphanVisits",Cbe={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Ebe=(e,t)=>!t||t===e.type,Tbe=e=>uh({typePrefix:`${e$}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getOrphanVisits:o}=e(i),s=async(l,c)=>o({...n,page:l,itemsPerPage:c}).then(f=>{const h=f.data.filter(p=>aT(p)&&Ebe(p,t));return{...f,data:h}}),a=fh(r,o);return[s,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),Obe=e=>dh({name:e$,initialState:Cbe,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:s})=>!s&&ah(o.date,r,i))}}),t$="shlink/shortUrlVisits",Pbe={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},kbe=e=>uh({typePrefix:`${t$}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getShortUrlVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=fh(r,async l=>o(t,{...l,domain:n.domain}));return[s,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),Mbe=e=>dh({name:t$,initialState:Pbe,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:s}=r;return i.filter(({shortUrl:a,visit:l})=>a&&Ef(a,t,n)&&ah(l.date,o,s))}}),n$="shlink/tagVisits",Rbe={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Nbe=e=>uh({typePrefix:`${n$}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getTagVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=fh(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),Lbe=e=>dh({name:n$,initialState:Rbe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>(s==null?void 0:s.tags.includes(t))&&ah(a.date,i,o))}}),r$="shlink/visitsOverview",Up={visitsCount:0,orphanVisitsCount:0,loading:!1,error:!1},Dbe=e=>ir(`${r$}/loadVisitsOverview`,(t,{getState:n})=>e(n).getVisitsOverview()),Abe=e=>Gn({name:r$,initialState:Up,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Up,loading:!0})),t.addCase(e.rejected,()=>({...Up,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Up,...r})),t.addCase(ch,({visitsCount:n,orphanVisitsCount:r=0,...i},{payload:o})=>{const{createdVisits:s}=o,{regularVisits:a,orphanVisits:l}=X_e(s);return{...i,visitsCount:n+a.length,orphanVisitsCount:r+l.length}})}});const Ibe=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,s=(r==null?void 0:r.shortUrl)??"",a=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title;return V(mh,{title:V(Ye,{children:["Visits for ",C(Ei,{href:s})]}),goBack:n,visits:o,shortUrl:r,children:[C("hr",{}),V("div",{children:["Created: ",(()=>r?V("span",{children:[C("b",{id:"created",className:"short-url-visits-header__created-at",children:C(sy,{date:r.dateCreated,relative:!0})}),C(Br,{placement:"bottom",target:"created",children:C(sy,{date:r.dateCreated})})]}):C("small",{children:"Loading..."}))()]}),V("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&C("small",{children:"Loading..."}),!i&&C(Ei,{href:a,children:l??a})]})]})},Fbe=({exportVisits:e})=>ra(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o,settings:s})=>{const{shortCode:a=""}=Ks(),{search:l}=Mn(),c=ta(),{domain:f}=dl(l),h=(m,g)=>r({shortCode:gm(a),query:{...ph(m),domain:f},doIntervalFallback:g}),p=m=>{var g;return e(`short-url_${(g=n.shortUrl)==null?void 0:g.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,m)};return H.useEffect(()=>{i({shortCode:gm(a),domain:f})},[]),C(gh,{getVisits:h,cancelGetVisits:o,visitsInfo:t,settings:s,exportCsv:p,children:C(Ibe,{shortUrlDetail:n,shortUrlVisits:t,goBack:c})})},(t,n)=>n.shortCode?[Jr.shortUrlVisits(gm(n.shortCode))]:[]),$be=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return C(mh,{title:V("span",{className:"d-flex align-items-center justify-content-center",children:[C("span",{className:"me-2",children:"Visits for"}),C(qE,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},jbe=(e,{exportVisits:t})=>ra(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i,settings:o})=>{const s=ta(),{tag:a=""}=Ks();return C(gh,{getVisits:(f,h)=>n({tag:a,query:ph(f),doIntervalFallback:h}),cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:f=>t(`tag_${a}_visits.csv`,f),children:C($be,{tagVisits:r,goBack:s,colorGenerator:e})})},()=>[Jr.visits]),Bbe=(e,t)=>{e.serviceFactory("MapModal",()=>GF),e.serviceFactory("ShortUrlVisits",Fbe,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo","settings"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",jbe,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo","settings"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",ybe,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo","settings"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",bbe,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","settings"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",_be,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo","settings"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>dbe),e.serviceFactory("getShortUrlVisits",kbe,"buildShlinkApiClient"),e.serviceFactory("cancelGetShortUrlVisits",ct("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",Nbe,"buildShlinkApiClient"),e.serviceFactory("cancelGetTagVisits",ct("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",epe,"buildShlinkApiClient"),e.serviceFactory("cancelGetDomainVisits",ct("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",Tbe,"buildShlinkApiClient"),e.serviceFactory("cancelGetOrphanVisits",ct("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",xbe,"buildShlinkApiClient"),e.serviceFactory("cancelGetNonOrphanVisits",ct("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>ch),e.serviceFactory("loadVisitsOverview",Dbe,"buildShlinkApiClient"),e.serviceFactory("visitsOverviewReducerCreator",Abe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",ct("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",tpe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",ct("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",Sbe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",ct("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",Obe,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",ct("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",Mbe,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",ct("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",Lbe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",ct("reducer"),"tagVisitsReducerCreator")},ai=new Oq,{container:pT}=ai,zbe=(e,t)=>(...n)=>e[t](...n),Ube=(e,t)=>({...e,[t]:zbe(pT,t)}),ia=(e,t=[])=>GW(e?PI(e):null,t.reduce(Ube,{}));jse(ai,ia);_ae(ai,ia);zX(ai);Ive(ai,ia);pme(ai,ia);Rye(ai,ia);Bbe(ai,ia);Z_e(ai);mpe(ai);Fme(ai,ia);dpe(ai,ia);var mT={},ly={},Vbe={get exports(){return ly},set exports(e){ly=e}};(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=s,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(s(c)){var f={};for(var h in c)f[h]=o(c[h]);return f}else return c}t.clone=o;function s(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=s;function a(c,f){if(!s(c))return f;for(var h in f)h==="__proto__"||h==="constructor"||h==="prototype"||(c[h]=s(c[h])&&s(f[h])?a(c[h],f[h]):f[h]);return c}function l(c,f,h){var p;(c||!s(p=h.shift()))&&(p={});for(var m=0;m<h.length;++m){var g=h[m];if(s(g)){for(var v in g)if(!(v==="__proto__"||v==="constructor"||v==="prototype")){var w=c?o(g[v]):g[v];p[v]=f?a(p[v],w):w}}}return p}})(Vbe,ly);(function(e){var t=n(ly);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=ee,e.combineLoads=q,e.load=Y,e.save=A;function n($){return $&&$.__esModule?$:{default:$}}function r($,I){return l($)||a($,I)||o($,I)||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($,I){if($){if(typeof $=="string")return s($,I);var B=Object.prototype.toString.call($).slice(8,-1);return B==="Object"&&$.constructor&&(B=$.constructor.name),B==="Map"||B==="Set"?Array.from($):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?s($,I):void 0}}function s($,I){(I==null||I>$.length)&&(I=$.length);for(var B=0,ie=Array(I);B<I;B++)ie[B]=$[B];return ie}function a($,I){var B=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(B!=null){var ie,W,G=[],re=!0,se=!1;try{for(B=B.call($);!(re=(ie=B.next()).done)&&(G.push(ie.value),!(I&&G.length===I));re=!0);}catch(me){se=!0,W=me}finally{try{re||B.return==null||B.return()}finally{if(se)throw W}}return G}}function l($){if(Array.isArray($))return $}function c($){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},c($)}function f($,I,B){return I in $?Object.defineProperty($,I,{value:B,enumerable:!0,configurable:!0,writable:!0}):$[I]=B,$}var h="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",m="_",g=[],v=[],w=0,_=!1,b=!1,x=new Map;function E($){console.warn(h,$)}function P(){}var k=function($){return $?P:E};function N($,I){return I===void 0?null:$.length===1?I[$[0]]:N($.slice(1),I[$[0]])}function D($){function I(ie,W){return ie.length===0?W:I(ie.slice(1),f({},ie[0],W))}var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return I($.split(".").reverse(),B)}function U($){this.warnFn=$||E}Object.defineProperty(U.prototype,"length",{get:function(){try{return localStorage.length}catch($){this.warnFn($)}return 0},configurable:!0,enumerable:!0}),U.prototype.key=function($){try{return localStorage.key($)}catch(I){this.warnFn(I)}return null},U.prototype.setItem=function($,I){try{localStorage.setItem($,JSON.stringify(I))}catch(B){this.warnFn(B)}},U.prototype.getItem=function($){try{return JSON.parse(localStorage.getItem($))}catch(I){this.warnFn(I)}return null},U.prototype.removeItem=function($){try{localStorage.removeItem($)}catch(I){this.warnFn(I)}};function A(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},I=$.states,B=I===void 0?g:I,ie=$.ignoreStates,W=ie===void 0?v:ie,G=$.namespace,re=G===void 0?p:G,se=$.namespaceSeparator,me=se===void 0?m:se,O=$.debounce,R=O===void 0?w:O,F=$.disableWarnings,Q=F===void 0?b:F;return function(X){return function(ae){return function(ve){function De(Ne,Le){return 1<Ne.split(".").length?N(Ne.split("."),Le):N([Ne],Le)}function fe(){B.length===0?Ae.setItem(re,ye):B.forEach(function(Ne){var Le=re+me+Ne,ue=De(Ne,ye);ue?Ae.setItem(Le,ue):Ae.removeItem(Le)})}var ye,be=k(Q),Oe=ae(ve);Z(B)||(console.error(h,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),B=g),Z(W)||(console.error(h,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),W=v),0<W.length&&(W=W.filter(function(Ne){return te(Ne)?Ne:void console.error(h,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),te(re)||(console.error(h,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),re=p),te(me)||(console.error(h,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),me=m),ne(R)||(console.error(h,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),R=w),ye=0<W.length?K(W,X.getState()):X.getState();var Ae=new U(be);return R?(x.get(B+re)&&clearTimeout(x.get(B+re)),x.set(B+re,setTimeout(function(){fe()},R))):fe(),Oe}}}}function Y(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},I=$.states,B=I===void 0?g:I,ie=$.immutablejs,W=ie===void 0?_:ie,G=$.namespace,re=G===void 0?p:G,se=$.namespaceSeparator,me=se===void 0?m:se,O=$.preloadedState,R=O===void 0?{}:O,F=$.disableWarnings,Q=F===void 0?b:F,X=k(Q);Z(B)||(console.error(h,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),B=g),te(re)||(console.error(h,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),re=p),te(me)||(console.error(h,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),me=m),W===!0&&X("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var ae=new U(X),ve=R;if(B.length===0){var De=ae.getItem(re);De&&(ve=De)}else B.forEach(function(fe){var ye=re+me+fe,be=ae.getItem(ye);be?ve=t.default.recursive(ve,D(fe,be)):X("Invalid load '"+ye+"' 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 ve}function q(){for(var $={},I=arguments.length,B=Array(I),ie=0;ie<I;ie++)B[ie]=arguments[ie];return B.forEach(function(W){for(var G in le(W)||(console.error(h,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),W={}),W)$[G]=W[G]}),$}function ee(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},I=$.namespace,B=I===void 0?p:I,ie=$.disableWarnings,W=ie===void 0?b:ie,G=k(W);te(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 re,se=new U(G),me=se.length,O=0;O<me;O++)re=se.key(O),re&&re.slice(0,B.length)===B&&se.removeItem(re)}function Z($){return Object.prototype.toString.call($)==="[object Array]"}function te($){return typeof $=="string"}function ne($){return typeof $=="number"&&isFinite($)&&Math.floor($)===$}function le($){return $!==null&&c($)==="object"}function K($,I){var B=Object.entries(I).reduce(function(ie,W){var G=r(W,2),re=G[0];return G[1],$.indexOf(re)===-1&&(ie[re]=I[re]),ie},{});return B}})(mT);const Hbe=e=>M5({servers:Xpe,selectedServer:e.selectedServerReducer,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,mercureInfo:e.mercureInfoReducer,settings:Pme,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,appUpdated:$se,sidebar:uae}),Wbe=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},Ybe=!0,i$={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},qbe=Wbe(mT.load(i$)),Gbe=e=>lse({devTools:!Ybe,reducer:Hbe(e),preloadedState:qbe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).prepend(e.selectServerListener.middleware).concat(mT.save(i$))}),Zbe=Boolean(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 Kbe(e){if("serviceWorker"in navigator){if(new URL(Wg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Wg.homepage}/service-worker.js`;Zbe?(Xbe(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")})):o$(n,e)})}}function o$(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 Xbe(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()})}):o$(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const Qbe="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=",Jbe="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==",e1e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",t1e=()=>{delete RL.Icon.Default.prototype._getIconUrl,RL.Icon.Default.mergeOptions({iconRetinaUrl:Jbe,iconUrl:Qbe,shadowUrl:e1e})};t1e();const s$=Gbe(pT),{App:n1e,ScrollToTop:r1e,ErrorHandler:i1e,appUpdateAvailable:o1e}=pT;BA(document.getElementById("root")).render(C(ZW,{store:s$,children:C(XY,{basename:Wg.homepage,children:C(i1e,{children:C(r1e,{children:C(n1e,{})})})})}));Kbe({onUpdate(){s$.dispatch(o1e())}});
|